:root {
  --color-bg: #08080A;
  --color-surface: #111114;
  --color-surface-elevated: #1C1C1F;
  --color-gold: #F5DDC5;
  --color-red: #8b0000;
  --color-red-light: #b22222;
  --color-text: #F5F5F7;
  --color-text-secondary: #86868B;
  --color-text-tertiary: #48484A;
  --color-border: rgba(255, 255, 255, 0.06);
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1080px;
  --spacing-page: clamp(1.5rem, 5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

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

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  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='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");
  background-repeat: repeat;
  background-size: 256px;
}

/* ─── Navigation ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding-top: env(safe-area-inset-top);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-page);
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ─── Hero ─── */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem var(--spacing-page) 6rem;
  display: flex;
  align-items: center;
  gap: 6rem;
  position: relative;
  min-height: min(85vh, 740px);
}

.hero-spotlight {
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 800px;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(245, 221, 197, 0.04) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  animation: spotlight-breathe 10s ease-in-out infinite alternate;
}

@keyframes spotlight-breathe {
  from { opacity: 1; }
  to { opacity: 0.6; }
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
  animation: fade-up 0.8s ease-out both;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 400px;
  animation: fade-up 0.8s ease-out 0.1s both;
}

.hero-cta {
  animation: fade-up 0.8s ease-out 0.15s both;
}

.hero-image {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: fade-up 1s ease-out 0.2s both;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(245, 221, 197, 0.05) 0%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-spotlight,
  .hero-content,
  .hero-subtitle,
  .hero-cta,
  .hero-image {
    animation: none !important;
  }
}

/* ─── iPhone Frame ─── */

.iphone-frame {
  width: 272px;
  height: 556px;
  background: #000;
  border-radius: 48px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 100px -20px rgba(0, 0, 0, 0.9),
    0 0 80px rgba(245, 221, 197, 0.04);
}

.iphone-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 49px;
  padding: 2px;
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 0;
}

.iphone-dynamic-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 22px;
  background: #000;
  border-radius: 11px;
  z-index: 3;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  border-radius: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.screen-placeholder {
  padding: 52px 24px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.screen-placeholder-bar {
  height: 7px;
  border-radius: 3.5px;
  background: rgba(255, 255, 255, 0.04);
}

.screen-placeholder-bar:first-child {
  width: 40%;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 6px;
}

/* ─── App Store Badge ─── */

.app-store-badge {
  display: inline-block;
}

.app-store-badge img {
  height: 48px;
  width: auto;
  transition: opacity 0.2s ease;
}

.app-store-badge:hover img {
  opacity: 0.75;
}

/* ─── Features ─── */

.features {
  padding: 4rem var(--spacing-page) 8rem;
  position: relative;
}

.features h2 {
  font-size: 1.625rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(178, 34, 34, 0.2);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245, 221, 197, 0.06);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

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

/* ─── CTA ─── */

.cta {
  text-align: center;
  padding: 6rem var(--spacing-page) 8rem;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(245, 221, 197, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  position: relative;
}

.cta p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  position: relative;
}

.cta .app-store-badge {
  position: relative;
}

/* ─── Footer ─── */

.site-footer {
  padding: 2rem var(--spacing-page);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

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

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

/* ─── Prose (Privacy, Support) ─── */

.prose {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem var(--spacing-page) 6rem;
}

.prose h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.prose h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.prose strong {
  color: var(--color-text);
  font-weight: 600;
}

.prose ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.prose a {
  color: var(--color-gold);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

/* ─── Support Page ─── */

.support-page {
  text-align: center;
  padding-top: 6rem;
}

.support-page p {
  font-size: 1.0625rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.support-email {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border: 1.5px solid rgba(245, 221, 197, 0.2);
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.support-email:hover {
  background: rgba(139, 0, 0, 0.1);
  border-color: rgba(245, 221, 197, 0.35);
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 4rem var(--spacing-page) 3rem;
    text-align: center;
    gap: 3rem;
    min-height: auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    display: flex;
    justify-content: center;
  }

  .hero-spotlight {
    width: 200%;
    height: 500px;
    top: -150px;
  }

  .hero-image::before {
    width: 280px;
    height: 400px;
  }

  .iphone-frame {
    width: 232px;
    height: 474px;
    border-radius: 40px;
    padding: 8px;
  }

  .iphone-frame::before {
    border-radius: 41px;
  }

  .iphone-dynamic-island {
    top: 14px;
    width: 64px;
    height: 18px;
    border-radius: 9px;
  }

  .iphone-screen {
    border-radius: 34px;
  }

  .screen-placeholder {
    padding: 44px 20px 20px;
    gap: 12px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .features h2 {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
  }

  .features {
    padding: 3rem var(--spacing-page) 5rem;
  }

  .cta {
    padding: 4rem var(--spacing-page) 5rem;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .prose {
    padding: 3rem var(--spacing-page) 4rem;
  }

  .prose h1 {
    font-size: 1.75rem;
  }
}
