/* ========================================
   RustRED Landing Page — Style System
   ======================================== */

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

:root {
  /* Colors */
  --c-primary: #E05A33;
  --c-primary-hover: #C94E2B;
  --c-primary-glow: rgba(224, 90, 51, 0.25);
  --c-secondary: #1A1A2E;
  --c-accent: #16213E;
  --c-bg: #0F0F1A;
  --c-bg-alt: #131326;
  --c-bg-card: #1A1A2E;
  --c-bg-card-hover: #1F1F3A;
  --c-text: #E8E8E8;
  --c-text-dim: #9A9AB0;
  --c-text-muted: #6B6B82;
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-hover: rgba(255, 255, 255, 0.15);
  --c-code-bg: #0D0D1A;
  --c-success: #4ADE80;
  --c-no: #6B6B82;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', 'Cascadia Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 64px;
}

/* Light theme */
[data-theme="light"] {
  --c-bg: #FFFFFF;
  --c-bg-alt: #F5F5F7;
  --c-bg-card: #FFFFFF;
  --c-bg-card-hover: #F0F0F5;
  --c-text: #1A1A2E;
  --c-text-dim: #5A5A70;
  --c-text-muted: #8888A0;
  --c-border: rgba(0, 0, 0, 0.1);
  --c-border-hover: rgba(0, 0, 0, 0.18);
  --c-code-bg: #1A1A2E;
  --c-secondary: #1A1A2E;
  --c-accent: #F0F0F5;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.7em 1.5em;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

.btn-primary:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
  box-shadow: 0 4px 20px var(--c-primary-glow);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.45em 1em;
}

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

.btn-block {
  width: 100%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: background-color var(--duration) var(--ease);
}

[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.85);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-text);
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-dim);
  transition: color var(--duration) var(--ease);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration) var(--ease);
}

.theme-toggle:hover {
  background: var(--c-border);
}

.theme-icon::before {
  content: '\263E';
  font-size: 1.125rem;
}

[data-theme="light"] .theme-icon::before {
  content: '\2600';
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + var(--space-4xl)) var(--space-lg) var(--space-4xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(224, 90, 51, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Dot grid */
.dot-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 0;
  opacity: 0.4;
}

.dot-grid span {
  position: relative;
  width: 3px;
  height: 3px;
  background: var(--c-primary);
  border-radius: 50%;
  justify-self: center;
  align-self: center;
  animation: dotPulse 4s ease-in-out infinite;
}

.dot-grid span:nth-child(even) {
  background: rgba(224, 90, 51, 0.6);
  width: 2px;
  height: 2px;
}

.dot-grid span:nth-child(odd) {
  animation-delay: -2s;
}

.dot-grid span:nth-child(3n) {
  animation-delay: -1s;
  width: 5px;
  height: 5px;
}

.dot-grid span:nth-child(5n) {
  animation-delay: -3s;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.5); }
}

/* Flow lines */
.flow-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.flow-lines svg {
  width: 100%;
  height: 100%;
}

.flow-path {
  stroke: var(--c-primary);
  opacity: 0.12;
  stroke-dasharray: 8 12;
  animation: flowDash 20s linear infinite;
}

.fp2 {
  animation-duration: 25s;
  animation-direction: reverse;
}

.fp3 {
  animation-duration: 18s;
}

@keyframes flowDash {
  to { stroke-dashoffset: -400; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-lg);
  background: rgba(224, 90, 51, 0.12);
  border: 1px solid rgba(224, 90, 51, 0.25);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2xl);
  background: linear-gradient(135deg, var(--c-text) 30%, var(--c-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--c-text);
  opacity: 0.8;
  max-width: 620px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Stats Bar --- */
.stats-bar {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) 0;
  margin-top: -3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--c-border);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--c-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--c-text-dim);
}

.stat-note {
  color: var(--c-text-muted);
  font-size: 0.75rem;
}

/* --- Sections --- */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background: var(--c-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--c-text-dim);
  line-height: 1.6;
}

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

.feature-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration) var(--ease);
}

.feature-card:hover {
  background: var(--c-bg-card-hover);
  border-color: var(--c-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(224, 90, 51, 0.1);
  border-radius: var(--radius-md);
  color: var(--c-primary);
  margin-bottom: var(--space-lg);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--c-text-dim);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-list li {
  font-size: 0.875rem;
  color: var(--c-text-dim);
  padding-left: var(--space-lg);
  position: relative;
}

.feature-list li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 600;
}

