/* ==========================================================================
   QIDS -- QUANTUM DIGITAL SIGNATURES DEVELOPER PLATFORM
   Design Language: Obsidian + 18k Warm Gold
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-void:        #040307;
  --bg-base:        #08070D;
  --bg-surface:     #0E0C16;
  --bg-card:        rgba(15, 13, 24, 0.82);
  --bg-card-hover:  rgba(26, 22, 42, 0.92);
  --bg-code:        #06050A;

  /* 18k Warm Gold Spectrum */
  --gold-core:      #C9A84C;
  --gold-bright:    #E8C97A;
  --gold-dim:       #8A6E2F;
  --gold-pale:      #F5E6C3;
  --gold-glow:      rgba(201, 168, 76, 0.22);
  --gold-glow-soft: rgba(201, 168, 76, 0.08);
  --gold-border:    rgba(201, 168, 76, 0.16);
  --gold-border-active: rgba(232, 201, 122, 0.5);

  /* Accents */
  --blue-spark:     #4F9EFF;
  --success:        #34D399;
  --danger:         #F87171;
  --warning:        #FBBF24;

  /* Text */
  --text-0: #FFFFFF;
  --text-1: #E8E4F0;
  --text-2: #A89FC0;
  --text-3: #686082;
  --text-code: #D4C8FF;

  /* Typography */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Radii */
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px; --r-pill: 9999px;

  --max-w: 1200px;
  --nav-h: 70px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-void);
  color: var(--text-1);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* --- BACKGROUND LAYERS --------------------------------------------------- */
.page-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(201, 168, 76, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 70%, rgba(79, 158, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 15% 90%, rgba(201, 168, 76, 0.05) 0%, transparent 45%),
    var(--bg-void);
}
.page-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* --- UTILITIES ----------------------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.text-gold {
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold-bright) 45%, var(--gold-core) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-shimmer {
  background: linear-gradient(110deg, var(--gold-pale) 0%, var(--gold-bright) 30%, var(--gold-core) 55%, var(--gold-bright) 80%, var(--gold-pale) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-pill);
  background: rgba(201, 168, 76, 0.06);
  color: var(--gold-bright);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.section-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-core);
  box-shadow: 0 0 8px var(--gold-core);
  animation: pulse-dot 2s infinite ease-in-out;
}
@keyframes pulse-dot { 0%, 100% { opacity: 0.5; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.3); } }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text-0);
  line-height: 1.22;
  margin: 14px 0 14px;
  letter-spacing: -0.02em;
}
.section-header p {
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.68;
}

/* --- BUTTONS ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  border-radius: var(--r-md); transition: all 0.25s var(--ease-out);
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-core) 100%);
  color: #060408;
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.55);
}
.btn-outline {
  border: 1px solid var(--gold-border);
  color: var(--gold-pale);
  background: rgba(201, 168, 76, 0.05);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  border-color: var(--gold-border-active);
  background: rgba(201, 168, 76, 0.12);
  color: var(--text-0);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover {
  border-color: var(--gold-border);
  color: var(--gold-bright);
  background: rgba(201, 168, 76, 0.08);
}
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-md { padding: 11px 22px; font-size: 0.9rem; }
.btn-lg { padding: 14px 28px; font-size: 0.98rem; }

/* --- SITE HEADER --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  background: rgba(4, 3, 7, 0.82);
  backdrop-filter: blur(16px);
  transition: all 0.3s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(4, 3, 7, 0.95);
  border-bottom-color: rgba(201, 168, 76, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--text-0);
}
.brand-name em { font-style: normal; color: var(--gold-bright); }
.brand-tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-bright);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  padding: 2px 6px;
  margin-left: 4px;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 7px 12px;
  font-size: 0.88rem; font-weight: 500; color: var(--text-2);
  border-radius: var(--r-md); transition: all 0.2s;
}
.nav-link:hover { color: var(--gold-bright); background: rgba(201, 168, 76, 0.05); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--text-1); }

/* --- HERO SECTION -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  padding: 48px 0 70px;
  overflow: hidden;
}
#quantum-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.4;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text-col { max-width: 600px; }
.announce-strip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 14px 5px 6px;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-pill);
  background: rgba(201, 168, 76, 0.07);
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.announce-tag {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-core));
  color: #060408;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: var(--r-pill);
}
.announce-text { font-size: 0.8rem; font-weight: 500; color: var(--gold-pale); }

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 800;
  color: var(--text-0);
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.hero-sub {
  color: var(--text-2);
  font-size: 1.04rem;
  line-height: 1.72;
  margin-bottom: 26px;
}

/* Install pill */
.install-pill {
  display: flex; align-items: center; gap: 10px;
  background: rgba(14, 12, 22, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 6px 8px 6px 12px;
  margin-bottom: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 660px;
}
.install-lang-tabs { display: flex; gap: 3px; }
.install-tab {
  padding: 3px 8px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  color: var(--text-3); border-radius: var(--r-sm);
  transition: all 0.15s;
}
.install-tab.active { background: rgba(201, 168, 76, 0.15); color: var(--gold-bright); }
.install-cmd {
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--text-1); flex: 1; overflow: hidden; text-overflow: ellipsis;
}
.install-copy {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  font-size: 0.74rem; font-weight: 600;
  color: var(--gold-bright);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  transition: all 0.15s;
}
.install-copy:hover { background: rgba(201, 168, 76, 0.2); }

