/* ============================================================
   MAGEITECH — premium dark agency landing
   ============================================================ */

:root, :root[data-theme="dark"] {
  --bg:        #0A0A0A;
  --bg-2:      #0F0F10;
  --surface:   #141414;
  --surface-2: #1A1A1B;
  --border:    #1F1F1F;
  --border-2:  #2A2A2A;
  --text:      #FAFAFA;
  --text-dim:  #A0A0A0;
  --text-dim2: #6B6B6B;
  --brand:     #F26B1F;
  --brand-2:   #FF8A3D;
  --brand-dim: rgba(242,107,31,.12);
  --green:     #27AE60;

  --font-display: 'Clash Display','Satoshi',ui-sans-serif,system-ui,sans-serif;
  --font-body:    'Satoshi',ui-sans-serif,system-ui,-apple-system,sans-serif;

  --radius:    14px;
  --radius-lg: 20px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --container: 1200px;
}

/* ============ LIGHT MODE VARIABLES ============ */
:root[data-theme="light"] {
  --bg:        #FFFFFF;
  --bg-2:      #F3F3F5;
  --surface:   #EBEBED;
  --surface-2: #E0E0E3;
  --border:    #D8D8DC;
  --border-2:  #C4C4CA;
  --text:      #09090B;
  --text-dim:  #52525B;
  --text-dim2: #A1A1AA;
  --brand-dim: rgba(242,107,31,.10);
  --green:     #16A34A;
}

/* ============ LIGHT MODE COMPONENT OVERRIDES ============ */
[data-theme="light"] .hero__grid {
  background-image:
    linear-gradient(to right, rgba(0,0,0,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.06) 1px, transparent 1px);
}
[data-theme="light"] .finalcta__grid {
  background-image:
    linear-gradient(to right, rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.05) 1px, transparent 1px);
}
[data-theme="light"] .nav.is-scrolled {
  background: rgba(255,255,255,.9);
  border-bottom-color: var(--border);
}
[data-theme="light"] .nav__links {
  background: rgba(255,255,255,.98);
  border-bottom-color: var(--border);
}
[data-theme="light"] .hero__badge {
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
[data-theme="light"] .hero__screen {
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.06);
}
[data-theme="light"] .hero__glow {
  background: radial-gradient(ellipse 50% 50% at 40% 10%, rgba(242,107,31,.12), transparent 65%);
}
[data-theme="light"] .modal__backdrop {
  background: rgba(0,0,0,.5);
}
[data-theme="light"] .eyebrow { background: rgba(0,0,0,.04); }

/* ============ THEME TOGGLE BUTTON ============ */
.nav__theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.nav__theme-toggle:hover { color: var(--brand); border-color: rgba(242,107,31,.35); background: var(--brand-dim); }

.theme-icon { display: none; }
[data-theme="dark"]  .theme-icon--sun  { display: block; }
[data-theme="light"] .theme-icon--moon { display: block; }

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Smooth theme colour transitions — base layer, overridden by more specific rules */
*, *::before, *::after {
  transition: background-color .3s ease, border-color .3s ease, color .15s ease;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--brand); color: #000; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ============ TYPOGRAPHY ============ */
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem,4.5vw,3.4rem);
  line-height: 1.07;
  letter-spacing: -.02em;
  color: var(--text);
}
.h2 em { color: var(--brand); font-style: normal; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-body); font-weight: 500;
  font-size: .95rem; letter-spacing: -.005em;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn--sm  { padding: 10px 16px; font-size: .88rem; }
.btn--lg  { padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--brand);
  color: #0A0A0A;
  box-shadow: 0 10px 30px -10px var(--brand), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn--primary:hover { background: var(--brand-2); transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--brand); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--text-dim); }

