/* Memfect.io — Main Stylesheet
   Design: warm earth-tone palette (matches desktop app)
   Fonts: Inter Tight (display + body) */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Instrument+Serif&display=swap');

:root {
  /* Light palette — warm earth tones */
  --bg: #f6f5f1;
  --bg-elevated: #fdfcf8;
  --bg-sunken: #eae7dd;
  /* Dark palette */
  --bg-dark: #13130f;
  --bg-dark-card: #1b1a16;
  --bg-dark-elevated: #1b1a16;
  --bg-dark-border: #2a2820;
  /* Borders */
  --border: #d9d5c8;
  --border-light: rgba(0, 0, 0, 0.06);
  --border-on-dark: rgba(255, 255, 255, 0.08);
  /* Text */
  --text: #1c1b17;
  --text-secondary: #6b6858;
  --muted: #9a9684;
  --muted-on-dark: rgba(255, 255, 255, 0.5);
  /* Accent — warm golden (matches desktop app) */
  --green: oklch(0.58 0.14 45);
  --green-light: oklch(0.94 0.03 45);
  --green-dark: oklch(0.72 0.15 55);
  /* Sizing */
  --radius: 0.625rem;
  --radius-sm: 0.375rem;
  /* Type */
  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --container: 1100px;
  --section-gap: 8rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.container-narrow { max-width: 720px; }

/* ═══════════════════════════════
   ANNOUNCEMENT BANNER
   ═══════════════════════════════ */

.banner {
  background: var(--text);
  overflow: hidden;
  height: 2.5rem;
  display: flex;
  align-items: center;
}

.banner-track {
  display: flex;
  gap: 4rem;
  animation: bannerScroll 25s linear infinite;
  white-space: nowrap;
}

.banner-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.banner-item .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-dark);
}

.banner-item a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes bannerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════
   NAVIGATION
   ═══════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 19, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.nav-logo {
  width: 1.35rem;
  height: 1.35rem;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
}

.nav-links a {
  color: var(--muted-on-dark);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-actions { display: flex; gap: 0.75rem; }

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
}

/* ═══════════════════════════════
   BUTTONS
   ═══════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* Light-section overrides */
.pillars .btn-primary,
.features .btn-primary,
.testimonials .btn-primary,
.pricing-tiers .btn-primary,
.download-hero .btn-primary {
  background: var(--text);
  color: #fff;
}

.pillars .btn-primary:hover,
.features .btn-primary:hover,
.testimonials .btn-primary:hover,
.pricing-tiers .btn-primary:hover,
.download-hero .btn-primary:hover {
  background: #333;
}

.pillars .btn-ghost,
.features .btn-ghost,
.testimonials .btn-ghost,
.pricing-tiers .btn-ghost,
.download-hero .btn-ghost {
  border-color: var(--border);
  color: var(--muted);
}

.pillars .btn-ghost:hover,
.features .btn-ghost:hover,
.testimonials .btn-ghost:hover,
.pricing-tiers .btn-ghost:hover,
.download-hero .btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
}

.btn-block { width: 100%; }

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */

.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background: var(--bg-dark) url('/static/img/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(19,19,15,0.4) 0%, rgba(19,19,15,0.85) 100%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-img {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(40,35,20,0.5);
}

.feature-img {
  width: 100%;
  display: block;
  border-radius: calc(var(--radius-sm) - 1px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-on-dark);
  margin-bottom: 2rem;
}

.hero-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-dark);
}

.hero-title {
  font-size: clamp(3.25rem, 7.5vw, 5.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.045em;
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
}

.hero-title .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.7);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted-on-dark);
  max-width: 500px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-platforms {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 2.25rem;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted-on-dark);
  font-weight: 500;
}

.platform-item svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.4;
  color: #fff;
}

.hero .btn-primary {
  background: #fff;
  color: var(--bg-dark);
}

.hero .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--muted-on-dark);
}

.hero .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ═══════════════════════════════
   MOCK WINDOW (Hero Visual)
   ═══════════════════════════════ */

.hero-visual {
  margin-top: 4rem;
  padding: 0 1rem;
}

