/* ── Theme ─────────────────────────────────────────────── */
:root,
[data-theme="warm"] {
  --bg-canvas: #f7f6f4;
  --bg-surface: #ffffff;
  --bg-elev: #fafaf8;
  --bg-hover: #eeecea;
  --bg-active: #e0deda;
  --text: #1e2a3a;
  --text-strong: #0f1720;
  --text-muted: #5c6b7a;
  --accent: #e8600a;
  --accent-hover: #cc5208;
  --accent-soft: rgba(232, 96, 10, 0.08);
  --accent-text: #ffffff;
  --border: #e2e0dc;
  --border-light: rgba(226, 224, 220, 0.6);
  --danger: #dc3545;
  --success: #22c55e;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 1px 2px rgba(15, 23, 32, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 32, 0.06);
  --shadow-lg: 0 8px 32px rgba(15, 23, 32, 0.08);
}

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

html {
  background: var(--bg-canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
}

/* ── Header ───────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 246, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.logo img {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  margin-right: 18px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .nav-link-disabled {
  cursor: default;
  opacity: 0.5;
}

.site-nav .nav-link-disabled:hover {
  color: var(--text-muted);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: 0 1px 4px rgba(232, 96, 10, 0.2);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 2px 8px rgba(232, 96, 10, 0.25);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-lg {
  padding: 11px 26px;
  font-size: 14px;
}

/* ── Hero Row ─────────────────────────────────────────── */
.hero-row {
  padding: 72px 24px 36px;
}

.hero-row-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: center;
}

.hero-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1,
.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-strong);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.hero-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.showcase-frame {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  user-select: none;
}

.showcase-placeholder i {
  font-size: 36px;
  opacity: 0.35;
}

.showcase-placeholder span {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.45;
  text-align: center;
  padding: 0 16px;
}

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: 40px 24px;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}

.section-subtitle code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 3px;
}

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

.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.feature-card i {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.feature-card h3 {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Plans Grid ───────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.plan-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s;
}

.plan-card:hover {
  border-color: var(--border-light);
}

.plan-featured {
  border-color: var(--accent);
  border-width: 1.5px;
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.7rem;
  font-weight: 650;
  padding: 3px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.plan-price {
  margin-bottom: 2px;
}

.price-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-strong);
}

.price-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-yearly {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.plan-storage {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.plan-features {
  list-style: none;
  margin-bottom: 18px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text);
  padding: 3px 0;
  line-height: 1.4;
}

.plan-features li i {
  color: var(--success);
  font-size: 0.72rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.plan-btn {
  width: 100%;
}

.plan-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

.plan-warning strong {
  color: var(--text);
}

/* ── Add-ons Grid ─────────────────────────────────────── */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.addon-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 16px;
  transition: border-color 0.15s;
}

.addon-card:hover {
  border-color: var(--accent);
}

.addon-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.addon-header i {
  font-size: 18px;
  color: var(--accent);
}

.addon-header h3 {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text-strong);
}

.addon-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.addon-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── FAQ ──────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong);
  cursor: pointer;
  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-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.15s;
}

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

.faq-item p {
  padding: 0 18px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA ──────────────────────────────────────────────── */
.cta {
  padding: 48px 24px;
  text-align: center;
}

.cta h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

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

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: #111318;
  border-top: 1px solid #1e2128;
  padding: 28px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #d4d0ca;
}

.footer-logo img {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.8rem;
  color: #706c66;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
    padding: 0 16px;
  }

  .site-nav {
    gap: 10px;
    margin: 0;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .header .btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .hero-row {
    padding: 72px 16px 24px;
  }

  .hero-row-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-text {
    text-align: center;
  }

  .hero h1,
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-logo {
    max-width: 220px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .section {
    padding: 32px 16px;
  }

  .section-title {
    font-size: 1.3rem;
  }

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

  .plan-featured {
    transform: none;
  }

  .plan-card {
    padding: 20px 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
