/* ================================================================
   kNewTab Landing Page — Styles
   Aesthetic: Cinematic dark, editorial typography, layered depth
   ================================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600&display=swap');

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

:root {
  /* Surfaces */
  --void: #060609;
  --deep: #08080e;
  --surface: #0e0e16;
  --card: rgba(14, 14, 22, 0.75);
  --card-hover: rgba(22, 22, 35, 0.85);
  --glass: rgba(255, 255, 255, 0.02);
  --glass-hover: rgba(255, 255, 255, 0.05);

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(110, 86, 207, 0.25);

  /* Text */
  --text-1: #f0f0f5;
  --text-2: #a0a4b8;
  --text-3: #5c6070;

  /* Accent palette */
  --indigo: #6e56cf;
  --indigo-light: #9b8ae0;
  --indigo-glow: rgba(110, 86, 207, 0.35);
  --indigo-soft: rgba(110, 86, 207, 0.08);
  --emerald: #3dd68c;
  --emerald-soft: rgba(61, 214, 140, 0.08);
  --rose: #e5484d;
  --rose-soft: rgba(229, 72, 77, 0.08);
  --amber: #f5a623;
  --amber-soft: rgba(245, 166, 35, 0.08);
  --sky: #52a9ff;
  --sky-soft: rgba(82, 169, 255, 0.08);
  --pink: #e93d82;
  --teal: #12a594;

  /* Typography */
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'Geist Mono', 'SF Mono', monospace;

  /* Spacing */
  --section-pad: clamp(80px, 12vw, 160px);
  --container-max: 1200px;
  --container-narrow: 780px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--void);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--indigo-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #c4b5fd; }
img { max-width: 100%; height: auto; display: block; }

::selection {
  background: rgba(110, 86, 207, 0.3);
  color: #fff;
}

/* ================================================================
   Ambient Background
   ================================================================ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before {
  content: '';
  position: absolute;
  width: 160vw;
  height: 160vh;
  top: -30vh;
  left: -30vw;
  background:
    radial-gradient(ellipse 45% 35% at 15% 25%, rgba(110, 86, 207, 0.07), transparent),
    radial-gradient(ellipse 35% 45% at 75% 55%, rgba(82, 169, 255, 0.05), transparent),
    radial-gradient(ellipse 40% 25% at 55% 85%, rgba(61, 214, 140, 0.03), transparent);
  animation: ambient-drift 40s ease-in-out infinite alternate;
}

@keyframes ambient-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-4vw, -3vh) rotate(1.5deg); }
}

/* Grain overlay */
.ambient::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 9999;
}

/* ================================================================
   Layout Containers
   ================================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

/* ================================================================
   Navigation
   ================================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
  padding: 12px 0;
  background: rgba(6, 6, 9, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.025em;
}

.nav-brand img { width: 32px; height: 32px; border-radius: 9px; }

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

.nav-links a {
  color: var(--text-3);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.25s;
  letter-spacing: 0.01em;
}

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

.nav-cta {
  background: var(--indigo);
  color: white !important;
  padding: 9px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s;
  box-shadow: 0 2px 12px var(--indigo-glow);
}

.nav-cta:hover {
  background: #5b44b2;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--indigo-glow);
  color: white !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-1);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg { width: 24px; height: 24px; }

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--indigo);
  color: white;
  box-shadow: 0 4px 20px var(--indigo-glow);
}

.btn-primary:hover {
  background: #5b44b2;
  transform: translateY(-2px);
  box-shadow: 0 8px 36px var(--indigo-glow);
  color: white;
}

.btn-ghost {
  background: var(--glass);
  color: var(--text-2);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--glass-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--text-1);
}

.btn-kofi {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid rgba(245, 166, 35, 0.15);
}

.btn-kofi:hover {
  background: rgba(245, 166, 35, 0.14);
  border-color: rgba(245, 166, 35, 0.3);
  transform: translateY(-2px);
  color: var(--amber);
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  filter: saturate(0.4) brightness(0.7);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--void) 0%,
    transparent 35%,
    transparent 55%,
    var(--void) 100%
  );
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--indigo-soft);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 8px 22px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--indigo-light);
  margin-bottom: 44px;
  letter-spacing: 0.03em;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(61, 214, 140, 0); }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--text-1);
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #6e56cf, #9b8ae0, #e93d82);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   Section Headers (reusable)
   ================================================================ */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header .eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  display: block;
}

.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.section-header p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ================================================================
   Statement (full-width pull quotes)
   ================================================================ */
.statement {
  padding: var(--section-pad) 0;
  position: relative;
}

.statement-text {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 880px;
}

.statement-text .hl { color: var(--indigo-light); }
.statement-text .soft { color: var(--text-2); }

/* ================================================================
   Parallax Breaks
   ================================================================ */
.parallax-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20% 0;
  z-index: -1;
}

.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(0.4) brightness(0.7);
  will-change: transform;
}

.parallax-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--void) 0%,
    rgba(6, 6, 9, 0.25) 30%,
    rgba(6, 6, 9, 0.25) 70%,
    var(--void) 100%
  );
}