.mock-window {
  background: var(--bg-dark-elevated);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(40,35,20,0.4);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--bg-dark-border);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mock-dot:first-child { background: #FF5F57; }
.mock-dot:nth-child(2) { background: #FFBD2E; }
.mock-dot:nth-child(3) { background: #28CA42; }

.mock-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.75rem;
  color: var(--muted-on-dark);
  font-weight: 500;
}

.mock-body {
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  min-height: 320px;
}

.mock-sidebar {
  padding: 1rem 0.625rem;
  border-right: 1px solid var(--bg-dark-border);
  background: rgba(255, 255, 255, 0.02);
}

.mock-tree-item {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-on-dark);
  border-radius: var(--radius-sm);
  cursor: default;
}

.mock-tree-item.active {
  background: oklch(0.28 0.06 55 / 0.3);
  color: var(--green-dark);
  font-weight: 600;
}

.mock-tree-item.indent { padding-left: 1.5rem; }

.mock-editor {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  background: var(--bg-dark-elevated);
}

.mock-line { color: rgba(255, 255, 255, 0.55); }
.mock-line.heading { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.mock-line.tag { color: var(--green-dark); opacity: 0.5; }
.mock-link { color: var(--green-dark); font-weight: 500; }

.mock-panel {
  padding: 1rem 0.625rem;
  border-left: 1px solid var(--bg-dark-border);
  background: rgba(255, 255, 255, 0.02);
}

.mock-panel-title {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-on-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.mock-backlink {
  font-size: 0.75rem;
  color: var(--green-dark);
  padding: 0.25rem 0;
  opacity: 0.7;
}

.mock-graph { margin-top: 0.5rem; }
.mini-graph { width: 100%; }

/* ═══════════════════════════════
   SCROLLING LOGOS
   ═══════════════════════════════ */

.logos-section {
  padding: 3.5rem 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--bg-dark-border);
  overflow: hidden;
}

.logos-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-on-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.logos-track {
  display: flex;
  gap: 3.5rem;
  animation: logoScroll 40s linear infinite;
  width: max-content;
}

.logos-track:hover { animation-play-state: paused; }

.logo-item {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.logo-item:hover { color: rgba(255, 255, 255, 0.4); }

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════
   STATS ROW
   ═══════════════════════════════ */

.stats-row {
  padding: 5rem 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--bg-dark-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted-on-dark);
  font-weight: 500;
}

/* ═══════════════════════════════
   SECTION HEADINGS
   ═══════════════════════════════ */

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto 4rem;
  line-height: 1.65;
}

/* ═══════════════════════════════
   TRUST PILLARS
   ═══════════════════════════════ */

.pillars {
  padding: var(--section-gap) 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: box-shadow 0.3s;
}

.pillar-card:hover {
  box-shadow: 0 4px 24px rgba(40, 35, 20, 0.06);
}

.pillar-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.pillar-icon svg { width: 100%; height: 100%; }

.pillar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ═══════════════════════════════
   FEATURES GRID
   ═══════════════════════════════ */

.features {
  padding: 4rem 0 var(--section-gap);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: box-shadow 0.3s;
  overflow: hidden;
}

.feature-card:hover {
  box-shadow: 0 4px 24px rgba(40, 35, 20, 0.06);
}

.feature-card.wide {
  grid-column: 1 / -1;
}

.feature-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.035em;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 400px;
}

.feature-visual-inner {
  margin-top: 2rem;
  background: var(--bg-dark);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

/* Backlinks */
.fc-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-dark-border);
}
.fc-item:last-child { border-bottom: none; }

