/* ============================================
   Cinch - Landing Page Styles
   Teal/emerald gradient identity, Space Grotesk + IBM Plex Serif
   ============================================ */

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

:root {
  --bg-deep: #07120f;
  --bg-surface: #0c1a16;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);

  --text-primary: #e8f1ec;
  --text-secondary: #aebcb6;
  --text-tertiary: #8a978f;

  --accent: #2DD4A7;
  --accent-dim: rgba(45, 212, 167, 0.08);
  --accent-glow: rgba(45, 212, 167, 0.18);
  --accent-light: #5BE3BC;
  --accent-deep: #0e8a6a;
  --accent-warm: #f59e0b;

  --grad-start: #2DD4A7;
  --grad-mid: #1bb389;
  --grad-end: #0e8a6a;

  --section-gap: clamp(6rem, 12vw, 10rem);
  --container-max: 1180px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);

  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(45, 212, 167, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 25%, rgba(14, 138, 106, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 15% 80%, rgba(27, 179, 137, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, #07120f 0%, #0a1714 40%, #0c1a16 70%, #07120f 100%);
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-light); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.skip-link:focus {
  top: 1rem;
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ============================================
   AMBIENT BACKGROUND - teal orbs + signature grid
   ============================================ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 212, 167, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 167, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
}

.ambient-orb--1 {
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(45, 212, 167, 0.10) 0%, rgba(45, 212, 167, 0.03) 50%, transparent 70%);
  top: -20%;
  right: -10%;
  animation: orb-drift-1 55s ease-in-out infinite alternate;
}

.ambient-orb--2 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(14, 138, 106, 0.07) 0%, transparent 60%);
  bottom: -15%;
  left: -10%;
  animation: orb-drift-2 50s ease-in-out infinite alternate-reverse;
  animation-delay: -10s;
}

.ambient-orb--3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(91, 227, 188, 0.05) 0%, transparent 60%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation: orb-drift-3 45s ease-in-out infinite alternate;
  animation-delay: -20s;
}

@keyframes orb-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6vw, 8vh) scale(1.07); }
}
@keyframes orb-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(7vw, -6vh) scale(0.96); }
}
@keyframes orb-drift-3 {
  0%   { transform: translateX(-50%) scale(1); }
  100% { transform: translateX(-50%) translateY(-4vh) scale(1.05); }
}

/* ============================================
   SCROLL PROGRESS RAIL
   ============================================ */
.scroll-rail {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 320px;
  pointer-events: none;
}

.scroll-rail-track {
  position: relative;
  width: 2px;
  height: 100%;
  background: rgba(45, 212, 167, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.scroll-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-light), var(--accent), var(--accent-deep));
  border-radius: 2px;
  transition: height 0.1s linear;
  box-shadow: 0 0 10px rgba(45, 212, 167, 0.5);
}

.scroll-rail-nodes {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scroll-rail-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(45, 212, 167, 0.18);
  border: 1px solid rgba(45, 212, 167, 0.22);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  pointer-events: auto;
  cursor: pointer;
}

.scroll-rail-node.is-passed {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(45, 212, 167, 0.55);
  transform: scale(1.15);
}

/* ============================================
   NAV
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.site-nav.scrolled {
  background: rgba(7, 18, 15, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

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

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.nav-back:hover {
  color: var(--text-primary);
  background: rgba(45, 212, 167, 0.08);
  border-color: rgba(45, 212, 167, 0.2);
}

.nav-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
}

.brand-icon {
  display: inline-block;
  vertical-align: middle;
  border-radius: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  color: var(--bg-deep) !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  min-height: 44px;
  min-width: 44px;
  box-shadow: 0 2px 18px rgba(45, 212, 167, 0.2);
}
.nav-cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 28px rgba(45, 212, 167, 0.32);
  color: var(--bg-deep) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding-top: clamp(8rem, 16vw, 12rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.hero-container {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-app-name {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-app-icon {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(45, 212, 167, 0.18);
}

.hero-app-name span {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: rgba(45, 212, 167, 0.06);
  border: 1px solid rgba(45, 212, 167, 0.18);
  border-radius: var(--radius-xl);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--accent);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero h1 em,
.section-heading em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-deep));
  background-size: 200% 200%;
  animation: gradient-shift 8s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
  font-weight: 400;
}

/* ============================================
   SHRINK STRIP - signature hero motif
   ============================================ */