.btn__arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============ NAV ============ */
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s var(--ease);
}
.nav__hamburger:hover { border-color: var(--border-2); }
.nav__hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,10,.85);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: .9rem; color: var(--text-dim);
  transition: color .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 170px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 80%);
  z-index: -1;
}
.hero__glow {
  position: absolute; inset: -20% -20% auto -20%; height: 70%;
  background: radial-gradient(ellipse 50% 50% at 40% 10%, rgba(242,107,31,.18), transparent 65%);
  z-index: -1; filter: blur(12px);
}
.hero__inner {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 48px;
  align-items: center;
}
.hero__content { max-width: 640px; }
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem,4vw,3.8rem);
  line-height: .97; letter-spacing: -.035em;
  margin: 22px 0 20px;
}
.hero__title em { color: var(--brand); font-style: italic; }
.tw-cursor { color: var(--brand); font-style: normal; font-weight: 300; }
.hero__sub {
  font-size: clamp(1rem,1.4vw,1.15rem);
  color: var(--text-dim); max-width: 520px;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 32px 0 52px;
}
.hero__stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.stat { text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem,3vw,2.2rem);
  letter-spacing: -.02em;
}
.stat__lbl { font-size: .8rem; color: var(--text-dim); margin-top: 4px; }

/* ── Hero Visual ── */
.hero__visual { position: relative; }

.hero__screen {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  will-change: transform;
}
.screen__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.screen__dots { display: flex; gap: 6px; }
.screen__dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-2);
}
.screen__dots span:first-child { background: #FF5F57; }
.screen__dots span:nth-child(2) { background: #FFBD2E; }
.screen__dots span:nth-child(3) { background: #27C93F; }
.screen__url { font-size: .75rem; color: var(--text-dim2); font-family: monospace; }

.screen__body { padding: 24px; }
.screen__label { font-size: .75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.screen__metric-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.screen__big {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.8rem; color: var(--brand);
  letter-spacing: -.04em; line-height: 1;
}
.screen__counter { display: inline; }
.screen__badge {
  font-size: .72rem; padding: 4px 10px;
  border-radius: 999px; font-weight: 500;
}
.screen__badge--up { background: rgba(39,174,96,.15); color: #27AE60; border: 1px solid rgba(39,174,96,.25); }

.screen__chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 80px; margin-bottom: 16px;
}
.bar {
  flex: 1; height: var(--h);
  background: var(--surface-2);
  border-radius: 4px 4px 0 0;
  border: 1px solid var(--border);
  transform: scaleY(0);
  transform-origin: bottom;
  will-change: transform;
}
.bar--active { background: var(--brand-dim); border-color: var(--brand); }

.screen__row { display: flex; gap: 8px; flex-wrap: wrap; }
.screen__pill {
  font-size: .72rem; padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 999px; color: var(--text-dim);
}
.screen__pill--green { color: var(--green); border-color: rgba(39,174,96,.25); background: rgba(39,174,96,.08); }

/* ── Floating badges ── */
.hero__badge {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(20,20,20,.9);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  white-space: nowrap;
}
.hero__badge--1 { bottom: 28px; left: -32px; will-change: transform; }
.hero__badge--2 { top: 20px;   right: -24px; will-change: transform; }
.hero__badge--3 { top: 50%;    left: -40px;  transform: translateY(-50%); will-change: transform; }

.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
  box-shadow: 0 0 8px var(--brand);
}
.badge__dot--green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.badge__num { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--text); }
.badge__lbl { font-size: .72rem; color: var(--text-dim); }

/* ============ MARQUEE ============ */
.marquee {
  margin-top: 80px; overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; gap: 48px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.15rem; color: var(--text-dim); letter-spacing: -.01em;
  will-change: transform;
}
.marquee__track span:nth-child(odd)  { color: var(--text); }
.marquee__track span:nth-child(even) { color: var(--brand); opacity: .5; font-weight: 400; }

/* ============ SECTIONS ============ */
.section { padding: 120px 0; position: relative; }
.section--dark { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section__head .eyebrow { margin-bottom: 22px; }
.section__head .h2 { margin-bottom: 16px; }
.section__sub { color: var(--text-dim); font-size: 1.05rem; }

/* ============ SERVICES ============ */
.services-pin { position: relative; height: 500vh; }
.services-pin__sticky {
  position: sticky; top: 0;
  height: 100vh; padding: 0 !important;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.services-pin__sticky .section__head { margin-bottom: 28px; }

.services-stack {
  position: relative;
  width: 100%; max-width: 100%;
  margin: 0 auto;
  height: calc(100vh - 300px);
  min-height: 300px;
  max-height: 520px;
}
.services-stack .service {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  grid-column: unset;
  transform-origin: top left;
  will-change: transform, opacity;
  transition: none;
}
.services-stack .service--featured { grid-column: unset; }

/* Grid state — after solitaire deal */
.services-stack.is-spread {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  height: auto;
  max-height: none;
  min-height: 0;
}
.services-stack.is-spread .service {
  position: relative; inset: auto;
  width: auto; height: auto;
}
.services-stack.is-spread .service--featured { grid-column: span 2; }
.services-pin__sticky.is-spread {
  overflow: visible;
  height: auto;
  padding: 80px 0 !important;
}

.services-ctr {
  display: flex; align-items: center; gap: 14px;
  max-width: 100%; margin: 20px auto 0;
}
.services-ctr__num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--brand); min-width: 24px; }
.services-ctr__total { font-size: .82rem; color: var(--text-dim2); }
.services-ctr__bar { flex: 1; height: 2px; background: var(--border-2); border-radius: 2px; overflow: hidden; }
.services-ctr__fill { height: 100%; background: var(--brand); width: 20%; transform-origin: left; transition: width .4s ease; }
.services-ctr__label { font-size: .88rem; color: var(--text-dim); margin-left: 4px; }

.services { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.service {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle 220px at var(--x,50%) var(--y,0%), rgba(242,107,31,.14), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.service:hover { border-color: rgba(242,107,31,.3); transform: translateY(-5px); }
.service:hover::before { opacity: 1; }

.service__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-dim); border: 1px solid rgba(242,107,31,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; color: var(--brand);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.service__icon svg { width: 22px; height: 22px; }
.service:hover .service__icon { background: rgba(242,107,31,.2); transform: scale(1.05); }

.service__num {
  font-family: var(--font-display); font-weight: 500;
  color: var(--brand); font-size: .82rem;
  letter-spacing: .05em; margin-bottom: 16px;
}
.service h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.3rem; letter-spacing: -.015em; margin-bottom: 10px;
}
.service p { color: var(--text-dim); font-size: .92rem; line-height: 1.65; }

.service--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(242,107,31,.05) 100%);
  border-color: rgba(242,107,31,.2);
}
.service__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.service__tags span {
  font-size: .73rem; padding: 4px 10px;
  border: 1px solid var(--border-2); border-radius: 999px; color: var(--text-dim);
}

/* ============ WHY US ============ */
.why {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.why__lottie {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 280px;
  opacity: .9;
}
.why__right { display: flex; flex-direction: column; gap: 0; }
.why__feat {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease);
}
.why__feat:first-child { border-top: 1px solid var(--border); }
.why__feat-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--brand-dim); border: 1px solid rgba(242,107,31,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.why__feat-icon svg { width: 18px; height: 18px; }
.why__feat h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 4px;
}
.why__feat p { font-size: .9rem; color: var(--text-dim); line-height: 1.6; }

