*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f0c08;
  --bg-raised: #181410;
  --bg-card: #1e1912;
  --bg-card-hi: #272018;

  --gold: #c8a04a;
  --gold-light: #ddb96a;
  --gold-dim: #6e5220;
  --gold-glow: rgba(200, 160, 74, 0.1);

  --border: rgba(180, 140, 60, 0.2);
  --border-hi: rgba(180, 140, 60, 0.38);
  --border-act: rgba(180, 140, 60, 0.6);

  --text: #ddd0b0;
  --text-mid: #bfad8e;
  --text-dim: #8a7860;
  --ink: #f0e6cc;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
a,
button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Crimson Text", Georgia, serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(5, 3, 1, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid rgba(180, 140, 60, 0.35);
  opacity: 0.9;
  flex-shrink: 0;
}
.nav-brand:hover {
  color: var(--gold-light);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: "Cinzel", serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--gold);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
  transform-origin: center;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 199;
  background: rgba(5, 3, 1, 0.97);
  backdrop-filter: blur(20px);
  padding: 5rem 2rem 2.5rem;
  border-bottom: 1px solid var(--border-hi);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mobile-menu ul li {
  border-bottom: 1px solid var(--border);
}
.mobile-menu ul li:first-child {
  border-top: 1px solid var(--border);
}
.mobile-menu ul li a {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  padding: 1.2rem 0.5rem;
  transition:
    color 0.2s,
    padding-left 0.2s;
}
.mobile-menu ul li a:hover,
.mobile-menu ul li a:active {
  color: var(--gold);
  padding-left: 1rem;
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 200px;
}
.divider span:not(.divider-ornament) {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim));
}
.divider span:last-child:not(.divider-ornament) {
  background: linear-gradient(to left, transparent, var(--gold-dim));
}
.divider-ornament {
  font-size: 0.6rem;
  color: var(--gold-dim);
  flex: none;
}
.divider-sm {
  max-width: 140px;
  margin: 1.5rem auto 3rem;
}

/* ── BUTTONS ──
   Primary: Cinzel bold, larger size, very dark text on gold gradient
   The key fix: bigger font-size + less letter-spacing = instantly readable
*/
.btn {
  font-family: "Cinzel", serif;
  font-size: 0.75rem; /* was 0.64rem — now properly readable */
  font-weight: 700;
  letter-spacing: 0.18em; /* was 0.24em — tighter, less spaced-out */
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  border: none;
}

.btn-primary {
  color: #080500; /* very dark — max contrast against gold */
  background: linear-gradient(
    180deg,
    #ead480 0%,
    #c8a04a 40%,
    #9a7225 75%,
    #b48c35 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 175, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 4px 22px rgba(130, 90, 20, 0.22);
}
.btn-primary:hover {
  background: linear-gradient(
    180deg,
    #f2de90 0%,
    #d4ac58 40%,
    #aa8232 75%,
    #c09840 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 190, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.32),
    0 4px 18px rgba(0, 0, 0, 0.55),
    0 8px 32px rgba(130, 90, 20, 0.28);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-outline {
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(180, 140, 60, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.btn-outline:hover {
  color: var(--gold-light);
  border-color: rgba(200, 160, 74, 0.8);
  background: rgba(200, 160, 74, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}
.btn-outline:active {
  transform: translateY(1px);
}

.btn-large {
  padding: 1.15rem 3rem;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
}

/* ── HERO ANIMATION ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-logo        { animation: heroFadeUp 0.7s ease both; animation-delay: 0.1s; }
.hero-title-wrap  { animation: heroFadeUp 0.7s ease both; animation-delay: 0.25s; }
.hero-script-wrap { animation: heroFadeUp 0.7s ease both; animation-delay: 0.38s; }
.hero-desc        { animation: heroFadeUp 0.7s ease both; animation-delay: 0.5s; }
.btn-row          { animation: heroFadeUp 0.7s ease both; animation-delay: 0.62s; }
.hero-trust       { animation: heroFadeUp 0.7s ease both; animation-delay: 0.72s; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 60% at 50% 42%,
    rgba(200, 160, 74, 0.055) 0%,
    transparent 68%
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  box-shadow:
    0 0 0 7px rgba(200, 160, 74, 0.055),
    0 24px 64px rgba(0, 0, 0, 0.75);
  margin-bottom: 2rem;
  padding: 0.5rem;
}
.hero-title-wrap {
  width: 100%;
  max-width: 580px;
  margin-bottom: 0.5rem;
}
.hero-title-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.hero-script-wrap {
  width: 100%;
  max-width: 520px;
  margin-bottom: 1.75rem;
}
.hero-script {
  width: 100%;
  transform: scale(1.06);
  transform-origin: center;
  height: auto;
  overflow: visible;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 2.25rem;
  font-style: italic;
}
.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero-trust {
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── SECTIONS ── */
section {
  padding: 7rem 2rem;
}
section[id] {
  scroll-margin-top: 68px;
}
.inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

/* ── FEATURES ── */
#features {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-mid);
  font-style: italic;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3.5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3rem;
}
@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.feature-item {
  padding: 0;
  position: relative;
}
.feature-item::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold-dim);
  margin-bottom: 1.25rem;
}
.feature-icon-wrap {
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
  opacity: 0.88;
  transition: opacity 0.25s;
}
.feature-item:hover .feature-icon-wrap {
  opacity: 1;
}
.feature-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-name {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
  font-weight: 600;
}
.feature-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}


/* ── DOWNLOAD ── */
#download {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.download-card {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--border-hi);
  background: var(--bg-card);
  padding: 3.5rem 3rem;
  text-align: center;
  position: relative;
}
.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.download-badge {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.download-title {
  font-family: "Cinzel", serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}
.download-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin-bottom: 2.25rem;
}
.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(180, 140, 60, 0.07);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}
.dot {
  color: var(--gold);
  font-size: 0.5rem;
}
.download-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Cinzel", serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.trust-item svg {
  width: 11px;
  height: 11px;
  opacity: 0.7;
  color: var(--gold);
  flex-shrink: 0;
}

