/* ============================================================
   A.I Infinity — Smarter Way to Work
   Design tokens, layout and components. Plain CSS, no build step.
   ============================================================ */

:root {
  /* Brand palette (from the A.I Infinity deck + logo) */
  --navy: #0b1531;
  --navy-2: #111d45;
  --navy-3: #182a5e;
  --ink: #0b1531;
  --slate: #44506b;
  --muted: #6b7690;
  --muted-2: #8a94a8;
  --blue: #1e5fd9;
  --blue-deep: #1749b3;
  --cyan: #56c7f5;
  --violet: #7b3fe4;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #edf3fe;
  --line: #e1e7f2;
  --line-strong: #c9d3e6;
  --line-dark: rgba(255, 255, 255, 0.12);
  --text-on-dark: #e6ebf7;
  --muted-on-dark: #a9b4c9;

  --grad-brand: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 50%, var(--violet) 100%);
  --grad-text: linear-gradient(90deg, #56c7f5 0%, #4f8bff 45%, #a06bff 100%);
  --shadow-sm: 0 1px 2px rgba(11, 21, 49, 0.06), 0 1px 3px rgba(11, 21, 49, 0.04);
  --shadow-md: 0 10px 30px rgba(11, 21, 49, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 21, 49, 0.14);
  --shadow-glow: 0 10px 30px rgba(30, 95, 217, 0.35);

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy); color: var(--text-on-dark); }
.section.dark h2, .section.dark h3 { color: #fff; }

/* ---------- Typography helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue); font-weight: 500; margin-bottom: 18px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.dark .kicker { color: var(--cyan); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
h2.title { font-size: clamp(32px, 4.2vw, 52px); }
h2.title + .lead { margin-top: 20px; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--slate); line-height: 1.65; }
.dark .lead { color: var(--muted-on-dark); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { color: #fff; background: var(--blue); box-shadow: var(--shadow-glow); position: relative; overflow: hidden; }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: var(--grad-brand); opacity: 0; transition: opacity 0.25s; }
.btn-primary > * { position: relative; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.dark .btn-ghost, .hero .btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); color: #fff; }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, height 0.3s ease;
  color: #fff;
}
.site-header.is-scrolled {
  height: 64px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  color: var(--ink);
}
.header-inner { display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; height: 100%; }
.brand img { height: 44px; width: auto; transition: height 0.3s ease; }
.brand .logo-light { display: block; }
.brand .logo-dark { display: none; }
.is-scrolled .brand .logo-light { display: none; }
.is-scrolled .brand .logo-dark { display: block; }
.is-scrolled .brand img { height: 38px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 500; opacity: 0.85;
  transition: opacity 0.2s, background-color 0.2s;
}
.site-nav a:hover, .site-nav a.is-active { opacity: 1; background: rgba(255,255,255,0.1); }
.is-scrolled .site-nav a:hover, .is-scrolled .site-nav a.is-active { background: var(--bg-tint); color: var(--blue); }
.header-cta { margin-left: 8px; }
.site-nav .nav-cta { display: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  align-items: center; justify-content: center; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  position: absolute; left: 11px;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(64px, 8vw, 112px);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg .glow {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-bg .g1 { width: 640px; height: 640px; right: -140px; top: -180px; background: radial-gradient(circle, #1e5fd9 0%, transparent 65%); }
.hero-bg .g2 { width: 520px; height: 520px; right: 20%; bottom: -260px; background: radial-gradient(circle, #7b3fe4 0%, transparent 65%); animation-delay: -6s; }
.hero-bg .g3 { width: 480px; height: 480px; left: -200px; top: 30%; background: radial-gradient(circle, #56c7f5 0%, transparent 65%); opacity: 0.35; animation-delay: -11s; }
.hero-bg .grid {
  position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.08); }
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero-copy .kicker { color: var(--cyan); }
.hero h1 {
  font-size: clamp(44px, 6.6vw, 84px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800;
  text-transform: uppercase;
}
.hero h1 .grad-text { display: inline-block; padding-right: 0.05em; }
.hero .lead { margin-top: 26px; max-width: 560px; color: var(--muted-on-dark); font-size: clamp(17px, 1.5vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-dark); }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* Hero visual: animated infinity loop with the four pillars */
.hero-visual { position: relative; aspect-ratio: 1 / 0.86; max-width: 560px; margin-inline: auto; width: 100%; }
.hero-visual .loop { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual .loop .track { fill: none; stroke: rgba(255,255,255,0.09); stroke-width: 14; stroke-linecap: round; }
.hero-visual .loop .flow {
  fill: none; stroke: url(#hero-grad); stroke-width: 14; stroke-linecap: round;
  stroke-dasharray: 340 1200; animation: flow 7s linear infinite;
  filter: drop-shadow(0 0 18px rgba(86, 199, 245, 0.45));
}
.hero-visual .loop .flow.second { stroke-dasharray: 180 1200; animation-delay: -3.5s; opacity: 0.7; }
@keyframes flow { to { stroke-dashoffset: -1540; } }
.hero-visual .loop .dot { display: none; }
.pillar {
  position: absolute; display: flex; flex-direction: column; gap: 3px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(14, 26, 62, 0.72); border: 1px solid rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  animation: float 6s ease-in-out infinite;
}
.pillar b { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.02em; }
.pillar small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.pillar.p1 { left: 2%; top: 6%; }
.pillar.p2 { right: 0; top: 14%; animation-delay: -1.5s; }
.pillar.p3 { left: 0; bottom: 12%; animation-delay: -3s; }
.pillar.p4 { right: 4%; bottom: 4%; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted-on-dark);
}
.hero-center strong { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; color: #fff; margin-bottom: 4px; text-transform: none; }

/* Brand message ticker */
.ticker { background: var(--navy-2); border-block: 1px solid var(--line-dark); color: #fff; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; align-items: center; gap: 0; padding-block: 16px; }
.ticker li { display: flex; align-items: center; gap: 28px; padding-inline: 14px 28px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; color: var(--muted-on-dark); }
.ticker li::after { content: "∞"; font-family: var(--font-display); font-size: 18px; color: var(--cyan); letter-spacing: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Purpose ---------- */
.purpose-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.purpose-copy .lead + .lead { margin-top: 18px; }
.purpose-copy .btn { margin-top: 32px; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.outcome {
  padding: 26px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.outcome:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.outcome .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--blue); margin-bottom: 18px; }
.outcome .icon svg { width: 22px; height: 22px; }
.outcome h3 { font-size: 18px; margin-bottom: 8px; }
.outcome p { font-size: 15px; color: var(--slate); line-height: 1.55; }

/* ---------- Solutions ---------- */
.solutions-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.solution {
  grid-column: span 2;
  position: relative; padding: 30px 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex; flex-direction: column; gap: 14px; min-height: 260px;
}
.solution:nth-child(4), .solution:nth-child(5) { grid-column: span 3; }
.solution::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.solution:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.solution:hover::after { transform: scaleX(1); }
.solution .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted-2); }
.solution .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; }
.solution .icon svg { width: 26px; height: 26px; }
.solution h3 { font-size: 21px; }
.solution p { color: var(--slate); font-size: 15.5px; line-height: 1.6; }
.solution .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.solution .tags span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; padding: 5px 10px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--slate); }

