:root {
  --bg: #06080b;
  --bg-2: #0a0e13;
  --surface: #0e131a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eef1f5;
  --muted: #8b95a3;
  --accent: #ff7a45;
  --accent-ink: #1a0a02;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6, 8, 11, 0.72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-word { font-weight: 600; font-size: 22px; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 32px; margin-left: auto; margin-right: 8px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--font); cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.arrow { display: inline-block; transition: transform 0.3s var(--ease); }
@media (hover: hover) {
  .btn-sm:hover { border-color: var(--text); }
  .btn-primary:hover { background: #ff915f; }
  .btn-primary:hover .arrow { transform: translateX(4px); }
  .btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.05); }
}
.btn:active { transform: scale(0.97); }

/* HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.field, .contact-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(6, 8, 11, 0.78) 34%, rgba(6, 8, 11, 0) 72%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 11, 0) 22%);
}
.no-gl .hero { background: radial-gradient(900px 600px at 80% 40%, rgba(255, 122, 69, 0.14), transparent 60%), var(--bg); }
.hero-inner { padding-top: 120px; padding-bottom: 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.18); }
.hero-title { font-size: clamp(48px, 9.2vw, 132px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 600; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--accent); }
.lede { max-width: 540px; margin-top: 32px; font-size: clamp(17px, 1.7vw, 20px); color: #b4bcc8; line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); left: 50%; transform: translateX(-50%); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 48px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* STRIP */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: flex; align-items: center; gap: 32px; padding-block: 22px; flex-wrap: wrap; }
.strip-label { color: var(--muted); }
.strip-list { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.strip-list li { font-size: 15px; color: #c7ced8; font-weight: 500; letter-spacing: -0.01em; }

/* SECTIONS */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.kicker { color: var(--accent); margin-bottom: 20px; }
.section-head h2, .contact h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; max-width: 18ch; }
.sub { margin-top: 20px; color: var(--muted); max-width: 46ch; }

/* CARDS */
.grid { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.card { position: relative; background: var(--bg); padding: 36px 32px 40px; min-height: 280px; display: flex; flex-direction: column; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 122, 69, 0.13), transparent 60%); }
.card:hover::before { opacity: 1; }
.idx { color: var(--muted); align-self: flex-end; }
.ico { width: 44px; height: 44px; margin: -12px 0 36px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico circle, .ico rect, .ico path { stroke-dasharray: 220; stroke-dashoffset: 0; }
.js .card:not(.in) .ico * { stroke-dashoffset: 220; }
.card.in .ico * { transition: stroke-dashoffset 1.4s var(--ease) 0.15s; }
.card h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; margin-top: auto; }
.card p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* APPROACH */
.approach { background: var(--bg-2); border-block: 1px solid var(--line); }
.approach-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.sticky { position: sticky; top: 120px; }
.steps { position: relative; padding-left: 36px; --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--p)); box-shadow: 0 0 12px rgba(255, 122, 69, 0.6); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 0 0 56px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -41px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-strong); transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.step.in::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255, 122, 69, 0.18); }
.step-n { color: var(--muted); padding-top: 4px; }
.step h3 { font-size: 28px; letter-spacing: -0.025em; font-weight: 600; }
.step p { margin-top: 8px; color: var(--muted); max-width: 40ch; }

