/* ==========================================================================
   TechMila — style.css
   1. Tokens  2. Base  3. Layout  4. Buttons  5. Header  6. Hero
   7. Sections (intro, services, flow, solutions, work, about, process,
      technology, AI, ecosystem, not-sure, contact, faq, final CTA)
   8. Footer  9. Utilities / motion / legal pages
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --navy: #0B1020;
  --navy-2: #121A33;
  --navy-3: #1A2444;
  --blue: #2563EB;
  --violet: #7C3AED;
  --cyan: #06B6D4;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --text: #111827;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-dark: rgba(255, 255, 255, .10);
  --text-on-dark: #E6EAF5;
  --muted-on-dark: #9AA6C3;

  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 50%, var(--violet) 100%);

  /* To self-host Inter: add @font-face rules for assets/fonts/*.woff2 and remove the Google Fonts <link> in the HTML. */
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, .06), 0 1px 3px rgba(11, 16, 32, .06);
  --shadow-md: 0 10px 30px -12px rgba(11, 16, 32, .22);
  --shadow-lg: 0 30px 60px -24px rgba(11, 16, 32, .35);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 72px;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--white);
  color: var(--navy);
  padding: .6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Type */
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 6.2vw, 4.25rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--navy); color: var(--text-on-dark); }
.section--dark .eyebrow { color: var(--cyan); }
.section--dark .lead { color: var(--muted-on-dark); }
.section--white { background: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head h2 + .lead { margin-top: 1.1rem; }

.grid { display: grid; gap: 1.25rem; }

/* 4. BUTTONS --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.2;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .7);
}
.btn--primary:hover { background: #1D4FD8; transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(37, 99, 235, .8); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .28);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }


.btn--sm { min-height: 42px; padding: .55rem 1.15rem; font-size: .92rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--blue);
  min-height: 44px;
}
.link-arrow .arrow { transition: transform .2s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* 5. HEADER ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 16, 32, .55);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 16, 32, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; }
.brand-mark { height: 30px; width: auto; aspect-ratio: 575 / 404; }
.brand-word { font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; line-height: 1; color: var(--white); }
.brand-word b { color: #3B82F6; font-weight: 800; }

.nav-desktop { display: none; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-list a {
  display: block;
  padding: .55rem .85rem;
  border-radius: 8px;
  font-size: .94rem;
  font-weight: 500;
  color: #C9D2EA;
  transition: color .2s ease, background-color .2s ease;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--white); background: rgba(255, 255, 255, .07); }

.header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .05);
  color: var(--white);
}
.menu-toggle .bars { position: relative; width: 20px; height: 14px; }
.menu-toggle .bars i {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-toggle .bars i:nth-child(1) { top: 0; }
.menu-toggle .bars i:nth-child(2) { top: 6px; }
.menu-toggle .bars i:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--navy);
  padding: 1.5rem var(--gutter) 2rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.mobile-menu.is-open {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-menu nav li + li { border-top: 1px solid var(--line-dark); }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
}
.mobile-menu nav a .icon { color: var(--muted-on-dark); width: 20px; height: 20px; }
.mobile-menu .btn { width: 100%; margin-top: 1.75rem; min-height: 54px; }
.mobile-menu .menu-note { margin-top: 1.25rem; color: var(--muted-on-dark); font-size: .92rem; text-align: center; }

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* 6. HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px; right: -140px; top: -80px;
  background: rgba(37, 99, 235, .35);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after {
  width: 420px; height: 420px; left: -160px; bottom: -120px;
  background: rgba(124, 58, 237, .22);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}

.hero-inner { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero-copy { min-width: 0; }
.hero .eyebrow { color: var(--cyan); }
.hero h1 { max-width: 16ch; }
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text { margin-top: 1.5rem; font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--muted-on-dark); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-caps {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  font-size: .9rem; color: var(--muted-on-dark);
}
.hero-caps span:not(:first-child)::before { content: "·"; margin-right: .9rem; color: #4B587A; }

/* Ecosystem visual */
.eco {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.eco-lines path {
  fill: none;
  stroke: url(#ecoGrad);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 4 6;
  animation: dash 14s linear infinite;
  opacity: .8;
}
.eco-ring {
  position: absolute; inset: 22%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
}
.eco-ring::after {
  content: ""; position: absolute; inset: -22%;
  border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .06);
}
.eco-hub {
  position: absolute; left: 50%; top: 50%;
  width: 26%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 28%;
  background: linear-gradient(160deg, #16204A, #0E1630);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 10px rgba(37, 99, 235, .08), 0 24px 50px -16px rgba(37, 99, 235, .55);
}
.eco-hub img { width: 62%; height: auto; }

.eco-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .8rem .55rem .55rem;
  border-radius: 14px;
  background: rgba(20, 28, 56, .88);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.eco-node .ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--violet));
}
.eco-node .ico .icon { width: 18px; height: 18px; }
.eco-node strong { display: block; font-size: .86rem; line-height: 1.2; }
.eco-node small { display: block; font-size: .7rem; color: var(--muted-on-dark); line-height: 1.2; }
.n-mobile { animation-delay: -1.2s; }
.n-cloud { animation-delay: -2.4s; }
.n-data { animation-delay: -3.6s; }
.n-ai { animation-delay: -4.8s; }
.n-business { animation-delay: -6s; }

