/* ════════════════════════════════════════════════════
   SQLBook Landing Page — Light Theme
   Font: DM Serif Display (headings) + DM Sans (body) + DM Mono (code)
   ════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #2563eb;
  --accent-dark:  #1d4ed8;
  --accent-light: #eff6ff;
  --text-1:       #0f172a;
  --text-2:       #334155;
  --text-3:       #64748b;
  --text-4:       #94a3b8;
  --bg:           #f8fafc;
  --bg-white:     #ffffff;
  --border:       #e2e8f0;
  --border-mid:   #cbd5e1;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --radius:       12px;

  --mysql-c: #e8840c; --mysql-bg: #fff7ed;
  --pg-c: #336791;    --pg-bg: #eff6ff;
  --ss-c: #cc2222;    --ss-bg: #fff1f1;
  --ora-c: #c74634;   --ora-bg: #fff4f2;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.nav-logo { width: 28px; height: 28px; }

.nav-name {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--text-1);
  letter-spacing: -.01em;
}

.nav-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 450;
  color: var(--text-2);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-links a:hover { background: var(--border); color: var(--text-1); }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: background .12s, transform .08s, box-shadow .12s;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
.btn-primary:active { transform: translateY(0); }

.btn-sub {
  font-size: 11px;
  font-weight: 400;
  opacity: .8;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  background: transparent;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--border-mid);
  transition: border-color .12s, color .12s, background .12s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  color: var(--text-3);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: not-allowed;
  opacity: .6;
}

/* ── Section labels & titles ── */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text-1);
  margin-bottom: 20px;
  text-align: center;
}

/* ══ HERO ══════════════════════════════════════════════ */
.hero {
  padding: 100px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f5ff 0%, #f8fafc 60%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .4;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.6) 20%, rgba(0,0,0,.6) 60%, transparent);
}

