/* Jackdaw Mail — Swiss Editorial Design System */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Light Theme (Swiss Paper & Warm Industrial) */
  --bg-page: #fbf9f5;
  --bg-surface: #ffffff;
  --bg-subtle: #f3efea;
  --bg-hover: #ede7df;
  --border: #e3dcd1;
  --border-subtle: #eee9e0;
  
  --text-primary: #181716;
  --text-secondary: #5e5950;
  --text-muted: #878075;
  
  --accent: #b86b14;
  --accent-hover: #9c580c;
  --accent-subtle: #fdf5ea;
  --accent-border: #f0d5b5;
  
  --sage: #2e6b60;
  --sage-subtle: #ebf4f1;
  --sage-border: #b7dcd5;

  --shadow-sm: 0 1px 2px rgba(24, 23, 22, 0.04);
  --shadow-md: 0 4px 16px rgba(24, 23, 22, 0.06), 0 1px 3px rgba(24, 23, 22, 0.03);
  --shadow-lg: 0 12px 32px rgba(24, 23, 22, 0.08), 0 2px 6px rgba(24, 23, 22, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --transition-spring: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-page: #131211;
  --bg-surface: #1a1918;
  --bg-subtle: #22201d;
  --bg-hover: #2b2825;
  --border: #312d28;
  --border-subtle: #252320;

  --text-primary: #f0eee9;
  --text-secondary: #aaa499;
  --text-muted: #78736a;

  --accent: #d98223;
  --accent-hover: #ea9638;
  --accent-subtle: #2d1d0c;
  --accent-border: #4d3115;

  --sage: #459a8c;
  --sage-subtle: #132421;
  --sage-border: #224740;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page: #131211;
    --bg-surface: #1a1918;
    --bg-subtle: #22201d;
    --bg-hover: #2b2825;
    --border: #312d28;
    --border-subtle: #252320;

    --text-primary: #f0eee9;
    --text-secondary: #aaa499;
    --text-muted: #78736a;

    --accent: #d98223;
    --accent-hover: #ea9638;
    --accent-subtle: #2d1d0c;
    --accent-border: #4d3115;

    --sage: #459a8c;
    --sage-subtle: #132421;
    --sage-border: #224740;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--accent-subtle);
  color: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-spring);
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

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

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-page) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-spring), border-color var(--transition-spring);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: var(--bg-surface);
  transition: background var(--transition-spring), color var(--transition-spring), transform var(--transition-spring);
}

.mobile-menu-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.mobile-menu-toggle:active {
  transform: scale(0.97);
}

.mobile-menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  white-space: nowrap;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

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

.nav-link {
  font-size: 14px;
  font-weight: 550;
  color: var(--text-secondary);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.language-option {
  min-width: 31px;
  padding: 6px 7px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: color var(--transition-spring), background var(--transition-spring), transform var(--transition-spring);
}

.language-option:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.language-option.active {
  color: #ffffff;
  background: var(--accent);
}

.language-option:active {
  transform: scale(0.96);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all var(--transition-spring);
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 18px;
  min-height: 40px;
  border-radius: var(--radius-md);
  transition: all var(--transition-spring);
  text-align: center;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(184, 107, 20, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 3px 8px rgba(184, 107, 20, 0.35);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

/* Hero Section */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 860px;
  margin: 0 auto 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.platform-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.platform-indicator span {
  font-weight: 500;
}

/* Specs Bar */
.specs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 48px 0 64px;
}

.spec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-spring), border-color var(--transition-spring);
}

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

.spec-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.spec-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.spec-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Product Preview / Showcase */
.showcase {
  margin: 0 0 88px;
}

.showcase-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.showcase-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.showcase-tabs {
  max-width: 100%;
  display: flex;
  gap: 4px;
  background: var(--bg-page);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.showcase-tab {
  min-height: 34px;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-spring);
}

.showcase-tab:hover {
  color: var(--text-primary);
}

.showcase-tab.active {
  background: var(--bg-surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.showcase-content {
  position: relative;
  min-height: 480px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.showcase-panel[hidden] {
  display: none;
}

.showcase-panel {
  display: none;
  width: 100%;
}

.showcase-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.showcase-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: block;
}

.showcase-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.showcase-meta strong {
  color: var(--text-primary);
}

/* Feature Sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

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

.section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Features Grid (Non-slop, dense & informative) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-spring), border-color var(--transition-spring);
}

.feature-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-body ul {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-body li {
  position: relative;
  padding-left: 18px;
}

.feature-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Раздел тарифов */
.plans-section {
  background: var(--bg-subtle);
}

.plans-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan-offer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.plan-offer-pro {
  border-color: var(--accent-border);
}

.plan-offer-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.plan-offer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.plan-offer h3 {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.plan-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-tag {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-price {
  margin-top: 24px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.plan-summary {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.plan-features li {
  position: relative;
  padding-left: 18px;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 800;
}

.plan-offer-action {
  width: 100%;
  margin-top: 28px;
}

.billing-checkout-link.is-unavailable {
  cursor: not-allowed;
  opacity: 0.58;
}

.billing-status {
  min-height: 2.8em;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.payment-note {
  max-width: 820px;
  margin: 24px auto 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

/* Comparison Table */
.comparison-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-subtle);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.highlight-col {
  background: var(--accent-subtle);
  font-weight: 650;
  color: var(--accent);
  border-left: 1px solid var(--accent-border);
  border-right: 1px solid var(--accent-border);
}

th.highlight-col {
  background: color-mix(in srgb, var(--accent-subtle) 80%, var(--bg-subtle));
  color: var(--accent);
}

.badge-yes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sage);
  font-weight: 650;
}

.badge-no {
  color: var(--text-muted);
  font-weight: 500;
}

/* Local-first & Privacy Architecture */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.arch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.arch-flow {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.arch-flow .tag {
  color: var(--accent);
  font-weight: 700;
}

.arch-flow .safe {
  color: var(--sage);
  font-weight: 700;
}

/* Download Section */
.download-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin: 60px auto 80px;
  box-shadow: var(--shadow-md);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-spring);
}

.download-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.download-card.primary-os {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.os-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.os-name {
  font-size: 18px;
  font-weight: 750;
  color: var(--text-primary);
}

.os-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.os-details {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-spring);
}

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

.faq-question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.faq-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-spring);
  color: var(--text-muted);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 56px 0 40px;
  margin-top: auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.6;
  margin-top: 12px;
}

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

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

.footer-col-title {
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .specs-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .arch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    gap: 8px;
  }
  .header-actions {
    gap: 6px;
  }
  .brand-badge,
  .header-actions .btn-secondary {
    display: none;
  }
  .header-actions .btn-primary {
    padding-inline: 12px;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    margin-inline-start: auto;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open {
    display: flex;
  }
  .nav-link {
    padding: 11px 12px;
    border-radius: var(--radius-sm);
  }
  .nav-link:hover {
    background: var(--bg-hover);
  }
  .specs-bar {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .download-section {
    padding: 28px 20px;
  }
  .showcase-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
