/* ============================================================
   ZCC CLOUD — Design System
   Primary:  #00ff88  (ZCC neon green)
   Surface:  #050c12  (deep space)
   Glass:    rgba(255,255,255,0.04)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --c-bg:        #050c12;
  --c-bg2:       #090f18;
  --c-surface:   rgba(255,255,255,0.04);
  --c-border:    rgba(255,255,255,0.07);
  --c-accent:    #00ff88;
  --c-accent2:   #00c2ff;
  --c-accent3:   #a259ff;
  --c-text:      #e8f0fe;
  --c-muted:     #5a7080;
  --c-danger:    #ff4455;
  --r-card:      16px;
  --r-btn:       10px;
  --blur:        blur(20px);
  --shadow-glow: 0 0 40px rgba(0,255,136,0.12);
  --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
  --transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.3); border-radius: 3px; }

/* ── NOISE OVERLAY ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── GRID ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── GLASS CARD ─────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border-color: rgba(0,255,136,0.2);
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-btn);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--c-accent);
  color: #000;
  box-shadow: 0 0 24px rgba(0,255,136,0.35);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0,255,136,0.55);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  backdrop-filter: var(--blur);
}
.btn-ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.btn-outline {
  background: transparent;
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
}
.btn-outline:hover {
  background: rgba(0,255,136,0.08);
  box-shadow: 0 0 20px rgba(0,255,136,0.2);
}

/* ── NAV ────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
#nav.scrolled {
  background: rgba(5,12,18,0.85);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 1px 0 var(--c-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #000;
  font-family: var(--font-mono);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--c-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--c-text); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

/* ── HERO ───────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* animated star/grid bg */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,255,136,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,194,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 90%, rgba(162,89,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
#hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
  animation: gridPan 30s linear infinite;
}
@keyframes gridPan {
  from { transform: translateY(0); }
  to   { transform: translateY(60px); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 28px;
  animation: fadeInDown 0.7s ease both;
}
.badge .dot {
  width: 6px; height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.6); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  animation: fadeInDown 0.7s 0.1s ease both;
}
.hero-title .line-accent { color: var(--c-accent); }
.hero-title .line-dim { color: var(--c-muted); }

.hero-sub {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin: 0 auto 44px;
  animation: fadeInDown 0.7s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInDown 0.7s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInDown 0.7s 0.4s ease both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-accent);
  font-family: var(--font-mono);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.78rem;
  color: var(--c-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ── PLAYGROUND ─────────────────────────────────────────── */
#playground {
  padding: 80px 0;
  position: relative;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 520px;
  line-height: 1.7;
}

.playground-wrapper {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card), 0 0 80px rgba(0,255,136,0.05);
}

.editor-pane, .output-pane {
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--c-border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-muted);
}
.pane-dots {
  display: flex;
  gap: 6px;
}
.pane-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red   { background: #ff5f57; }
.dot-yellow{ background: #febc2e; }
.dot-green { background: #28c840; }

.editor-pane { background: #0a1520; border-right: 1px solid var(--c-border); }
.output-pane { background: #05100a; }

#code-editor {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #c8e6c9;
  padding: 20px;
  line-height: 1.7;
  tab-size: 4;
  caret-color: var(--c-accent);
}
#code-editor::placeholder { color: var(--c-muted); }

.pane-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--c-border);
  background: rgba(255,255,255,0.02);
}
.compile-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-muted);
  flex: 1;
}
.compile-status.ok  { color: var(--c-accent); }
.compile-status.err { color: var(--c-danger); }
.compile-status.running { color: var(--c-accent2); }