.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }

.hero-trust {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-3); font-size: 0.78rem; font-weight: 500;
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-check { color: var(--gold-bright); font-weight: 700; font-size: 0.88rem; }
.trust-divider { width: 4px; height: 4px; border-radius: 50%; background: rgba(201, 168, 76, 0.3); }

/* --- RIGHT HERO: DEVELOPER CONSOLE MOCKUP -------------------------------- */
.hero-visual-col { position: relative; }
.dev-console-window {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(201, 168, 76, 0.1);
  transition: transform 0.3s var(--ease-out);
}
.dev-console-window:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border-active);
}

.console-win-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(14, 12, 22, 0.95);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}
.win-dots { display: flex; gap: 6px; }
.win-dot { width: 10px; height: 10px; border-radius: 50%; }
.win-dot.r { background: #FF5F56; }
.win-dot.y { background: #FFBD2E; }
.win-dot.g { background: #27C93F; }

.console-title {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-2);
}
.console-live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 700; color: var(--success);
  background: rgba(52, 211, 153, 0.1);
  padding: 3px 8px; border-radius: var(--r-pill);
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.console-live-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.console-stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 14px 18px;
  background: rgba(6, 5, 10, 0.7);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  gap: 12px;
}
.c-stat-val {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  color: var(--text-0);
}
.c-stat-lbl {
  font-size: 0.68rem; color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.06em;
}

.console-feed {
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 9px;
  background: var(--bg-code);
  font-family: var(--font-mono); font-size: 0.78rem;
}
.feed-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 168, 76, 0.08);
  transition: all 0.2s;
}
.feed-row:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: rgba(201, 168, 76, 0.25);
}
.feed-id { color: var(--gold-bright); font-weight: 600; }
.feed-amt { color: var(--text-1); }
.feed-lat { color: var(--text-3); font-size: 0.72rem; }
.feed-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem; font-weight: 700; color: var(--success);
  background: rgba(52, 211, 153, 0.12);
  padding: 2px 7px; border-radius: var(--r-sm);
}

.console-footer-bar {
  padding: 10px 18px;
  background: rgba(14, 12, 22, 0.85);
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; color: var(--text-3);
}

/* --- STACK STRIP --------------------------------------------------------- */
.stack-strip {
  padding: 30px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  background: rgba(8, 7, 13, 0.6);
}
.stack-label {
  text-align: center;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--text-3); text-transform: uppercase; margin-bottom: 16px;
}
.stack-pills {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.stack-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px;
  background: rgba(14, 12, 22, 0.8);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-pill);
  font-size: 0.8rem; color: var(--text-2);
}
.stack-pill strong { color: var(--text-0); }
.stack-pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-core); }