/* ---------- Compare: Traditional vs Smarter ---------- */
.compare { position: relative; }
.compare-switch {
  display: inline-flex; padding: 4px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-dark); margin-bottom: 40px;
}
.compare-switch button {
  padding: 10px 20px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; color: var(--muted-on-dark);
  transition: background-color 0.25s, color 0.25s;
}
.compare-switch button.is-on { background: #fff; color: var(--navy); }
.compare-table { display: grid; gap: 12px; }
.compare-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: stretch; gap: 0;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.25s, background-color 0.25s;
}
.compare-row:hover { border-color: rgba(86,199,245,0.4); background: rgba(255,255,255,0.05); }
.compare-cell { padding: 22px 26px; display: flex; align-items: center; gap: 14px; }
.compare-cell .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.compare-cell.old { color: var(--muted-on-dark); }
.compare-cell.old .lbl { color: var(--muted-2); }
.compare-cell.new { color: #fff; background: linear-gradient(90deg, rgba(30,95,217,0.22), rgba(123,63,228,0.14)); }
.compare-cell.new .lbl { color: var(--cyan); }
.compare-cell p { font-size: 16px; line-height: 1.5; }
.compare-arrow { display: grid; place-items: center; color: var(--cyan); background: rgba(255,255,255,0.03); border-inline: 1px solid var(--line-dark); }
.compare-arrow svg { width: 20px; height: 20px; }
/* When a mode is chosen, emphasise the matching column */
.compare[data-mode="old"] .compare-cell.new { opacity: 0.45; }
.compare[data-mode="new"] .compare-cell.old { opacity: 0.45; }
.compare-cell { transition: opacity 0.3s; }
.compare-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.compare-foot p { color: var(--muted-on-dark); max-width: 640px; }

/* ---------- Journey ---------- */
.journey { --journey-index: 0; }
.journey-tabs {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative;
  border-bottom: 1px solid var(--line); margin-bottom: 36px;
}
.journey-tabs::after {
  content: ""; position: absolute; bottom: -1px; height: 3px; left: 0; width: calc(100% / 7);
  background: var(--grad-brand); border-radius: 2px;
  transform: translateX(calc(var(--journey-index) * 100%)); transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.journey-tabs button {
  padding: 18px 8px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); transition: color 0.2s;
}
.journey-tabs button .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; }
.journey-tabs button .t { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.journey-tabs button:hover, .journey-tabs button[aria-selected="true"] { color: var(--ink); }
.journey-panel {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.journey-panel[hidden] { display: none; }
.journey-panel .stage { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.journey-panel h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 14px; }
.journey-panel p { color: var(--slate); }
.journey-panel .does { margin-top: 22px; display: grid; gap: 10px; }
.journey-panel .does li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.journey-panel .does li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--bg-tint); border: 1px solid #c8daf8;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e5fd9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>");
  background-size: 11px; background-position: center; background-repeat: no-repeat; }