.n-web { left: 24%; top: 12%; }
.n-mobile { left: 80%; top: 20%; }
.n-cloud { left: 90%; top: 52%; }
.n-data { left: 70%; top: 88%; }
.n-ai { left: 24%; top: 82%; }
.n-business { left: 9%; top: 48%; }
.n-mobile .ico { background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.n-ai .ico { background: linear-gradient(135deg, var(--violet), #A855F7); }
.n-data .ico { background: linear-gradient(135deg, var(--blue), var(--cyan)); }

@media (max-width: 480px) {
  .eco-node { padding: .4rem .6rem .4rem .4rem; gap: .45rem; }
  .eco-node .ico { width: 28px; height: 28px; border-radius: 8px; }
  .eco-node .ico .icon { width: 15px; height: 15px; }
  .eco-node strong { font-size: .76rem; }
  .eco-node small { display: none; }
  .n-business { left: 14%; }
  .n-cloud { left: 86%; }
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* 7. SECTIONS -------------------------------------------------------------- */

/* Intro / pillars */
.pillar {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CBD5E1; }
.pillar .ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #EEF4FF; color: var(--blue);
  margin-bottom: 1.25rem;
}
.pillar h3 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; }
.pillar p { color: var(--text); font-size: 1.08rem; font-weight: 500; line-height: 1.5; }
.pillar .num { position: absolute; top: 1.25rem; right: 1.5rem; font-size: .8rem; font-weight: 700; color: #CBD5E1; letter-spacing: .1em; }

@media (min-width: 820px) {
  .intro-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; }
  .intro-layout .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
}
.intro-layout .pillars { gap: 1rem; }

/* Services */
.services-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CBD5E1; }
.card .ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, #1E2A55 100%);
  margin-bottom: 1.4rem;
  position: relative;
}
.card .ico::after {
  content: ""; position: absolute; right: -4px; bottom: -4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad); border: 3px solid var(--white);
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .98rem; }

.services-more {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius);
}
.services-more strong { font-size: 1.15rem; }

/* One technology partner / flow */
.partner { overflow: hidden; }
.partner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 0%, rgba(37, 99, 235, .22), transparent 70%),
              radial-gradient(ellipse 50% 50% at 0% 100%, rgba(124, 58, 237, .16), transparent 70%);
  pointer-events: none;
}
.partner .container { position: relative; }
.partner h2 { color: var(--white); }

