/* Medhyx Solutions — design system v3: dark/light rhythm, brand gradient, geometric sans */

:root {
  --night: #05070f;
  --night-2: #0a0f1f;
  --night-line: rgba(255, 255, 255, 0.09);
  --on-night: #e8ecf5;
  --on-night-muted: #98a2b8;

  --day: #f4f7fb;
  --paper: #ffffff;
  --ink: #0b1224;
  --text: #475066;
  --muted: #6b7489;
  --line: #e3e8f0;
  --line-strong: #cfd7e3;

  --cyan: #1aa3dc;
  --blue: #2b5fd9;
  --blue-deep: #2343b8;
  --indigo: #4b45d6;
  --coral: #e0614b;
  --grad: linear-gradient(135deg, #1aa3dc 0%, #2b5fd9 55%, #2343b8 100%);
  --grad-soft: linear-gradient(135deg, #e6f4fb 0%, #e9eefc 100%);
  --grad-text-dark: linear-gradient(180deg, #ffffff 10%, #9aa4ba 100%);
  --grad-text-brand: linear-gradient(120deg, #6fd0f7 0%, #8fb0ff 100%);

  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 18, 36, .04), 0 12px 32px rgba(11, 18, 36, .07);
  --glow: 0 10px 34px rgba(43, 95, 217, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
p { margin: 0 0 1em; }

h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.7rem, 5.8vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.4rem; letter-spacing: -0.015em; }
h4 { font-size: 1.15rem; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -0.005em;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 40px rgba(43, 95, 217, .55), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-glass {
  background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 10px 30px rgba(43, 95, 217, .25), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); transform: translateY(-1px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { color: #fff; border-color: #fff; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.text-link::after { content: '→'; transition: transform .2s ease; }
.text-link:hover { color: var(--blue); }
.text-link:hover::after { transform: translateX(3px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--on-night);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; margin-bottom: 26px;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* ---------- Header (dark) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 7, 15, .96); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--night-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: 15px; font-weight: 500; color: #b9c1d3; padding: 6px 0; position: relative; }
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; }
.main-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn-primary { box-shadow: 0 8px 26px rgba(43, 95, 217, .45); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--night-line); border-radius: 12px; background: rgba(255,255,255,.04);
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { display: none; border-top: 1px solid var(--night-line); background: var(--night); padding: 8px 24px 24px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 15px 0; border-bottom: 1px solid var(--night-line); font-size: 1.15rem; font-weight: 500; color: var(--on-night); }
.mobile-menu a.active { color: #7fcdf2; }
.mobile-menu .btn { margin-top: 20px; width: 100%; border-bottom: 0; color: #fff; }

/* ---------- Dark surfaces ---------- */
.dark, .hero, .page-hero, .cta-band { background: var(--night); color: var(--on-night-muted); position: relative; isolation: isolate; overflow: hidden; }
.dark::before, .hero::before, .page-hero::before, .cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 50% -10%, rgba(75, 69, 214, .35), transparent 70%),
    radial-gradient(520px 360px at 92% 30%, rgba(26, 163, 220, .18), transparent 70%),
    radial-gradient(480px 340px at 6% 85%, rgba(43, 95, 217, .18), transparent 70%);
}
.dark h1, .dark h2, .dark h3, .dark h4, .hero h1, .page-hero h1, .cta-band h2 { color: #fff; }
.dark h2 .soft, .hero h1 .soft, .page-hero h1 .soft, .cta-band h2 .soft {
  background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dark h1 em, .dark h2 em, .hero h1 em, .page-hero h1 em, .cta-band h2 em { background: var(--grad-text-brand); -webkit-background-clip: text; background-clip: text; }
.dark .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: #7fcdf2; }
.dark .lead, .hero .lead, .page-hero .lead { color: var(--on-night-muted); }
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--night-line); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-sand, .section-day { background: var(--day); }
.section-tight { padding: 80px 0 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); margin: 0; }
.dark .section-head p { color: var(--on-night-muted); }
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--text); }

/* ---------- Home hero ---------- */
.hero { padding: 104px 0 0; text-align: center; }
.hero h1 { max-width: 960px; margin: 0 auto 26px; }
.hero h1 .line { display: block; }
.hero .lead { max-width: 680px; margin: 0 auto 36px; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 28px; }
.hero-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; margin: 0 0 64px; padding: 0; font-size: 14px; color: var(--on-night-muted); }
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes svg { width: 16px; height: 16px; color: var(--cyan); }
.hero-visual { position: relative; max-width: 1040px; margin: 0 auto; }
.hero-visual::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 8%; bottom: -10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(75, 69, 214, .55), rgba(43, 95, 217, .25) 55%, transparent 80%); filter: blur(30px);
}
.hero-visual img {
  width: 100%; border-radius: 22px 22px 0 0; border: 1px solid var(--night-line); border-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* ---------- Clients marquee ---------- */
.clients { padding: 56px 0; background: #fff; border-bottom: 1px solid var(--line); }
.clients-label { text-align: center; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 28px; }
.client-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.client-track { display: flex; align-items: center; gap: 72px; width: max-content; list-style: none; margin: 0; padding: 8px 0; animation: marquee 32s linear infinite; }
.client-marquee:hover .client-track { animation-play-state: paused; }
.client-track li { flex-shrink: 0; }
.client-track img { height: 34px; width: auto; max-width: 170px; object-fit: contain; }
.client-track img.logo-tall { height: 48px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 36px)); } }

