:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --text: #fafafa;
  --text-secondary: #a1a1a1;
  --text-muted: #666;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --purple: #a855f7;
  --green: #22c55e;
  --border: #262626;
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Grain texture overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 1000;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 8rem 2rem 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.12) 0%, rgba(168, 85, 247, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #fff 50%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Demo section */
.demo {
  padding: 0 2rem 8rem;
  max-width: 1000px;
  margin: 0 auto;
}

.demo-images {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-radius: 24px;
  border: 1px solid var(--border);
}

.demo-images img {
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 25px 60px -12px rgba(0,0,0,0.7);
}

.demo-desktop {
  max-width: 100%;
  height: auto;
}

.demo-mobile {
  position: absolute;
  right: 0;
  bottom: -2rem;
  height: 320px;
  width: auto;
  border: 4px solid #222;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 30px 60px -12px rgba(0,0,0,0.9);
}

.demo-caption {
  text-align: center;
  margin-top: 3rem;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Value section */
.value {
  padding: 8rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(to bottom, var(--text), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-glow) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.value-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

/* Install section */
.install {
  padding: 4rem 2rem 8rem;
  max-width: 650px;
  margin: 0 auto;
}

.install-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.install-code {
  padding: 1.5rem;
  padding-right: 5rem;
  margin: 0;
  background: transparent;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
  font-size: 0.875rem;
  line-height: 1.8;
  overflow-x: auto;
}

.install-code code {
  color: var(--text);
}

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

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.copy-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.install-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

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

.footer-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

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

/* Page (single pages like privacy) */
.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.page h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.page-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.page-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.page-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.page-content ul {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.page-content a {
  color: var(--accent);
}

.page-content a:hover {
  text-decoration: underline;
}

.page-content strong {
  color: var(--text);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 5rem 1.5rem 4rem;
  }

  .hero::before {
    width: 400px;
    height: 400px;
    top: -100px;
  }

  .hero-sub {
    font-size: 1.0625rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
  }

  .demo {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .demo-images {
    padding: 1rem;
    border-radius: 16px;
  }

  .demo-mobile {
    display: none;
  }

  .demo-caption {
    margin-top: 2rem;
  }

  .value,
  .install {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .value {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }
}