.journey-side { border-radius: var(--radius); background: var(--navy); color: #fff; padding: 28px; position: relative; overflow: hidden; }
.journey-side::before { content: ""; position: absolute; width: 260px; height: 260px; right: -100px; top: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(30,95,217,0.55), transparent 65%); }
.journey-side .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; position: relative; }
.journey-side .quote { font-family: var(--font-display); font-size: 20px; line-height: 1.4; font-weight: 600; position: relative; color: #fff; }
.journey-side .outputs { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.journey-side .outputs span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,0.08); border: 1px solid var(--line-dark); }
.journey-note { margin-top: 28px; text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Philosophy (statement) ---------- */
.philosophy { position: relative; overflow: hidden; }
.philosophy .bgmark {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: clamp(360px, 46vw, 720px); opacity: 0.08; pointer-events: none;
  filter: saturate(0.6);
}
.philosophy-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 7vw, 96px); align-items: center; position: relative; }
.statement { font-family: var(--font-display); font-size: clamp(36px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; text-transform: uppercase; }
.statement .grad-text { display: block; }
.philosophy .lead { margin-top: 26px; max-width: 520px; }
.principles { display: grid; gap: 14px; }
.principle {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); transition: background-color 0.25s, border-color 0.25s;
}
.principle:hover { background: rgba(255,255,255,0.07); border-color: rgba(86,199,245,0.35); }
.principle .n { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.1em; padding-top: 4px; }
.principle h3 { font-size: 17px; margin-bottom: 6px; }
.principle p { font-size: 14.5px; color: var(--muted-on-dark); line-height: 1.55; }

/* ---------- Industries ---------- */
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry {
  padding: 28px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.industry:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.industry .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; }
.industry .icon svg { width: 24px; height: 24px; }
.industry h3 { font-size: 19px; }
.industry p { font-size: 15px; color: var(--slate); line-height: 1.55; }
.industry.more { background: var(--navy); color: #fff; border-color: transparent; justify-content: center; }
.industry.more .icon { background: rgba(255,255,255,0.08); color: var(--cyan); }
.industry.more p { color: var(--muted-on-dark); }
.industry.more .link-arrow { color: var(--cyan); margin-top: 6px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.why-sticky { position: sticky; top: 100px; }
.why-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s;
}
.why-item:hover { padding-left: 8px; }
.why-item .n { font-family: var(--font-mono); font-size: 13px; color: var(--blue); letter-spacing: 0.12em; padding-top: 6px; }
.why-item h3 { font-size: 22px; margin-bottom: 8px; }
.why-item p { color: var(--slate); }
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.stat { padding: 18px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Insights ---------- */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.insight {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.insight:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.insight .cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--navy); }
.insight .cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(86,199,245,0.5), transparent 45%), radial-gradient(circle at 85% 80%, rgba(123,63,228,0.55), transparent 50%); }
.insight .cover.c2::before { background: radial-gradient(circle at 80% 20%, rgba(30,95,217,0.7), transparent 50%), radial-gradient(circle at 10% 90%, rgba(86,199,245,0.4), transparent 45%); }
.insight .cover.c3::before { background: radial-gradient(circle at 50% 100%, rgba(123,63,228,0.6), transparent 55%), radial-gradient(circle at 90% 10%, rgba(86,199,245,0.45), transparent 45%); }
.insight .cover span { position: absolute; left: 20px; bottom: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; padding: 6px 10px; border-radius: 6px; background: rgba(11,21,49,0.5); border: 1px solid var(--line-dark); }
.insight .cover svg { position: absolute; right: -10px; top: -10px; width: 55%; opacity: 0.35; }
.insight .body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.insight h3 { font-size: 19px; line-height: 1.3; }
.insight p { font-size: 15px; color: var(--slate); line-height: 1.55; }
.insight .link-arrow { margin-top: auto; padding-top: 10px; font-size: 14.5px; }