/* ============ TECHNOLOGIES ============ */
.tech-tabs__nav {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px; justify-content: center;
}
.tech-tab {
  padding: 10px 20px; font-size: .88rem; font-weight: 500;
  border: 1px solid var(--border-2); border-radius: 999px;
  color: var(--text-dim); cursor: pointer;
  transition: all .3s var(--ease);
  background: transparent;
}
.tech-tab:hover { color: var(--text); border-color: var(--text-dim); }
.tech-tab.is-active {
  background: var(--brand); color: #0A0A0A;
  border-color: var(--brand);
  box-shadow: 0 6px 20px -6px var(--brand);
}
.tech-panels { position: relative; }
.tech-panel {
  display: none;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.tech-panel.is-active { display: grid; }

.tech-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 28px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  cursor: default;
}
.tech-item:hover { border-color: var(--border-2); transform: translateY(-3px); }
.tech-item__icon {
  width: 68px; height: 68px;
  display: flex; align-items: center; justify-content: center;
}
.tech-item__icon img {
  width: 56px; height: 56px; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  transition: transform .3s var(--ease), filter .3s var(--ease);
}
.tech-item:hover .tech-item__icon img { transform: scale(1.1); filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
.tech-item span { font-size: .82rem; color: var(--text-dim); font-weight: 500; }

/* ============ PROBLEM / SOLUTION ============ */
.problem { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.problem__left .h2 { margin: 20px 0 14px; }
.pcard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.pcard__side {
  padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface);
}
.pcard__problem { opacity: .72; }
.pcard__solution {
  background: linear-gradient(135deg, rgba(242,107,31,.08), rgba(242,107,31,.02));
  border-color: rgba(242,107,31,.3);
}
.pcard__side h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 18px;
}
.pcard__solution h4 { color: var(--brand); }
.pcard__side ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pcard__side li { font-size: .92rem; color: var(--text); position: relative; padding-left: 22px; }
.pcard__problem  li::before { content: '×'; position: absolute; left: 0; color: var(--text-dim2); font-size: 1.1rem; line-height: 1.3; }
.pcard__solution li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.pcard__arrow { display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--brand); }