/* --- Comparison Table --- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-bg-card);
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: var(--space-md) var(--space-xl);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

.compare-table thead th {
  font-weight: 700;
  font-size: 0.9375rem;
  padding: var(--space-lg) var(--space-xl);
  background: var(--c-bg-card);
}

.col-highlight {
  color: var(--c-primary);
}

.compare-table tbody tr:hover {
  background: var(--c-bg-card-hover);
}

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

.yes-check {
  color: var(--c-success);
  font-weight: 700;
}

.no-check {
  color: var(--c-no);
  font-weight: 400;
}

/* --- Plugin System --- */
.plugin-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: start;
}

.code-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-code-bg);
}

.code-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--c-border);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dots i:nth-child(1) { background: #FF5F56; }
.code-dots i:nth-child(2) { background: #FFBD2E; }
.code-dots i:nth-child(3) { background: #27C93F; }

.code-filename {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  flex: 1;
}

.code-lang {
  font-size: 0.6875rem;
  color: var(--c-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-block pre {
  padding: var(--space-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #C9D1D9;
  -webkit-overflow-scrolling: touch;
}

.code-block code {
  font-family: inherit;
}

/* Syntax coloring */
.kw { color: #FF7B72; }
.type { color: #79C0FF; }
.fn { color: #D2A8FF; }
.str { color: #A5D6FF; }
.comment { color: #8B949E; font-style: italic; }

.plugin-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.plugin-step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 90, 51, 0.1);
  color: var(--c-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 50%;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.step-content p {
  font-size: 0.875rem;
  color: var(--c-text-dim);
  line-height: 1.5;
}

.step-content code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--c-bg-card);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--c-border);
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.pricing-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pricing-popular {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 1px var(--c-primary), 0 8px 32px var(--c-primary-glow);
}

.pricing-popular:hover {
  box-shadow: 0 0 0 1px var(--c-primary), 0 16px 48px var(--c-primary-glow);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--c-border);
}

.pricing-tier {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}

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

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.pricing-features li {
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pricing-features .check {
  color: var(--c-primary);
  font-weight: 700;
  font-size: 0.8125rem;
}

/* --- Get Started --- */
.get-started-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: start;
}

.terminal {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-code-bg);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--c-border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dots i:nth-child(1) { background: #FF5F56; }
.terminal-dots i:nth-child(2) { background: #FFBD2E; }
.terminal-dots i:nth-child(3) { background: #27C93F; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

.terminal-body {
  padding: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.terminal-line {
  display: flex;
  gap: var(--space-sm);
}

.prompt {
  color: var(--c-primary);
  font-weight: 700;
  user-select: none;
}

.cmd {
  color: #C9D1D9;
}

.cmd.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-output {
  color: var(--c-text-muted);
  padding-left: var(--space-md);
}

.highlight-text {
  color: var(--c-primary);
  font-weight: 600;
}

.install-alt {
  padding-top: var(--space-md);
}

.install-alt p {
  font-size: 1rem;
  color: var(--c-text-dim);
  margin-bottom: var(--space-xl);
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* --- Footer --- */
.footer {
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-alt);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-brand .logo-icon {
  width: 36px;
  height: 36px;
}

.footer-brand .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--c-text-dim);
  line-height: 1.5;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--c-text-dim);
  transition: color var(--duration) var(--ease);
}

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

.badge-soon {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(224, 90, 51, 0.15);
  color: var(--c-primary);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--c-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.features-grid .animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}

.features-grid .animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

.pricing-grid .animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}

.pricing-grid .animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

/* --- Mobile Navigation --- */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: var(--space-lg);
    gap: var(--space-md);
  }

  .nav-links.active a {
    font-size: 1rem;
    padding: var(--space-sm) 0;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .plugin-showcase {
    grid-template-columns: 1fr;
  }

  .get-started-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --space-4xl: 4rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-xl);
  }

  .stat-item {
    padding: var(--space-sm);
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

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

  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }

  .compare-table th,
  .compare-table td {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    font-size: 0.6875rem;
  }
}

/* --- Nav scrolled state --- */
.nav-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