.hero .container { position: relative; z-index: 1; }

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid #bfdbfe;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text-1);
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
  font-weight: 350;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 64px;
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-n { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--text-1); }
.stat-l { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.stat-sep { width: 1px; height: 40px; background: var(--border-mid); }

/* ── Fake notebook preview ── */
.hero-preview {
  display: flex;
  justify-content: center;
  padding: 0 28px;
  position: relative;
}

.preview-window {
  width: 100%;
  max-width: 800px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.preview-titlebar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--border-mid);
}
.preview-dots span:nth-child(1) { background: #fc5f57; }
.preview-dots span:nth-child(2) { background: #fdbc2c; }
.preview-dots span:nth-child(3) { background: #34c749; }

.preview-filename {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
}

.preview-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.preview-topbar-btn {
  padding: 4px 10px;
  border-radius: 5px;
  color: var(--text-3);
  cursor: default;
}
.preview-topbar-btn:hover { background: var(--bg); }

.preview-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-conn-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-2);
}

.preview-badge {
  background: #22c55e;
  color: white;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
}

.preview-theme-btn {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  color: var(--text-3);
  font-size: 13px;
}

.preview-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

.preview-cell {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 12px;
}

.preview-cell-toolbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-run {
  background: var(--accent);
  color: white;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}

.preview-type {
  padding: 3px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 11px;
}

.preview-conn {
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
}
.preview-mysql { background: var(--mysql-bg); color: var(--mysql-c); }

.preview-code {
  padding: 12px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  background: #fff;
  color: var(--text-2);
}

.preview-line { }
.pk { color: #7c3aed; font-weight: 500; }
.ps { color: #059669; }

.preview-output {
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.preview-output-bar {
  padding: 6px 12px;
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.preview-viz-btn {
  margin-left: auto;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.preview-table { font-size: 11px; font-family: 'DM Mono', monospace; }
.preview-thead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px 12px;
  background: #f1f5f9;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.preview-trow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.preview-trow.alt { background: #f8fafc; }

.preview-cell-note { background: #fdfcff; }
.preview-note-text { padding: 12px 14px; font-size: 13px; color: var(--text-2); }

/* ══ FEATURES ══════════════════════════════════════════ */
.features {
  padding: 100px 0;
  background: var(--bg-white);
}

.features .container { text-align: center; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
  text-align: left;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

.feature-card-wide {
  grid-column: span 2;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

.feature-db-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.db-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.db-chip.mysql    { background: var(--mysql-bg); color: var(--mysql-c); }
.db-chip.postgres { background: var(--pg-bg);    color: var(--pg-c); }
.db-chip.sqlserver{ background: var(--ss-bg);    color: var(--ss-c); }
.db-chip.oracle   { background: var(--ora-bg);   color: var(--ora-c); }

/* ══ HOW IT WORKS ══════════════════════════════════════ */
.how {
  padding: 100px 0;
  background: var(--bg);
}
.how .container { text-align: center; }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
  position: relative;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.step-num {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  color: var(--accent);
  opacity: .25;
  margin-bottom: 12px;
  line-height: 1;
}

.step-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}

.step-body p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.step-line {
  flex-shrink: 0;
  width: 40px;
  height: 1px;
  background: var(--border-mid);
  margin-top: 36px;
}

/* ══ AI SECTION ══════════════════════════════════════════ */
.ai-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.ai-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ai-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.ai-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-list li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 4px;
}

.ai-visual { display: flex; justify-content: center; }

.ai-chat-preview {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 13px;
}

.ai-chat-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-1);
  font-size: 13px;
}

.ai-star { color: var(--accent); font-size: 15px; }

.ai-db-tag {
  margin-left: auto;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.ai-chat-msg {
  padding: 10px 14px;
  line-height: 1.55;
  font-size: 12.5px;
}

.ai-chat-msg.user {
  background: var(--accent);
  color: white;
  border-radius: 0 10px 10px 0;
  margin: 10px 14px 10px 0;
  border-radius: 4px 12px 12px 4px;
  padding: 9px 12px;
}

.ai-chat-msg.assistant { color: var(--text-1); }

.ai-code-preview {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-bottom: 8px;
  overflow: hidden;
  font-size: 11.5px;
}

.ai-code-header-p {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ai-code-preview pre {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 10px;
  color: var(--text-2);
  overflow-x: auto;
  line-height: 1.6;
}

.ai-chat-msg.assistant code {
  font-family: 'DM Mono', monospace;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

.ai-chat-input-preview {
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-4);
  background: #f8fafc;
}

.ai-send {
  width: 28px; height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

/* ══ TIERS ══════════════════════════════════════════════ */
.tiers {
  padding: 100px 0;
  background: var(--bg);
}
.tiers .container { text-align: center; }

.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 48px auto 0;
  text-align: left;
}

.tier-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}

.tier-free {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,.07);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-1);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.tier-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.tier-price {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  color: var(--text-1);
  margin-bottom: 24px;
  line-height: 1;
}
.tier-price span {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text-3);
  font-weight: 400;
}

.tier-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tier-list li {
  font-size: 14px;
  color: var(--text-2);
}

/* ══ DOWNLOAD SECTION ════════════════════════════════════ */
.download-section {
  padding: 100px 0 80px;
  background: var(--bg-white);
  text-align: center;
}

.download-sub {
  max-width: 520px;
  margin: 0 auto 48px;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
}

.download-box {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  text-align: left;
  box-shadow: var(--shadow-md);
}

/* ── Download steps ── */
.dl-step { display: none; }
.dl-step.active { display: block; }

.dl-step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}

.dl-step-sub {
  font-size: 13.5px;
  color: var(--text-3);
  margin-bottom: 24px;
  line-height: 1.55;
}

/* ── Form ── */
.dl-form { display: flex; flex-direction: column; gap: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .01em;
}

.req { color: var(--accent); }

.form-group input,
.form-group select {
  padding: 10px 13px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-1);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form-group input::placeholder { color: var(--text-4); }

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ── OTP inputs ── */
.otp-form { gap: 20px; }

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.otp-digit {
  width: 52px !important;
  height: 60px !important;
  text-align: center;
  font-size: 24px !important;
  font-weight: 700;
  font-family: 'DM Mono', monospace !important;
  border-radius: 10px !important;
  border: 2px solid var(--border) !important;
  padding: 0 !important;
  transition: border-color .12s, box-shadow .12s;
}

.otp-digit:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15) !important;
}

.otp-resend {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}
.otp-resend a { color: var(--accent); text-decoration: none; font-weight: 500; }

.otp-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-4);
  margin-top: 8px;
}

