:root {
  --gold: #f7b91e;
  --gold-strong: #d99b00;
  --ink: #111111;
  --coal: #191919;
  --stone: #f4f1ea;
  --paper: #fffdf7;
  --line: #dfd7c6;
  --muted: #6d675d;
  --green: #24745f;
  --red: #a33d2f;
  --shadow: 0 24px 70px rgba(17, 17, 17, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 215, 198, .75);
  background: rgba(255, 253, 247, .92);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  background: #000;
}

.brand-name {
  font-size: 1.03rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 13px;
  color: #3e3a33;
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: #111;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.main {
  overflow: hidden;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--stone);
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--gold-strong);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0;
}

.lead {
  max-width: 720px;
  color: #4f4a42;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero {
  min-height: calc(100vh - 78px);
  padding: 76px 0 66px;
  background:
    linear-gradient(105deg, rgba(17, 17, 17, .84), rgba(17, 17, 17, .62) 48%, rgba(17, 17, 17, .08)),
    url("https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?q=80&w=1769&auto=format&fit=crop");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 56px;
}

.hero .lead {
  margin-top: 24px;
  color: rgba(255, 255, 255, .84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  color: #111;
  background: var(--gold);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(247, 185, 30, .25);
  cursor: pointer;
}

.btn:hover {
  background: #ffd15b;
}

.btn.secondary {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}

.btn.dark {
  color: var(--gold);
  background: #111;
  box-shadow: none;
}

.btn.block {
  width: 100%;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: 18px;
  background: rgba(17, 17, 17, .68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.terminal-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .65);
  font-size: .82rem;
}

.signal-grid {
  display: grid;
  gap: 12px;
}

.signal {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .06);
}

.ticker {
  color: var(--gold);
  font-weight: 900;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #fff1b2);
}

.price {
  font-weight: 800;
}

.hero-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 60px;
}

.feature-stack {
  display: grid;
  gap: 16px;
}

.feature-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #111;
  border-radius: 8px;
  color: #111;
  background: var(--gold);
  font-weight: 900;
}

.feature-row p,
.tile p,
.step p,
.legal-card p,
.contact-card p {
  color: var(--muted);
}

.market-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: #514b41;
  background: #fffaf0;
  font-size: .82rem;
  font-weight: 750;
}

.candles {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  align-items: end;
  height: 210px;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 0 8px 14px;
}

.candle {
  position: relative;
  width: 100%;
  min-width: 7px;
  border-radius: 3px;
  background: var(--gold);
}

.candle.down {
  background: #242424;
}

.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 22px;
  transform: translateX(-50%);
  background: currentColor;
  color: inherit;
}

.queue {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.queue div {
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  background: #161616;
}

.queue strong {
  display: block;
  color: var(--gold);
  font-size: .9rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head .lead {
  max-width: 520px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.tile .mark {
  margin-bottom: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: steps;
}

.step {
  position: relative;
  border-left: 3px solid var(--gold);
  padding: 0 18px 0 18px;
  counter-increment: steps;
}

.step::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  color: var(--gold-strong);
  font-size: 1.6rem;
  font-weight: 900;
}

.quote-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quote {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.quote p:first-child {
  color: #211f1b;
  font-weight: 700;
}

.quote cite {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-style: normal;
}

.cta-band {
  border-radius: 8px;
  padding: 42px;
  color: #fff;
  background: #111;
}

.cta-band h2 {
  color: var(--gold);
}

.cta-band .lead {
  margin: 16px 0 28px;
  color: rgba(255, 255, 255, .78);
}

.page-hero {
  padding: 74px 0 54px;
  background: linear-gradient(135deg, #111 0%, #1c1a15 54%, #3d2a00 100%);
  color: #fff;
}

.page-hero .lead {
  margin-top: 20px;
  color: rgba(255, 255, 255, .8);
}

.about-photo,
.download-photo {
  min-height: 480px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.about-photo {
  background-image: linear-gradient(rgba(17, 17, 17, .12), rgba(17, 17, 17, .48)), url("https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=1769&auto=format&fit=crop");
}

.download-photo {
  background-image: linear-gradient(rgba(17, 17, 17, .05), rgba(17, 17, 17, .4)), url("https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?q=80&w=1769&auto=format&fit=crop");
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.stat-row + .about-photo {
  margin-top: 28px;
}

.stat strong {
  display: block;
  color: #111;
  font-size: 1.8rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: start;
  gap: 34px;
}

.legal-aside {
  position: sticky;
  top: 102px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.legal-aside strong {
  display: block;
  margin-bottom: 10px;
}

.legal-aside p {
  color: var(--muted);
  font-size: .94rem;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
}

.legal-card + .legal-card {
  margin-top: 18px;
}

.legal-card h2 {
  margin-bottom: 14px;
  font-size: 1.7rem;
}

.legal-card ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.highlight {
  border-left: 4px solid var(--gold);
  margin-top: 18px;
  padding: 14px 16px;
  background: #fff7df;
  color: #372a0b;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 28px;
  align-items: start;
}

.form-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.check {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: .94rem;
}

.check input {
  width: auto;
  margin-top: 6px;
}

.form-message {
  display: none;
  border-radius: 8px;
  margin-top: 16px;
  padding: 12px;
  font-weight: 750;
}

.form-message.show {
  display: block;
}

.form-message.ok {
  background: #e5f4ef;
  color: var(--green);
}

.form-message.error {
  background: #fbe9e5;
  color: var(--red);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.download-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.store-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.store {
  display: block;
  border-radius: 8px;
  padding: 15px;
  color: #fff;
  background: #111;
  text-decoration: none;
}

.store span {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: .76rem;
  font-weight: 700;
}

.store strong {
  font-size: 1.15rem;
}

.requirements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.footer {
  padding: 40px 0;
  color: rgba(255, 255, 255, .72);
  background: #111;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.h5-shell {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
}

.h5-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  background: #000;
}

@media (max-width: 900px) {
  .nav {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 8px;
  }

  .hero-grid,
  .split,
  .contact-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-panel {
    max-width: 520px;
  }

  .tile-grid,
  .quote-row,
  .steps,
  .requirements,
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    display: block;
  }

  .section-head .lead {
    margin-top: 16px;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 58px 0;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-actions,
  .store-buttons,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .cta-band,
  .form-card,
  .contact-card,
  .download-panel,
  .legal-card {
    padding: 20px;
  }

  .tile-grid,
  .quote-row,
  .steps,
  .requirements,
  .principles,
  .queue,
  .stat-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .about-photo,
  .download-photo {
    min-height: 330px;
  }

  h1 {
    font-size: clamp(2.4rem, 15vw, 3.8rem);
  }
}
