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

:root {
  --bg: #1b1510;
  --bg2: #241b14;
  --text: #f5efe6;
  --muted: #d4c6b3;
  --line: rgba(220, 193, 154, 0.22);
  --accent: #d9b27a;
  --accent-soft: #f0dcc1;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 460px at -12% -8%, rgba(133, 89, 47, .28), transparent 58%),
    radial-gradient(880px 500px at 108% 0%, rgba(191, 146, 90, .2), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6.2rem 0;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 0;
}

.hero {
  min-height: 92vh;
  padding-top: 7.2rem;
  padding-bottom: 7.2rem;
}

.final {
  min-height: 38vh;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}


.section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: transparent;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: .72rem .95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(34, 26, 20, .72);
  backdrop-filter: blur(12px);
}
.brand { color: #fffaf2; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; }
.brand img { border-radius: 10px; }
.nav nav { display: flex; gap: 1rem; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover { color: #fff6ea; }
.appstore-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  overflow: visible;
  line-height: 0;
}

.appstore-badge img {
  display: block;
  width: auto;
  height: 40px;
}

.appstore-badge-lg img {
  height: 54px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.8rem;
  align-items: center;
}
.eyebrow {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-soft);
}
.hero h1 {
  margin: .45rem 0 0;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  max-width: 13ch;
}
.hero-copy { max-width: 640px; }
.hero p { color: var(--muted); line-height: 1.62; margin-top: .85rem; }
.cta-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.1rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: .82rem 1.1rem;
  font-weight: 760;
}
.btn.primary {
  color: #2c1d0f;
  background: linear-gradient(90deg, var(--accent), #f2d6b2);
  box-shadow: 0 10px 28px rgba(126, 86, 41, .35);
}
.btn.ghost { color: #f3e7d7; border: 1px solid var(--line); background: rgba(255,245,230,.04); }
.hero small { color: #cdb79b; display: block; margin-top: .9rem; }

.hero-visual {
  position: relative;
  min-height: 520px;
}
.phone {
  position: absolute;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 30px 65px rgba(0,0,0,.45);
}
.phone.main { width: 245px; left: 50%; transform: translateX(-50%); z-index: 3; }
.phone.left { width: 205px; left: 4%; top: 44px; transform: rotate(-10deg); z-index: 2; }
.phone.right { width: 205px; right: 4%; top: 44px; transform: rotate(10deg); z-index: 2; }

h2 {
  margin: 0 0 .9rem;
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  letter-spacing: -.02em;
}

.section > p {
  margin: 0 0 1rem;
}

#how, #guides, .faq, .final {
  scroll-margin-top: 90px;
}

.hero::before { background: transparent; border-top: 0; }
#how::before { background: rgba(39, 29, 22, 0.72); }
.split::before { background: rgba(31, 23, 17, 0.76); }
#guides::before { background: rgba(39, 29, 22, 0.72); }
.faq::before { background: rgba(31, 23, 17, 0.76); }
.final::before {
  background: linear-gradient(180deg, rgba(217,178,122,.12), rgba(134,96,56,.14));
}

.cards.three {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.1rem;
}
.cards article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 244, 227, .035);
  padding: .95rem;
}
.cards article p { color: var(--muted); margin: .4rem 0 0; }

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 1.4rem;
  align-items: center;
}
.split img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.split p, .split li { color: var(--muted); line-height: 1.6; }

.link-grid {
  margin-top: .9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .7rem;
}
.link-grid a {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,245,230,.03);
  padding: .9rem;
  text-decoration: none;
  color: #f1e2cf;
}
.link-grid a:hover { border-color: rgba(217,178,122,.62); }

.faq details {
  margin-top: .7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,243,224,.03);
  padding: .85rem .95rem;
}
.faq summary { cursor: pointer; font-weight: 680; }
.faq p { color: var(--muted); }

.final {
  text-align: center;
}

.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto 1.2rem;
  display: flex;
  justify-content: space-between;
  color: #bfae99;
  font-size: .9rem;
}
.footer a { color: #e7d5bf; text-decoration: none; }

/* Guides section */
.guides { align-items: flex-start; }
.guides .eyebrow { margin-bottom: .35rem; }
.guides-sub { color: var(--muted); line-height: 1.6; margin: 0 0 .4rem; max-width: 52ch; }
.guides::before { background: rgba(39, 29, 22, 0.72); }

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

.guide-card {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 244, 227, .03);
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.guide-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35), 0 0 0 1px rgba(217, 178, 122, .18);
}

.guide-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.guide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.guide-card:hover .guide-img img {
  transform: scale(1.05);
}

.guide-body {
  padding: 1.1rem 1.2rem 1.3rem;
}
.guide-body h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.guide-body p {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.guide-link {
  display: inline-block;
  margin-top: .7rem;
  font-size: .85rem;
  font-weight: 650;
  color: var(--accent);
  transition: color .2s ease;
}
.guide-card:hover .guide-link {
  color: var(--accent-soft);
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero, .cards.three, .split, .link-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; gap: 1.4rem; padding-top: 3.2rem; padding-bottom: 3.2rem; }
  .final { min-height: 0; padding-top: 2.2rem; padding-bottom: 2.2rem; }
  .hero-visual { min-height: 430px; }
  .phone.main { width: 205px; }
  .phone.left, .phone.right { width: 165px; top: 30px; }
  .nav nav { display: none; }
  .section { padding: 3.2rem 0; min-height: 0; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .section, .nav, .footer { width: calc(100% - 1rem); }
  .section { padding: 2.4rem 0; min-height: 0; }
  .hero h1 { font-size: 2rem; }
  .appstore-badge img { height: 36px; }
  .appstore-badge-lg img { height: 50px; }
  .footer { flex-direction: column; gap: .4rem; }
  .guide-grid { grid-template-columns: 1fr; }
}