/* --- HOW IT WORKS (3 CLEAN STEPS) ---------------------------------------- */
.steps-section { padding: 84px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  padding: 30px 24px;
  transition: all 0.3s var(--ease-out);
  display: flex; flex-direction: column;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow-soft);
}
.step-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.step-num {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--gold-core);
}
.step-badge {
  font-size: 0.7rem; font-weight: 700; color: var(--gold-bright);
  background: rgba(201, 168, 76, 0.1);
  padding: 3px 8px; border-radius: var(--r-sm);
  border: 1px solid var(--gold-border);
}
.step-card h3 {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 10px;
}
.step-card p {
  font-size: 0.86rem; color: var(--text-2); line-height: 1.62;
  margin-bottom: 18px; flex: 1;
}
.step-code-pill {
  background: var(--bg-code);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--gold-bright);
}

/* --- DEVELOPER ADVANTAGES (4-CARD METRICS) -------------------------------- */
.metrics-section { padding: 40px 0 84px; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.metric-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  padding: 28px 22px;
  transition: all 0.3s var(--ease-out);
}
.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.metric-icon-wrap {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.metric-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  font-weight: 800;
  color: var(--text-0);
  line-height: 1.1;
  margin-bottom: 6px;
}
.metric-label {
  font-weight: 600; font-size: 0.94rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
}
.metric-desc {
  font-size: 0.84rem; color: var(--text-2); line-height: 1.6;
}

/* --- CODE PLAYGROUND SECTION --------------------------------------------- */
.code-section { padding: 80px 0; }
.code-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
  align-items: center;
}
.code-info-col h3 {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700; color: var(--text-0);
  line-height: 1.25; margin: 14px 0 16px;
}
.code-info-col p {
  color: var(--text-2); font-size: 0.96rem; line-height: 1.7; margin-bottom: 22px;
}
.spec-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.spec-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.86rem; color: var(--text-1);
}
.spec-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-bright); margin-top: 8px; flex-shrink: 0;
}

.code-window {
  background: var(--bg-code);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.code-win-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(14, 12, 22, 0.95);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}
.lang-tabs { display: flex; gap: 4px; }
.lang-tab {
  padding: 4px 10px;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
  color: var(--text-3); border-radius: var(--r-sm);
  transition: all 0.15s;
}
.lang-tab.active { background: rgba(201, 168, 76, 0.18); color: var(--gold-bright); }

.code-body {
  padding: 20px; max-height: 380px; overflow-y: auto;
}
.code-body pre {
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.7;
  color: var(--text-code);
}

.t-comment { color: #625c7a; font-style: italic; }
.t-kw      { color: #E8C97A; font-weight: 600; }
.t-str     { color: #A7F3D0; }
.t-num     { color: #FCA5A5; }
.t-type    { color: #93C5FD; }
.t-fn      { color: #C4B5FD; }
.t-prop    { color: #FED7AA; }

.code-copy-bar {
  display: flex; justify-content: flex-end;
  padding: 8px 16px;
  background: rgba(14, 12, 22, 0.6);
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}
.code-copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 600; color: var(--gold-bright);
  padding: 4px 10px; border-radius: var(--r-sm);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--gold-border);
  transition: all 0.15s;
}
.code-copy-btn:hover { background: rgba(201, 168, 76, 0.2); }

/* --- LIVE VERIFICATION SANDBOX ------------------------------------------- */
.sandbox-section { padding: 80px 0; }
.sandbox-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.sandbox-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 24px;
  background: rgba(14, 12, 22, 0.95);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}
.sandbox-title {
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 700;
  color: var(--text-0); display: flex; align-items: center; gap: 8px;
}
.live-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.75rem; font-weight: 600; color: var(--success);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s infinite ease-in-out;
}

.sandbox-body { padding: 28px; }
.sandbox-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
.sb-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--gold-bright); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.sb-presets { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.preset-btn {
  font-size: 0.74rem; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-sm);
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid var(--gold-border);
  color: var(--text-2); transition: all 0.15s;
}
.preset-btn:hover, .preset-btn.active {
  background: rgba(201, 168, 76, 0.18);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.sb-textarea {
  width: 100%; height: 170px;
  background: var(--bg-code);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 12px;
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.6;
  color: var(--text-1); resize: none; outline: none;
  transition: border-color 0.2s;
}
.sb-textarea:focus { border-color: var(--gold-bright); box-shadow: 0 0 10px var(--gold-glow); }

.sb-controls {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; flex-wrap: wrap;
}

.sb-output {
  height: 226px;
  background: var(--bg-code);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 14px;
  overflow-y: auto;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.65;
}
.out-line { margin-bottom: 6px; display: flex; gap: 8px; }
.out-t { color: var(--text-3); flex-shrink: 0; }
.out-v { color: var(--text-2); word-break: break-all; }
.out-line.ok .out-v { color: #6EE7B7; }
.out-line.warn .out-v { color: #FBBF24; font-weight: 600; }
.out-line.err .out-v { color: #F87171; font-weight: 600; }
.out-line.info .out-v { color: #93C5FD; }

/* --- SECURITY PILLARS (CLEAN 3-COLUMN) ------------------------------------ */
.security-section { padding: 80px 0; }
.security-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.sec-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  padding: 30px 24px;
  transition: all 0.3s;
}
.sec-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border-active);
  background: var(--bg-card-hover);
}
.sec-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.sec-card h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 10px;
}
.sec-card p {
  font-size: 0.86rem; color: var(--text-2); line-height: 1.65;
}

/* --- USE CASES ----------------------------------------------------------- */
.usecases-section { padding: 80px 0; }
.usecases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  padding: 30px 24px;
  transition: all 0.3s;
}
.usecase-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border-active);
  background: var(--bg-card-hover);
}
.usecase-badge {
  font-size: 0.7rem; font-weight: 700; color: var(--gold-bright);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.usecase-card h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 10px;
}
.usecase-card p {
  font-size: 0.86rem; color: var(--text-2); line-height: 1.65;
}

