:root {
  --bg: #0e0c0a;
  --bg-elevated: #171410;
  --ink: #f3ead7;
  --ink-muted: rgba(243, 234, 215, 0.72);
  --gold: #c4a574;
  --gold-bright: #e2c58a;
  --accent: #8eb4e0;
  --line: rgba(196, 165, 116, 0.28);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 70% -10%, rgba(196, 165, 116, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 45% at 10% 30%, rgba(61, 90, 128, 0.14), transparent 50%),
    linear-gradient(180deg, #14110e 0%, #0e0c0a 45%, #0a0908 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(243, 234, 215, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 234, 215, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: grain-drift 28s linear infinite;
}

@keyframes grain-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-24px, -24px, 0); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes icon-glow {
  0%, 100% { filter: drop-shadow(0 24px 48px rgba(196, 165, 116, 0.22)); }
  50% { filter: drop-shadow(0 28px 64px rgba(226, 197, 138, 0.34)); }
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  animation: rise-in 0.7s ease both;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-left img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  padding: min(10vh, 96px) 8vw 72px;
  align-items: center;
  min-height: calc(100svh - 84px);
}

.hero-copy {
  animation: rise-in 0.85s 0.08s ease both;
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 11ch;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 34rem;
  margin-bottom: 32px;
}

.cta .appstore {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3d5a80, #2c4463);
  color: #f7f2e8;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 32px rgba(61, 90, 128, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta .appstore:hover:not(.disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(61, 90, 128, 0.36);
}

.cta .disabled {
  opacity: 0.7;
  cursor: default;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: rise-in 1s 0.16s ease both;
}

.hero-visual img {
  width: min(100%, 420px);
  height: auto;
  border-radius: 28%;
  animation: icon-glow 5.5s ease-in-out infinite;
}

/* SECTIONS */
.section-head {
  max-width: 40rem;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.features {
  padding: 72px 8vw;
  border-top: 1px solid var(--line);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.feature p {
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 28rem;
}

/* FOOTER */
footer {
  padding: 40px 8vw 56px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.copyright {
  font-size: 0.8rem;
  opacity: 0.55;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: 36px;
    gap: 36px;
  }

  .hero-copy h1 {
    max-width: none;
    margin-inline: auto;
  }

  .lede {
    margin-inline: auto;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(72vw, 280px);
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-head,
  .feature p {
    margin-inline: 0;
    text-align: left;
  }

  .footer-links {
    justify-content: center;
  }

  footer {
    text-align: center;
  }
}
