/* ===================================
   ARU TECHNOLOGIES — Apple-inspired
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:    #ffffff;
  --light:    #f5f5f7;
  --dark:     #1d1d1f;
  --black:    #000000;
  --gray:     #6e6e73;
  --gray-2:   #86868b;
  --gray-3:   #d2d2d7;
  --blue:     #0071e3;
  --blue-hover: #0077ed;
  --purple:   #6e6cf6;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  --radius:    18px;
  --radius-lg: 28px;
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --container: 980px;
  --section-gap: 130px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Utilities --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-gap) 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
}

.section-header--left {
  text-align: left;
  max-width: none;
  margin: 0 0 56px;
}

.section-sub {
  color: var(--gray);
  font-size: 19px;
  font-weight: 300;
  margin-top: 16px;
  line-height: 1.5;
}

h1 { font-size: clamp(48px, 7vw, 88px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4.5vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; color: var(--dark); }
h3 { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: 17px; font-weight: 600; }
p  { color: var(--gray); }

/* Link arrow style — Apple's signature CTA */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 400;
  color: var(--blue);
  transition: gap var(--transition);
}
.link-arrow::after {
  content: ' ›';
  font-size: 20px;
  line-height: 1;
  transition: transform var(--transition);
}
.link-arrow:hover { gap: 8px; }
.link-arrow:hover::after { transform: translateX(3px); }

.link-arrow--white { color: rgba(255,255,255,0.85); }
.link-arrow--white:hover { color: #fff; }
.link-arrow--blue { color: var(--blue); }

/* ===================================
   NAV
   =================================== */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background var(--transition);
}

.nav-wrap.dark {
  background: rgba(0,0,0,0.8);
  border-bottom-color: rgba(255,255,255,0.1);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dark);
  transition: color var(--transition);
}
.nav-wrap.dark .logo { color: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links li a {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  opacity: 0.85;
  transition: opacity var(--transition);
}
.nav-links li a:hover { opacity: 1; }
.nav-wrap.dark .nav-links li a { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-wrap.dark .hamburger span { background: var(--white); }

/* ===================================
   HERO
   =================================== */
.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 100px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(90deg, #6e6cf6 0%, #a78bfa 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-hint span {
  display: block;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25));
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 0; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===================================
   TAGLINE BAND
   =================================== */
.tagline-band {
  background: var(--light);
  border-bottom: 1px solid var(--gray-3);
  padding: 20px 0;
}
.tagline-band p {
  text-align: center;
  font-size: 15px;
  color: var(--gray);
}
.tagline-band strong { color: var(--dark); font-weight: 600; }

/* ===================================
   SERVICES
   =================================== */
.services { background: var(--light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 280px;
}
.service-card:hover { transform: scale(1.01); }

.service-card--dark {
  background: var(--dark);
  color: var(--white);
}
.service-card--dark p { color: rgba(255,255,255,0.6); }
.service-card--dark .service-icon { color: rgba(255,255,255,0.5); }
.service-card--dark h3 { color: var(--white); }
.service-card--dark .card-link { color: rgba(255,255,255,0.8); }
.service-card--dark .card-link:hover { color: var(--white); }

.service-card--blue {
  background: var(--blue);
  color: var(--white);
}
.service-card--blue p { color: rgba(255,255,255,0.75); }
.service-card--blue .service-icon { color: rgba(255,255,255,0.6); }
.service-card--blue h3 { color: var(--white); }
.service-card--blue .card-link { color: rgba(255,255,255,0.85); }
.service-card--blue .card-link:hover { color: var(--white); }

.service-card--purple {
  background: linear-gradient(135deg, #1c1c3a 0%, #2d1b69 100%);
  color: var(--white);
}
.service-card--purple p { color: rgba(255,255,255,0.65); }
.service-card--purple .service-icon { color: var(--purple); }
.service-card--purple h3 { color: var(--white); }
.service-card--purple .card-link { color: rgba(180,170,255,0.9); }

.service-icon {
  width: 36px; height: 36px;
  margin-bottom: 28px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 { margin-bottom: 12px; font-size: 22px; }
.service-card p { font-size: 15px; line-height: 1.55; flex: 1; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 15px;
  margin-top: 24px;
  transition: gap var(--transition);
}
.card-link::after {
  content: ' ›';
  font-size: 17px;
  line-height: 1;
  transition: transform var(--transition);
}
.card-link:hover { gap: 7px; }
.card-link:hover::after { transform: translateX(3px); }

/* ===================================
   NUMBERS
   =================================== */
.numbers {
  background: var(--white);
  padding: 80px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--gray-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.number-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  border-right: 1px solid var(--gray-3);
  text-align: center;
}
.number-item:last-child { border-right: none; }

.number-big {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dark);
  line-height: 1;
  display: block;
}
.number-plus {
  font-size: 0.6em;
  font-weight: 600;
  vertical-align: super;
  color: var(--blue);
}
.number-label {
  font-size: 14px;
  color: var(--gray);
  margin-top: 10px;
  display: block;
  line-height: 1.3;
}

/* ===================================
   ABOUT
   =================================== */
.about { background: var(--light); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 72px;
}

.about-left h2 { color: var(--dark); }

.about-right p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--gray);
}

.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-3);
  border-radius: var(--radius);
  overflow: hidden;
}