.shrink-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 0 auto 2.25rem;
  max-width: 520px;
  padding: 0.75rem 1rem;
}

.shrink-strip-rail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.shrink-strip-before,
.shrink-strip-after {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.shrink-strip-before {
  color: var(--text-tertiary);
  text-decoration: line-through;
  text-decoration-color: rgba(174, 188, 182, 0.35);
}

.shrink-strip-after {
  color: var(--accent);
}

.shrink-strip-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.shrink-strip-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent), var(--accent-deep));
  box-shadow: 0 0 12px rgba(45, 212, 167, 0.55);
  animation: shrink-pulse 4s ease-in-out infinite;
}

@keyframes shrink-pulse {
  0%, 100% { width: 18%; }
  50% { width: 22%; }
}

.shrink-strip-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ============================================
   HERO ACTIONS
   ============================================ */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.hero-support-sep {
  color: var(--text-tertiary);
  opacity: 0.3;
  font-size: 0.75rem;
}

.hero-support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  transition: color 0.25s;
  text-decoration: none;
  min-height: 44px;
}

.hero-support-link svg {
  opacity: 0.5;
  transition: opacity 0.25s;
}

.hero-support-link:hover svg { opacity: 1; }

.hero-support-link:not(.hero-liberapay) svg { color: #fbbf24; }
.hero-support-link:not(.hero-liberapay):hover { color: #fbbf24; }

.hero-liberapay svg { color: #f6c915; }
.hero-liberapay:hover { color: #f6c915; }

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.hero-meta-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

/* Hero image */
.hero-image {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
}

.hero-image-frame {
  position: relative;
}

.hero-image-frame img {
  width: 100%;
  display: block;
}

.hero-image-glow {
  position: absolute;
  bottom: -28%;
  left: 8%;
  right: 8%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(45, 212, 167, 0.16) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(70px);
  z-index: -1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  text-decoration: none;
  will-change: transform;
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  color: var(--bg-deep);
  box-shadow: 0 0 30px rgba(45, 212, 167, 0.22);
}
.btn-primary:hover {
  filter: brightness(1.08);
  color: var(--bg-deep);
  box-shadow: 0 4px 50px rgba(45, 212, 167, 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(45, 212, 167, 0.3);
  background: rgba(45, 212, 167, 0.04);
}

.btn-coffee {
  background: transparent;
  color: var(--text-tertiary);
  border: 1px solid rgba(251, 191, 36, 0.15);
}
.btn-coffee svg {
  color: #fbbf24;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.btn-coffee:hover {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}
.btn-coffee:hover svg { opacity: 1; }

.btn-liberapay {
  background: transparent;
  color: var(--text-tertiary);
  border: 1px solid rgba(246, 201, 21, 0.15);
}
.btn-liberapay svg {
  color: #f6c915;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.btn-liberapay:hover {
  color: #f6c915;
  border-color: rgba(246, 201, 21, 0.35);
  background: rgba(246, 201, 21, 0.06);
}
.btn-liberapay:hover svg { opacity: 1; }

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-heading {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
  font-weight: 400;
}

/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(90deg, transparent, rgba(45, 212, 167, 0.02), transparent);
}

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

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -1rem;
  width: 1px;
  height: 70%;
  background: var(--border-subtle);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  padding-block: var(--section-gap);
  position: relative;
}

.manifesto-content {
  text-align: center;
  max-width: 740px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0 1rem;
}

.manifesto-quote em {
  font-family: var(--font-display);
  font-style: italic;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.manifesto-content .section-desc {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

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

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 167, 0.25), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(45, 212, 167, 0.18);
}

.pillar-card:hover::before { opacity: 1; }

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 167, 0.12);
}

.pillar-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   PRESETS - signature panel
   ============================================ */
.presets {
  padding-block: var(--section-gap);
  position: relative;
}

.presets-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.presets-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.preset-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.4rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.preset-chip::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.preset-chip:hover {
  background: var(--bg-card-hover);
  border-color: rgba(45, 212, 167, 0.2);
  transform: translateY(-2px);
}

.preset-chip:hover::after { transform: scaleX(1); }

.preset-chip--featured {
  background: rgba(45, 212, 167, 0.06);
  border-color: rgba(45, 212, 167, 0.2);
}

.preset-chip--featured::after { transform: scaleX(1); }

.preset-chip--custom {
  border-style: dashed;
  border-color: rgba(45, 212, 167, 0.25);
}

.preset-chip-size {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1;
}

.preset-chip--featured .preset-chip-size {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preset-chip-use {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.preset-note {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.preset-note-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 0.15rem;
}

.preset-note p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   FEATURE SHOWCASE - alternating rows
   ============================================ */
.features-showcase {
  padding-block: var(--section-gap);
}

.features-showcase-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row--reversed { grid-template-columns: 1fr 1.1fr; }
.feature-row--reversed .feature-row-image { order: 2; }
.feature-row--reversed .feature-row-text { order: 1; }

.feature-row-image {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-row-image:hover {
  transform: translateY(-4px);
}

.feature-row-image img {
  width: 100%;
  display: block;
}

.feature-row-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent-dim);
  border-radius: 4px;
}

.feature-row-text h3 {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-row-text p {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.feature-row-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-row-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.feature-row-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
  box-shadow: 0 0 8px rgba(45, 212, 167, 0.6);
}

/* ============================================
   CODECS
   ============================================ */
.codecs {
  padding-block: var(--section-gap);
}

.codecs-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.codecs-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.codecs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.codec-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.codec-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(45, 212, 167, 0.18);
  transform: translateY(-2px);
}

.codec-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.codec-card-mark {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid;
}

.codec-card-mark--green {
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.22);
}
.codec-card-mark--teal {
  color: var(--accent-light);
  background: rgba(45, 212, 167, 0.08);
  border-color: rgba(45, 212, 167, 0.25);
}
.codec-card-mark--blue {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.22);
}
.codec-card-mark--amber {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.22);
}