/* --- PRICING ------------------------------------------------------------- */
.pricing-section { padding: 80px 0; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  padding: 34px 26px;
  display: flex; flex-direction: column;
  transition: all 0.3s var(--ease-out);
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border-active);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.pricing-card.pro {
  border-color: var(--gold-core);
  background: linear-gradient(180deg, rgba(20, 17, 34, 0.9) 0%, rgba(14, 12, 22, 0.95) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px var(--gold-glow-soft);
}
.pricing-tier {
  font-size: 0.72rem; font-weight: 700; color: var(--gold-bright);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.pricing-name {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 10px;
}
.pricing-price {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 800;
  color: var(--text-0); line-height: 1; margin-bottom: 12px;
}
.pricing-price sub { font-size: 0.85rem; font-weight: 500; color: var(--text-3); }
.pricing-desc {
  font-size: 0.85rem; color: var(--text-2); line-height: 1.58;
  margin-bottom: 24px; min-height: 44px;
}
.pricing-feats {
  display: flex; flex-direction: column; gap: 11px;
  margin-bottom: 28px; flex: 1;
}
.p-feat { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; color: var(--text-1); }
.p-check { color: var(--gold-bright); font-weight: 700; }
.pricing-cta { margin-top: auto; }

/* --- FAQ SECTION --------------------------------------------------------- */
.faq-section { padding: 80px 0 90px; }
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 1040px; margin: 0 auto;
}
.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  transition: border-color 0.25s;
}
.faq-card:hover { border-color: var(--gold-border-active); }
.faq-card h4 {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
  color: var(--text-0); margin-bottom: 8px;
}
.faq-card p {
  font-size: 0.86rem; color: var(--text-2); line-height: 1.62;
}

/* --- SITE FOOTER --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  background: #030205;
  padding: 60px 0 28px;
}
.footer-top {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 44px; margin-bottom: 44px;
}
.footer-tagline {
  color: var(--text-3); font-size: 0.84rem; line-height: 1.68;
  max-width: 300px; margin-top: 12px;
}
.footer-col-h {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-link { font-size: 0.84rem; color: var(--text-2); transition: color 0.15s; }
.footer-link:hover { color: var(--gold-bright); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem; color: var(--text-3);
  flex-wrap: wrap; gap: 14px;
}
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: var(--text-3); transition: color 0.15s; }
.footer-legal a:hover { color: var(--gold-bright); }

/* --- SCROLL REVEAL ------------------------------------------------------- */
.fade-up {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE BREAKPOINTS ---------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .code-layout { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .sandbox-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
