:root {
  color-scheme: dark;
  --ink: #eaf4f7;
  --muted: #9dafb6;
  --faint: #6f858e;
  --bg: #061018;
  --bg-soft: #0a1720;
  --panel: #0d1c25;
  --panel-2: #10232d;
  --line: rgba(183, 218, 226, .14);
  --accent: #f4b942;
  --accent-strong: #ffd36e;
  --cyan: #55d6c2;
  --blue: #6fb7ff;
  --violet: #c084fc;
  --shell: min(1180px, calc(100% - 40px));
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 5%, rgba(35, 111, 130, .13), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 20px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: #101820; border-radius: 8px;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(6, 16, 24, .82);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 760; letter-spacing: -.03em; }
.brand > span:last-child > span { color: var(--accent); }
.brand-mark { position: relative; width: 29px; height: 29px; border: 2px solid var(--accent); border-radius: 50%; display: inline-block; }
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; left: 5px; right: 5px; height: 2px;
  background: var(--accent); transform: rotate(-24deg); transform-origin: center;
}
.brand-mark::before { top: 9px; }
.brand-mark::after { bottom: 8px; }
.brand-mark i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.brand-mark i:first-child { left: 3px; top: 4px; }
.brand-mark i:last-child { right: 3px; bottom: 4px; }

