/* ============================================================
   SCHOOL ERP — DESIGN SYSTEM & GLOBAL STYLES
   Pure CSS • Mobile-First • CSS Grid + Flexbox
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Colors */
  --primary:        #4F46E5;
  --primary-dark:   #3730A3;
  --primary-light:  #818CF8;
  --primary-50:     #EEF2FF;
  --accent:         #06B6D4;
  --accent-dark:    #0891B2;
  --success:        #10B981;
  --success-light:  #D1FAE5;
  --warning:        #F59E0B;
  --danger:         #EF4444;
  --danger-light:   #FEE2E2;

  --bg:             #F8FAFC;
  --bg-dark:        #0F172A;
  --bg-darker:      #020617;
  --surface:        #FFFFFF;
  --surface-hover:  #F1F5F9;

  --text:           #1E293B;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;
  --text-white:     #F8FAFC;
  --text-on-primary:#FFFFFF;

  --border:         #E2E8F0;
  --border-dark:    #334155;

  /* Typography */
  --font:           'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;

  --h1:             clamp(2.25rem, 5vw, 3.5rem);
  --h2:             clamp(1.75rem, 4vw, 2.5rem);
  --h3:             clamp(1.25rem, 3vw, 1.5rem);
  --h4:             1.125rem;
  --body:           1rem;
  --small:          0.875rem;
  --tiny:           0.75rem;

  --leading-tight:  1.25;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  /* Spacing (8px grid) */
  --space-2xs:  0.25rem;
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;
  --space-4xl:  8rem;

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl:  0 25px 50px -12px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 40px rgba(79,70,229,0.15);
  --shadow-glow-accent: 0 0 40px rgba(6,182,212,0.15);

  /* Radius */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* Widths */
  --max-width:        1200px;
  --max-width-narrow: 800px;
  --max-width-wide:   1400px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration:      250ms;
  --duration-slow: 400ms;

  /* Z-index layers */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;
}

/* ── CSS Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  font-size: var(--body);
  line-height: var(--leading-normal);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--leading-tight);
  font-weight: 700;
  color: var(--text);
}

p {
  max-width: 65ch;
}

/* ── Typography ────────────────────────────────────────────── */
.h1, h1 { font-size: var(--h1); font-weight: 800; letter-spacing: -0.025em; }
.h2, h2 { font-size: var(--h2); font-weight: 700; letter-spacing: -0.02em; }
.h3, h3 { font-size: var(--h3); font-weight: 600; }
.h4, h4 { font-size: var(--h4); font-weight: 600; }

.text-sm     { font-size: var(--small); }
.text-tiny   { font-size: var(--tiny); }
.text-muted  { color: var(--text-muted); }
.text-light  { color: var(--text-light); }
.text-white  { color: var(--text-white); }
.text-primary{ color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold   { font-weight: 700; }
.font-extra  { font-weight: 800; }

.leading-tight  { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-loose  { line-height: var(--leading-loose); }

.section-label {
  display: inline-block;
  font-size: var(--small);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: var(--h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: var(--leading-loose);
  max-width: 600px;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.container-wide {
  max-width: var(--max-width-wide);
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.section-sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-lg {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

/* Flexbox */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center{ align-items: center; }
.items-start { align-items: flex-start; }
.items-end   { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* Grid */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.75rem;
  font-size: var(--body);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(79,70,229,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(79,70,229,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-on-primary);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-on-primary);
  border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(6,182,212,0.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(6,182,212,0.4);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--surface);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--primary-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--text-light);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.075rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--small);
}

.btn-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}

.card-flat {
  border: none;
  box-shadow: var(--shadow-sm);
}

.card-flat:hover {
  box-shadow: var(--shadow-xl);
}

.card-glow:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-light);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary);
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-icon-accent {
  background: rgba(6,182,212,0.1);
  color: var(--accent);
}

.card-icon-success {
  background: var(--success-light);
  color: var(--success);
}

.card-title {
  font-size: var(--h3);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.card-text {
  color: var(--text-muted);
  font-size: var(--small);
  line-height: var(--leading-loose);
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: var(--tiny);
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge-primary {
  background: var(--primary-50);
  color: var(--primary);
}

.badge-success {
  background: var(--success-light);
  color: #065F46;
}

.badge-warning {
  background: #FEF3C7;
  color: #92400E;
}

.badge-danger {
  background: var(--danger-light);
  color: #991B1B;
}

.badge-accent {
  background: rgba(6,182,212,0.1);
  color: var(--accent-dark);
}

.badge-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-sm) 0;
  transition: all var(--duration) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xs) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo svg,
.nav-logo img {
  width: 36px;
  height: 36px;
}

.nav-logo .logo-dot {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: var(--small);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-50);
}

