/* ============================================
   Borg Backup Server — Main Stylesheet
   Modern, clean design with Inter font family
   ============================================ */

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

:root {
  --bg: #0a0e17;
  --bg-alt: #0f1420;
  --surface: #151a27;
  --surface-hover: #1a2033;
  --border: #1e2740;
  --border-light: #2a3555;
  --text: #e8edf5;
  --text-secondary: #a8b3c5;
  --text-muted: #8494ad;
  --accent: #4f8ff7;
  --accent-light: #6da3ff;
  --accent-glow: rgba(79, 143, 247, 0.15);
  --accent-glow-strong: rgba(79, 143, 247, 0.25);
  --green: #34d399;
  --green-bg: rgba(52, 211, 153, 0.1);
  --green-border: rgba(52, 211, 153, 0.25);
  --purple: #a78bfa;
  --orange: #fb923c;
  --red: #f87171;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 20px rgba(0,0,0,0.2);
  --shadow-lg: 0 4px 30px rgba(0,0,0,0.4);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  height: var(--nav-height);
}

.nav.scrolled {
  background: rgba(10, 14, 23, 0.95);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

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

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
}

.nav-sponsor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(234,74,170,0.4);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ea4aaa !important;
  transition: all var(--transition);
}
.nav-sponsor:hover {
  background: rgba(234,74,170,0.1);
  border-color: #ea4aaa;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0;
  transition: color var(--transition);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--text); }

.nav-dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary) !important;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--surface-hover);
  color: var(--text) !important;
}

.nav-dropdown-menu a svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.nav-dropdown-sub {
  padding-left: 40px !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

.nav-dropdown-sub:hover {
  color: var(--text-secondary) !important;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
  font-family: inherit;
}

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

.btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 15px rgba(79, 143, 247, 0.3);
}

.btn-primary:hover {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 6px 25px rgba(79, 143, 247, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 24px;
}

.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 16px 40px; font-size: 1.1rem; border-radius: var(--radius); }

.btn svg { width: 20px; height: 20px; }

/* ---- Hero ---- */
.hero {
  padding: 140px 0 80px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-top {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 40px;
  align-items: start;
}

.hero-text {
  position: relative;
  z-index: 1;
  padding-top: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--green-border);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--text-secondary);
  margin: 0 0 28px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-buttons .btn-lg {
  padding: 12px 28px;
  font-size: 0.95rem;
}

.hero-release {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-release a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.hero-release a:hover {
  color: var(--accent);
}

.hero-grid-security {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.hero-screenshot {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-screenshot-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(79, 143, 247, 0.06);
  overflow: hidden;
}

.hero-screenshot-frame img,
.hero-screenshot-frame video {
  border-radius: calc(var(--radius-lg) - 4px);
  display: block;
  width: 100%;
}

.hero-screenshot-caption {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .hero { text-align: center; padding: 120px 0 60px; }
  .hero-top { margin-bottom: 28px; }
  .hero-grid, .hero-grid-security { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { padding-top: 0; }
  .hero .tagline { margin: 0 auto 28px; }
  .hero-buttons { justify-content: center; }
}

/* ---- Sections ---- */
section { padding: 100px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-title.center { text-align: center; }

.section-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 56px;
}

.section-sub.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-sub { margin-bottom: 0; }

/* ---- Feature Cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.feature-icon.blue { background: rgba(79, 143, 247, 0.12); color: var(--accent); }
.feature-icon.green { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.feature-icon.purple { background: rgba(167, 139, 250, 0.12); color: var(--purple); }
.feature-icon.orange { background: rgba(251, 146, 60, 0.12); color: var(--orange); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Highlight Sections (Feature Deep Dives) ---- */
.highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.highlight.reverse { direction: rtl; }
.highlight.reverse > * { direction: ltr; }

.highlight-content .section-label { margin-bottom: 12px; }

.highlight-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.highlight-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.highlight-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.highlight-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.highlight-features li svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

/* ---- Provider Grid ---- */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.provider-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.provider-item:hover {
  border-color: var(--border-light);
  background: var(--surface-hover);
}

/* ---- Demo Section ---- */
.demo-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.demo-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.demo-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.demo-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.demo-spec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.demo-spec-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.demo-spec-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.demo-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.demo-form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.demo-form-card .form-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 12px;
  text-align: center;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 16px;
  display: none;
}

.form-message.success {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
  display: block;
}

.form-message.error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--red);
  display: block;
}

/* ---- Coming Soon / CTA ---- */
.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--accent));
}

.cta-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ---- Architecture Diagram ---- */
.arch-diagram-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  margin-bottom: 40px;
}

.arch-diagram-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 4px);
}

.arch-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.arch-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.arch-feature svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Guide Pages ---- */
.guide-prereqs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
}

.guide-prereqs h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.guide-prereqs li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 24px;
  position: relative;
}

