/* ==========================================================================
   DOCKLANE — Apple-Inspired Landing Page Styles
   Premium product page for docklane.tscholene.com
   Extends base.css design tokens and components.
   ========================================================================== */

/* ==========================================================================
   1. Design Token Overrides
   ========================================================================== */

:root {
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-cyan: #06B6D4;
  --section-padding: clamp(6rem, 15vh, 12rem);

  /* Dark mode specific (window mockups, feature sections) */
  --mockup-bg: #1C1C2E;
  --mockup-titlebar: #2A2A3E;
  --mockup-terminal-bg: #0D0D1A;
  --mockup-editor-bg: #16162A;
  --mockup-border: rgba(255, 255, 255, 0.06);
  --mockup-border-hover: rgba(255, 255, 255, 0.04);
  --mockup-file-hover: rgba(255, 255, 255, 0.04);
  --mockup-shadow: 0 50px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 80px rgba(59, 130, 246, 0.06);
  --mockup-shadow-terminal: 0 50px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --section-bg-1: #0A0A1F;
  --section-bg-2: #050510;
  --section-bg-3: #0F0F23;
  --nav-bg: rgba(15, 15, 35, 0.7);
  --nav-bg-scrolled: rgba(15, 15, 35, 0.95);
  --hero-gradient-1: rgba(59, 130, 246, 0.12);
  --hero-gradient-2: rgba(6, 182, 212, 0.06);
  --protocols-gradient: rgba(59, 130, 246, 0.04);
  --cta-gradient: rgba(59, 130, 246, 0.06);
}

/* ==========================================================================
   Light Mode Token Overrides
   ========================================================================== */

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-elevated: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --border: #E2E8F0;
    --destructive: #EF4444;

    --mockup-bg: #FFFFFF;
    --mockup-titlebar: #F1F5F9;
    --mockup-terminal-bg: #1E293B;
    --mockup-editor-bg: #1E293B;
    --mockup-border: rgba(0, 0, 0, 0.08);
    --mockup-border-hover: rgba(0, 0, 0, 0.06);
    --mockup-file-hover: rgba(0, 0, 0, 0.04);
    --mockup-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
    --mockup-shadow-terminal: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
    --section-bg-1: #F1F5F9;
    --section-bg-2: #E2E8F0;
    --section-bg-3: #F8FAFC;
    --nav-bg: rgba(248, 250, 252, 0.7);
    --nav-bg-scrolled: rgba(248, 250, 252, 0.95);
    --hero-gradient-1: rgba(59, 130, 246, 0.08);
    --hero-gradient-2: rgba(6, 182, 212, 0.04);
    --protocols-gradient: rgba(59, 130, 246, 0.03);
    --cta-gradient: rgba(59, 130, 246, 0.04);
  }
}

/* ==========================================================================
   Liquid Glass
   ========================================================================== */

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: light) {
  .glass {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 2px 8px rgba(0, 0, 0, 0.06);
  }
}

/* ==========================================================================
   2. Shared Utility Classes
   ========================================================================== */