/* ---------- Intro + practice cards (home) ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 56px; }
.intro-grid h2 { margin-bottom: 26px; }
.intro-grid p { color: var(--text); font-size: 1.05rem; margin: 6px 0 0; }
.practice-cards { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.p-card {
  position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 32px; border-radius: 18px; overflow: hidden;
  background: var(--grad); color: #dbe6ff; box-shadow: 0 18px 44px rgba(43, 95, 217, .28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(43, 95, 217, .36); }
.p-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(420px 220px at 100% 0%, rgba(255,255,255,.22), transparent 70%); pointer-events: none; }
.p-card.light { background: var(--grad-soft); color: var(--text); border: 1px solid #d6e3f5; box-shadow: var(--shadow); }
.p-card .kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 12px; }
.p-card.light .kicker { color: var(--blue); }
.p-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.p-card.light h3 { color: var(--ink); }
.p-card p { font-size: 15px; margin-bottom: 18px; }
.p-card .tags { font-size: 13px; opacity: .85; margin-bottom: 22px; color: inherit; }
.p-card .card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: #fff; position: relative; z-index: 1; }
.p-card.light .card-link { color: var(--ink); }
.p-card .card-link::after { content: '→'; transition: transform .2s ease; }
.p-card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Stats (dark band) ---------- */
.stats-band { padding: 88px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 28px 26px; }
.stat-value { font-size: clamp(2.6rem, 4.4vw, 3.6rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1; margin-bottom: 16px;
  background: var(--grad-text-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-weight: 600; color: #fff; font-size: 15px; margin-bottom: 4px; }
.stat-sub { font-size: 14px; color: var(--on-night-muted); }

/* ---------- Numbered list ---------- */
.numbered-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.numbered-item { display: grid; grid-template-columns: 90px 1fr 1.1fr; gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.numbered-item .num { font-weight: 700; color: var(--coral); padding-top: 6px; }
.numbered-item .kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tags { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.section-foot { margin-top: 40px; }

/* ---------- Why us ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.principles { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; }
.principle { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.principle-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(43,95,217,.3); }
.principle:nth-child(2) .principle-icon { background: linear-gradient(135deg, #4b45d6, #2b5fd9); }
.principle:nth-child(3) .principle-icon { background: linear-gradient(135deg, #e0614b, #c2416f); box-shadow: 0 8px 20px rgba(224,97,75,.3); }
.principle-icon svg { width: 22px; height: 22px; }
.principle h4 { margin: 2px 0 6px; }
.principle p { margin: 0; font-size: 15px; color: var(--muted); }

.panel { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px; box-shadow: var(--shadow); overflow: hidden; }
.panel::before, .tool::before, .form-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--blue) 60%, var(--coral)); }
.panel h3 { margin-bottom: 8px; }
.panel > p { color: var(--muted); font-size: 15px; }
.models { list-style: none; margin: 24px 0 0; padding: 0; }
.model { padding: 20px 0; border-top: 1px solid var(--line); }
.model-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.model-name { font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.model-term { font-size: 12px; font-weight: 700; color: var(--blue); background: #e9effd; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.model p { margin: 0; font-size: 15px; color: var(--muted); }
.certs { margin-top: 36px; }
.certs-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.certs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.certs li { font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }

/* ---------- Testimonials (dark) ---------- */
.quote-section .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.quote-section h2 { margin-bottom: 18px; }
.quote-block { padding: 48px; }
.quote-mark { font-size: 4.5rem; line-height: .6; height: 36px; font-weight: 700; background: var(--grad-text-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.quote-slide { display: none; margin: 0; }
.quote-slide.active { display: block; animation: fadeIn .5s ease; }
.quote-slide blockquote { margin: 0 0 28px; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; color: #fff; font-weight: 400; letter-spacing: -0.01em; }
.quote-author { font-weight: 700; color: #fff; font-size: 15px; }
.quote-org { font-size: 14px; color: var(--on-night-muted); }
.quote-nav { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.quote-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--night-line); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.quote-nav button:hover { border-color: rgba(255,255,255,.35); }
.quote-nav svg { width: 16px; height: 16px; }
.quote-dots { display: flex; gap: 8px; }
.quote-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.25); }
.quote-dots button.active { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Technology honeycomb (dark) ---------- */
.honeycomb { display: flex; flex-direction: column; align-items: center; margin: 8px 0 48px; }
.hex-row { display: flex; gap: 12px; }
.hex-row + .hex-row { margin-top: -26px; }
.hex {
  --w: 116px; width: var(--w); height: calc(var(--w) * 1.1547);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #f4f7fd, #dfe7f5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  transition: transform .25s ease, background .25s ease;
}
.hex img { width: 34px; height: 34px; object-fit: contain; }
.hex span { font-size: 11px; font-weight: 700; color: var(--ink); padding: 0 12px; line-height: 1.2; }
.hex:hover { transform: scale(1.06); background: linear-gradient(160deg, #ffffff, #e8f2ff); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item.open { border-color: #c9d8f5; box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 26px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--sans); font-size: 1.08rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.faq-q .faq-icon { position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--day); }
.faq-q .faq-icon::before, .faq-q .faq-icon::after { content: ''; position: absolute; left: 8px; top: 13.25px; width: 12px; height: 1.5px; background: var(--ink); transition: transform .25s ease; }
.faq-q .faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon { background: var(--grad); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: #fff; }
.faq-item.open .faq-icon::after { transform: rotate(0); }
.faq-a { display: none; padding: 0 74px 24px 26px; color: var(--text); font-size: 16px; }
.faq-item.open .faq-a { display: block; }
.faq-a p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: 112px 0; text-align: center; }
.cta-band .wrap { display: block; max-width: 860px; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { font-size: 1.12rem; margin: 0 auto 34px; max-width: 640px; color: var(--on-night-muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 104px 0 96px; text-align: center; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); max-width: 900px; margin: 0 auto 22px; }
.page-hero .lead { max-width: 720px; margin: 0 auto; }
.page-hero .eyebrow { justify-content: center; }

/* ---------- Footer (white card on night) ---------- */
.site-footer { background: var(--night); padding: 36px 0 32px; font-size: 15px; }
.site-footer > .wrap { background: #fff; border-radius: 22px; padding: 56px 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 320px; margin-bottom: 14px; }
.footer-brand a { color: var(--ink); font-weight: 600; }
.footer-col h5 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.footer-legal button:hover { color: var(--ink); }

/* ---------- Legal modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 9990; background: rgba(5, 7, 15, .7); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 18px; max-width: 680px; width: 100%; max-height: 86vh; overflow: auto; padding: 40px 44px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.modal h3 { margin-bottom: 20px; padding-right: 40px; }
.modal h4 { font-size: 1.05rem; margin: 24px 0 8px; }
.modal p { font-size: 15px; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink); }

/* ======================================================================
   Inner-page components
   ====================================================================== */
.jump-nav { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 74px; z-index: 50; }
.jump-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.jump-nav ul::-webkit-scrollbar { display: none; }
.jump-nav a { display: block; padding: 18px 0; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.jump-nav a:hover, .jump-nav a.active { color: var(--ink); border-bottom-color: var(--blue); }

.practice { padding: 96px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.practice:nth-of-type(even) { background: var(--day); }
.practice-head { display: grid; grid-template-columns: 90px 1fr; gap: 32px; margin-bottom: 48px; }
.practice-head .num { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(43,95,217,.3); }
.practice-head h2 { margin-bottom: 16px; }
.practice-head p { font-size: 1.1rem; color: var(--muted); max-width: 760px; margin: 0; }
.practice-body { display: grid; grid-template-columns: 90px 1.35fr 1fr; gap: 32px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.feature-list strong { display: block; font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 2px; }
.feature-list span { font-size: 15px; color: var(--muted); }
.stack-line { margin-top: 22px; font-size: 14px; color: var(--muted); }
.stack-line b { color: var(--ink); font-weight: 700; margin-right: 6px; }
.aside-box { position: relative; background: var(--grad); color: #dbe6ff; border-radius: 18px; padding: 32px; align-self: start; overflow: hidden; box-shadow: 0 18px 44px rgba(43, 95, 217, .25); }
.aside-box::after { content: ''; position: absolute; inset: 0; background: radial-gradient(360px 200px at 100% 0%, rgba(255,255,255,.2), transparent 70%); pointer-events: none; }
.aside-box h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); margin: 0 0 18px; }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.aside-list li { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: baseline; font-size: 15px; }
.aside-list .tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #bfe6fb; }
.aside-list b { display: block; color: #fff; font-weight: 600; }
.aside-list small { color: #c8d6f6; font-size: 14px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; color: var(--ink); position: relative; z-index: 1; }
.check-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.check-list li::before { content: ''; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg) translate(2px, 5px); }
.aside-box .check-list { color: #fff; }
.aside-box .check-list li::before { border-color: #9fe0fb; }
.mini-stats { display: grid; gap: 18px; position: relative; z-index: 1; }
.mini-stats div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; }
.mini-stats div:first-child { border-top: 0; padding-top: 0; }
.mini-stats b { display: block; font-weight: 600; font-size: 2rem; color: #fff; line-height: 1.1; letter-spacing: -0.03em; }
.mini-stats span { font-size: 14px; color: #c8d6f6; }

.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option-btn { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: all .2s ease; }
.option-btn:hover { border-color: var(--blue); color: var(--blue); }
.option-btn.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(43,95,217,.3); }
.options-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.tool { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 48px; box-shadow: var(--shadow); overflow: hidden; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.tool-result { background: var(--night); color: var(--on-night-muted); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.tool-result::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 220px at 90% 0%, rgba(43, 95, 217, .45), transparent 70%); }
.tool-result .options-label { color: #7fcdf2; margin-bottom: 8px; }
.tool-result h3 { color: #fff; font-size: 1.35rem; margin-bottom: 8px; }
.tool-result p { margin: 0; font-size: 15px; }

.figure-card { display: grid; grid-template-columns: 1.2fr 1fr; border-radius: 22px; overflow: hidden; background: var(--night); border: 1px solid var(--night-line); box-shadow: 0 30px 80px rgba(11, 18, 36, .25); }
.figure-card img { width: 100%; height: 100%; object-fit: cover; }
.figure-card .figure-body { padding: 48px; color: var(--on-night-muted); align-self: center; }
.figure-card .eyebrow { color: #7fcdf2; }
.figure-card h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.figure-card p { margin: 0 0 18px; }
.figure-card .tags { color: #8792aa; margin: 0; }

.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.phase { padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.phase .num { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 18px; }
.phase h3 { font-size: 1.2rem; margin-bottom: 10px; }
.phase p { font-size: 15px; color: var(--muted); }
.phase .deliverable { font-size: 14px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; font-weight: 600; }
.phase .deliverable b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 2px; }

.seg-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: #e8edf6; border-radius: 999px; margin-bottom: 32px; }
.seg-tabs button { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text); background: transparent; border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; }
.seg-tabs button:hover { color: var(--ink); }
.seg-tabs button.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(43,95,217,.3); }
.layer-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.layer-detail .tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; display: block; }
.specs { margin: 24px 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); font-weight: 600; }
.code-block { background: var(--night); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--night-line); box-shadow: 0 20px 50px rgba(11, 18, 36, .25); }
.code-block .code-title { padding: 12px 18px; font-size: 13px; color: #8792aa; border-bottom: 1px solid var(--night-line); font-family: var(--mono); }
.code-block pre { margin: 0; padding: 20px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: #dbe4f3; }

.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tech-item { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tech-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9d8f5; }
.tech-item[hidden] { display: none; }
.tech-item img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 18px; }
.tech-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tech-item p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.tech-item .kind { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

.calc { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc-inputs { padding: 44px; display: grid; gap: 32px; }
.calc-output { background: var(--night); color: var(--on-night-muted); padding: 44px; display: flex; flex-direction: column; position: relative; isolation: isolate; overflow: hidden; }
.calc-output::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 260px at 100% 0%, rgba(75, 69, 214, .45), transparent 70%), radial-gradient(320px 220px at 0% 100%, rgba(26, 163, 220, .25), transparent 70%); }
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.range-head .options-label { margin: 0; }
.range-value { font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.calc input[type="range"] { width: 100%; accent-color: var(--blue); }
.range-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.calc-output .options-label { color: #7fcdf2; }
.big-number { font-size: clamp(2.8rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin: 6px 0 10px; background: var(--grad-text-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.calc-output p { font-size: 15px; margin-bottom: 28px; }
.calc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--night-line); padding-top: 22px; margin-bottom: 24px; }
.calc-metrics b { display: block; font-weight: 600; font-size: 1.45rem; color: #fff; }
.calc-metrics span { font-size: 13px; color: var(--on-night-muted); }
.calc-blueprint { font-size: 15px; border-top: 1px solid var(--night-line); padding-top: 18px; margin-bottom: 28px; }
.calc-blueprint b { display: block; color: #fff; font-weight: 600; margin-bottom: 4px; }
.calc-output .btn { margin-top: auto; align-self: flex-start; }
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 16px; }

.cases { display: grid; gap: 24px; }
.case { display: grid; grid-template-columns: .9fr 1.1fr; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.case-media { position: relative; min-height: 280px; background: var(--night); }
.case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 44px; }
.case .kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 12px; }
.case h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin: 0 0 14px; }
.case p { font-size: 1rem; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.case-metrics div { background: var(--day); border-radius: var(--radius-sm); padding: 16px; }
.case-metrics b { display: block; font-weight: 600; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.case-metrics span { font-size: 13px; color: var(--muted); }

.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perks li { padding: 26px; background: var(--day); border-radius: var(--radius); }
.perks b { display: block; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
.perks span { font-size: 15px; color: var(--muted); }

.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 32px; padding: 30px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 100px; transition: box-shadow .2s ease, border-color .2s ease; }
.job:hover { box-shadow: var(--shadow); border-color: #c9d8f5; }
.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.job-meta .flag { color: #fff; background: var(--grad); font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.job h3 { margin-bottom: 10px; }
.job p { margin-bottom: 10px; max-width: 760px; }
.job .tags { margin: 0; }
.job .btn { align-self: center; }

.form-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 44px; box-shadow: var(--shadow); overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .options-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: 0; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink); background: #f8fafd; border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 95, 217, .12); }
.field input::placeholder, .field textarea::placeholder { color: #9aa1af; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230b1224' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-status { display: none; margin-top: 20px; padding: 18px 20px; border-radius: 12px; font-size: 15px; }
.form-status.show { display: block; }
.form-status.success { background: #ecf7f0; color: #1f5132; border: 1px solid #cfe7d6; }
.form-status.error { background: #fbeeee; color: #7a2121; border: 1px solid #f1d2d2; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.contact-list li { padding: 18px 22px; background: var(--day); border-radius: var(--radius); }
.contact-list .label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a, .contact-list .value { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.call-card { position: relative; background: var(--night); color: var(--on-night-muted); border-radius: 18px; padding: 32px; overflow: hidden; isolation: isolate; }
.call-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px 220px at 100% 0%, rgba(75, 69, 214, .5), transparent 70%); }
.call-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 8px; }
.call-card p { font-size: 15px; }
.assurances { margin: 28px 0 0; }

.not-found { padding: 150px 0 160px; text-align: center; }
.not-found .code { font-size: 7rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin-bottom: 16px; background: var(--grad-text-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.not-found h1 { color: #fff; }
.not-found .lead { color: var(--on-night-muted); }
.not-found .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 22px; }
  .split, .intro-grid, .quote-section .wrap { grid-template-columns: 1fr; gap: 48px; }
  .practice-cards { grid-template-columns: 1fr 1fr; }
  .practice-cards .p-card.light { grid-column: 1 / -1; min-height: 0; }
  .practice-body { grid-template-columns: 1fr 1fr; }
  .practice-body > .spacer { display: none; }
  .practice-head { grid-template-columns: 1fr; gap: 16px; }
  .phases { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .calc, .figure-card, .layer-detail, .contact-grid, .case { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr 1fr; }
  .contact-grid > .form-card { order: -1; }
}
@media (max-width: 900px) {
  .main-nav, .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 80px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .numbered-item { grid-template-columns: 1fr; gap: 12px; }
  .practice { padding: 72px 0; }
  .practice-body { grid-template-columns: 1fr; }
  .tool { padding: 32px 24px; }
  .tool-grid { grid-template-columns: 1fr; gap: 28px; }
  .tool-result { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .job { grid-template-columns: 1fr; gap: 16px; }
  .job .btn { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hex { --w: 92px; }
  .hex-row + .hex-row { margin-top: -20px; }
  .hex span { font-size: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding-top: 72px; }
  .hero-actions .btn { width: 100%; }
  .hero-notes { margin-bottom: 44px; }
  .practice-cards { grid-template-columns: 1fr; }
  .p-card { min-height: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 18px 8px; }
  .quote-block { padding: 28px 22px; }
  .phases, .tech-grid, .perks { grid-template-columns: 1fr; }
  .calc-inputs, .calc-output, .figure-card .figure-body, .case-body { padding: 28px 22px; }
  .calc-metrics, .case-metrics { grid-template-columns: 1fr 1fr; }
  .panel, .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .seg-tabs { border-radius: 16px; }
  .faq-q { font-size: 1rem; padding: 18px 20px; }
  .faq-a { padding: 0 20px 20px; }
  .site-footer > .wrap { padding: 36px 22px 22px; border-radius: 18px; margin: 0 12px; width: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { padding: 32px 24px; }
  .hex { --w: 64px; }
  .hex img { width: 24px; height: 24px; }
  .hex span { display: none; }
  .hex-row { gap: 6px; }
  .hex-row + .hex-row { margin-top: -13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .client-marquee { -webkit-mask-image: none; mask-image: none; }
  .client-track { width: auto; flex-wrap: wrap; justify-content: center; gap: 28px 56px; }
  .client-track li[aria-hidden="true"] { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ======================================================================
   AI motion layer
   ====================================================================== */
.neural-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero .neural-bg { -webkit-mask-image: radial-gradient(ellipse 50% 32% at 50% 30%, rgba(0,0,0,.45), #000 80%); mask-image: radial-gradient(ellipse 50% 32% at 50% 30%, rgba(0,0,0,.45), #000 80%); }
.page-hero .neural-bg, .cta-band .neural-bg { opacity: .7; -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(0,0,0,.15), #000 80%); mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(0,0,0,.15), #000 80%); }

/* Typing badge */
.typer { color: #fff; font-weight: 700; }
.typer::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--cyan); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Headline shimmer */
.hero h1 .soft {
  background: linear-gradient(100deg, #9aa4ba 0%, #9aa4ba 35%, #ffffff 50%, #9aa4ba 65%, #9aa4ba 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }

/* AI orb + scanning frame */
.hero-visual::before {
  left: 18%; right: 18%; top: 4%; bottom: 4%; border-radius: 50%;
  background: conic-gradient(from 0deg, #1aa3dc, #4b45d6, #2b5fd9, #e0614b, #1aa3dc);
  filter: blur(70px); opacity: .5; animation: orb-spin 16s linear infinite, orb-breathe 7s ease-in-out infinite;
}
@keyframes orb-spin { to { rotate: 360deg; } }
@keyframes orb-breathe { 0%, 100% { scale: 1; opacity: .45; } 50% { scale: 1.08; opacity: .6; } }
.hero-frame { position: relative; border-radius: 22px 22px 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.hero-frame img { -webkit-mask-image: none; mask-image: none; border-radius: 22px 22px 0 0; }
.hero-frame .scan {
  position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(111, 208, 247, .16) 70%, rgba(111, 208, 247, .5) 98%, transparent);
  animation: scan 6s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes scan { 0% { top: -30%; } 70%, 100% { top: 100%; } }

/* Floating capability chips */
.ai-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(10, 15, 31, .62); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0,0,0,.35);
  animation: float 6s ease-in-out infinite;
}
.ai-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blink 2.4s ease-in-out infinite; }
.ai-chip.c1 { left: -3%; top: 14%; }
.ai-chip.c2 { right: -2%; top: 8%; animation-delay: -1.5s; }
.ai-chip.c3 { left: 4%; top: 52%; animation-delay: -3s; }
.ai-chip.c3 i { background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.ai-chip.c4 { right: 3%; top: 46%; animation-delay: -4.5s; }
.ai-chip.c4 i { background: #8f7bff; box-shadow: 0 0 10px #8f7bff; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Moving data grid in dark bands */
.stats-band::after, .cta-band::after, .quote-section::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 75%);
  animation: grid-move 18s linear infinite;
}
@keyframes grid-move { to { background-position: 52px 52px; } }

/* Practice-card light sweep */
.p-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 46%, transparent 62%);
  translate: -120% 0; transition: translate .9s ease;
}
.p-card:hover::before { translate: 120% 0; }

/* Honeycomb data wave */
.hex { position: relative; }
.hex::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(43, 95, 217, .0), rgba(43, 95, 217, .35));
  opacity: 0; animation: hex-wave 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .32s);
}
@keyframes hex-wave { 0%, 70%, 100% { opacity: 0; } 82% { opacity: 1; } }

/* Scroll reveal (only applied by JS when motion is allowed) */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .8s ease var(--d, 0ms), translate .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; translate: none; }

@media (max-width: 900px) { .ai-chip { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; }
  .hero-frame .scan { display: none; }
}

/* ---------- AI motion layer 2 ---------- */

/* Data-flow diagram */
.stats-band { padding: 104px 0 88px; }
.flow-wrap { margin: 0 auto 64px; max-width: 1100px; overflow-x: auto; scrollbar-width: none; }
.flow-wrap::-webkit-scrollbar { display: none; }
.flow-svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--sans); }
.flow-caption text { fill: #7fcdf2; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.flow-lake { fill: rgba(43, 95, 217, .07); stroke: rgba(111, 176, 255, .35); stroke-width: 1.2; stroke-dasharray: 5 6; animation: lake-dash 18s linear infinite; }
.flow-lake-label { fill: #9fb6e6; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.flow-base { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 2; }
.flow-line { fill: none; stroke: url(#flowGrad); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 12; animation: flow-dash 1.1s linear infinite; opacity: .9; }
.flow-node rect { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.flow-node text { fill: #e8ecf5; font-size: 14px; font-weight: 600; }
.flow-node { animation: node-glow 4s ease-in-out infinite; animation-delay: calc(var(--n, 0) * .35s); }
.flow-node.hot rect { fill: rgba(43, 95, 217, .25); stroke: rgba(111, 208, 247, .6); }
.flow-node.layer rect { fill: rgba(255, 255, 255, .07); }
.flow-particles circle { fill: #8fe3ff; }
@keyframes flow-dash { to { stroke-dashoffset: -18; } }
@keyframes lake-dash { to { stroke-dashoffset: -220; } }
@keyframes node-glow { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 8px rgba(111, 208, 247, .55)); } }

/* Rotating light border on featured cards */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.panel::after, .quote-block::after, .form-card::after, .tool::after, .calc::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--angle), transparent 0 64%, rgba(26, 163, 220, .9) 78%, rgba(143, 123, 255, .9) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: border-orbit 7s linear infinite;
}
.quote-block, .calc { position: relative; }
@keyframes border-orbit { to { --angle: 360deg; } }

/* Cursor spotlight on dark surfaces */
.dark, .hero, .page-hero, .cta-band {
  background: radial-gradient(520px circle at var(--mx, -999px) var(--my, -999px), rgba(64, 120, 255, .13), transparent 62%), var(--night);
}

/* Cinematic hero entrance */
.hero .pill, .hero h1 .line, .hero .lead, .hero-actions, .hero-notes, .hero-visual {
  animation: rise-in 1s cubic-bezier(.2, .7, .2, 1) both;
}
.hero h1 .line:nth-child(1) { animation-delay: .12s; }
.hero h1 .line:nth-child(2) { animation-delay: .28s; }
.hero .lead { animation-delay: .44s; }
.hero-actions { animation-delay: .58s; }
.hero-notes { animation-delay: .7s; }
.hero-visual { animation-delay: .82s; animation-duration: 1.4s; }
.hero h1 .line.soft { animation: rise-in 1s cubic-bezier(.2, .7, .2, 1) .28s both, shimmer 7s ease-in-out 1.4s infinite; }
@keyframes rise-in { from { opacity: 0; translate: 0 28px; filter: blur(8px); } to { opacity: 1; translate: none; filter: none; } }

/* Flowing gradient buttons */
.btn-primary { background-image: linear-gradient(110deg, #1aa3dc 0%, #2b5fd9 35%, #4b45d6 55%, #2b5fd9 75%, #1aa3dc 100%); background-size: 220% 100%; background-position: 0% 0; transition: background-position .8s ease, transform .2s ease, box-shadow .2s ease; }
.btn-primary:hover { background-position: 100% 0; }

/* 3D tilt surfaces */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .25s ease, box-shadow .25s ease; }

@media (prefers-reduced-motion: reduce) {
  .flow-particles { display: none; }
  .hero .pill, .hero h1 .line, .hero .lead, .hero-actions, .hero-notes, .hero-visual { opacity: 1; translate: none; filter: none; }
}

/* ======================================================================
   Sci-fi cinematic layer
   ====================================================================== */

/* Boot sequence (first page of a session) */
html.booting { overflow: hidden; }
html.booting::after { content: ''; position: fixed; inset: 0; background: #05070f; z-index: 99999; }
html.booting .hero * { animation-play-state: paused !important; }
.boot {
  position: fixed; inset: 0; z-index: 100000; background: #05070f; color: #8fd8ff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: transform .45s cubic-bezier(.7, 0, .3, 1), filter .45s ease, opacity .35s ease .4s;
}
.boot::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 360px at 50% 45%, rgba(75, 69, 214, .35), transparent 70%); }
.boot-inner { position: relative; width: min(440px, 86vw); font-family: var(--mono); }
.boot-logo { height: 52px; width: auto; margin: 0 auto 30px; animation: boot-flicker 1.2s steps(2) 1; }
.boot-lines { min-height: 112px; font-size: 13px; line-height: 1.9; letter-spacing: .04em; color: #7fcdf2; }
.boot-line.done::after { content: '  ✓'; color: #6ee7b7; }
.boot-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 18px; overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #1aa3dc, #5b7cff, #9b7bff); transform-origin: left; animation: boot-fill 2s cubic-bezier(.4, 0, .2, 1) forwards; box-shadow: 0 0 12px #5b7cff; }
.boot-skip { margin-top: 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); text-align: right; }
.boot-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); }
.boot.out { transform: scaleY(.004); filter: brightness(3); opacity: 0; }
@keyframes boot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes boot-flicker { 0% { opacity: 0; } 30% { opacity: 1; } 45% { opacity: .2; } 60%, 100% { opacity: 1; } }

/* Tron grid floor in the hero */
.hero-floor {
  position: absolute; left: -30%; right: -30%; bottom: 0; height: 48%; z-index: -1; pointer-events: none; perspective: 520px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 40%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 40%, transparent 85%);
}
.hero-floor::before {
  content: ''; position: absolute; inset: -40% 0 0; transform: rotateX(72deg); transform-origin: center bottom;
  background-image: linear-gradient(rgba(91, 160, 255, .5) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(91, 160, 255, .5) 1.5px, transparent 1.5px);
  background-size: 64px 64px; animation: floor-move 2.6s linear infinite;
}
.hero-floor::after { content: ''; position: absolute; left: 0; right: 0; bottom: 30%; height: 2px; background: linear-gradient(90deg, transparent, rgba(111, 208, 247, .8), transparent); filter: blur(1px); box-shadow: 0 0 24px rgba(111, 208, 247, .8); }
@keyframes floor-move { to { background-position: 0 64px; } }

/* HUD brackets and labels around the hero image */
.hud-corner { position: absolute; width: 34px; height: 34px; z-index: 3; pointer-events: none; border-color: rgba(111, 208, 247, .85); border-style: solid; border-width: 0; filter: drop-shadow(0 0 6px rgba(111, 208, 247, .7)); animation: hud-pulse 3s ease-in-out infinite; }
.hud-corner.tl { left: -14px; top: -14px; border-top-width: 2px; border-left-width: 2px; }
.hud-corner.tr { right: -14px; top: -14px; border-top-width: 2px; border-right-width: 2px; }
.hud-corner.bl { left: -14px; bottom: 18%; border-bottom-width: 2px; border-left-width: 2px; }
.hud-corner.br { right: -14px; bottom: 18%; border-bottom-width: 2px; border-right-width: 2px; }
.hud-label { position: absolute; top: -40px; z-index: 3; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8fd8ff; display: flex; align-items: center; gap: 8px; }
.hud-label.left { left: 0; }
.hud-label.right { right: 0; color: rgba(143, 216, 255, .7); }
.hud-label i { width: 7px; height: 7px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 10px #6ee7b7; animation: blink 1.6s ease-in-out infinite; }
@keyframes hud-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Hologram glitch */
.glitching { animation: glitch .5s steps(2) 1 !important; }
@keyframes glitch {
  0% { text-shadow: -3px 0 rgba(255, 40, 120, .75), 3px 0 rgba(0, 220, 255, .75); translate: 2px 0; clip-path: inset(0 0 55% 0); }
  20% { text-shadow: 3px 0 rgba(255, 40, 120, .75), -3px 0 rgba(0, 220, 255, .75); translate: -3px 0; clip-path: inset(40% 0 0 0); }
  40% { text-shadow: -2px 0 rgba(255, 40, 120, .6), 2px 0 rgba(0, 220, 255, .6); translate: 1px 0; clip-path: inset(20% 0 30% 0); }
  60% { text-shadow: 2px 0 rgba(255, 40, 120, .5), -2px 0 rgba(0, 220, 255, .5); translate: -1px 0; clip-path: none; }
  100% { text-shadow: none; translate: none; clip-path: none; }
}

/* CRT scanlines + film grain on dark headers */
.hero::after, .page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
}
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 9000; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* Lens-flare streak across headings as they reveal */
.section-head h2 { position: relative; }
.section-head.in h2::after {
  content: ''; position: absolute; left: -10%; top: 50%; width: 30%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(143, 216, 255, .95), transparent); box-shadow: 0 0 18px 4px rgba(111, 176, 255, .45);
  opacity: 0; animation: flare 1.4s cubic-bezier(.4, 0, .2, 1) .2s 1;
}
@keyframes flare { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 100% { opacity: 0; translate: 380% 0; } }

/* Holographic globe canvas */
.globe-canvas { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: -1; pointer-events: none; opacity: .35; }
@media (min-width: 1081px) {
  .globe-canvas { left: 88%; opacity: .95; }
  .cta-band .wrap { max-width: 1200px; text-align: left; }
  .cta-band .wrap > * { max-width: 640px; margin-left: 0; }
  .cta-band p { margin-left: 0; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 900px) { .hud-label { display: none; } .hud-corner { width: 22px; height: 22px; } }
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }
