:root {
  --maroon-900: #3d0603;
  --maroon-800: #5a0905;
  --maroon-700: #7a0c07;
  --crimson: #a3150c;
  --saffron: #f3671e;
  --saffron-dark: #c4470d;
  --gold: #f6b73c;
  --gold-light: #ffd98a;
  --cream: #fff6ef;
  --cream-2: #fdebdc;
  --ink: #2a140e;
  --muted: #6e5248;
  --line: #f1d3bf;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(90, 9, 5, 0.45);
  --serif: 'Gentium Book Plus', Georgia, serif;
  --sans: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 44px); color: var(--maroon-800); }
h3 { font-size: 22px; }
p { margin: 0; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  border: 0; cursor: pointer; font-family: var(--sans);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--maroon-900);
  box-shadow: 0 10px 30px -12px rgba(246, 183, 60, .8);
}
.btn-saffron {
  background: linear-gradient(135deg, var(--saffron), #ffa048);
  color: #fff;
  box-shadow: 0 12px 30px -14px rgba(243, 103, 30, .9);
}
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(61, 6, 3, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 217, 138, .15);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { border-radius: 10px; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .2px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 16px; }
.nav-links a:hover { color: var(--gold-light); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(246, 183, 60, .35), transparent 55%),
    linear-gradient(160deg, var(--maroon-700) 0%, var(--maroon-900) 75%);
  padding: 72px 0 96px;
}
.hero-glow {
  position: absolute; inset: auto -10% -40% -10%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(243, 103, 30, .35), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1.15fr .85fr;
}
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--gold-light);
  border: 1px solid rgba(255, 217, 138, .4); border-radius: 999px; padding: 4px 14px;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); margin: 18px 0 18px; }
.lead { font-size: 20px; color: rgba(255, 255, 255, .86); max-width: 34em; }
.lead.dark { color: var(--muted); margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, .65); }
.hero-art { display: flex; justify-content: center; }
.hero-art picture { display: block; width: min(480px, 100%); margin-inline: auto; }
.hero-logo {
  width: 100%; height: auto; margin-inline: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)) drop-shadow(0 0 30px rgba(246, 183, 60, .18));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
.section { padding: 88px 0; }
.kicker {
  color: var(--saffron-dark); font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; font-size: 14px; margin-bottom: 10px;
}
.center h2 { margin-inline: auto; }

/* Languages */
.langs {
  list-style: none; padding: 0; margin: 36px auto 0; max-width: 820px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.langs li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 20px; font-size: 20px; color: var(--maroon-800); font-weight: 600;
  font-style: italic;
}
#languages .kicker, #languages h2 { font-style: italic; }

/* Early-access section (first version's layout) */
.signup {
  color: #fff; padding: 96px 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(246, 183, 60, .25), transparent 55%),
    linear-gradient(160deg, var(--maroon-700), var(--maroon-900));
}
.signup-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.signup h2 { color: #fff; margin: 16px 0 16px; }
.signup-copy p { color: rgba(255, 255, 255, .85); }
.perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.perks li { position: relative; padding-left: 32px; color: rgba(255, 255, 255, .9); }
.perks li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d0603' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 15px;
  border: 1.5px solid var(--line); background: #fffaf6; color: var(--muted);
  transition: all .15s ease;
}
.chips input:checked + span { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.consent a { color: var(--saffron-dark); }
.invite-lead { margin-top: 6px; font-weight: 600; color: var(--maroon-800) !important; }
.invite { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--maroon-800); border: 1.5px solid var(--line); }