.flow { position: relative; display: grid; gap: 0; margin-top: 1rem; padding-left: 0; }
.flow li {
  position: relative;
  display: flex; align-items: center; gap: 1.1rem;
  padding: .85rem 0;
}
.flow li::before {
  content: ""; position: absolute; left: 25px; top: -50%; bottom: 50%;
  width: 2px; background: linear-gradient(var(--blue), var(--violet)); opacity: .5;
}
.flow li:first-child::before { display: none; }
.flow .node {
  position: relative; z-index: 1;
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--navy-3);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--cyan);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.flow li:hover .node { transform: translateY(-3px); border-color: var(--cyan); background: #1E2B58; }
.flow .label { display: flex; flex-direction: column; line-height: 1.25; }
.flow .label small { font-size: .72rem; letter-spacing: .14em; color: var(--muted-on-dark); font-weight: 600; }
.flow .label strong { font-size: 1.15rem; color: var(--white); font-weight: 600; }

@media (min-width: 1100px) {
  .flow { grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: 2rem; }
  .flow li { flex-direction: column; text-align: center; padding: 0 .25rem; gap: 1.1rem; }
  .flow li::before {
    left: -50%; right: 50%; top: 25px; bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    background-size: 8px 2px;
  }
  .flow .label { align-items: center; }
  .flow .label strong { font-size: 1rem; }
}

/* Solutions */
.solutions-grid { grid-template-columns: 1fr; }
@media (min-width: 560px) { .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .solutions-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sol {
  padding: 1.6rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sol:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.sol .ico { color: var(--blue); margin-bottom: 1.1rem; }
.sol .ico .icon { width: 30px; height: 30px; }
.sol h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.sol p { color: var(--muted); font-size: .94rem; line-height: 1.6; }

/* Work */
.work { background: var(--white); }
.work-grid { grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 700px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.75rem; }
  .project { grid-column: span 2; }
  .project--wide { grid-column: span 3; }
}

.project {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #CBD5E1; }

.project-preview {
  width: 100%;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
/* Natural proportions: height follows the width, so nothing is cropped or squeezed. */
.project-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.project-body { display: flex; flex-direction: column; gap: .75rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.project-body h3 { font-size: 1.25rem; }
.project-body p { color: var(--muted); font-size: .96rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
  padding: .22rem .65rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: .76rem; font-weight: 600; color: #475569;
}
.project .link-arrow { margin-top: auto; padding-top: .25rem; }

/* About / why */
.why-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.why .n {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  color: var(--blue);
  margin-bottom: .9rem;
}
.why h3 { margin-bottom: .55rem; }
.why p { color: var(--muted); }

/* Process */
.process { background: var(--white); }
.steps { position: relative; display: grid; gap: 0; }
.step { position: relative; padding: 0 0 2rem 4rem; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px;
  background: linear-gradient(var(--blue), var(--violet)); opacity: .35;
}
.step:last-child::before { display: none; }
.step .dot {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 700;
  background: var(--navy); color: var(--white);
  box-shadow: 0 0 0 5px #EEF4FF;
}
.step h3 { font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: .55rem 0 .4rem; }
.step p { color: var(--muted); font-size: .96rem; }

@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.25rem; }
  .step { padding: 4rem 0 0; }
  .step::before { left: 44px; right: -1.25rem; top: 21px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
  .step .dot { left: 0; }
  .step h3 { margin-top: 0; }
  .step p { font-size: .9rem; }
}

/* Technology */
.tech-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tech-card {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tech-card h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .42rem .85rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600; color: var(--navy);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.chips li:hover { border-color: var(--blue); color: var(--blue); background: #F3F7FF; }
.tech-note { margin-top: 1.75rem; font-size: .88rem; color: var(--muted); }

/* AI */
.ai { overflow: hidden; background: linear-gradient(160deg, #0B1020 0%, #14123A 55%, #1B1250 100%); }
.ai::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -220px;
  background: radial-gradient(circle, rgba(124, 58, 237, .35), transparent 65%);
  pointer-events: none;
}
.ai .container { position: relative; }
.ai h2 { color: var(--white); }
.ai-grid { grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ai-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.ai-item:hover { background: rgba(255, 255, 255, .08); border-color: rgba(167, 139, 250, .5); transform: translateY(-3px); }
.ai-item .ico {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: var(--white);
}
.ai-item span { font-weight: 600; color: var(--white); }
.ai-cta { margin-top: 2.5rem; }

/* Ecosystem progression */
.stairs { display: grid; gap: 0; }
.stair {
  position: relative;
  padding: 1.4rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stair + .stair { margin-top: 2.25rem; }
.stair + .stair::before {
  content: ""; position: absolute; left: 32px; top: -2.25rem; height: 2.25rem; width: 2px;
  background: linear-gradient(var(--blue), var(--violet)); opacity: .45;
}
.stair + .stair::after {
  content: ""; position: absolute; left: 27px; top: -.55rem;
  width: 10px; height: 10px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet);
  transform: rotate(45deg); opacity: .6;
}
.stair .lvl { font-size: .74rem; font-weight: 700; letter-spacing: .16em; color: var(--blue); text-transform: uppercase; }
.stair h3 { margin: .35rem 0 .25rem; font-size: 1.15rem; }
.stair p { color: var(--muted); font-size: .94rem; }
.stair--top {
  background: linear-gradient(135deg, var(--navy) 0%, #1B1E57 100%);
  border-color: transparent;
}
.stair--top .lvl { color: var(--cyan); }
.stair--top h3 { color: var(--white); }
.stair--top p { color: #B8C3E0; }

@media (min-width: 900px) {
  .stairs { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 1rem; }
  .stair { display: flex; flex-direction: column; justify-content: flex-end; margin: 0 !important; }
  .stair + .stair::before, .stair + .stair::after { display: none; }
  .stair:nth-child(1) { min-height: 190px; }
  .stair:nth-child(2) { min-height: 230px; }
  .stair:nth-child(3) { min-height: 270px; }
  .stair:nth-child(4) { min-height: 310px; }
  .stair:nth-child(5) { min-height: 350px; }
}
.eco-closing { margin-top: 3rem; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; max-width: 34ch; }
.eco-closing span { color: var(--muted); font-weight: 500; }

/* Not sure */
.notsure { background: var(--white); }
.notsure-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(2rem, 6vw, 4rem);
  background: linear-gradient(135deg, #EEF4FF 0%, #F3EEFF 100%);
  border: 1px solid #E0E7FF;
  display: grid; gap: 2rem; align-items: center;
}
.notsure-box p { color: #475569; }
.notsure-box .copy { display: grid; gap: 1rem; max-width: 60ch; }
@media (min-width: 900px) { .notsure-box { grid-template-columns: minmax(0, 1fr) auto; } }

/* Contact / form */
.contact { background: var(--bg); }
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3.5rem; align-items: start; } }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field > label, .field > legend { font-size: .9rem; font-weight: 600; color: var(--navy); padding: 0; }
.field .req { color: var(--blue); }
.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem 1rem;
  background: var(--bg);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 1rem; /* 16px prevents iOS zoom */
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.input:hover, .select:hover, .textarea:hover { border-color: #94A3B8; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #DC2626; }
.field-error { font-size: .84rem; color: #B91C1C; min-height: 0; }
.field-error:empty { display: none; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.radio-row { display: flex; gap: .75rem; }
.radio {
  position: relative; flex: 1;
}
.radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio span {
  display: flex; align-items: center; justify-content: center;
  min-height: 50px;
  border: 1px solid #CBD5E1; border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 600;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.radio input:checked + span { border-color: var(--blue); background: #EEF4FF; color: var(--blue); }
.radio input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }

.form-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-actions .btn { min-height: 54px; }
.form-hint { font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-ready { display: none; padding: .5rem 0; }
.form-ready.is-visible { display: block; }
.form-ready .tick {
  width: 56px; height: 56px; margin-bottom: 1.1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: #EEF4FF; color: var(--blue);
}
.form-ready .tick .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.form-ready h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.form-ready > p { color: var(--muted); max-width: 52ch; }
.msg-preview {
  margin: 1.4rem 0 0; padding: 1rem 1.15rem;
  max-height: 260px; overflow: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .9rem; line-height: 1.6; color: #334155;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.ready-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }
.ready-actions .btn { min-height: 52px; }
.btn--light { background: var(--white); color: var(--navy); border-color: #CBD5E1; }
.btn--light:hover { border-color: var(--blue); color: var(--blue); }
.ready-edit {
  margin-top: 1.1rem; padding: .5rem 0; min-height: 44px;
  background: none; border: 0; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.ready-edit:hover { color: var(--blue); }

.contact-side h3.side-title { font-size: 1.6rem; margin-bottom: 1.25rem; letter-spacing: -.02em; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: grid; gap: .5rem;
  padding: 1.35rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contact-card:hover { border-color: #CBD5E1; box-shadow: var(--shadow-md); }
.contact-card .label { display: flex; align-items: center; gap: .6rem; font-size: .76rem; font-weight: 700; letter-spacing: .16em; color: var(--blue); }
.contact-card .label .icon { width: 20px; height: 20px; }
.contact-card .value { font-size: 1.08rem; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.contact-card address { font-style: normal; color: var(--navy); font-weight: 500; line-height: 1.55; }
.contact-card .link-arrow { min-height: 40px; }

/* FAQ */
.faq { background: var(--white); }
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; } .faq-layout .section-head { margin-bottom: 0; } }
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { font-size: 1rem; letter-spacing: 0; line-height: 1.4; }
.acc-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px;
  padding: 1rem 0;
  background: none; border: 0;
  text-align: left;
  font-size: 1.05rem; font-weight: 600; color: var(--navy);
}
.acc-btn:hover { color: var(--blue); }
.acc-btn .plus {
  position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid #CBD5E1;
  transition: background-color .2s ease, border-color .2s ease, transform .25s ease;
}
.acc-btn .plus::before, .acc-btn .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: currentColor; border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}
.acc-btn .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .acc-btn .plus { background: var(--blue); border-color: var(--blue); color: var(--white); }
.acc-item.is-open .acc-btn .plus::after { transform: translate(-50%, -50%) rotate(0deg); } /* plus becomes minus */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.acc-panel > div {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;                         /* closed answers are hidden from keyboard/screen readers too */
  transition: visibility 0s linear .3s;
}
.acc-panel p { padding: 0 3rem 1.4rem 0; color: var(--muted); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-item.is-open .acc-panel > div { visibility: visible; transition-delay: 0s; }

/* Final CTA */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--white);
  padding-block: clamp(5rem, 11vw, 9rem);
  text-align: center;
}
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 50% 120%, rgba(37, 99, 235, .55), transparent 70%),
    radial-gradient(ellipse 35% 40% at 85% 0%, rgba(124, 58, 237, .3), transparent 70%),
    radial-gradient(ellipse 35% 40% at 10% 10%, rgba(6, 182, 212, .18), transparent 70%);
}
.final h2 { font-size: clamp(2rem, 5.4vw, 3.6rem); max-width: 18ch; margin-inline: auto; letter-spacing: -.03em; }
.final p { margin: 1.25rem auto 0; color: var(--muted-on-dark); font-size: 1.15rem; max-width: 46ch; }
.final .hero-actions { justify-content: center; margin-top: 2.25rem; }

/* 8. FOOTER ---------------------------------------------------------------- */
.site-footer { background: #070B18; color: var(--muted-on-dark); padding-top: clamp(3.5rem, 7vw, 5rem); font-size: .94rem; }
.footer-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); } }
.footer-brand p { margin-top: 1.1rem; max-width: 30ch; color: var(--muted-on-dark); }
.footer-col h2 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; font-weight: 700; line-height: 1.2; }
.footer-col li + li { margin-top: .15rem; }
.footer-col a { display: inline-block; padding: .3rem 0; color: var(--muted-on-dark); transition: color .2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; line-height: 1.7; }
.footer-col .contact-line { overflow-wrap: anywhere; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  font-size: .86rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-bottom a { display: inline-block; padding: .3rem 0; }
.footer-bottom a:hover { color: var(--white); }

/* 9. UTILITIES / MOTION / LEGAL -------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 8px)); } }
@keyframes dash { to { stroke-dashoffset: -200; } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-40px, 30px, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

.legal { padding-top: calc(var(--header-h) + 4rem); padding-bottom: 6rem; min-height: 70vh; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.legal p { color: var(--muted); margin-bottom: 1rem; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 2.25rem 0 .75rem; color: var(--navy); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; color: var(--muted); }
.legal li { margin-bottom: .4rem; }
.legal a:not(.btn):not(.link-arrow) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.legal .note { padding: 1rem 1.15rem; background: #EEF4FF; border: 1px solid #DBE6FF; border-radius: var(--radius-sm); color: #334155; margin: 1.5rem 0; }
.legal .back { margin-top: 2rem; }

@media (max-width: 480px) { .ready-actions .btn { width: 100%; } }