.download-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
}

/* ══ FOOTER ═════════════════════════════════════════════ */
.footer {
  background: var(--text-1);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: white;
}

.footer-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.footer-links a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  color: #94a3b8;
  text-decoration: none;
  transition: color .1s, background .1s;
}
.footer-links a:hover { color: white; background: rgba(255,255,255,.07); }

.footer-copy {
  width: 100%;
  font-size: 12px;
  color: #475569;
  margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-wide { grid-column: span 2; }
  .ai-inner { grid-template-columns: 1fr; gap: 40px; }
  .tiers-grid { grid-template-columns: 1fr; max-width: 420px; }
  .steps { flex-direction: column; align-items: flex-start; padding-left: 24px; }
  .step { flex-direction: row; text-align: left; gap: 20px; }
  .step-line { width: 1px; height: 32px; margin: 0 0 0 28px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: span 1; }
  .hero-stats { gap: 16px; }
  .download-box { padding: 24px 20px; }
  .otp-digit { width: 42px !important; height: 52px !important; font-size: 20px !important; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
}

/* ══ VISUALIZATION SECTION ══════════════════════════════════════════════════ */
.viz-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.viz-section .container { text-align: center; }

.viz-sub {
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
}

.section-title em { font-style: italic; color: var(--accent); }

.viz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}

.viz-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 20px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}

.viz-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

.viz-card-feature {
  background: var(--bg-white);
  border-color: var(--accent);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.viz-chart-preview {
  height: 110px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px 16px 0;
}

.viz-bar-demo {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  height: 90px;
}

.vbar {
  flex: 1;
  background: linear-gradient(180deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 4px 4px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4px;
  transition: opacity .2s;
}

.vbar:nth-child(2) { background: linear-gradient(180deg, #7c3aed, #8b5cf6); opacity: .85; }
.vbar:nth-child(3) { background: linear-gradient(180deg, #059669, #10b981); opacity: .8; }
.vbar:nth-child(4) { background: linear-gradient(180deg, #d97706, #f59e0b); opacity: .85; }

.vbar span { display: none; }

.viz-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 16px 6px;
}

.viz-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 16px;
}

.viz-card-feature h3, .viz-card-feature p { margin: 0 0 8px; }

/* ══ PLATFORM TABS ═══════════════════════════════════════════════════════════ */
.platform-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: nowrap;   /* force single row */
}

.platform-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 18px;  /* reduced so 4 tabs fit */
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-2);
  transition: border-color .12s, background .12s, color .12s;
  min-width: 0;
  flex: 1;
  max-width: 200px;
}

.platform-tab:hover { border-color: var(--border-mid); }

.platform-tab.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.platform-icon { font-size: 22px; line-height: 1; }
.platform-tab > span:nth-child(2) { font-size: 14px; font-weight: 600; }
.platform-sub { font-size: 11px; color: var(--text-3); font-weight: 400; }
.platform-tab.active .platform-sub { color: var(--accent); opacity: .7; }

@media (max-width: 900px) {
  .viz-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .viz-grid { grid-template-columns: 1fr; }
  .platform-tabs { flex-direction: column; align-items: stretch; }
  .platform-tab { min-width: unset; flex-direction: row; justify-content: flex-start; gap: 10px; }
}

/* ── Download section version badge ─── */
.dl-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.dl-version-badge strong { font-weight: 700; }