.parallax-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ================================================================
   Feature Pillars Grid
   ================================================================ */
.pillars {
  padding: var(--section-pad) 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.pillar:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.pillar h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

.pillar .connector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  padding: 5px 12px;
  background: var(--glass);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.connector-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--indigo);
}

/* Pillar icon colors */
.p-search .pillar-icon { background: var(--rose-soft); }
.p-weather .pillar-icon { background: var(--sky-soft); }
.p-news .pillar-icon { background: var(--indigo-soft); }
.p-notes .pillar-icon { background: var(--amber-soft); }
.p-tasks .pillar-icon { background: var(--emerald-soft); }
.p-clock .pillar-icon { background: rgba(139, 92, 246, 0.08); }
.p-dock .pillar-icon { background: rgba(249, 115, 22, 0.08); }
.p-bookmarks .pillar-icon { background: rgba(168, 85, 247, 0.08); }
.p-ollama .pillar-icon { background: rgba(82, 169, 255, 0.08); }
.p-finance .pillar-icon { background: rgba(61, 214, 140, 0.08); }
.p-radio .pillar-icon { background: rgba(233, 61, 130, 0.08); }
.p-library .pillar-icon { background: rgba(18, 165, 148, 0.08); }
.p-export .pillar-icon { background: rgba(110, 86, 207, 0.08); }
.p-customize .pillar-icon { background: rgba(233, 61, 130, 0.08); }

/* ================================================================
   Feature Spotlights (image + text, alternating)
   ================================================================ */
.spotlight {
  padding: var(--section-pad) 0;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.spotlight-layout.reverse { direction: rtl; }
.spotlight-layout.reverse > * { direction: ltr; }

.spotlight-text .eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: block;
}

.spotlight-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.spotlight-text p {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.spotlight-text .detail-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-text .detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.detail-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-check svg { width: 12px; height: 12px; }

.spotlight-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #0c0c18, #151525);
  aspect-ratio: 4 / 3;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.spotlight-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-visual img.contain {
  object-fit: contain;
  padding: 14px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.spotlight-visual:hover img.contain {
  transform: scale(1.1);
}

/* ================================================================
   Stats Bar
   ================================================================ */
.stats-bar {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.stat-item h3 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-1), var(--text-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-item p {
  color: var(--text-3);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ================================================================
   Feature Strip — infinite scroll
   ================================================================ */
.feature-strip {
  padding: 88px 0;
  overflow: hidden;
  position: relative;
}

.feature-strip::before,
.feature-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.feature-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--void), transparent);
}

.feature-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--void), transparent);
}

.strip-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: strip-scroll 50s linear infinite;
}

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

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

.strip-card {
  width: 260px;
  flex-shrink: 0;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.strip-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.strip-card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.strip-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.strip-card p {
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ================================================================
   Customization Showcase
   ================================================================ */
.customize-showcase {
  padding: var(--section-pad) 0;
}

.customize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.customize-card {
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.customize-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.customize-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.customize-card:nth-child(1) .customize-card-icon { background: var(--indigo-soft); }
.customize-card:nth-child(2) .customize-card-icon { background: var(--rose-soft); }
.customize-card:nth-child(3) .customize-card-icon { background: var(--emerald-soft); }

.customize-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.customize-card p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

.customize-card .card-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.78rem;
  font-style: italic;
}

/* ================================================================
   Keyboard Shortcuts
   ================================================================ */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.shortcut-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.shortcut-row:last-child { border-bottom: none; }
.shortcut-keys { display: flex; gap: 4px; flex-shrink: 0; }
.shortcut-label { color: var(--text-2); font-size: 0.88rem; }

/* ================================================================
   Privacy Section
   ================================================================ */
.privacy-section {
  padding: var(--section-pad) 0;
}

.privacy-promises {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.promise {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.promise:hover {
  border-color: rgba(61, 214, 140, 0.15);
  transform: translateY(-2px);
}

.promise-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.promise-icon svg { width: 20px; height: 20px; }

.promise h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.promise p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ================================================================
   Version / Roadmap
   ================================================================ */
.version-strip {
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
}

.version-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo), transparent);
}

.version-timeline {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 780px;
  margin: 0 auto;
}

.timeline-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 24px;
  text-align: left;
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  backdrop-filter: blur(8px);
}

.timeline-item.current {
  border-color: var(--border-accent);
  background: var(--indigo-soft);
}

.timeline-item .badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.timeline-item.current .badge {
  background: var(--indigo-soft);
  color: var(--indigo-light);
}

.timeline-item.next .badge {
  background: var(--glass);
  color: var(--text-3);
}

.timeline-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ================================================================
   Dev Diary
   ================================================================ */
.dev-diary {
  padding: var(--section-pad) 0;
}

.diary-entries {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.diary-entries::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--indigo), var(--rose), var(--emerald), var(--amber));
  opacity: 0.25;
  border-radius: 1px;
}

.diary-entry {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  position: relative;
}

.diary-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
  margin-left: 23px;
  position: relative;
  z-index: 1;
}