.guide-prereqs li::before {
  content: "\2713";
  color: var(--green);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.guide-prereqs a {
  color: var(--accent);
  text-decoration: underline;
}

.guide-step {
  display: flex;
  gap: 24px;
  margin-bottom: 56px;
}

.guide-step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.guide-step-content {
  flex: 1;
  min-width: 0;
}

.guide-step-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.guide-step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.guide-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
}

.guide-list li::before {
  content: "\2022";
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.guide-screenshot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-top: 20px;
}

.guide-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 3px);
}

.guide-code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.guide-code code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
}

.guide-next {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
}

.guide-next h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.guide-next p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.guide-next-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guide-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.guide-benefit svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-cta {
  text-align: center;
  padding: 40px 0;
}

.guide-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

/* ---- Guides Grid ---- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

a.guide-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.guide-card-icon {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.guide-card-icon img {
  border-radius: 8px;
}

.guide-card-icon-fallback {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

.guide-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.guide-card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.guide-card-badge {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  width: fit-content;
}

.guide-card-soon {
  opacity: 0.6;
}

/* ---- Stats Row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 0;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 4px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }

.footer-disclaimer {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Demo Page ---- */
.demo-page { padding: 140px 0 80px; min-height: 100vh; }

.demo-container {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.demo-status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 40px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.countdown {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.demo-credentials {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

.demo-cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.demo-cred-row + .demo-cred-row { border-top: 1px solid var(--border); }

.demo-cred-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.demo-cred-value {
  font-family: 'SF Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 24px 0 16px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 3px;
  transition: width 1s linear;
}

.progress-bar-fill.striped {
  background: repeating-linear-gradient(
    -45deg,
    var(--accent),
    var(--accent) 10px,
    var(--purple) 10px,
    var(--purple) 20px
  );
  background-size: 28px 100%;
  animation: stripe-scroll 0.6s linear infinite;
}

.progress-bar-fill.striped.done {
  animation: none;
  background: linear-gradient(90deg, var(--green), var(--accent));
}

@keyframes stripe-scroll {
  0% { background-position: 0 0; }
  100% { background-position: 28px 0; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight { gap: 48px; }
  .demo-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .arch-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 12px 0; }

  .nav-dropdown-toggle { padding: 12px 0 !important; }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: var(--bg);
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
    border-radius: 0;
  }

  .nav-dropdown-menu a {
    padding: 8px 0;
  }

  .nav-dropdown-menu a:hover {
    background: none;
  }

  .nav-dropdown-sub {
    padding-left: 26px !important;
  }

  .nav-dropdown-divider {
    margin: 4px 0;
  }

  .nav-cta { text-align: center; margin-top: 8px; }

  .hero { padding: 120px 0 60px; }

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

  .highlight, .highlight.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .demo-grid { grid-template-columns: 1fr; }
  .demo-form-card { padding: 28px; }
  .demo-specs { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .arch-features { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .guide-step { flex-direction: column; gap: 16px; }
  .guide-step-number { width: 40px; height: 40px; min-width: 40px; font-size: 1.1rem; }
  .guide-next-benefits { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }

  .cta-card { padding: 40px 24px; }

  section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}

/* ---- Comparison Page ---- */
.compare-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.compare-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.compare-summary-bbs {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(79, 143, 247, 0.1);
}

.compare-summary-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}

.compare-summary-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.compare-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.compare-tag-blue { background: rgba(79, 143, 247, 0.12); color: var(--accent); }
.compare-tag-green { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.compare-tag-purple { background: rgba(167, 139, 250, 0.12); color: var(--purple); }
.compare-tag-muted { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }

/* Comparison Table */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 700px;
}

.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  background: var(--bg);
}

.compare-row.compare-header {
  background: var(--surface);
}

.compare-row.compare-group-header {
  background: var(--surface);
}

.compare-cell {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--border);
}

.compare-cell:last-child { border-right: none; }

.compare-feature-cell {
  font-weight: 500;
  color: var(--text);
}

.compare-header .compare-cell {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  padding: 14px 16px;
}

.compare-bbs-cell {
  background: rgba(79, 143, 247, 0.04);
}

.compare-yes {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}

.compare-no {
  color: var(--text-muted);
  font-size: 1rem;
}

.compare-partial {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Detailed Comparison Sections */
.compare-detail {
  margin-bottom: 64px;
}

.compare-detail:last-child { margin-bottom: 0; }

.compare-detail-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.compare-detail-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.compare-detail-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-detail-point {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.compare-detail-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.compare-detail-point strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.compare-detail-point p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

/* Comparison responsive */
@media (max-width: 1024px) {
  .compare-summary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .compare-summary-grid { grid-template-columns: 1fr; }
  .compare-detail-point { flex-direction: column; gap: 12px; }
  .compare-detail-icon { width: 36px; height: 36px; min-width: 36px; }
}

@media (max-width: 480px) {
  .compare-table { min-width: 600px; }
}
