:root {
  --bg: #050b13;
  --bg-2: #07111f;
  --panel: rgba(9, 26, 45, 0.78);
  --panel-strong: #0a1a2d;
  --line: rgba(81, 174, 255, 0.22);
  --cyan: #16d8ed;
  --blue: #1384ff;
  --amber: #ffb82e;
  --green: #39f29b;
  --text: #f6f8fb;
  --muted: #9fb1c8;
  --muted-2: #6f849e;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 8%, rgba(0, 151, 255, .14), transparent 26rem),
    radial-gradient(circle at 15% 18%, rgba(0, 210, 235, .08), transparent 22rem),
    linear-gradient(180deg, #06101d 0%, var(--bg) 45%, #03080e 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  background-image:
    linear-gradient(rgba(82, 174, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 174, 255, .08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 74%);
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.page-shell { position: relative; z-index: 1; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.brand-mark { width: 42px; height: 42px; }
.brand-name { font-size: .98rem; }

.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a { color: var(--muted); font-size: .92rem; transition: color .2s ease; }
.site-nav a:hover { color: var(--text); }

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--muted-2);
}

.language-option {
  border: 0;
  padding: 4px 5px;
  color: var(--muted-2);
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}

.language-option:hover,
.language-option.active { color: var(--cyan); }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  border-radius: 12px;
  padding: 9px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  border-radius: 999px;
}

.section-pad {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 112px 0;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 76px;
  align-items: center;
  padding-top: 80px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 7vw, 6.35rem);
  line-height: .95;
  letter-spacing: -.055em;
  max-width: 780px;
}