.main-nav { display: flex; align-items: center; gap: 20px; color: #c5d3d8; font-size: 14px; font-weight: 600; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: white; }
.nav-cta { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
.nav-cta:hover { border-color: rgba(244, 185, 66, .55); }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 6px 0; background: white; transition: transform .2s ease; }

.hero { position: relative; overflow: hidden; padding: 160px 0 0; min-height: 780px; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 63px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero-glow-one { width: 620px; height: 620px; right: -250px; top: -230px; background: radial-gradient(circle, rgba(68, 194, 187, .16), transparent 68%); }
.hero-glow-two { width: 480px; height: 480px; left: -300px; bottom: -100px; background: radial-gradient(circle, rgba(244, 185, 66, .08), transparent 70%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .84fr 1.16fr; gap: 72px; align-items: center; }
.eyebrow, .section-kicker {
  margin: 0 0 20px; color: var(--accent); text-transform: uppercase;
  letter-spacing: .16em; font-size: 12px; font-weight: 800;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 24px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 25px; font-size: clamp(52px, 6vw, 82px); line-height: .98; letter-spacing: -.055em; font-weight: 760; }
h1 em { color: var(--accent); font-style: normal; }
.hero-flow { color: var(--violet); }
.hero-lead { max-width: 600px; margin-bottom: 32px; color: #b8c9cf; font-size: 19px; line-height: 1.72; }
.development-note { max-width: 600px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; }
.development-note strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 10px; font-size: 14px; font-weight: 750;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #111820; background: linear-gradient(135deg, var(--accent-strong), var(--accent)); box-shadow: 0 12px 35px rgba(244, 185, 66, .16); }
.button-secondary { color: #e1edf0; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.button-secondary:hover { border-color: rgba(244, 185, 66, .45); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 20px; padding: 0; margin: 27px 0 0; list-style: none; color: var(--muted); font-size: 12px; }
.hero-facts span { color: var(--cyan); margin-right: 5px; }

.hero-visual { position: relative; }
.window-frame { overflow: hidden; border: 1px solid rgba(157, 192, 200, .2); border-radius: 18px; background: #09141c; box-shadow: var(--shadow); transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.window-bar { height: 46px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 15px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 10px; letter-spacing: .05em; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #38505a; }
.window-dots i:first-child { background: #d36a5f; }
.window-dots i:nth-child(2) { background: #d1a64d; }
.window-dots i:last-child { background: #4eaa74; }
.live-pill { justify-self: end; display: flex; align-items: center; gap: 6px; color: var(--cyan); }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(85, 214, 194, .12); }
.window-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.floating-card {
  position: absolute; display: flex; align-items: center; gap: 10px; min-width: 150px;
  padding: 11px 14px; background: rgba(12, 28, 36, .9); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,.3); backdrop-filter: blur(12px);
}
.floating-card span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: rgba(85, 214, 194, .1); color: var(--cyan); }
.floating-card small, .floating-card strong { display: block; }
.floating-card small { color: var(--faint); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.floating-card strong { color: #eaf4f7; font-size: 12px; }
.floating-card-left { left: -24px; bottom: -27px; }
.floating-card-right { right: -20px; top: 62px; }
.technology-strip { position: relative; z-index: 3; min-height: 64px; margin-top: 86px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; color: #70858d; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.technology-strip i { width: 3px; height: 3px; border-radius: 50%; background: #3d5660; }

.section { padding: 118px 0; }
.intro-section { background: #f0f3ef; color: #0d1b22; }
.intro-grid { display: grid; grid-template-columns: 1fr .82fr; gap: 110px; align-items: start; }
.section-kicker { margin-bottom: 14px; }
.intro-section .section-kicker { color: #8a6111; }
h2 { margin-bottom: 22px; font-size: clamp(37px, 4vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.intro-copy { padding-top: 32px; color: #43535a; font-size: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #17272e; font-size: 14px; font-weight: 800; }
.text-link span { color: #a16e0d; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.features-section { background: var(--bg-soft); }
.section-heading { display: grid; grid-template-columns: 1.2fr .6fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.section-heading > p { color: var(--muted); max-width: 430px; margin-bottom: 25px; }
.section-heading.compact { margin-bottom: 38px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { position: relative; min-height: 315px; padding: 36px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); transition: background .25s ease, transform .25s ease; }
.feature-card:hover { z-index: 2; background: var(--panel-2); transform: translateY(-4px); }
.feature-number { position: absolute; top: 26px; right: 28px; color: #405660; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 34px; border: 1px solid rgba(244, 185, 66, .25); border-radius: 12px; color: var(--accent); background: rgba(244, 185, 66, .06); font-size: 22px; }
.feature-card h3 { margin-bottom: 12px; font-size: 20px; letter-spacing: -.02em; }
.feature-card p { margin-bottom: 25px; color: var(--muted); font-size: 14px; }
.card-tag { display: inline-block; color: var(--faint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.ecosystem-section { position: relative; background: linear-gradient(145deg, #0d2029, #09141b); overflow: hidden; }
.ecosystem-section::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent, black 55%, transparent); }
.ecosystem-grid { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 120px; align-items: center; }
.ecosystem-copy > p:not(.section-kicker) { max-width: 470px; margin-bottom: 28px; color: var(--muted); }
.ecosystem-stack { position: relative; display: grid; gap: 12px; }
.ecosystem-stack::before { content: ""; position: absolute; left: 30px; top: -35px; bottom: -35px; width: 1px; background: linear-gradient(transparent, rgba(85,214,194,.45), transparent); }
.system-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 92px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(7,17,24,.82); backdrop-filter: blur(10px); }
.system-card.active { border-color: rgba(244,185,66,.32); background: linear-gradient(90deg, rgba(244,185,66,.08), rgba(7,17,24,.9) 45%); }
.system-symbol { position: relative; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #0c1e27; border: 1px solid #29424c; color: var(--accent); font-weight: 900; }
.system-card h3 { margin: 0; font-size: 16px; }
.system-card p { margin: 2px 0 0; color: var(--faint); font-size: 12px; }
.system-card > span { color: #708790; font-family: ui-monospace, monospace; font-size: 10px; text-transform: uppercase; }

.gallery-section { background: #eef1ed; color: #0b1a21; }
.gallery-section .section-kicker { color: #8a6111; }
.gallery-section .section-heading > p { color: #58686e; }
.gallery { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.gallery-item {
  position: relative; overflow: hidden; min-height: 270px; padding: 0; border: 0; border-radius: 16px;
  background: #15232a; color: white; cursor: zoom-in; text-align: left;
}
.gallery-wide { grid-row: span 2; min-height: 560px; }
.gallery-item::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(3, 10, 14, .92)); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item > span { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 21px; }
.gallery-item strong, .gallery-item small { display: block; }
.gallery-item strong { font-size: 17px; }
.gallery-item small { margin-top: 3px; color: #b6c3c7; font-size: 11px; }

.story-section { background: #071119; }
.story-grid { display: grid; grid-template-columns: 70px 1fr .62fr; gap: 65px; align-items: start; }
.story-rail { position: relative; height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.story-rail::before, .story-rail::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: #28414b; }
.story-rail::before { left: 25px; }
.story-rail::after { right: 25px; }
.story-rail span { position: relative; z-index: 2; width: 70px; height: 14px; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.story-rail i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 8px rgba(85,214,194,.08); }
.story-lead { max-width: 720px; color: #aebdc2; font-size: 18px; }
blockquote { margin: 38px 0 0; padding: 23px 0 0 25px; border-left: 2px solid var(--accent); color: #dce7e9; font-size: 16px; }
blockquote footer { margin-top: 12px; color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.story-aside { margin-top: 62px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.story-aside > p { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.story-aside ul { padding: 0; margin: 0; list-style: none; }
.story-aside li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); color: #bfced2; font-size: 13px; }
.story-aside li span { color: #536b75; font-family: ui-monospace, monospace; }

.start-section { padding-top: 40px; background: #071119; }
.start-panel { position: relative; overflow: hidden; padding: 64px; border: 1px solid rgba(244,185,66,.22); border-radius: 26px; background: linear-gradient(135deg, rgba(244,185,66,.09), rgba(21,57,67,.25)); }
.start-panel::after { content: ""; position: absolute; width: 400px; height: 400px; right: -180px; top: -180px; border: 60px solid rgba(244,185,66,.035); border-radius: 50%; }
.start-panel > div:first-child { max-width: 700px; }
.start-panel > div:first-child p:last-child { color: var(--muted); }
.code-card { position: relative; z-index: 2; margin: 34px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #050d12; }
.code-head { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); color: #657a83; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.code-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
pre { margin: 0; padding: 22px; overflow-x: auto; }
code { color: #c5d4d8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
code span { color: var(--accent); user-select: none; }
.start-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 25px; }
.text-link.light { color: #dce7e9; }
.text-link.light span { color: var(--accent); }

.site-footer { padding: 80px 0 25px; background: #040b10; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.footer-brand { margin-bottom: 18px; }
.footer-grid > div:first-child p { max-width: 340px; color: var(--faint); font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.footer-links div { display: flex; flex-direction: column; gap: 9px; }
.footer-links strong { margin-bottom: 4px; color: #e4edef; font-size: 12px; }
.footer-links a { color: var(--faint); font-size: 12px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); color: #536871; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.lightbox { width: min(1100px, calc(100% - 30px)); max-width: none; padding: 0; border: 1px solid #35505b; border-radius: 16px; background: #061018; box-shadow: 0 30px 100px #000; }
.lightbox::backdrop { background: rgba(1,7,10,.88); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: 85vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(4,11,16,.8); color: white; font-size: 24px; cursor: pointer; }

.reveal { opacity: 1; transform: none; }
.reveal-enhanced .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal-enhanced .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-grid, .intro-grid, .ecosystem-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 58px; }
  .hero-copy { max-width: 720px; }
  .intro-grid, .ecosystem-grid { gap: 55px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { grid-template-columns: 1fr; gap: 10px; }
  .story-grid { grid-template-columns: 48px 1fr; gap: 35px; }
  .story-aside { grid-column: 2; margin-top: 0; }
  .floating-card-right { right: 8px; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-header { background: rgba(6,16,24,.9); backdrop-filter: blur(16px); }
  .nav-shell { min-height: 66px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 66px 0 auto; display: flex; flex-direction: column; align-items: stretch;
    gap: 0; padding: 22px; background: rgba(6,16,24,.98); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; visibility: hidden; transition: .25s ease;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 13px 8px; }
  .nav-cta { margin-top: 9px; text-align: center; }
  .hero { padding-top: 118px; }
  h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .floating-card { display: none; }
  .technology-strip { justify-content: flex-start; margin-top: 48px; }
  .section { padding: 82px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 275px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-wide { grid-row: auto; min-height: 320px; }
  .gallery-item { min-height: 250px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-rail { display: none; }
  .story-aside { grid-column: auto; }
  .start-panel { padding: 35px 22px; }
  .start-actions { align-items: stretch; flex-direction: column; }
  .start-actions .button { width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-facts { display: grid; gap: 7px; }
  .window-bar { grid-template-columns: 1fr 1fr; }
  .window-bar > span:nth-child(2) { display: none; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