.codec-card-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.codec-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.codec-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.codec-card-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

/* ============================================
   MORE FEATURES
   ============================================ */
.more-features {
  padding-block: var(--section-gap);
}

.more-features-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  will-change: transform;
  transition: border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(45, 212, 167, 0.16);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(45, 212, 167, 0.06);
  border-color: rgba(45, 212, 167, 0.18);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   SCREENSHOTS
   ============================================ */
.screenshots {
  padding-block: var(--section-gap);
}

.screenshots-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.screenshot-card {
  position: relative;
  display: block;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s ease;
  color: var(--text-secondary);
}

.screenshot-card:hover {
  transform: translateY(-4px);
  color: var(--text-primary);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-card-label {
  display: block;
  padding: 0.7rem 0.25rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: inherit;
  transition: color 0.3s;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
}

.lightbox.is-open .lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

.lightbox-close:hover { color: #fff; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
  padding-block: var(--section-gap);
}

.how-header {
  text-align: center;
  margin-bottom: 4rem;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.how-step {
  text-align: center;
  position: relative;
}

.how-step-num {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-dim);
  border: 1px solid rgba(45, 212, 167, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.how-step:hover .how-step-num {
  border-color: rgba(45, 212, 167, 0.4);
  transform: rotate(-3deg) scale(1.04);
}

.how-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.how-step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   TECH SECTION
   ============================================ */
.tech {
  padding-block: var(--section-gap);
  position: relative;
}

.tech-layout {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0;
}

.tech-stack-tag {
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.tech-stack-tag:hover {
  border-color: rgba(45, 212, 167, 0.25);
  color: var(--text-primary);
  background: rgba(45, 212, 167, 0.04);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding-block: var(--section-gap);
}

.cta-box {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45, 212, 167, 0.05) 0%, transparent 70%),
    rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(45, 212, 167, 0.12);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 167, 0.45), transparent);
}

.cta-box .section-heading {
  margin-bottom: 1rem;
}

.cta-box .section-desc {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cta-meta span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
}
.footer-links a:hover { color: var(--text-primary); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  /* opacity/transform set by JS */
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .preset-grid { grid-template-columns: repeat(3, 1fr); }
  .codecs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-row--reversed .feature-row-image { order: 0; }
  .feature-row--reversed .feature-row-text { order: 0; }

  .manifesto-pillars { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .stat-item:not(:last-child)::after { right: -0.5rem; }
}

@media (max-width: 768px) {
  .scroll-rail { display: none; }

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

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 18, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem var(--container-pad);
    border-bottom: 1px solid var(--border-subtle);
    gap: 0.25rem;
  }

  .nav-links.open a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  .preset-note { flex-direction: column; gap: 0.5rem; }

  .manifesto-pillars { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .codecs-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-item:not(:last-child)::after { display: none; }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }

  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .shrink-strip-rail {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    text-align: center;
  }
  .shrink-strip-bar { width: 100%; }

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

  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}