/* ---------- Contact / closing ---------- */
.contact { position: relative; overflow: hidden; }
.contact .ring {
  position: absolute; left: -12%; bottom: -60%; width: 70vw; height: 70vw; border-radius: 50%;
  border: 1px solid rgba(86,199,245,0.25); box-shadow: inset 0 0 120px rgba(30,95,217,0.25); pointer-events: none;
}
.contact .ring.r2 { left: -6%; bottom: -66%; width: 60vw; height: 60vw; border-color: rgba(123,63,228,0.25); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; position: relative; }
.contact .statement { font-size: clamp(38px, 5.6vw, 74px); }
.contact .lead { margin-top: 22px; max-width: 520px; }
.contact-meta { margin-top: 36px; display: grid; gap: 14px; }
.contact-meta li { display: flex; align-items: center; gap: 14px; color: var(--text-on-dark); }
.contact-meta .icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--cyan); flex: none; }
.contact-meta .icon svg { width: 18px; height: 18px; }
.contact-meta a:hover { color: var(--cyan); }
.contact-meta small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }
.form-card {
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card > p { color: var(--muted-on-dark); font-size: 15px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-on-dark); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; font: inherit; font-size: 15px; color: #fff;
  background: rgba(11,21,49,0.55); border: 1px solid rgba(255,255,255,0.16);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select option { color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(86,199,245,0.18); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted-on-dark); }

/* ---------- Footer ---------- */
.site-footer { background: #070e22; color: var(--muted-on-dark); border-top: 1px solid var(--line-dark); padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 170px; }
.footer-brand p { margin-top: 18px; font-size: 14.5px; max-width: 320px; line-height: 1.6; }
.footer-brand .tag { margin-top: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 500; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 14.5px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; }
.footer-bottom .messages { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.2,.65,.2,1), transform 0.7s cubic-bezier(.2,.65,.2,1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.2,.65,.2,1), transform 0.7s cubic-bezier(.2,.65,.2,1); }
.js [data-reveal-group].is-visible > * { opacity: 1; transform: none; }
.js [data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.js [data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.js [data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.js [data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.js [data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.js [data-reveal-group].is-visible > *:nth-child(7) { transition-delay: 0.48s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .solution, .solution:nth-child(4), .solution:nth-child(5) { grid-column: span 1; }
  .solution:nth-child(5) { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-open .site-nav {
    display: block; position: fixed; inset: var(--header-h) 0 auto 0; background: var(--navy); color: #fff;
    padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line-dark); box-shadow: var(--shadow-lg);
  }
  .nav-open .site-header { background: var(--navy); color: #fff; }
  .nav-open .site-header .logo-dark { display: none; }
  .nav-open .site-header .logo-light { display: block; }
  .nav-open .site-nav ul { flex-direction: column; gap: 4px; }
  .nav-open .site-nav a { padding: 14px 12px; font-size: 17px; border-radius: 10px; }
  .nav-open .site-nav a:hover, .nav-open .site-nav a.is-active { background: rgba(255,255,255,0.08); color: #fff; }
  .nav-open .site-nav .nav-cta { display: block; margin-top: 14px; }
  .nav-open .site-nav .nav-cta .btn { width: 100%; }

  .hero-grid, .purpose-grid, .philosophy-grid, .why-grid, .contact-grid, .journey-panel { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-top: 12px; }
  .why-sticky { position: static; }
  .industries-grid, .insights-grid { grid-template-columns: 1fr 1fr; }
  .journey-tabs { grid-template-columns: repeat(7, minmax(84px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .journey-tabs::-webkit-scrollbar { display: none; }
  .journey-tabs::after { width: calc(100% / 7); }
  .philosophy .bgmark { opacity: 0.05; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-actions .btn { width: 100%; }
  .hero-visual { aspect-ratio: 1 / 1; }
  .pillar { padding: 9px 11px; }
  .pillar b { font-size: 12px; }
  .pillar small { font-size: 9px; }
  .hero-center strong { font-size: 18px; }
  .outcomes, .industries-grid, .insights-grid, .stat-band, .form-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution:nth-child(5) { grid-column: span 1; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-arrow { border-inline: 0; border-block: 1px solid var(--line-dark); padding: 6px; }
  .compare-arrow svg { transform: rotate(90deg); }
  .journey-tabs { grid-template-columns: repeat(7, 120px); }
  .journey-tabs::after { width: 120px; }
  .journey-tabs button .t { font-size: 12px; }
  .why-item { grid-template-columns: 44px 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ticker li { font-size: 12px; }
}