/* Gradient text — blue to cyan */
.gradient-text {
  background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (prefers-color-scheme: light) {
  .gradient-text {
    background: linear-gradient(135deg, #1D4ED8 0%, #0891B2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

/* Scroll-triggered scale-in animation */
.scale-in {
  opacity: 0;
  transform: scale(0.94) translateY(30px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Large button variant */
.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.0625rem;
  min-height: 56px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   3. Navigation Overrides
   ========================================================================== */

.nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--mockup-border);
}

@media (prefers-color-scheme: light) {
  .nav {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
}

.nav__logo {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--space-24) + 80px) var(--space-8) 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--hero-gradient-1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, var(--hero-gradient-2) 0%, transparent 50%),
    var(--bg);
  position: relative;
  overflow: visible;
}

/* Hero app icon */
.hero__app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: var(--space-6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: light) {
  .hero__app-icon {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
}

.hero__category {
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.2vw, 1rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text-primary);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.hero__title-line {
  display: block;
}

/* Nav download button */
.btn--nav {
  padding: var(--space-2) var(--space-4);
  font-size: 0.8125rem;
  min-height: 34px;
  border-radius: 8px;
  text-decoration: none;
  margin-left: var(--space-2);
}

.btn--nav:hover {
  text-decoration: none;
}

/* Hero mockup / screenshot */
.hero__mockup {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  margin-bottom: -3rem;
  perspective: 1200px;
  position: relative;
  z-index: 2;
}

.hero__screenshot {
  display: block;
  width: 100%;
}

.hero__screenshot-img {
  width: 100%;
  height: auto;
  border-radius: clamp(12px, 1.5vw, 20px);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__screenshot-img:hover {
  transform: rotateX(0deg);
}

/* Feature section screenshots */
.feature-screenshot {
  display: block;
  width: 100%;
}

.feature-screenshot__img {
  width: 100%;
  height: auto;
  border-radius: clamp(12px, 1.5vw, 20px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: light) {
  .hero__screenshot-img,
  .feature-screenshot__img {
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(0, 0, 0, 0.08);
  }
}

.window-mockup--hero {
  transform: rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.window-mockup--hero:hover {
  transform: rotateX(0deg);
}

/* ==========================================================================
   5. macOS Window Mockup
   ========================================================================== */

.window-mockup {
  background: var(--mockup-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--mockup-shadow);
}

.window-mockup__titlebar {
  height: 40px;
  background: var(--mockup-titlebar);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid var(--mockup-border);
}

.window-mockup__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.window-mockup__dot--red { background: #FF5F57; }
.window-mockup__dot--yellow { background: #FFBD2E; }
.window-mockup__dot--green { background: #28CA42; }

.window-mockup__titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 52px; /* offset for dots */
}

/* Window body variants */
.window-mockup__body {
  padding: var(--space-6);
  min-height: 200px;
}

/* Dual pane body */
.window-mockup__body--dual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  padding: 0;
  min-height: 280px;
}

/* Mockup sidebar (file list) */
.mockup-sidebar {
  padding: var(--space-4);
}

.mockup-sidebar__header {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--mockup-border);
}

.mockup-file {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: background-color 0.15s;
}

.mockup-file:hover {
  background: var(--mockup-file-hover);
}

.mockup-file--active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
}

.mockup-file--dragging {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  outline: 1px dashed rgba(59, 130, 246, 0.4);
  outline-offset: -1px;
}

.mockup-file__icon {
  font-size: 0.875rem;
  line-height: 1;
}

/* Divider between panes */
.mockup-divider {
  width: 1px;
  background: var(--mockup-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mockup-drag-indicator {
  position: absolute;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* Terminal body */
.window-mockup--terminal {
  box-shadow: var(--mockup-shadow-terminal);
}

.window-mockup__body--terminal {
  background: var(--mockup-terminal-bg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  padding: var(--space-6);
  min-height: 300px;
}

.terminal-line {
  white-space: pre;
  color: #E2E8F0;
}

.terminal-output {
  color: #94A3B8;
}

.terminal-prompt {
  color: #22C55E;
  margin-right: 0.5em;
}

.terminal-green {
  color: #22C55E;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: rgba(59, 130, 246, 0.7);
  vertical-align: text-bottom;
  animation: blink 1.2s step-end infinite;
}

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

/* Editor body */
.window-mockup__body--editor {
  background: var(--mockup-editor-bg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  padding: var(--space-4) 0;
  min-height: 260px;
}

.editor-line {
  padding: 1px var(--space-6) 1px var(--space-2);
  display: flex;
  align-items: center;
  gap: 0;
  white-space: pre;
  color: #CBD5E1;
}

.editor-line--highlight {
  background: rgba(59, 130, 246, 0.08);
  border-left: 2px solid var(--accent);
}

.editor-ln {
  display: inline-block;
  width: 2.5em;
  text-align: right;
  color: #475569;
  margin-right: 1.5em;
  font-size: 0.75rem;
  user-select: none;
  flex-shrink: 0;
}

.editor-tag { color: #F472B6; }
.editor-attr { color: #60A5FA; }
.editor-string { color: #34D399; }

/* Status bar */
.window-mockup__statusbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--mockup-titlebar);
  border-top: 1px solid var(--mockup-border);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.statusbar-saved {
  color: var(--accent);
  font-weight: 500;
}

.statusbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.statusbar-dot--uploading {
  background: var(--accent);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ==========================================================================
   6. Feature Sections (Full Viewport)
   ========================================================================== */

.feature-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-padding) var(--space-8);
  position: relative;
  background-color: var(--bg);
}

/* Dark mode feature section backgrounds */
.feature-section--alt-1 { background-color: #0A0A1F; }
.feature-section--alt-2 { background-color: #050510; }
.feature-section--alt-3 { background-color: #0F0F23; }

/* Light mode: alternating subtle backgrounds */
@media (prefers-color-scheme: light) {
  .feature-section--alt-1 { background-color: #F1F5F9; }
  .feature-section--alt-2 { background-color: #E8EEF5; }
  .feature-section--alt-3 { background-color: #F8FAFC; }
}

.feature-section__content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.feature-section__content--reverse {
  grid-template-columns: 1.2fr 1fr;
}

.feature-section__content--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.feature-section__text--center {
  text-align: center;
}

.feature-section__text--center .feature-section__description {
  margin-left: auto;
  margin-right: auto;
}

.feature-section__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.feature-section__description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 42ch;
  margin: 0;
}

.feature-section__visual {
  width: 100%;
}

.feature-section__visual--wide {
  width: 100%;
  max-width: 860px;
}

/* ==========================================================================
   7. Features Strip
   ========================================================================== */

.features-strip {
  padding: var(--section-padding) var(--space-8);
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-strip__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.features-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.strip-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--border-radius-lg);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.strip-card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: light) {
  .strip-card:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 1),
      0 4px 16px rgba(0, 0, 0, 0.08);
  }
}

.strip-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  border-radius: 14px;
}

.strip-card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.strip-card__description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   8. Protocols Section
   ========================================================================== */

.protocols-section {
  padding: var(--section-padding) var(--space-8);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, var(--protocols-gradient) 0%, transparent 60%);
}

.protocols-section__headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.protocols-section__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}

.protocols-section__item {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.protocols-section__item:hover {
  color: var(--accent);
}

.protocols-section__separator {
  color: var(--text-muted);
  font-size: 2rem;
  opacity: 0.3;
}

/* ==========================================================================
   9. Pricing Section
   ========================================================================== */

.pricing-section {
  padding: var(--section-padding) var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}

.pricing-section__headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* Single pricing card — centered */
.pricing-single {
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  border-radius: var(--border-radius-lg);
  text-align: center;
}

.pricing-single__header {
  margin-bottom: var(--space-8);
}

.pricing-single__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: var(--space-4);
}

.pricing-single__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.pricing-single__price {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.pricing-single__subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

.pricing-single__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: left;
}

.pricing-single__features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-single__features li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.pricing-single__cta {
  text-decoration: none;
  width: 100%;
}

.pricing-single__cta:hover {
  text-decoration: none;
}

/* ==========================================================================
   10. Final CTA Section
   ========================================================================== */

.cta-final {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-padding) var(--space-8);
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, var(--cta-gradient) 0%, transparent 60%);
}

.cta-final__headline {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.cta-final__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.cta-final__requirement {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   11. Footer Overrides
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8);
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.footer__separator {
  color: var(--text-muted);
}

.footer__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__lang {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: transparent;
  border: 1px solid var(--border);
  padding: var(--space-1) var(--space-3);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.footer__lang:hover {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.footer__lang span.is-active {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   12. Responsive — Tablet (769px - 1024px)
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-section__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .feature-section__content--reverse {
    grid-template-columns: 1fr 1fr;
  }

  .features-strip__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

}

/* ==========================================================================
   13. Responsive — Mobile (up to 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--space-16) + 100px);
    padding-bottom: var(--space-12);
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .hero__title {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .hero__mockup {
    max-width: 100%;
  }

  .window-mockup--hero {
    transform: none;
  }

  .window-mockup--hero:hover {
    transform: none;
  }

  /* Feature sections stack vertically */
  .feature-section {
    min-height: auto;
    padding: var(--space-16) var(--space-4);
  }

  .feature-section__content,
  .feature-section__content--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* On mobile, always show text first, then visual */
  .feature-section__content--reverse .feature-section__visual {
    order: 2;
  }

  .feature-section__content--reverse .feature-section__text {
    order: 1;
  }

  .feature-section__headline {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  /* Terminal scrollable on mobile */
  .window-mockup__body--terminal,
  .window-mockup__body--editor {
    overflow-x: auto;
  }

  /* Features strip */
  .features-strip {
    padding: var(--space-16) var(--space-4);
  }

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

  /* Protocols */
  .protocols-section {
    padding: var(--space-16) var(--space-4);
  }

  .protocols-section__list {
    gap: var(--space-4);
  }

  .protocols-section__item {
    font-size: 1.25rem;
  }

  .protocols-section__separator {
    font-size: 1.25rem;
  }

  /* Pricing */
  .pricing-section {
    padding: var(--space-16) var(--space-4);
  }


  /* Final CTA */
  .cta-final {
    min-height: 60vh;
    padding: var(--space-16) var(--space-4);
  }

  .cta-final__headline {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  .btn--lg {
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
    width: 100%;
    max-width: 360px;
    min-height: 52px;
  }

  /* Dual pane mockup: hide second pane on very small screens */
  .window-mockup__body--dual {
    min-height: 200px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .window-mockup__body--dual {
    grid-template-columns: 1fr;
  }

  .mockup-divider {
    display: none;
  }

  .window-mockup__body--dual .mockup-sidebar:last-child {
    border-top: 1px solid var(--mockup-border);
  }
}

/* ==========================================================================
   14. Light Mode — Additional Overrides
   ========================================================================== */

/* Light mode: mockup text stays light for terminal/editor (they keep dark bg) */
@media (prefers-color-scheme: light) {
  .window-mockup__body--terminal .terminal-line,
  .window-mockup__body--editor .editor-line {
    color: #E2E8F0;
  }

  .window-mockup__body--terminal .terminal-output {
    color: #94A3B8;
  }

  .window-mockup__body--terminal .terminal-prompt {
    color: #22C55E;
  }

  .window-mockup__body--editor .editor-ln {
    color: #64748B;
  }

  /* Window mockup titlebar dots keep vibrant colors */
  .window-mockup__titlebar-text {
    color: var(--text-muted);
  }

  /* Mockup file text in light-bg mockups */
  .window-mockup__body--dual .mockup-file {
    color: var(--text-secondary);
  }

  .window-mockup__body--dual .mockup-sidebar__header {
    color: var(--text-muted);
    border-bottom-color: var(--border);
  }

  /* Primary button text stays white on blue */
  .btn--primary {
    color: #FFFFFF;
  }

  /* Strip card icon bg */
  .strip-card__icon {
    background: rgba(59, 130, 246, 0.06);
  }
}

/* Light mode: nav mobile overlay */
@media (max-width: 768px) and (prefers-color-scheme: light) {
  .nav__links {
    background: rgba(248, 250, 252, 0.98);
  }
}

/* ==========================================================================
   15. Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .window-mockup--hero {
    transform: none;
  }

  .terminal-cursor {
    animation: none;
    opacity: 1;
  }

  .statusbar-dot--uploading {
    animation: none;
  }
}