.diary-dot.win { background: var(--emerald); box-shadow: 0 0 10px rgba(61, 214, 140, 0.4); }
.diary-dot.fail { background: var(--rose); box-shadow: 0 0 10px rgba(229, 72, 77, 0.4); }
.diary-dot.epic { background: var(--indigo); box-shadow: 0 0 10px var(--indigo-glow); }
.diary-dot.lol { background: var(--amber); box-shadow: 0 0 10px rgba(245, 166, 35, 0.4); }

.diary-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.diary-content .diary-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.diary-tag.win { background: var(--emerald-soft); color: var(--emerald); }
.diary-tag.fail { background: var(--rose-soft); color: var(--rose); }
.diary-tag.epic { background: var(--indigo-soft); color: var(--indigo-light); }
.diary-tag.lol { background: var(--amber-soft); color: var(--amber); }

.diary-content p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

.diary-content code {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--rose);
}

.diary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.diary-stat { text-align: center; }

.diary-stat .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-1), var(--text-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.diary-stat .label {
  color: var(--text-3);
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ================================================================
   CTA Section
   ================================================================ */
.cta-section {
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--indigo-glow), transparent 70%);
  opacity: 0.12;
  filter: blur(80px);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 2; }

.cta-content h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.cta-content p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   Privacy Policy Page
   ================================================================ */
.privacy-page {
  padding: 120px 0 60px;
}

.privacy-page h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.privacy-page .updated {
  color: var(--text-3);
  font-size: 0.82rem;
  margin-bottom: 28px;
}

.privacy-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
}

.privacy-page p, .privacy-page li {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.privacy-page ul { list-style: disc; padding-left: 24px; }

.privacy-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 0.85rem;
}

.privacy-page th, .privacy-page td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.privacy-page th {
  color: var(--text-1);
  font-weight: 600;
  background: rgba(14, 14, 22, 0.6);
}

.privacy-page td { color: var(--text-2); }

/* ================================================================
   RSS Feed Modal
   ================================================================ */
.help-bubble {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--indigo-soft);
  border: 1px solid var(--border-accent);
  color: var(--indigo-light);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  z-index: 5;
  line-height: 1;
}

.help-bubble:hover {
  background: rgba(110, 86, 207, 0.18);
  border-color: rgba(110, 86, 207, 0.4);
  transform: scale(1.1);
}

.feed-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 24px;
}

.feed-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.feed-modal {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  width: 100%;
  max-width: 660px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feed-modal-backdrop.open .feed-modal {
  transform: translateY(0) scale(1);
}

.feed-modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.feed-modal-header h2 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feed-modal-header .count {
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 500;
}

.feed-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.feed-modal-close:hover {
  background: var(--glass-hover);
  color: var(--text-1);
}

.feed-modal-close svg { width: 14px; height: 14px; }

.feed-modal-body {
  overflow-y: auto;
  padding: 20px 28px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.06) transparent;
}

.feed-modal-body::-webkit-scrollbar { width: 5px; }
.feed-modal-body::-webkit-scrollbar-track { background: transparent; }
.feed-modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

.feed-category { margin-bottom: 24px; }
.feed-category:last-child { margin-bottom: 0; }

.feed-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}

.feed-category-header .cat-icon {
  font-size: 1.1rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border-radius: 7px;
  flex-shrink: 0;
}

.feed-category-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  flex: 1;
}

.feed-category-header .cat-count {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
  background: var(--glass);
  padding: 2px 8px;
  border-radius: 5px;
}

.feed-category-header .chevron {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.feed-category.collapsed .chevron { transform: rotate(-90deg); }

.feed-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.feed-category.collapsed .feed-list { display: none; }

.feed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.feed-item:hover { background: var(--glass-hover); }

.feed-item-favicon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--glass);
}

.feed-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
}

.feed-item:hover .feed-item-name { color: var(--text-1); }

.feed-modal-footer {
  padding: 14px 28px 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  flex-shrink: 0;
}

.feed-modal-footer p {
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ================================================================
   Footer
   ================================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand span { font-weight: 600; font-size: 0.88rem; }

.footer-tagline {
  color: var(--text-3);
  font-size: 0.82rem;
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-3);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-2); }

/* ================================================================
   Scroll Reveal Animations
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight-layout { grid-template-columns: 1fr; gap: 44px; }
  .spotlight-layout.reverse { direction: ltr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .customize-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 6, 9, 0.96);
    backdrop-filter: blur(24px);
    padding: 20px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }

  .hero { min-height: auto; padding: 130px 0 70px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }

  .pillar-grid { grid-template-columns: 1fr; }
  .statement { padding: 80px 0; }
  .privacy-promises { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .parallax-section { min-height: 44vh; }

  .diary-entries::before { left: 15px; }
  .diary-dot { margin-left: 11px; }
  .diary-stats { grid-template-columns: repeat(2, 1fr); }

  .feed-list { grid-template-columns: 1fr; }
  .feed-modal-header, .feed-modal-body, .feed-modal-footer { padding-left: 18px; padding-right: 18px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
}
