/* ==========================================================================
   SnapFlow Download Portal — Modern Dark & Light Theme Stylesheet
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Dark Theme (Default) */
  --bg: #070b14;
  --bg-elevated: rgba(15, 23, 42, 0.78);
  --bg-card: rgba(15, 23, 42, 0.68);
  --bg-card-hover: rgba(30, 41, 59, 0.78);
  --bg-subtle: rgba(148, 163, 184, 0.08);
  --bg-input: rgba(15, 23, 42, 0.9);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);

  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --accent: #38bdf8;
  --accent-2: #6366f1;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --btn-primary-bg: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --btn-primary-hover: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --btn-primary-text: #ffffff;
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.14);
  --warning: #f59e0b;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --nav-bg: rgba(7, 11, 20, 0.76);
  --grid-line: rgba(148, 163, 184, 0.06);
  --orb-1: rgba(56, 189, 248, 0.2);
  --orb-2: rgba(99, 102, 241, 0.22);
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: rgba(255, 255, 255, 0.92);
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: rgba(15, 23, 42, 0.045);
  --bg-input: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --accent: #0284c7;
  --accent-2: #4f46e5;
  --accent-glow: rgba(37, 99, 235, 0.18);
  --btn-primary-bg: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --btn-primary-hover: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  --btn-primary-text: #ffffff;
  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.1);
  --warning: #d97706;

  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 22px 54px rgba(15, 23, 42, 0.11);
  --nav-bg: rgba(248, 250, 252, 0.85);
  --grid-line: rgba(15, 23, 42, 0.04);
  --orb-1: rgba(56, 189, 248, 0.16);
  --orb-2: rgba(99, 102, 241, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.mesh-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(95px);
}

.orb-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: var(--orb-1);
}

.orb-2 {
  width: 620px;
  height: 620px;
  top: 80px;
  right: -180px;
  background: var(--orb-2);
}

.mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, #000 35%, transparent 100%);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.icon-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.34);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.42);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-lg {
  height: 50px;
  padding: 0 22px;
  font-size: 0.98rem;
}

.count-chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 44px;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.34);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.subtle-badge {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.1vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(125deg, #38bdf8 0%, #6366f1 55%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 26px;
  font-size: 1.03rem;
  color: var(--text-secondary);
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.meta-sep {
  opacity: 0.45;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-pill {
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Stylized Hero App Mockup */
.hero-visual {
  position: relative;
}

.app-window {
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.win-dots {
  display: flex;
  gap: 6px;
}

.win-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.win-dots span:nth-child(1) { background: #ef4444; }
.win-dots span:nth-child(2) { background: #f59e0b; }
.win-dots span:nth-child(3) { background: #10b981; }

.win-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
}

.win-ver {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.win-tools-mini {
  display: flex;
  gap: 6px;
}

.mini-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.mini-pill.accent {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--accent);
}

.app-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.tb-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.tb-chip.active {
  background: rgba(37, 99, 235, 0.2);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.app-canvas {
  padding: 18px 16px;
  background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.08), transparent 72%);
}

.dual-monitor-demo {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  align-items: end;
}

.demo-screen {
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  padding: 10px;
  min-height: 148px;
}

.screen-2 {
  min-height: 128px;
}

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.dpi-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--success-bg);
  color: var(--success);
}

.demo-ui-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-bar {
  height: 9px;
  border-radius: 6px;
  background: var(--bg-subtle);
}

.w-70 { width: 70%; }
.w-45 { width: 45%; }
.w-60 { width: 60%; }
.w-80 { width: 80%; }

.ui-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.ui-card {
  height: 52px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.ui-blur-box {
  margin-top: 6px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: repeating-linear-gradient(
    45deg,
    rgba(148, 163, 184, 0.14),
    rgba(148, 163, 184, 0.14) 6px,
    rgba(148, 163, 184, 0.06) 6px,
    rgba(148, 163, 184, 0.06) 12px
  );
  border: 1px dashed var(--border-strong);
}

.selection-overlay {
  position: absolute;
  left: 18%;
  right: 12%;
  top: 24px;
  bottom: 14px;
  border: 2px solid #38bdf8;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.09);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.sel-badge {
  position: absolute;
  top: -13px;
  left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #0284c7;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}

.step-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.45);
}

.step-1 { top: 24px; left: 16px; }
.step-2 { bottom: 18px; left: 48%; }

.callout-bubble {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #4f46e5;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.45);
}

.app-shelf {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.shelf-thumb {
  width: 44px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.shelf-thumb.pinned {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
}

.shelf-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.section-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feat-icon.sky { background: rgba(56, 189, 248, 0.16); }
.feat-icon.indigo { background: rgba(99, 102, 241, 0.16); }
.feat-icon.emerald { background: rgba(16, 185, 129, 0.16); }
.feat-icon.amber { background: rgba(245, 158, 11, 0.16); }
.feat-icon.violet { background: rgba(168, 85, 247, 0.16); }
.feat-icon.rose { background: rgba(244, 63, 94, 0.16); }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Multi-Version Download Hub */
.versions-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.search-wrap {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 40px;
  border-radius: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
}

.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.version-select {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.sync-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 6px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.status-dot.loading {
  background: var(--warning);
}

.status-dot.cached {
  background: var(--accent);
}

.sync-link {
  color: var(--accent);
  font-weight: 600;
}

.sync-link:hover {
  text-decoration: underline;
}

.versions-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.version-card {
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.18s ease;
}

.version-card:hover {
  border-color: var(--border-strong);
}

.version-card.is-latest {
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 12px 34px var(--accent-glow);
}

.version-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.version-id-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text);
}

.badge-latest {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.version-meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: var(--text-muted);
}

.meta-pill {
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.version-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.version-notes {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.notes-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.notes-toggle {
  margin-top: 12px;
  background: transparent;
  border: none;
  padding: 4px 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.notes-toggle:hover {
  text-decoration: underline;
}

.empty-versions {
  text-align: center;
  padding: 40px 20px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
}

/* Quick Start */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.step-card {
  padding: 24px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tip-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.tip-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.tip-content h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.tip-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* FAQ */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.96rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 44px;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  padding: 11px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hide-sm,
  .nav-dl-btn {
    display: none;
  }

  .version-card {
    padding: 18px;
  }

  .btn-lg {
    width: 100%;
  }
}
