:root {
  /* Dark editorial palette */
  --bg-deep: #0a0a0b;
  --bg-surface: #131316;
  --bg-elevated: #1a1a1f;
  --bg-hover: #222228;

  /* Vibrant purple accent - matches demo theme */
  --accent: #9580c4;
  --accent-bright: #a892d4;
  --accent-glow: rgba(149, 128, 196, 0.15);

  /* Text */
  --text-primary: #f5f4f0;
  --text-secondary: #9c9a94;
  --text-muted: #5c5a56;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(149, 128, 196, 0.3);

  /* Misc */
  --success: #6ba87a;
  --glow-spread: 0 0 80px rgba(149, 128, 196, 0.2);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain texture overlay */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==================== STICKY NAV ==================== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.sticky-nav.visible {
  transform: translateY(0);
  opacity: 1;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.nav-links .nav-cta {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 4px;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--accent-bright);
  color: var(--bg-deep);
}

@media (max-width: 640px) {
  .nav-container {
    padding: 0.75rem 1.25rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* Section label */
.section-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(149, 128, 196, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(149, 128, 196, 0.05) 0%, transparent 50%),
    var(--bg-deep);
}

.hero-content {
  max-width: 700px;
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-accent {
  display: block;
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: var(--bg-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: var(--glow-spread);
}

.hero-btn:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(149, 128, 196, 0.3);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-btn-secondary {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.hero-btn-secondary:hover {
  color: var(--accent);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-hint svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ==================== PROBLEM ==================== */
.problem {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.problem-statement {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

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

.problem-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.problem-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: 4px;
  border-left: 3px solid var(--accent);
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==================== SOLUTION ==================== */
.solution {
  padding: 5rem 0;
  text-align: center;
}

.solution-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.solution-headline em {
  color: var(--accent);
}

.solution-description {
  max-width: 500px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ==================== FEATURES ==================== */
.features {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.feature h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

.features-cta {
  text-align: center;
  margin-top: 3rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==================== DEMO ==================== */
.demo {
  padding: 4rem 0 8rem;
  background:
    radial-gradient(ellipse 100% 60% at 50% 30%, rgba(149, 128, 196, 0.06) 0%, transparent 60%),
    var(--bg-deep);
}

.browser-mockup {
  background: var(--bg-elevated);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 25px 80px -15px rgba(0, 0, 0, 0.6),
    var(--glow-spread);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

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

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-hover);
}

.browser-dots span:first-child { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:last-child { background: #27ca40; }

.browser-address {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.browser-address svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.browser-actions {
  padding: 0.5rem;
  opacity: 0.3;
}

.browser-actions svg {
  width: 16px;
  height: 16px;
}

.browser-content {
  height: 500px;
  position: relative;
  overflow: hidden;
}

.browser-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #f0eef5;
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.demo-caption svg {
  width: 16px;
  height: 16px;
}

/* ==================== INSTALL ==================== */
.install {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.install-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 2rem;
  text-align: center;
}

.install-headline em {
  color: var(--accent);
}

.install-cta {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.install-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.chrome-store-btn {
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
}

.chrome-store-btn .chrome-icon {
  width: 24px;
  height: 24px;
}

.install-steps {
  max-width: 700px;
  margin: 0 auto;
}

.install-step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.install-step:last-child {
  border-bottom: none;
}

.install-step.success {
  background: linear-gradient(90deg, rgba(107, 168, 122, 0.1) 0%, transparent 100%);
  margin: 0 -2rem;
  padding: 2rem;
  border-radius: 8px;
  border-bottom: none;
}

.step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.install-step.success .step-number {
  background: var(--success);
  border-color: var(--success);
}

.install-step.success .step-number svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.step-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.step-content code {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--accent);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: var(--bg-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(149, 128, 196, 0.25);
}

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

.step-visual {
  margin-top: 1rem;
}

.folder-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.folder-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.chrome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.chrome-url {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dev-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toggle-switch {
  width: 36px;
  height: 20px;
  background: var(--bg-hover);
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.toggle-switch.active {
  background: var(--accent);
}

.toggle-knob {
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

.toggle-switch.active .toggle-knob {
  left: 18px;
}

.fake-chrome-btn {
  padding: 0.6rem 1.25rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: default;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
}

.footer-about h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-name a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-name a:hover {
  color: var(--accent-bright);
}

.footer-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-cta p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.twitter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.twitter-link:hover {
  color: var(--accent-bright);
}

.twitter-link svg {
  width: 18px;
  height: 18px;
}

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

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-legal {
  margin-top: 0.75rem;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--text-secondary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 1.5rem;
  }

  .problem, .solution, .install {
    padding: 5rem 0;
  }

  .browser-content {
    height: 400px;
  }

  .install-step {
    flex-direction: column;
    gap: 1rem;
  }

  .step-number {
    align-self: flex-start;
  }
}