/* ============ RESULTS ============ */
.cases { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.case {
  padding: 36px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
}
.case:hover { border-color: var(--brand); transform: translateY(-5px); }
.case__icon {
  width: 40px; height: 40px; margin-bottom: 16px;
  color: var(--brand);
  background: var(--brand-dim); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.case__icon svg { width: 18px; height: 18px; }
.case__metric {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem,3.5vw,3.4rem);
  color: var(--brand); line-height: 1; letter-spacing: -.03em;
  display: flex; align-items: baseline; margin-bottom: 8px;
}
.case__metric span:last-child { font-size: .65em; margin-left: 2px; }
.case__lbl { color: var(--text); font-size: .95rem; font-weight: 500; margin-bottom: 10px; }
.case__tag { font-size: .78rem; color: var(--text-dim); letter-spacing: .02em; }

/* ============ PROCESS ============ */
.process-pin { position: relative; height: 400vh; }
.process-pin__sticky {
  position: sticky; top: 0;
  height: 100vh; padding: 0 !important;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.process-pin__sticky .section__head { margin-bottom: 40px; }
.process-dots {
  display: flex; justify-content: center; gap: 10px; margin-top: 32px;
}
.process-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-2);
  transition: background .3s ease, transform .3s ease;
}
.process-dot.is-active { background: var(--brand); transform: scale(1.4); }

.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; position: relative; }
.process::before {
  content: '';
  position: absolute; top: 36px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(to right, transparent, var(--border-2) 20%, var(--border-2) 80%, transparent);
  z-index: 0;
}
.step {
  padding: 32px 24px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  will-change: transform, opacity;
  background: var(--surface); position: relative; z-index: 1;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.step:hover { border-color: rgba(242,107,31,.35); transform: translateY(-4px); }
.step__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-dim); border: 1px solid rgba(242,107,31,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); margin-bottom: 16px;
}
.step__icon svg { width: 20px; height: 20px; }
.step__num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 2.6rem; color: rgba(242,107,31,.2);
  letter-spacing: -.03em; line-height: 1; margin-bottom: 12px;
}
.step h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -.01em;
}
.step p { color: var(--text-dim); font-size: .9rem; line-height: 1.65; }

/* ============ TESTIMONIALS ============ */
.tstack { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.tcard {
  padding: 32px 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.tcard:hover { border-color: var(--border-2); transform: translateY(-4px); }
.tcard--accent {
  background: linear-gradient(160deg, rgba(242,107,31,.07), var(--surface) 60%);
  border-color: rgba(242,107,31,.25);
}
.tcard__stars {
  display: inline-flex; align-items: center;
  color: var(--brand); font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brand-dim); border: 1px solid rgba(242,107,31,.2);
}
.tcard blockquote {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.05rem; line-height: 1.5; letter-spacing: -.01em;
  color: var(--text); flex: 1;
}
.tcard figcaption { display: flex; align-items: center; gap: 14px; }
.tcard__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; color: var(--text-dim);
  letter-spacing: .04em;
}
.tcard__avatar--brand { background: var(--brand-dim); border-color: rgba(242,107,31,.3); color: var(--brand); }
.tcard__info { display: flex; flex-direction: column; }
.tcard__info strong { font-weight: 600; font-size: .95rem; }
.tcard__info span { color: var(--text-dim); font-size: .82rem; }