.value-item {
  background: var(--white);
  padding: 40px 36px;
}
.value-item h4 {
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 17px;
}
.value-item p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
}

/* ===================================
   WORK
   =================================== */
.work { background: var(--white); }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.work-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.work-card:hover { transform: scale(1.01); }

.work-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.work-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 4px;
}

.work-card h3 { color: var(--dark); font-size: 22px; }
.work-card p  { font-size: 15px; color: var(--gray); line-height: 1.55; margin: 0; }

.work-stat {
  text-align: right;
  flex-shrink: 0;
}
.work-stat-num {
  display: block;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dark);
  line-height: 1;
}
.work-stat-label {
  font-size: 13px;
  color: var(--gray);
  display: block;
  margin-top: 6px;
  max-width: 120px;
  text-align: right;
  line-height: 1.3;
}

.work-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.work-stack span {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 100px;
  background: rgba(0,0,0,0.06);
  color: var(--gray);
}

/* ===================================
   CONTACT
   =================================== */
.contact { background: var(--light); }

.contact-header {
  text-align: center;
  margin-bottom: 64px;
}
.contact-header h2 { margin-bottom: 16px; }
.contact-header .section-sub { margin-bottom: 24px; }

.contact-email {
  font-size: 19px;
  color: var(--blue);
  display: inline-block;
}
.contact-email:hover { text-decoration: underline; }

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.01em;
}

input, select, textarea {
  background: var(--white);
  border: 1px solid var(--gray-3);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--dark);
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}

select { cursor: pointer; }

input::placeholder, textarea::placeholder {
  color: var(--gray-2);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}

textarea { resize: vertical; }

.btn-submit {
  align-self: center;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 980px;
  padding: 16px 40px;
  font-size: 17px;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-submit:hover {
  background: var(--blue-hover);
  transform: scale(1.02);
}
.btn-submit:active { transform: scale(0.98); }

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--light);
  border-top: 1px solid var(--gray-3);
  padding: 48px 0 40px;
}

.footer-top {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-3);
}
.footer-copy { font-size: 13px; color: var(--gray); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 13px;
  color: var(--gray);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--dark); }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 900px) {
  :root { --section-gap: 96px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .values-row { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-item:nth-child(2) { border-right: none; }
  .number-item:nth-child(3), .number-item:nth-child(4) { border-top: 1px solid var(--gray-3); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-gap: 72px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 48px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-3);
    flex-direction: column;
    padding: 28px 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
    z-index: 99;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-wrap.dark .nav-links {
    background: rgba(0,0,0,0.97);
    border-bottom-color: rgba(255,255,255,0.1);
  }
  .nav-wrap.dark .nav-links li a { color: var(--white); }

  .hero { padding: 120px 24px 100px; }
  .hero h1 { font-size: clamp(40px, 10vw, 60px); }
  .hero-cta { flex-direction: column; align-items: center; gap: 20px; }

  .services-grid { grid-template-columns: 1fr; }

  .work-grid { grid-template-columns: 1fr; }
  .work-card--wide {
    grid-column: 1;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .work-stat { text-align: left; }
  .work-stat-label { text-align: left; }

  .form-row { grid-template-columns: 1fr; }

  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-submit { width: 100%; }
  .contact-form { padding: 0; }
  .service-card { padding: 32px 28px; }
}