h1 span, .section-heading h2 span {
  background: linear-gradient(90deg, var(--cyan), #31a3ff 70%, #7d78ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 36px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 780;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { color: #00131b; background: linear-gradient(135deg, var(--cyan), #26a6ff); box-shadow: 0 14px 40px rgba(15, 191, 235, .22); }
.button.ghost { border-color: rgba(70, 181, 255, .36); background: rgba(8, 29, 49, .6); }
.button.ghost:hover { border-color: rgba(70, 181, 255, .7); }
.button.disabled { opacity: .58; cursor: not-allowed; pointer-events: none; }

.trust-row { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: .9rem; }
.trust-row span::before { content: "✓"; color: var(--cyan); margin-right: 8px; }

.hero-console { position: relative; min-height: 440px; }
.console-window {
  position: absolute;
  width: min(100%, 540px);
  top: 34px;
  right: 0;
  border: 1px solid rgba(44, 181, 255, .44);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(6,20,36,.98), rgba(4,13,25,.98));
  box-shadow: var(--shadow), 0 0 80px rgba(0, 151, 255, .08);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(1deg);
}

.window-bar {
  height: 48px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  color: var(--muted);
  font-size: .78rem;
}

.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff6158; }
.window-dots i:nth-child(2) { background: #ffbd2e; }
.window-dots i:nth-child(3) { background: #27c941; }

pre { margin: 0; overflow-x: auto; }
.console-window pre { padding: 30px 28px 36px; color: #a8c9ef; font-size: .88rem; line-height: 1.72; }
.ok { color: var(--green); }
.pass { color: var(--green); font-weight: 850; }

.status-stack {
  position: absolute;
  right: -26px;
  bottom: 26px;
  width: 210px;
  display: grid;
  gap: 10px;
}

.status-pill {
  padding: 13px 16px;
  border: 1px solid rgba(44, 181, 255, .3);
  border-radius: 14px;
  background: rgba(4, 17, 31, .95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}
.status-pill span { color: #c5d8eb; }
.status-pill b { color: var(--green); }

.metric-strip {
  width: min(calc(100% - 40px), var(--max));
  margin: -32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(6, 21, 37, .75);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.metric-strip div { padding: 28px 30px; border-right: 1px solid var(--line); }
.metric-strip div:last-child { border-right: 0; }
.metric-strip strong, .metric-strip span { display: block; }
.metric-strip strong { margin-bottom: 5px; }
.metric-strip span { color: var(--muted); font-size: .87rem; }

.section-heading { max-width: 780px; margin-bottom: 48px; }
.section-heading h2, .about-panel h2, .contact-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 4.5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }

.product-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  border: 1px solid rgba(52, 176, 255, .3);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at 75% 20%, rgba(0, 176, 255, .13), transparent 22rem),
    linear-gradient(145deg, rgba(7, 25, 44, .98), rgba(4, 14, 26, .98));
  box-shadow: var(--shadow);
}

.product-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.number { color: var(--cyan); font-size: .77rem; font-weight: 900; letter-spacing: .16em; }
.badge { color: #ffd889; border: 1px solid rgba(255, 184, 46, .34); background: rgba(255, 184, 46, .08); padding: 5px 10px; border-radius: 999px; font-size: .73rem; }
.product-copy h3 { margin-bottom: 8px; font-size: clamp(2.4rem, 5vw, 4.8rem); letter-spacing: -.05em; }
.product-tagline { color: var(--cyan); font-size: 1.15rem; font-weight: 760; }
.product-copy > p:not(.product-tagline) { color: var(--muted); max-width: 650px; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px 22px;
  list-style: none;
  margin: 28px 0;
  padding: 0;
  color: #c7d6e8;
}
.feature-list li::before { content: "✓"; color: var(--green); margin-right: 9px; }

.compatibility { margin: 26px 0; padding: 14px 16px; border-left: 2px solid var(--cyan); background: rgba(13, 51, 77, .3); }
.compatibility span, .compatibility strong { display: block; }
.compatibility span { color: var(--muted-2); font-size: .73rem; text-transform: uppercase; letter-spacing: .12em; }

.product-demo { align-self: center; border: 1px solid rgba(50, 179, 255, .35); background: #04101d; border-radius: 20px; overflow: hidden; box-shadow: 0 28px 70px rgba(0,0,0,.34); }
.demo-header, .demo-footer { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.demo-pass { color: var(--green); font-weight: 900; }
.product-demo pre { padding: 26px 20px; color: #92b8da; font-size: .84rem; line-height: 1.75; }
.json-string { color: #68e9bd; }
.json-boolean { color: #6ca9ff; }
.json-null { color: #dba6ff; }
.json-number { color: #ffd277; }
.demo-footer { justify-content: flex-start; gap: 9px; border-top: 1px solid var(--line); border-bottom: 0; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(57, 242, 155, .08); }

.coming-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.coming-card, .principle-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 23, 39, .62);
}
.coming-card span { color: var(--cyan); font-size: .76rem; letter-spacing: .15em; font-weight: 900; }
.coming-card h3, .principle-card h3 { margin: 12px 0 8px; font-size: 1.35rem; }
.coming-card p, .principle-card p { margin-bottom: 0; color: var(--muted); }

.principles-section { padding-top: 74px; }
.principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.principle-card { min-height: 250px; }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--cyan); background: rgba(18, 153, 255, .1); border: 1px solid rgba(18, 153, 255, .2); font-size: 1.45rem; }

.about-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(7, 24, 41, .9), rgba(5, 14, 26, .96));
}
.about-copy p { color: var(--muted); font-size: 1.03rem; }

.contact-section { padding-top: 30px; }
.contact-panel {
  text-align: center;
  padding: clamp(42px, 8vw, 90px) 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle, rgba(19, 134, 255, .11), transparent 52%);
}
.contact-panel h2 { max-width: 800px; margin-left: auto; margin-right: auto; }
.contact-panel > p:not(.eyebrow) { color: var(--muted); max-width: 620px; margin: 0 auto 20px; }
.contact-note { color: var(--muted-2); font-size: .83rem; }

.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  color: var(--muted-2);
  font-size: .83rem;
}
.compact .brand-mark { width: 32px; height: 32px; }
.compact .brand-name { font-size: .83rem; color: var(--text); }
.site-footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

@media (max-width: 980px) {
  .hero, .product-card, .about-panel { grid-template-columns: 1fr; }
  .hero { gap: 28px; padding-top: 64px; }
  .hero-console { min-height: 420px; }
  .status-stack { right: 0; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { gap: 34px; }
}

@media (max-width: 740px) {
  .site-header { height: 72px; position: relative; }
  .menu-button { display: block; }
  .site-nav {
    position: absolute;
    z-index: 10;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(4, 15, 28, .98);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .language-switch { margin: 8px 10px 4px; align-self: flex-start; }
  .section-pad { padding: 82px 0; }
  .hero { min-height: auto; padding-top: 58px; }
  h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .hero-console { min-height: 390px; }
  .console-window { width: 100%; transform: none; }
  .status-stack { display: none; }
  .metric-strip { grid-template-columns: 1fr; margin-top: 10px; }
  .metric-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-strip div:last-child { border-bottom: 0; }
  .feature-list { grid-template-columns: 1fr; }
  .coming-grid, .principles-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; padding: 34px 0; }
}

@media (max-width: 480px) {
  .site-header, .section-pad, .metric-strip, .site-footer { width: min(calc(100% - 28px), var(--max)); }
  .brand-name { font-size: .82rem; }
  .brand-mark { width: 36px; height: 36px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .trust-row { gap: 12px; flex-direction: column; }
  .hero-console { min-height: 360px; }
  .console-window pre { font-size: .72rem; padding: 22px 18px; }
  .product-card { padding: 24px 18px; }
  .product-demo pre { font-size: .68rem; }
}