/* ============ CONTACT FORM ============ */
.section--contact { background: var(--bg-2); border-top: 1px solid var(--border); }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact__left .h2 { margin: 20px 0 14px; }

.contact__points {
  list-style: none; margin: 28px 0;
  display: flex; flex-direction: column; gap: 12px;
}
.contact__points li {
  display: flex; align-items: center; gap: 10px;
  font-size: .95rem; color: var(--text);
}
.contact__points li svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }

.contact__meta {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 24px; margin-top: 8px;
  border-top: 1px solid var(--border);
}
.contact__meta a {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-dim); font-size: .92rem;
  transition: color .3s var(--ease);
}
.contact__meta a svg { width: 16px; height: 16px; flex-shrink: 0; }
.contact__meta a:hover { color: var(--brand); }

.form {
  padding: 36px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 16px;
}
.form__row { display: flex; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.form label span {
  font-size: .78rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim);
}
.form input, .form textarea, .form__select {
  width: 100%; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--border-2);
  border-radius: 12px; color: var(--text);
  font-family: var(--font-body); font-size: .95rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.form input:focus, .form textarea:focus, .form__select:focus {
  outline: 0; border-color: var(--brand); background: var(--surface-2);
}
.form textarea { resize: vertical; min-height: 110px; }
.form__select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.form__note {
  font-size: .88rem; padding: 12px 14px;
  border-radius: 10px; text-align: center;
}
.form__note.is-ok  { background: rgba(39,174,96,.12);  color: #27AE60; border: 1px solid rgba(39,174,96,.25); }
.form__note.is-err { background: rgba(231,76,60,.12);  color: #E74C3C; border: 1px solid rgba(231,76,60,.25); }

/* ============ FAQ ============ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.qa {
  padding: 20px 24px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface);
  transition: border-color .3s var(--ease);
}
.qa[open] { border-color: rgba(242,107,31,.35); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1rem; letter-spacing: -.01em;
  cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__plus {
  font-size: 1.4rem; color: var(--brand);
  transition: transform .3s var(--ease); line-height: 1; flex-shrink: 0;
}
.qa[open] .qa__plus { transform: rotate(45deg); }
.qa p { color: var(--text-dim); margin-top: 12px; font-size: .92rem; line-height: 1.65; }

/* ============ FINAL CTA ============ */
.finalcta {
  position: relative; padding: 130px 0;
  overflow: hidden; isolation: isolate;
  text-align: center; border-top: 1px solid var(--border);
}
.finalcta__glow {
  position: absolute; inset: -20% -10%; z-index: -1;
  background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(242,107,31,.28), transparent 60%);
  filter: blur(20px);
}
.finalcta__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
}
.finalcta__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem,5.5vw,4.8rem);
  letter-spacing: -.03em; line-height: 1; margin-bottom: 18px;
}
.finalcta__title em { color: var(--brand); font-style: normal; }
.finalcta__sub { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 36px; }
.finalcta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { background: var(--bg); border-top: 1px solid var(--border); }
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px; padding: 64px 28px 48px;
}
.footer__col h5 {
  font-family: var(--font-display); font-weight: 600;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); margin-bottom: 20px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a { font-size: .88rem; color: var(--text-dim); transition: color .3s var(--ease); }
.footer__col ul a:hover { color: var(--brand); }
.footer__desc { font-size: .88rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 24px; }

.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.footer__socials a:hover { color: var(--brand); border-color: rgba(242,107,31,.3); background: var(--brand-dim); }

.footer__contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__contact-list li { display: flex; align-items: center; gap: 10px; }
.footer__contact-list li svg { color: var(--brand); flex-shrink: 0; }
.footer__contact-list a { font-size: .88rem; color: var(--text-dim); transition: color .3s var(--ease); }
.footer__contact-list a:hover { color: var(--brand); }

