/* ==================== Tokens ==================== */
:root{
  --bg: #04060f;
  --bg-soft: #070b1a;
  --panel: rgba(18, 24, 46, 0.55);
  --panel-border: rgba(94, 121, 255, 0.18);
  --panel-border-strong: rgba(94, 121, 255, 0.35);
  --text: #eef1fb;
  --text-dim: #a9b2d6;
  --text-dimmer: #6f7aa3;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --grad: linear-gradient(90deg, var(--violet), var(--blue) 55%, var(--cyan));
  --grad-soft: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(34,211,238,0.10));
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 60px rgba(59,130,246,0.20);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

html[data-theme="light"]{
  --bg: #f5f6fb;
  --bg-soft: #ffffff;
  --panel: rgba(255,255,255,0.7);
  --panel-border: rgba(80,90,160,0.18);
  --panel-border-strong: rgba(80,90,160,0.30);
  --text: #10121f;
  --text-dim: #454b6b;
  --text-dimmer: #767ea3;
  --shadow-glow: 0 0 60px rgba(59,130,246,0.12);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
h1,h2,h3{ font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
img{ max-width:100%; display:block; }

:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.text-gradient{
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==================== Background fx ==================== */
.bg-grid{
  position: fixed; inset:0; z-index:-2;
  background-image:
    linear-gradient(rgba(94,121,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,121,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}
.bg-glow{
  position: fixed; z-index:-1; border-radius:50%;
  filter: blur(120px); opacity:0.35; pointer-events:none;
}
.bg-glow--1{ width:560px; height:560px; top:-120px; right:-120px; background: var(--violet); }
.bg-glow--2{ width:520px; height:520px; bottom:10%; left:-160px; background: var(--cyan); opacity:0.18; }

/* ==================== Buttons ==================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-body); font-weight:600; font-size:0.95rem;
  padding: 12px 22px; border-radius: 10px; border:1px solid transparent;
  cursor:pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: var(--grad); color:#fff;
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
.btn-primary:hover{ box-shadow: 0 10px 30px rgba(99,102,241,0.5); }
.btn-outline{
  background: rgba(255,255,255,0.02);
  border-color: var(--panel-border-strong);
  color: var(--text);
}
.btn-outline:hover{ background: rgba(255,255,255,0.06); border-color: var(--cyan); }
.btn-sm{ padding: 9px 18px; font-size: 0.88rem; }
.btn-lg{ padding: 14px 26px; font-size: 1rem; }
.btn-block{ width:100%; }

/* ==================== Nav ==================== */
.nav-wrap{ position: sticky; top:0; z-index: 100; padding: 18px 32px 0; }
.nav{
  max-width: 1320px; margin: 0 auto;
  display:flex; align-items:center; justify-content:space-between;
  gap: 24px;
  padding: 12px 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand-mark{ display:flex; filter: drop-shadow(0 0 10px rgba(139,92,246,0.5)); }
.brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.brand-line1{ font-family: var(--font-mono); font-size:0.62rem; letter-spacing:0.32em; color: var(--text-dim); }
.brand-line2{ font-family: var(--font-display); font-weight:700; font-size:1.25rem; letter-spacing:0.02em; background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.brand-line3{ font-family: var(--font-mono); font-size:0.52rem; letter-spacing:0.22em; color: var(--text-dimmer); margin-top:1px; }

.nav-links{ display:flex; align-items:center; gap: 30px; }
.nav-links a{ font-size:0.92rem; color: var(--text-dim); transition: color .18s ease; }
.nav-links a:hover{ color: var(--text); }

.nav-actions{ display:flex; align-items:center; gap:16px; flex-shrink:0; }
.theme-toggle{
  width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: transparent; border:1px solid var(--panel-border); color: var(--text-dim);
  cursor:pointer; transition: all .18s ease;
}
.theme-toggle:hover{ color: var(--cyan); border-color: var(--cyan); }
.nav-divider{ width:1px; height:22px; background: var(--panel-border-strong); }
.link-muted{ font-size:0.92rem; color: var(--text-dim); }
.link-muted:hover{ color: var(--text); }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px;
}
.nav-toggle span{ width:22px; height:2px; background: var(--text); border-radius: 2px; }

/* ==================== Hero ==================== */
.hero{
  max-width: 1320px; margin: 0 auto;
  padding: 72px 32px 40px;
  display:grid; grid-template-columns: 1.05fr 1fr; gap: 40px;
  align-items:center;
  min-height: 640px;
}
.eyebrow{
  font-family: var(--font-mono); font-size:0.72rem; letter-spacing:0.24em;
  color: var(--cyan); margin-bottom: 18px; text-transform: uppercase;
}
.hero-title{
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight:700; line-height:1.05;
}
.hero-desc{
  margin-top: 22px; font-size:1.08rem; color: var(--text-dim); max-width: 46ch;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top: 34px; }
.hero-trust{ margin-top: 40px; font-size:0.82rem; color: var(--text-dimmer); }
.trust-marks{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; font-family: var(--font-mono); color: var(--text-dim); }

/* Hero visual */
.hero-visual{ position:relative; height: 480px; display:flex; align-items:center; justify-content:center; }
.orb-stage{ position:relative; width:100%; height:100%; display:flex; align-items:center; justify-content:center; }

.orb-ring{
  position:absolute; width: 300px; height:300px; border-radius:50%;
  border: 1.5px solid rgba(59,130,246,0.55);
  box-shadow: 0 0 60px rgba(59,130,246,0.35), inset 0 0 60px rgba(139,92,246,0.15);
  animation: spin 24s linear infinite;
}
.orb-ring--outer{ width:340px; height:340px; border-color: rgba(139,92,246,0.25); animation-duration: 40s; animation-direction: reverse; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.orb-mark{ width: 190px; height:190px; position:relative; z-index:2; filter: drop-shadow(0 0 30px rgba(59,130,246,0.55)); animation: float 6s ease-in-out infinite; }
@keyframes float{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

.orb-platform{
  position:absolute; bottom: 38px; width: 280px; height: 60px;
  border-radius:50%;
  border: 1px solid rgba(59,130,246,0.45);
  box-shadow: 0 0 70px 18px rgba(59,130,246,0.35);
}
.orb-platform::before{
  content:""; position:absolute; inset: 14px 60px; border-radius:50%;
  border: 1px solid rgba(139,92,246,0.5);
}

.float-card{
  position:absolute; display:flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:0.78rem; color: var(--text-dim);
  padding: 10px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--panel-border-strong);
  backdrop-filter: blur(10px);
  animation: bob 5s ease-in-out infinite;
}
.float-card svg{ color: var(--cyan); }
.float-card--deploy{ top: 8%; left: -2%; animation-delay: .2s; }
.float-card--scale{ bottom: 20%; left: -6%; animation-delay: 1.4s; }
.float-card--secure{ top: 10%; right: -4%; animation-delay: .8s; }
.float-card--observe{ bottom: 18%; right: -8%; animation-delay: 2s; }
@keyframes bob{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }

/* ==================== Strip ==================== */
.strip{
  max-width: 1320px; margin: 0 auto; padding: 20px 32px 60px;
  display:flex; align-items:center; gap: 24px; flex-wrap:wrap;
  border-top: 1px solid var(--panel-border);
}
.strip p{ font-size:0.82rem; color: var(--text-dimmer); white-space:nowrap; }
.strip-marks{ display:flex; flex-wrap:wrap; gap: 26px; font-family: var(--font-mono); font-size:0.85rem; color: var(--text-dim); }

/* ==================== Sections ==================== */
.section{ max-width: 1320px; margin: 0 auto; padding: 90px 32px; }
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 10px; }
.section-sub{ margin-top: 14px; color: var(--text-dim); font-size:1.02rem; }

/* Feature grid */
.feature-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card{
  padding: 30px 24px; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--panel-border);
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover{ border-color: var(--panel-border-strong); transform: translateY(-4px); }
.feature-icon{
  width: 46px; height:46px; border-radius: 12px; display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px; color:#fff; background: var(--grad-soft); border: 1px solid var(--panel-border-strong);
}
.feature-icon--deploy{ color: var(--violet); }
.feature-icon--scale{ color: var(--blue); }
.feature-icon--secure{ color: var(--cyan); }
.feature-icon--observe{ color: var(--violet); }
.feature-card h3{ font-size:1.1rem; margin-bottom:10px; }
.feature-card p{ color: var(--text-dim); font-size:0.92rem; }

/* Split section */
.section--split{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center; }
.check-list{ margin-top: 24px; display:flex; flex-direction:column; gap:12px; }
.check-list li{ position:relative; padding-left: 28px; color: var(--text-dim); font-size:0.96rem; }
.check-list li::before{
  content:"✓"; position:absolute; left:0; top:0; width:18px; height:18px; border-radius:5px;
  background: var(--grad); color:#fff; font-size:0.66rem; display:flex; align-items:center; justify-content:center;
}
.link-arrow{ display:inline-flex; align-items:center; gap:8px; margin-top:28px; color: var(--cyan); font-weight:600; font-size:0.92rem; }
.link-arrow svg{ transition: transform .18s ease; }
.link-arrow:hover svg{ transform: translateX(3px); }

.code-window{
  border-radius: var(--radius-lg); overflow:hidden;
  border:1px solid var(--panel-border-strong);
  background: #060915;
  box-shadow: var(--shadow-glow);
}
.code-window-bar{ display:flex; align-items:center; gap:8px; padding: 12px 16px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--panel-border); }
.dot{ width:10px; height:10px; border-radius:50%; }
.dot--r{ background:#ef4444; } .dot--y{ background:#eab308; } .dot--g{ background:#22c55e; }
.code-window-title{ margin-left:8px; font-family: var(--font-mono); font-size:0.78rem; color: var(--text-dimmer); }
.code-body{ margin:0; padding: 22px 20px 26px; font-family: var(--font-mono); font-size:0.85rem; line-height:1.7; overflow-x:auto; color: var(--text-dim); }
.tok-key{ color:#93c5fd; } .tok-str{ color:#67e8f9; } .tok-num{ color:#c4b5fd; }
.tok-comment{ color: var(--text-dimmer); } .tok-ok{ color:#4ade80; } .tok-dim{ color: var(--text-dimmer); }

/* Solutions */
.solution-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
.solution-card{ padding: 34px 26px; border-radius: var(--radius-lg); background: var(--panel); border:1px solid var(--panel-border); }
.solution-card h3{ font-size:1.15rem; margin-bottom:12px; }
.solution-card p{ color: var(--text-dim); font-size:0.94rem; }
.solution-card--accent{ background: var(--grad-soft); border-color: var(--panel-border-strong); box-shadow: var(--shadow-glow); }

/* Pricing */
.pricing-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; align-items:stretch; }
.price-card{
  position:relative; padding: 34px 28px; border-radius: var(--radius-lg);
  background: var(--panel); border:1px solid var(--panel-border);
  display:flex; flex-direction:column;
}
.price-card--featured{ border-color: var(--panel-border-strong); box-shadow: var(--shadow-glow); transform: scale(1.02); }
.price-badge{
  position:absolute; top:-12px; left:28px; padding: 5px 14px; border-radius: 999px;
  background: var(--grad); color:#fff; font-size:0.72rem; font-weight:700; letter-spacing:0.02em;
}
.price-card h3{ font-size:1.05rem; color: var(--text-dim); font-weight:600; }
.price{ margin-top:14px; font-family: var(--font-display); font-size:2.2rem; font-weight:700; }
.price span{ background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.price-desc{ margin-top:8px; color: var(--text-dimmer); font-size:0.88rem; }
.price-list{ margin: 24px 0 28px; display:flex; flex-direction:column; gap:11px; flex-grow:1; }
.price-list li{ position:relative; padding-left:24px; font-size:0.9rem; color: var(--text-dim); }
.price-list li::before{ content:"•"; position:absolute; left:4px; color: var(--cyan); }

/* CTA */
.cta{ max-width: 1320px; margin: 0 auto 100px; padding: 0 32px; }
.cta-inner{
  text-align:center; padding: 70px 40px; border-radius: 28px;
  background: var(--grad-soft); border: 1px solid var(--panel-border-strong);
  box-shadow: var(--shadow-glow);
}
.cta-inner h2{ font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.cta-inner p{ margin-top:14px; color: var(--text-dim); max-width: 46ch; margin-left:auto; margin-right:auto; }

/* ==================== Footer ==================== */
.footer{ max-width:1320px; margin:0 auto; padding: 0 32px 40px; }
.footer-top{
  display:grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px;
  padding: 50px 0; border-top: 1px solid var(--panel-border);
}
.footer-brand p{ margin-top:14px; color: var(--text-dimmer); font-size:0.88rem; max-width: 32ch; }
.footer-col h4{ font-size:0.82rem; color: var(--text-dimmer); letter-spacing:0.06em; text-transform:uppercase; margin-bottom:16px; }
.footer-col{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-size:0.9rem; color: var(--text-dim); }
.footer-col a:hover{ color: var(--cyan); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding-top: 26px; border-top: 1px solid var(--panel-border);
  font-size:0.82rem; color: var(--text-dimmer);
}
.footer-legal{ display:flex; gap:20px; }
.footer-legal a:hover{ color: var(--cyan); }

/* ==================== Responsive ==================== */
@media (max-width: 980px){
  .hero{ grid-template-columns:1fr; padding-top: 48px; }
  .hero-visual{ height: 380px; order:-1; }
  .section--split{ grid-template-columns:1fr; }
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .solution-grid, .pricing-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .price-card--featured{ transform:none; }
}

@media (max-width: 760px){
  .nav-links, .nav-actions .link-muted{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-wrap{ padding: 14px 16px 0; }
  .hero{ padding: 40px 20px 24px; }
  .section{ padding: 60px 20px; }
  .feature-grid{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; }
  .float-card{ font-size:0.68rem; padding:8px 10px; }
  .orb-stage{ transform: scale(0.85); }

  .nav-links.open{
    display:flex; position:absolute; top: calc(100% + 8px); left:16px; right:16px;
    flex-direction:column; gap:0; padding: 10px;
    background: var(--panel); border:1px solid var(--panel-border); border-radius:14px;
    backdrop-filter: blur(18px);
  }
  .nav-links.open li{ width:100%; }
  .nav-links.open a{ display:block; padding: 12px 10px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