#asm-output {
  flex: 1;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #b2dfdb;
  white-space: pre;
  overflow: auto;
  line-height: 1.65;
}
.asm-comment { color: #546e7a; }
.asm-label   { color: var(--c-accent2); font-weight: 700; }
.asm-instr   { color: #80cbc4; }
.asm-reg     { color: var(--c-accent); }
.asm-imm     { color: #ffb74d; }

/* tabs */
.output-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--c-border);
  background: rgba(255,255,255,0.02);
}
.output-tab {
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--c-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.output-tab.active {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}
.output-tab:hover { color: var(--c-text); }

/* ── PROOF BANNER ───────────────────────────────────────── */
#proof-banner {
  background: rgba(0,255,136,0.04);
  border-top: 1px solid rgba(0,255,136,0.12);
  border-bottom: 1px solid rgba(0,255,136,0.12);
  padding: 48px 0;
}
.proof-grid {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  font-weight: 600;
}
.proof-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.proof-item span { color: var(--c-muted); font-weight: 400; }

/* ── FEATURES ───────────────────────────────────────────── */
#features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.feature-card {
  padding: 32px;
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.fi-green  { background: rgba(0,255,136,0.1); border: 1px solid rgba(0,255,136,0.2); }
.fi-blue   { background: rgba(0,194,255,0.1); border: 1px solid rgba(0,194,255,0.2); }
.fi-purple { background: rgba(162,89,255,0.1); border: 1px solid rgba(162,89,255,0.2); }
.fi-orange { background: rgba(255,155,0,0.1); border: 1px solid rgba(255,155,0,0.2); }
.fi-red    { background: rgba(255,68,85,0.1); border: 1px solid rgba(255,68,85,0.2); }
.fi-teal   { background: rgba(0,200,180,0.1); border: 1px solid rgba(0,200,180,0.2); }

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.65;
}

/* ── MILESTONES TICKER ──────────────────────────────────── */
#milestones-bar {
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: rgba(255,255,255,0.01);
  position: relative;
}
#milestones-bar::before,
#milestones-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
#milestones-bar::before { left: 0;  background: linear-gradient(90deg, var(--c-bg), transparent); }
#milestones-bar::after  { right: 0; background: linear-gradient(-90deg, var(--c-bg), transparent); }

.ticker-track {
  display: flex;
  gap: 64px;
  animation: ticker 35s linear infinite;
  width: max-content;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-muted);
  white-space: nowrap;
}
.ticker-item .tick-check { color: var(--c-accent); font-size: 0.9rem; }

/* ── PRICING ────────────────────────────────────────────── */
#pricing {
  padding: 100px 0;
  text-align: center;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}
.pricing-card {
  padding: 36px 32px;
  position: relative;
}
.pricing-card.featured {
  background: linear-gradient(135deg, rgba(0,255,136,0.07), rgba(0,194,255,0.05));
  border-color: rgba(0,255,136,0.3);
  box-shadow: var(--shadow-card), 0 0 60px rgba(0,255,136,0.08);
}
.plan-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-accent);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 0 0 10px 10px;
}
.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin-bottom: 12px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.plan-price .amount {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price .period {
  font-size: 0.9rem;
  color: var(--c-muted);
}
.plan-tagline {
  font-size: 0.88rem;
  color: var(--c-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}
.plan-divider {
  height: 1px;
  background: var(--c-border);
  margin-bottom: 28px;
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.plan-features li .check { color: var(--c-accent); font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }
.plan-features li .cross { color: var(--c-muted); font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }
.plan-features li.dim { color: var(--c-muted); }

/* ── WAITLIST ───────────────────────────────────────────── */
#waitlist {
  padding: 100px 0;
  text-align: center;
}
.waitlist-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0,255,136,0.05), rgba(0,194,255,0.03));
  border: 1px solid rgba(0,255,136,0.2);
  box-shadow: var(--shadow-card), 0 0 80px rgba(0,255,136,0.06);
}
.waitlist-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.waitlist-sub {
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.waitlist-form {
  display: flex;
  gap: 12px;
}
.waitlist-form input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 13px 18px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--c-text);
  outline: none;
  transition: border-color var(--transition);
}
.waitlist-form input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.1);
}
.waitlist-count {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--c-muted);
}
.waitlist-count strong { color: var(--c-accent); }

/* ── FOOTER ─────────────────────────────────────────────── */
#footer {
  padding: 48px 0;
  border-top: 1px solid var(--c-border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--c-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--c-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--c-accent); }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .playground-wrapper { grid-template-columns: 1fr; }
  .editor-pane { border-right: none; border-bottom: 1px solid var(--c-border); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .waitlist-form { flex-direction: column; }
  .proof-grid { flex-direction: column; gap: 24px; }
}