.footer__bottom { border-top: 1px solid var(--border); }
.footer__bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 20px 28px;
}
.footer__bottom-inner p { font-size: .82rem; color: var(--text-dim2); }
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { font-size: .82rem; color: var(--text-dim2); transition: color .3s var(--ease); }
.footer__bottom-links a:hover { color: var(--text-dim); }

/* ============ CONTACT CTA CARD ============ */
.contact__cta-card {
  padding: 44px 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.contact__cta-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--brand-dim); border: 1px solid rgba(242,107,31,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); margin-bottom: 24px;
}
.contact__cta-icon svg { width: 28px; height: 28px; }
.contact__cta-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.7rem; letter-spacing: -.02em; margin-bottom: 12px;
}
.contact__cta-desc { color: var(--text-dim); font-size: .95rem; line-height: 1.65; max-width: 340px; }
.contact__cta-trust {
  display: flex; gap: 24px; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border); width: 100%; justify-content: center;
}
.contact__trust-item { font-size: .82rem; color: var(--text-dim); }
.contact__trust-item span { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--brand); }

/* ============ MODAL ============ */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  visibility: hidden; pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 44px 40px 40px;
  width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto;
  scrollbar-width: none;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  will-change: transform, opacity;
}
.modal__panel::-webkit-scrollbar { display: none; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.modal__close:hover { color: var(--text); border-color: var(--text-dim); }
.modal__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem,3vw,2.1rem); letter-spacing: -.025em;
  line-height: 1.1; margin-bottom: 8px;
}
.modal__title em { color: var(--brand); font-style: normal; }
.modal__sub { color: var(--text-dim); font-size: .92rem; margin-bottom: 24px; }
.modal__form { background: none; border: none; padding: 0; border-radius: 0; box-shadow: none; }

/* ============ REVEAL ANIMATIONS ============ */
.reveal { opacity: 0; will-change: transform, opacity; }

.scroll-in { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d,0s); }
.scroll-in.is-in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: span 2; }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__visual { order: -1; max-width: 500px; margin: 0 auto; }
  .hero__badge--1 { left: 0; }
  .hero__badge--3 { left: 0; }
  .hero { padding: 140px 0 60px; }
  .services { grid-template-columns: repeat(2,1fr); }
  .services-pin { height: auto; }
  .services-pin__sticky { position: relative; height: auto; padding: 80px 0 !important; }
  .services-stack { height: auto; display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
  .services-stack .service { position: relative; inset: auto; height: auto; opacity: 1 !important; transform: none !important; }
  .services-stack .service--featured { grid-column: span 2; }
  .services-ctr { display: none; }
  .cases { grid-template-columns: repeat(2,1fr); }
  .process-pin { height: auto; }
  .process-pin__sticky { position: relative; height: auto; padding: 80px 0 !important; }
  .process-dots { display: none; }
  .step { opacity: 1 !important; transform: none !important; }
  .process { grid-template-columns: repeat(2,1fr); }
  .process::before { display: none; }
  .tstack { grid-template-columns: 1fr; }
  .problem, .contact, .faq { grid-template-columns: 1fr; gap: 40px; }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .why__lottie { max-height: 200px; }
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10,10,10,.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 28px; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .tech-panel { grid-template-columns: repeat(3,1fr); }
  .section { padding: 80px 0; }
  .marquee { margin-top: 50px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: span 2; }
  .contact__cta-card { padding: 32px 24px; }
  .modal__panel { padding: 36px 24px 28px; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .services-stack { grid-template-columns: 1fr; }
  .services-stack .service--featured { grid-column: span 1; }
  .service--featured { grid-column: span 1; }
  .cases { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .pcard { grid-template-columns: 1fr; }
  .pcard__arrow { transform: rotate(90deg); }
  .form__row--2 { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .hero__stats { padding: 20px 0; }
  .stat__num { font-size: 1.4rem; }
  .hero__cta .btn { width: 100%; }
  .hero__badge { display: none; }
  .screen__big { font-size: 2rem; }
  .tech-panel { grid-template-columns: repeat(2,1fr); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__col--brand { grid-column: span 1; }
  .finalcta__actions { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
}