.nav-cta {
  margin-left: var(--space-xs);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--duration) var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(80px + var(--space-2xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary-50) 0%, #DBEAFE 30%, var(--bg) 60%);
}

.hero-dark {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1E1B4B 50%, var(--bg-darker) 100%);
}

.hero-dark h1,
.hero-dark h2,
.hero-dark p {
  color: var(--text-white);
}

.hero-dark .section-label {
  color: var(--accent);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  margin-bottom: var(--space-md);
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-loose);
}

.hero-image {
  position: relative;
}

.hero-mockup {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
}

/* Hero decorative elements */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -100px;
}

.hero-blob-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: -50px;
  left: -50px;
}

/* ── Stats / KPI Strip ─────────────────────────────────────── */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  text-align: center;
  padding: var(--space-xl) 0;
}

.stat-item {
  padding: var(--space-sm);
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-2xs);
}

.stat-number .stat-suffix {
  font-size: 0.6em;
}

.stat-label {
  font-size: var(--small);
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Problem Statement ─────────────────────────────────────── */
.problem-section {
  background: var(--bg-dark);
  color: var(--text-white);
}

.problem-section .section-label {
  color: var(--accent);
}

.problem-section .section-title {
  color: var(--text-white);
}

.problem-section .section-subtitle {
  color: var(--text-light);
}

.problem-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--duration) var(--ease-out);
}

.problem-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

.problem-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.15);
  color: #FCA5A5;
  margin-bottom: var(--space-md);
}

.problem-icon svg {
  width: 24px;
  height: 24px;
}

.problem-stat {
  font-size: var(--h3);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-2xs);
}

.problem-text {
  color: rgba(255,255,255,0.7);
  font-size: var(--small);
  line-height: var(--leading-loose);
}

/* ── Feature Grid ──────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.feature-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.feature-card .card-icon {
  margin-bottom: 0;
}

.feature-info h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2xs);
}

.feature-info p {
  font-size: var(--small);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

/* ── How It Works ──────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-on-primary);
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(79,70,229,0.3);
}

.step h3 {
  margin-bottom: var(--space-xs);
}

.step p {
  color: var(--text-muted);
  font-size: var(--small);
  margin: 0 auto;
  max-width: 300px;
}

/* ── Before/After Comparison ───────────────────────────────── */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.comparison-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--duration) var(--ease-out);
}

.comparison-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.comparison-before,
.comparison-after {
  padding: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.comparison-before {
  background: var(--danger-light);
  border-bottom: 1px solid var(--border);
}

.comparison-after {
  background: var(--success-light);
}

.comparison-x {
  color: var(--danger);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.comparison-check {
  color: var(--success);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.comparison-text {
  font-size: var(--small);
  line-height: var(--leading-normal);
}

.comparison-text strong {
  display: block;
  font-size: var(--body);
  margin-bottom: 0.125rem;
}

/* ── Screenshots / Carousel ────────────────────────────────── */
.screenshots {
  overflow: hidden;
}

.screenshots-track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--space-sm) var(--space-md);
  -webkit-overflow-scrolling: touch;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 85%;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  background: var(--surface);
}

.screenshot-item img {
  width: 100%;
  display: block;
}

.screenshot-caption {
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  font-size: var(--small);
  text-align: center;
  color: var(--text-muted);
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-sm);
  left: var(--space-md);
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-light);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--text);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.125rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--body);
}

.testimonial-role {
  font-size: var(--small);
  color: var(--text-muted);
}

/* ── Logo Strip ────────────────────────────────────────────── */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
}

.logo-strip-item {
  opacity: 0.4;
  transition: all var(--duration) ease;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--small);
}

.logo-strip-item:hover {
  opacity: 1;
  color: var(--text);
}

