/* TunedVoice Website Styles */

:root {
  color-scheme: light dark;

  /* Brand palette */
  --primary: #5b7cff;
  --primary-light: #4b8dff;
  --primary-dark: #3d5afe;
  --purple: #7b61ff;
  --magenta: #b34dff;
  --accent: linear-gradient(135deg, #4b8dff 0%, #7b61ff 55%, #b34dff 100%);

  /* Light mode */
  --bg: #f7f8fc;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --bg-strong: #ffffff;
  --text: #161926;
  --text-muted: #5e6478;
  --text-light: #8892a8;
  --border: rgba(91, 124, 255, 0.12);
  --border-strong: rgba(91, 124, 255, 0.22);
  --shadow: 0 24px 60px rgba(45, 65, 120, 0.12);
  --shadow-sm: 0 8px 24px rgba(45, 65, 120, 0.08);
  --code-bg: #f0f2f8;

  /* Layout */
  --max-width: 1160px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --bg-elevated: rgba(30, 33, 44, 0.74);
    --bg-strong: #1a1d28;
    --text: #f3f4f8;
    --text-muted: #b2b8ca;
    --text-light: #6e7690;
    --border: rgba(122, 143, 255, 0.16);
    --border-strong: rgba(122, 143, 255, 0.28);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.2);
    --code-bg: #1a1d28;
  }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin-top: 0; }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-strong);
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* --- Container --- */
.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1rem;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.logo img {
  width: 2rem;
  height: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 180ms ease;
}

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

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

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 4rem);
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.badge--accent {
  border-color: var(--border-strong);
  color: var(--primary);
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 1.25rem;
}

h1 em {
  font-style: normal;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-install {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-brew__code {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
  user-select: all;
}

.hero-brew__code:hover {
  border-color: var(--primary);
  background: rgba(91, 124, 255, 0.08);
}

.hero-install__or {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.hero-install__dmg {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-install__dmg:hover {
  text-decoration: underline;
}

.hero-actions__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 32px rgba(91, 124, 255, 0.3);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(91, 124, 255, 0.38);
}

.btn--secondary {
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.btn--ghost {
  color: var(--text-muted);
  background: none;
  border: none;
  font-weight: 600;
  padding: 0.8rem 0.5rem;
  min-height: auto;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--text);
  transform: none;
  box-shadow: none;
  text-decoration: underline;
}

.btn--large {
  min-height: 3.5rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* --- Hero Card (visual) --- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: min(100%, 400px);
  padding: 1px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  box-shadow: var(--shadow);
}

.hero-card__glow {
  position: absolute;
  inset: 15% 12%;
  background: radial-gradient(circle, rgba(91, 124, 255, 0.3), transparent 70%);
  filter: blur(30px);
}

.hero-card__screen {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: calc(var(--radius-lg) - 1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 246, 255, 0.85)),
              rgba(255, 255, 255, 0.8);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

@media (prefers-color-scheme: dark) {
  .hero-card__screen {
    background: linear-gradient(180deg, rgba(22, 24, 34, 0.96), rgba(16, 18, 26, 0.92)),
                rgba(22, 24, 34, 0.92);
  }
}

.hero-card__label {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(91, 124, 255, 0.12);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-card__demo {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
}

.hero-card__typed {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  min-height: 4rem;
  margin: 0;
}

.hero-card__typed::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--primary);
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-card__waveform {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.4rem;
  align-items: end;
  height: 3.5rem;
  margin-bottom: 1rem;
}

.hero-card__waveform span {
  display: block;
  border-radius: var(--radius-pill);
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

.hero-card__waveform span:nth-child(1) { height: 28%; animation-delay: 0s; }
.hero-card__waveform span:nth-child(2) { height: 65%; animation-delay: 0.12s; }
.hero-card__waveform span:nth-child(3) { height: 42%; animation-delay: 0.24s; }
.hero-card__waveform span:nth-child(4) { height: 85%; animation-delay: 0.36s; }
.hero-card__waveform span:nth-child(5) { height: 52%; animation-delay: 0.48s; }
.hero-card__waveform span:nth-child(6) { height: 72%; animation-delay: 0.60s; }
.hero-card__waveform span:nth-child(7) { height: 38%; animation-delay: 0.72s; }
.hero-card__waveform span:nth-child(8) { height: 58%; animation-delay: 0.84s; }

@keyframes pulse {
  0%, 100% { transform: scaleY(0.88); opacity: 0.7; }
  50% { transform: scaleY(1.12); opacity: 1; }
}

.hero-card__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 5rem 0;
}

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

.section-heading {
  max-width: 42rem;
  margin-bottom: 3rem;
}

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.section-heading > p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 0;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* ============================================================
   FEATURES
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(91, 124, 255, 0.1);
  color: var(--primary);
}

.feature-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* ============================================================
   STEPS (How It Works)
   ============================================================ */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-strong);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.step__number {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step__content h3 {
  margin-bottom: 0.35rem;
}

.step__content p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.94rem;
}

.how-it-works-feedback {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(91, 124, 255, 0.04);
  text-align: center;
}

.how-it-works-feedback p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.how-it-works-feedback a {
  color: var(--primary);
  font-weight: 600;
}

.how-it-works-feedback a:hover {
  text-decoration: underline;
}

/* ============================================================
   PLATFORMS
   ============================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.platform-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-strong);
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 16px;
  background: rgba(91, 124, 255, 0.1);
  color: var(--primary);
}

.platform-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.platform-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.platform-req {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
}

.platform-card--coming-soon {
  opacity: 0.7;
  border-style: dashed;
}

.coming-soon-badge {
  color: var(--primary);
}

/* ============================================================
   AUDIENCE
   ============================================================ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.audience-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.audience-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.integration-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.integration-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.integration-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.integration-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* ============================================================
   BUILT WITH VOICE (Story)
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.story-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.story-content .btn {
  margin-top: 0.5rem;
}

.story-highlight {
  display: grid;
  gap: 1rem;
}

.story-stat {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-strong);
}

.story-stat__number {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.story-stat__label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card__date {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.blog-card__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(91, 124, 255, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ============================================================
   EMAIL SIGNUP
   ============================================================ */
.signup-card {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-strong);
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.signup-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 1.5rem auto 0;
}