/* COMPANY */
.company { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.facts > div { padding: 22px 0 24px; border-bottom: 1px solid var(--line); padding-right: 24px; }
.facts dt { color: var(--muted); margin-bottom: 8px; }
.facts dd { font-size: 18px; letter-spacing: -0.01em; line-height: 1.4; }
.facts a { border-bottom: 1px solid var(--accent); }
.facts a:hover { color: var(--accent); }

/* CONTACT */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: clamp(100px, 14vw, 200px) 0; border-top: 1px solid var(--line); }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(6, 8, 11, 0.8) 0%, rgba(6, 8, 11, 0.35) 55%, rgba(6, 8, 11, 0.7) 100%); pointer-events: none; }
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 14ch; font-size: clamp(40px, 7vw, 92px); }
.contact .lede { margin-inline: auto; }
.contact .cta { justify-content: center; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.brand-small { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; letter-spacing: -0.02em; }
.footer .mono { text-transform: none; letter-spacing: 0.02em; font-size: 12px; }

/* REVEAL */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .hero-title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 0.09s + 0.1s); }
.js .hero-title.in .line > span { transform: none; }
.js .step[data-reveal] { transform: none; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid, .company { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 28px 24px 32px; }
  .hero-foot .scroll-cue { display: none; }
  .hero-shade { background: linear-gradient(90deg, var(--bg) 0%, rgba(6, 8, 11, 0.7) 60%, rgba(6, 8, 11, 0.35) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 11, 0) 22%); }
  .facts { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .contact .cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .hero-title .line > span { opacity: 1; transform: none; transition: none; }
  .js .card:not(.in) .ico * { stroke-dashoffset: 0; }
  .scroll-cue i::after { animation: none; transform: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ===== v2: premium layer ===== */
.hero-title { font-weight: 560; letter-spacing: -0.052em; }
.hero-title em { background: linear-gradient(100deg, #ff8a57, #ff5a1f 60%, #ffb089); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* marquee */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li { font-size: clamp(26px, 3.6vw, 44px); font-weight: 500; letter-spacing: -0.035em; color: #5d6775; padding-right: 56px; position: relative; white-space: nowrap; transition: color 0.3s; }
.marquee li::after { content: ""; position: absolute; right: 22px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); opacity: 0.8; }
.marquee:hover .track { animation-play-state: paused; }
.marquee li:hover { color: var(--text); }
@keyframes slide { to { transform: translateX(-50%); } }

/* cards */
.card { padding: 28px 28px 34px; min-height: 340px; }
.card .idx { position: absolute; top: 24px; right: 26px; }
.illus { width: 100%; height: 132px; margin: 6px 0 26px; display: block; overflow: visible; }
.illus .st { fill: none; stroke: #4a5361; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s; }
.card:hover .illus .st { stroke: #7c8797; }
.illus .fl { fill: #2a313c; }
.illus .fl.a, .illus .fl.a2 { fill: var(--accent); }
.illus .fl.a { animation: pulse 3.2s ease-in-out infinite; }
.illus .fl.a2 { animation: pulse 3.2s ease-in-out 1.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* code */
.ill-code .b { fill: #2e3642; transform-box: fill-box; transform-origin: left center; animation: type 6s var(--ease) infinite; }
.ill-code .b.acc { fill: var(--accent); }
.ill-code .b:nth-child(2) { animation-delay: 0.25s; } .ill-code .b:nth-child(3) { animation-delay: 0.5s; }
.ill-code .b:nth-child(4) { animation-delay: 0.75s; } .ill-code .b:nth-child(5) { animation-delay: 1s; } .ill-code .b:nth-child(6) { animation-delay: 1.25s; }
.ill-code .caret { fill: var(--text); animation: blink 1s steps(2) infinite; }
@keyframes type { 0% { transform: scaleX(0); } 22%, 86% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes blink { 50% { opacity: 0; } }

/* network */
.ill-net .flow { fill: none; stroke: #3b4350; stroke-width: 1.4; stroke-dasharray: 3 7; animation: dash 2.4s linear infinite; }
.ill-net .flow.f2 { animation-duration: 3.1s; } .ill-net .flow.f3 { animation-duration: 2.8s; animation-direction: reverse; }
.ill-net .nd { fill: #1c222b; stroke: #6b7686; stroke-width: 1.4; }
.ill-net .hub { fill: var(--accent); stroke: none; filter: drop-shadow(0 0 8px rgba(255, 122, 69, 0.8)); animation: pulse 2.6s ease-in-out infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }

/* ai */
.ill-ai .lnk path { fill: none; stroke: #2f3742; stroke-width: 1; }
.ill-ai .p { fill: #1c222b; stroke: #6b7686; stroke-width: 1.4; animation: fire 3.6s ease-in-out infinite; }
.ill-ai .p.out { stroke: var(--accent); }
.ill-ai .p1 { animation-delay: 0s; } .ill-ai .p2 { animation-delay: 0.3s; } .ill-ai .p3 { animation-delay: 0.6s; }
.ill-ai .p4 { animation-delay: 0.9s; } .ill-ai .p5 { animation-delay: 1.2s; } .ill-ai .p6 { animation-delay: 1.5s; }
.ill-ai .p7 { animation-delay: 1.9s; } .ill-ai .p8 { animation-delay: 2.1s; }
@keyframes fire { 0%, 70%, 100% { fill: #1c222b; } 80% { fill: var(--accent); } }

/* security */
.ill-sec .scan { fill: url(#none); fill: rgba(255, 122, 69, 0.35); animation: scan 3.4s ease-in-out infinite; }
.ill-sec .tick { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; animation: draw 3.4s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(96px); opacity: 0; } }
@keyframes draw { 0%, 20% { stroke-dashoffset: 60; } 55%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 60; } }

/* modernization */
.ill-up .stair { fill: #262d38; transform-box: fill-box; transform-origin: bottom; animation: rise 5s var(--ease) infinite; }
.ill-up .s4 { fill: var(--accent); }
.ill-up .s2 { animation-delay: 0.2s; } .ill-up .s3 { animation-delay: 0.4s; } .ill-up .s4 { animation-delay: 0.6s; }
.ill-up .trend { stroke: #7c8797; stroke-dasharray: 220; animation: draw2 5s var(--ease) infinite; }
@keyframes rise { 0% { transform: scaleY(0); } 25%, 88% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes draw2 { 0%, 20% { stroke-dashoffset: 220; } 50%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 220; } }

/* statement */
.statement { padding: clamp(100px, 16vw, 220px) 0; }
.statement-text { font-size: clamp(30px, 5.6vw, 76px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 560; max-width: 20ch; }
.statement-text .w { color: #3a424e; transition: color 0.35s; }
.statement-text .w.on { color: var(--text); }
.statement-text .w.on.hl { color: var(--accent); }

/* footer wordmark */
.footer { overflow: hidden; padding-bottom: 0; }
.giant { margin-top: 28px; text-align: center; font-weight: 600; letter-spacing: -0.07em; line-height: 0.74; font-size: clamp(160px, 38vw, 560px); background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 78%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; transform: translateY(8%); }

@media (max-width: 720px) {
  .hero { align-items: flex-end; }
  .hero-inner { padding-top: min(88vw, 340px); padding-bottom: 96px; }
  .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .track, .illus * { animation: none !important; }
  .ill-sec .scan { opacity: 0; } .ill-sec .tick { stroke-dashoffset: 0; }
  .ill-up .trend { stroke-dashoffset: 0; } .statement-text .w { color: var(--text); }
}
@media (max-width: 720px) {
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 11, 0.9) 42%, rgba(6, 8, 11, 0) 64%); }
}