.logo-strip-item svg {
  width: 28px;
  height: 28px;
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1E1B4B 100%);
  color: var(--text-on-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(6,182,212,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section .section-title {
  color: var(--text-on-primary);
}

.cta-section .section-subtitle {
  color: rgba(255,255,255,0.8);
  margin: 0 auto var(--space-lg);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-form input {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: var(--body);
  backdrop-filter: blur(4px);
}

.cta-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.cta-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.15);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .nav-logo {
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: var(--small);
  color: var(--text-light);
  line-height: var(--leading-loose);
}

.footer-col h4 {
  color: var(--text-white);
  font-size: var(--small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  font-size: var(--small);
  color: var(--text-light);
  transition: color var(--duration-fast) ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-newsletter p {
  font-size: var(--small);
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.footer-newsletter-form {
  display: flex;
  gap: var(--space-xs);
}

.footer-newsletter-form input {
  flex: 1;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  background: rgba(255,255,255,0.05);
  color: var(--text-white);
  font-size: var(--small);
}

.footer-newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: var(--small);
  color: var(--text-light);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  color: var(--text-light);
  transition: all var(--duration-fast) ease;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.pricing-toggle span {
  font-size: var(--small);
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-toggle span.active {
  color: var(--text);
  font-weight: 600;
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--border);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background var(--duration) ease;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease-out);
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

.pricing-save {
  font-size: var(--tiny);
  font-weight: 600;
  color: var(--success);
  background: var(--success-light);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--duration) var(--ease-out);
  min-width: 0;
  overflow: hidden;
}

.pricing-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.pricing-card.popular,
.pricing-popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.pricing-badge,
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: var(--tiny);
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: var(--h3);
  margin-bottom: var(--space-2xs);
}

.pricing-header p {
  font-size: var(--small);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.pricing-plan {
  font-size: var(--small);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: var(--space-2xs);
}

.price-amount {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.price-period {
  font-size: var(--body);
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-price .currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.pricing-price .period {
  font-size: var(--body);
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-subtitle {
  font-size: var(--small);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.pricing-desc {
  font-size: var(--small);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  margin-top: var(--space-lg);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--small);
}

.pricing-features li.excluded {
  color: var(--text-light);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--small);
}

.pricing-feature .check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-feature .cross {
  color: var(--text-light);
  flex-shrink: 0;
}

.pricing-feature.disabled {
  color: var(--text-light);
}

/* ── Feature Detail (alternating sections) ─────────────────── */
.feature-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.feature-detail-content {
  order: 2;
}

.feature-detail-visual {
  order: 1;
}

.feature-detail-content .badge {
  margin-bottom: var(--space-sm);
}

.feature-detail-content h2 {
  margin-bottom: var(--space-sm);
}

.feature-detail-content > p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-loose);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.feature-list-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.feature-list-item .check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--success);
  margin-top: 2px;
}

.feature-list-item span {
  font-size: var(--small);
  line-height: var(--leading-normal);
}

.kpi-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.feature-visual-frame {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.feature-visual-frame img {
  width: 100%;
  display: block;
}

/* ── Feature Mockup Placeholder ────────────────────────────── */
.feature-mockup {
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  min-height: 320px;
  box-shadow: var(--shadow-xl);
}

.feature-mockup p {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.feature-detail-desc {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-loose);
}

.feature-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.feature-detail-list li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  font-size: var(--small);
  line-height: var(--leading-normal);
}

.feature-detail-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-detail-kpi {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: var(--small);
}

.feature-detail-kpi strong {
  color: var(--primary);
  font-weight: 700;
}

/* ── Comparison Table (Pricing) ────────────────────────────── */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--small);
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.875rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table thead th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
  position: sticky;
  top: 0;
}

.comparison-table tbody tr:hover {
  background: var(--surface-hover);
}

.comparison-table .table-check {
  color: var(--success);
  font-weight: 700;
  font-size: 1.125rem;
}

.comparison-table .table-cross {
  color: var(--text-light);
  font-size: 1.125rem;
}

/* ── FAQ Accordion ─────────────────────────────────────────── */
.faq-group {
  margin-bottom: var(--space-xl);
}

.faq-group-title {
  font-size: var(--h4);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
  overflow: hidden;
  background: var(--surface);
  transition: all var(--duration) ease;
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  font-size: var(--body);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  background: none;
  border: none;
  gap: var(--space-sm);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease-out);
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--text-muted);
  font-size: var(--small);
  line-height: var(--leading-loose);
}

/* ── Contact Form ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--small);
  font-weight: 500;
  margin-bottom: var(--space-2xs);
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--body);
  color: var(--text);
  background: var(--surface);
  transition: all var(--duration-fast) ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.contact-card,
.contact-channel {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease-out);
}

.contact-card:hover,
.contact-channel:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
  flex-shrink: 0;
}

/* Contact form descendant selectors */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--body);
  color: var(--text);
  background: var(--surface);
  transition: all var(--duration-fast) ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form label {
  display: block;
  font-size: var(--small);
  font-weight: 500;
  margin-bottom: var(--space-2xs);
  color: var(--text);
}