.signup-form input[type="email"] {
  flex: 1;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 180ms ease;
}

.signup-form input[type="email"]:focus {
  border-color: var(--primary);
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-light);
}

.signup-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ============================================================
   DOWNLOAD
   ============================================================ */
.section--download {
  padding-bottom: 5rem;
}

.download-card {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.download-actions {
  margin: 1.5rem 0 2.5rem;
}

.download-homebrew {
  max-width: 28rem;
  margin: 0 auto 1rem;
}

.download-homebrew__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.download-homebrew__row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.download-homebrew__code {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  align-items: center;
}

.download-homebrew__copy {
  white-space: nowrap;
}

.download-alt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.download-alt__link {
  color: var(--primary);
  font-weight: 600;
}

.download-alt__link:hover {
  text-decoration: underline;
}

.download-req {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
  margin-top: 1rem;
}

.download-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
}

.download-meta div {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(91, 124, 255, 0.06);
}

.download-meta dt {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.download-meta dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-strong);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 24rem;
}

.footer-links h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 150ms ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.site-version {
  font-size: 0.7rem;
  opacity: 0.5;
  font-family: monospace;
}

/* ============================================================
   BACKGROUND DECORATION
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(91, 124, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(179, 77, 255, 0.1), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 600ms ease forwards;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 500ms ease, transform 500ms ease;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }

  .feature-grid,
  .platform-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid,
  .integrations-grid {
    grid-template-columns: 1fr;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }

  .dragon-highlight {
    flex-direction: column;
    gap: 1rem;
  }

  .download-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .hero-trust {
    flex-direction: column;
    gap: 0.75rem;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .hero-card__screen {
    min-height: 320px;
    padding: 1.25rem;
  }

  .download-meta {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* ============================================================
   NAV CTA
   ============================================================ */
.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(91, 124, 255, 0.25);
  color: #fff !important;
}

/* ============================================================
   HERO TRUST BADGES
   ============================================================ */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ============================================================
   PRIVACY BANNER
   ============================================================ */
.privacy-banner {
  padding: 1.5rem 0;
  background: rgba(91, 124, 255, 0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 52rem;
}

.privacy-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: rgba(91, 124, 255, 0.1);
  color: var(--primary);
  flex-shrink: 0;
}

.privacy-banner__text {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.privacy-banner__text strong {
  color: var(--text);
}

/* ============================================================
   4 PILLARS
   ============================================================ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: rgba(91, 124, 255, 0.1);
  color: var(--primary);
}

.pillar-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.pillar-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.pillar-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* ============================================================
   DRAGON REPLACEMENT SECTION
   ============================================================ */
.dragon-section {
  max-width: 48rem;
}

.dragon-content h2 {
  margin-bottom: 1.25rem;
}

.dragon-content > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.dragon-highlight {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-strong);
}

.dragon-stat {
  flex: 1;
  text-align: center;
}

.dragon-stat__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.dragon-stat__price {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-light);
}

.dragon-stat--ours .dragon-stat__price {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dragon-stat__note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.dragon-stat--ours .dragon-stat__note {
  color: var(--text-muted);
}

.dragon-vs {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   PRICING
   ============================================================ */
.section-heading--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 32rem;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  position: relative;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
}

.pricing-card--featured {
  border-color: var(--border-strong);
  background: var(--bg-strong);
  box-shadow: var(--shadow);
}

.pricing-card__ribbon {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-card__header {
  margin-bottom: 1.5rem;
}

.pricing-card__header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.pricing-card__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.pricing-card__price {
  margin-bottom: 2rem;
}

.pricing-card__original {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.pricing-card__amount {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card__amount sup {
  font-size: 1.5rem;
  font-weight: 700;
}

.pricing-card__period {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.pricing-card__features li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.pricing-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(91, 124, 255, 0.15);
  border: 2px solid var(--primary);
}

.pricing-btn {
  width: 100%;
  text-align: center;
}

.pricing-card__counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0;
}

.counter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: status-pulse 2s ease-in-out infinite;
}

.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-guarantee svg {
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-custom-training {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(91, 124, 255, 0.04);
  text-align: center;
}

.pricing-custom-training p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.pricing-custom-training a {
  color: var(--primary);
  font-weight: 600;
}

.pricing-custom-training a:hover {
  text-decoration: underline;
}

/* ============================================================
   COMPETITOR COMPARISON TABLE
   ============================================================ */
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-strong);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 600px;
}

.comparison-table thead {
  border-bottom: 2px solid var(--border);
}

.comparison-table th,
.comparison-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
}

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

.comparison-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
}

.comparison-highlight {
  background: rgba(91, 124, 255, 0.06);
}

.comparison-yes {
  color: #10b981;
  font-weight: 600;
}

.comparison-no {
  color: var(--text-light);
}

.comparison-partial {
  color: var(--text-muted);
  font-weight: 500;
}

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

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