.fc-note {
  display: block;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.fc-context {
  font-size: 0.78rem;
  color: var(--muted-on-dark);
}

.fc-context mark {
  background: oklch(0.94 0.03 45);
  color: var(--green-dark);
  padding: 0.05em 0.2em;
  border-radius: 3px;
}

/* Graph */
.graph-demo { width: 100%; height: auto; display: block; }

/* Editor */
.editor-inner {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2;
}

.ec-line { color: var(--text-secondary); }
.ec-h1 { color: var(--text); font-weight: 700; font-size: 1rem; }
.ec-bold { color: var(--text); }
.ec-link { color: var(--green); }
.ec-tag { color: var(--green); opacity: 0.7; }

/* Canvas */
.canvas-inner {
  position: relative;
  min-height: 180px;
}

.canvas-node {
  position: absolute;
  padding: 0.35rem 0.8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.canvas-node.highlight {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

.canvas-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Plugins */
.plugins-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 2rem;
}

.plugin-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  transition: border-color 0.2s;
}

.plugin-chip:hover { border-color: rgba(0, 0, 0, 0.15); }

.plugin-chip-name {
  font-weight: 600;
  font-size: 0.82rem;
}

.plugin-chip-author {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ═══════════════════════════════
   USE CASES
   ═══════════════════════════════ */

.use-cases {
  padding: var(--section-gap) 0;
  background: var(--bg-dark);
  color: #fff;
}

.use-cases .section-label { color: var(--muted-on-dark); }
.use-cases .section-title { color: #fff; }
.use-cases .section-sub { color: var(--muted-on-dark); }

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
}

.use-case-card {
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}

.use-case-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.use-case-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}

.use-case-icon svg {
  width: 100%;
  height: 100%;
}

.use-case-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.use-case-card p {
  font-size: 0.82rem;
  color: var(--muted-on-dark);
  line-height: 1.6;
}

/* ═══════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════ */

.testimonials {
  padding: var(--section-gap) 0;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 1.25rem;
  animation: testimonialScroll 40s linear infinite;
  width: max-content;
}

.testimonials-track:hover { animation-play-state: paused; }

.testimonial-card {
  flex-shrink: 0;
  width: 360px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.testimonial-quote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--muted);
}

@keyframes testimonialScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════
   CTA SECTION
   ═══════════════════════════════ */

.cta-section {
  padding: var(--section-gap) 0;
  text-align: center;
  background: var(--bg-dark);
  color: #fff;
}

.cta-section h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  color: #fff;
}

.cta-section p {
  color: var(--muted-on-dark);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--bg-dark);
}

.cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--muted-on-dark);
}

.cta-section .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ═══════════════════════════════
   PRICING
   ═══════════════════════════════ */

.pricing-hero {
  padding: 6rem 0 3rem;
  text-align: center;
}

.pricing-tiers { text-align: center; padding-bottom: 4rem; }

.pricing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 3.5rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem;
}

.toggle-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: var(--text);
  color: #fff;
}

.toggle-btn:not(.active):hover {
  color: var(--text);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  position: relative;
  transition: box-shadow 0.3s;
}

.price-card:hover {
  box-shadow: 0 4px 20px rgba(40, 35, 20, 0.06);
}

.price-card.featured {
  border-color: var(--green);
  border-width: 2px;
}

.price-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-tier {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.04em;
}

.price-period {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.price-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
}

.price-features li {
  padding: 0.4rem 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ═══════════════════════════════
   FAQ
   ═══════════════════════════════ */

.faq-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.04em;
}

.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item[open] { background: var(--bg-elevated); }

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 400;
}

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

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ═══════════════════════════════
   DOWNLOAD PAGE
   ═══════════════════════════════ */

.hero-version {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: -1.5rem;
  margin-bottom: 0.5rem;
}

.download-hero {
  padding: 6rem 0 6rem;
  text-align: center;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.download-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.download-card:hover {
  box-shadow: 0 4px 20px rgba(40, 35, 20, 0.06);
  transform: translateY(-2px);
}

.download-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1.5rem;
  color: var(--text);
  opacity: 0.4;
}

.download-icon svg { width: 100%; height: 100%; }

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

.download-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.download-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.download-extras {
  margin-top: 4rem;
  text-align: center;
}

.download-extras h3 {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.extras-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.extra-link {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.extra-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--green);
  transition: width 0.3s;
}

.extra-link:hover::after { width: 100%; }

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */

.footer {
  border-top: 1px solid var(--border);
  padding: 5rem 0 2.5rem;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer a { color: rgba(255, 255, 255, 0.5); }
.footer a:hover { color: #fff; }

.footer .nav-brand { color: #fff; }
.footer .nav-logo { color: rgba(255, 255, 255, 0.6); }

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

.footer-tagline {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --section-gap: 5rem; }

  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 4rem 0 3rem; }
  .hero-title { font-size: 2.75rem; }
  .hero-platforms { flex-wrap: wrap; gap: 1rem; }

  .mock-body { grid-template-columns: 1fr; }
  .mock-sidebar, .mock-panel { display: none; }

  .pillars-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.wide > div { grid-template-columns: 1fr !important; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .download-grid { grid-template-columns: 1fr; max-width: 400px; margin: 3.5rem auto 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .plugins-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card { width: 300px; }
  .section-title { font-size: 2rem; }
}