/* ── Download Page ─────────────────────────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.platform-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease-out);
}

.platform-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon svg {
  width: 48px;
  height: 48px;
}

/* ── About / Timeline ──────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-xl) + 4px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--primary-50);
}

.timeline-dot.completed {
  background: var(--success);
  border-color: var(--success-light);
}

.timeline-dot.upcoming {
  background: var(--text-light);
  border-color: var(--border);
}

.timeline-date {
  font-size: var(--tiny);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2xs);
}

.timeline-content h3,
.timeline-content h4 {
  margin-bottom: var(--space-2xs);
}

.timeline-content p {
  font-size: var(--small);
  color: var(--text-muted);
}

/* ── Privacy / Legal ───────────────────────────────────────── */
.legal-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.legal-content h2 {
  font-size: var(--h3);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}

.legal-content h3 {
  font-size: var(--h4);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  max-width: 100%;
}

.legal-content ul {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-lg);
}

.legal-content ul li {
  color: var(--text-muted);
  font-size: var(--small);
  margin-bottom: var(--space-xs);
  position: relative;
  list-style: disc;
}

/* ── 404 Page ──────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl);
}

.error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  color: var(--primary-50);
  line-height: 1;
  letter-spacing: -0.05em;
}

.error-page h2 {
  margin-bottom: var(--space-sm);
}

.error-page p {
  color: var(--text-muted);
  margin: 0 auto var(--space-lg);
}

/* ── Page Header (inner pages) ─────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--primary-50) 0%, #DBEAFE 50%, var(--bg) 100%);
  padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
  text-align: center;
}

.page-header .section-label {
  margin-bottom: var(--space-xs);
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0 auto;
  max-width: 600px;
}

/* ── Utility Classes ───────────────────────────────────────── */
.w-full    { width: 100%; }
.mx-auto   { margin-left: auto; margin-right: auto; }
.mt-sm     { margin-top: var(--space-sm); }
.mt-md     { margin-top: var(--space-md); }
.mt-lg     { margin-top: var(--space-lg); }
.mt-xl     { margin-top: var(--space-xl); }
.mt-2xl    { margin-top: var(--space-2xl); }
.mb-sm     { margin-bottom: var(--space-sm); }
.mb-md     { margin-bottom: var(--space-md); }
.mb-lg     { margin-bottom: var(--space-lg); }
.mb-xl     { margin-bottom: var(--space-xl); }
.mb-2xl    { margin-bottom: var(--space-2xl); }
.pt-0      { padding-top: 0; }
.pb-0      { padding-bottom: 0; }
.p-sm      { padding: var(--space-sm); }
.p-md      { padding: var(--space-md); }
.p-lg      { padding: var(--space-lg); }

.rounded-sm  { border-radius: var(--radius-sm); }
.rounded-md  { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-full{ border-radius: var(--radius-full); }

.hidden    { display: none !important; }
.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;
}

.relative  { position: relative; }
.overflow-hidden { overflow: hidden; }

.bg-white  { background: var(--surface); }
.bg-light  { background: var(--bg); }
.bg-dark   { background: var(--bg-dark); }

/* ── Responsive ────────────────────────────────────────────── */

/* sm: >= 480px */
@media (min-width: 480px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-channels {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-form {
    flex-direction: row;
  }

  .cta-form input {
    flex: 1;
  }
}

/* md: >= 768px */
@media (min-width: 768px) {
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .nav-toggle {
    display: none !important;
  }

  .hero .container {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-detail-content {
    order: 1;
  }

  .feature-detail-visual {
    order: 2;
  }

  .feature-detail-reverse .feature-detail-content {
    order: 2;
  }

  .feature-detail-reverse .feature-detail-visual {
    order: 1;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .screenshot-item {
    flex: 0 0 60%;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* lg: >= 1024px */
@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .comparison-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .screenshot-item {
    flex: 0 0 45%;
  }
}

/* xl: >= 1280px */
@media (min-width: 1280px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .platform-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .contact-channels {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3xl) var(--space-lg) var(--space-lg);
    gap: var(--space-2xs);
    box-shadow: var(--shadow-2xl);
    transition: right var(--duration-slow) var(--ease-out);
    z-index: var(--z-overlay);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    padding: 0.75rem var(--space-sm);
    font-size: var(--body);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-xs);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: calc(var(--z-overlay) - 1);
    backdrop-filter: blur(2px);
  }

  .nav-overlay.active {
    display: block;
  }
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
  overflow: hidden;
}