/* Emphasis: bold italics in the serif */
h1 em, h2 em { font-style: italic; }
.hero h1 em { color: var(--gold-light); }
.signup h2 em { color: var(--gold-light); }
.section h2 em { color: var(--saffron-dark); }
.lead strong, .signup-copy strong, .perks strong { font-weight: 700; color: #fff; }
.lead strong em, .signup-copy strong em { font-family: var(--serif); font-size: 1.05em; }

/* Early-access form */
.card {
  background: var(--card); color: var(--ink); border-radius: 22px; padding: 30px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6);
}
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; color: var(--maroon-800); padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type=text], input[type=email], input[type=tel], select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fffaf6;
}
input:focus, select:focus { border-color: var(--saffron); outline: none; box-shadow: 0 0 0 3px rgba(243, 103, 30, .18); }
input[aria-invalid=true] { border-color: #c62828; }
.consent { display: flex; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--saffron); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 15px; text-align: center; }
.form-status.error { color: #c62828; }
.field-error { margin: 4px 0 0; font-size: 14px; color: #c62828; }
.email-suggestion { margin: 4px 0 0; font-size: 14px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #a83c0e; text-decoration: underline; cursor: pointer; }
[aria-invalid="true"] { border-color: #c62828; }

.form-done { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 48px 30px; }
.form-done img { border-radius: 16px; }
.form-done h3 { font-size: 28px; color: var(--maroon-800); }
.form-done p { color: var(--muted); max-width: 26em; }

/* Footer: logo, about, legal, credit */
.footer {
  color: rgba(255, 255, 255, .78); font-size: 15px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(246, 183, 60, .14), transparent 50%),
    linear-gradient(180deg, var(--maroon-900), #260302);
  border-top: 1px solid rgba(255, 217, 138, .18);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr 1.5fr 1fr 1fr; gap: 40px;
  padding: 56px 0 40px; align-items: start;
}
.footer h3 {
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer-logo img {
  width: min(170px, 100%); height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)) drop-shadow(0 0 18px rgba(246, 183, 60, .22));
}
.footer-about p { line-height: 1.7; max-width: 26em; }
.footer-about em { font-family: var(--serif); color: var(--gold-light); }
.footer-legal a { color: rgba(255, 255, 255, .5); font-size: 14px; }
.footer-legal a:hover { color: rgba(255, 255, 255, .85); }
.footer-credit em { font-family: var(--serif); font-size: 17px; color: #fff; }
.footer-credit strong { color: var(--gold-light); letter-spacing: .5px; }
.footer-bottom {
  padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px; color: rgba(255, 255, 255, .5); text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .signup-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art picture { width: min(300px, 78%); }
  .hero h1 { margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-logo, .footer-about { grid-column: 1 / -1; text-align: center; }
  .footer-logo img { margin-inline: auto; }
  .footer-about p { margin-inline: auto; }
}
@media (max-width: 720px) {
  .section, .signup { padding: 56px 0; }
  .signup-section { padding: 48px 0 64px; }
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .row { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  body { font-size: 17px; }
  .signup-copy { text-align: center; }
  .perks { justify-content: center; }
  .perks li { text-align: left; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; padding-top: 44px; }
}

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; }
.notfound img { margin: 0 auto 20px; border-radius: 20px; }
.notfound .lead { margin: 0 auto 28px; }

/* Documents (privacy, terms, delete account) */
.doc { padding: 56px 0 80px; }
.doc-wrap { max-width: 780px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); color: var(--maroon-800); margin: 6px 0 8px; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink); font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.doc a { color: var(--saffron-dark); }
.doc-updated { color: var(--muted); font-size: 15px; }
.doc-lead { font-size: 19px; margin-top: 18px; color: var(--muted); }

/* Bold italics from the Languages section down */
.langs li { font-family: var(--serif); font-weight: 700; }
#languages .kicker { font-weight: 800; }
.perks strong em, .signup-copy strong em { font-family: var(--serif); font-size: 1.05em; color: var(--gold-light); }
.field legend em { font-family: var(--serif); font-size: 1.08em; }
.form-done h3 em, .invite-lead em { font-family: var(--serif); color: var(--saffron-dark); }
.footer-about strong em { font-family: var(--serif); color: var(--gold-light); }
.footer-credit strong em { font-family: var(--serif); font-size: 18px; color: #fff; }
.footer-bottom strong em { font-family: var(--serif); color: rgba(255, 255, 255, .75); font-size: 14px; }

/* Early-access places and APK download */
.spots { margin: 0 0 12px; font-weight: 700; color: var(--gold-light); text-align: center; letter-spacing: .3px; }
.form-done .btn-saffron { margin-top: 4px; }
.apk-note { font-size: 13px; }
.break { word-break: break-all; }