/* ── SUPPORT ── */
#support {
  background: var(--bg);
}
.support-intro {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
  text-align: center;
  max-width: 500px;
  margin: 0 auto 3rem;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}
.support-card {
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--bg-card);
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.2s;
}
.support-card:hover {
  border-color: var(--border-act);
  background: var(--bg-card-hi);
  transform: translateY(-2px);
}
.s-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  opacity: 0.82;
  transition: opacity 0.2s;
}
.support-card:hover .s-icon {
  opacity: 1;
}
.s-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.support-card h3 {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.875rem;
  font-weight: 600;
}
.support-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.75rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-brand {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-mid);
  font-style: italic;
}
.footer-tech {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-copy {
  font-family: "Cinzel", serif;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  opacity: 0.6;
  margin-top: 0.25rem;
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .mobile-menu {
    display: block;
  }
  nav {
    padding: 1rem 1.25rem;
  }

  .hero {
    padding: 7rem 1.5rem 5rem;
  }
  .hero-logo {
    width: 110px;
    height: 110px;
    margin-bottom: 1.75rem;
  }
  .hero-desc {
    font-size: 1.05rem;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin: 0 auto 1.5rem;
    gap: 0.75rem;
  }
  .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }
  .btn-large {
    padding: 0.95rem 1.5rem;
  }

  section {
    padding: 5rem 1.25rem;
  }
  .section-title {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .download-card {
    padding: 2.25rem 1.5rem;
  }
  .download-title {
    font-size: 1.6rem;
  }
  .download-meta {
    flex-direction: column;
    gap: 0.3rem;
  }
  .dot {
    display: none;
  }
  .download-trust {
    gap: 1rem;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
  .support-card {
    padding: 2rem 1.5rem;
  }

  footer {
    padding: 2.25rem 1.25rem;
  }
}

/* ── HOW IT WORKS ── */
#how-it-works {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  align-items: center; /* vertically center number with text */
  gap: 2.5rem;
}

.step-number {
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-dim);
  letter-spacing: 0.05em;
  border: 1px solid var(--border-hi);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-card);
}

.step-body {
  flex: 1;
}

.step-title {
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

/* vertical connector line between steps */
.step-connector {
  display: flex;
  padding-left: 27px; /* half of 56px box = 28, minus 1px for line width */
  height: 2.5rem;
}
.step-connector span {
  width: 1px;
  background: linear-gradient(to bottom, var(--border-hi), var(--border));
}

.steps-cta {
  margin-top: 3.5rem;
  text-align: center;
}

@media (max-width: 640px) {
  .step {
    gap: 1.5rem;
  }
  .step-number {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }
  .step-connector {
    padding-left: 22px;
  }
}

/* ── APP PREVIEW ── */
#preview {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.preview-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-mid);
  font-style: italic;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3rem;
}

.preview-frame {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--border-hi);
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  position: relative;
}

/* corner marks */
.preview-frame::before,
.preview-frame::after {
  content: "✦";
  position: absolute;
  font-size: 0.5rem;
  color: var(--gold-dim);
  opacity: 0.5;
}
.preview-frame::before {
  top: 0.65rem;
  left: 0.8rem;
}
.preview-frame::after {
  top: 0.65rem;
  right: 0.8rem;
}

.preview-img {
  width: 100%;
  display: block;
}

@media (max-width: 640px) {
  .preview-frame {
    padding: 1.25rem 0.75rem;
  }
}
