:root {
  --ink: #071014;
  --night: #0b1519;
  --panel: #111f24;
  --panel-2: #18292e;
  --line: rgba(255, 233, 184, .18);
  --cream: #ffe7ad;
  --gold: #f4b94c;
  --amber: #ff8b2f;
  --red: #ef3528;
  --teal: #32d6d0;
  --muted: #b8c6c7;
  --paper: #fff8e9;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.light-page {
  color: #102126;
  background: #fffaf0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 16, 20, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

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

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

.brand span {
  color: var(--cream);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  color: #f9e9c5;
  text-decoration: none;
  opacity: .84;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cream);
  background: rgba(255, 255, 255, .06);
  font-size: 22px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  color: #170b05;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  box-shadow: 0 12px 32px rgba(244, 185, 76, .28);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.btn.secondary {
  color: var(--cream);
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 16, 20, .94), rgba(7, 16, 20, .74) 50%, rgba(7, 16, 20, .44)),
    var(--hero-image, radial-gradient(circle at 70% 30%, rgba(239, 53, 40, .35), transparent 42%));
  background-size: cover;
  background-position: center;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--red);
  box-shadow: 0 0 18px var(--red);
}

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

h1 {
  max-width: 820px;
  color: var(--cream);
  font-size: clamp(46px, 8vw, 104px);
}

h2 {
  color: var(--cream);
  font-size: clamp(32px, 5vw, 58px);
}

.light-page h1,
.light-page h2,
.light-page h3 {
  color: #102126;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #d8e0dc;
  font-size: clamp(18px, 2vw, 22px);
}

.light-page .lead {
  color: #486065;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.machine-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 31, 36, .9), rgba(12, 20, 24, .92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.reel {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 231, 173, .24);
  border-radius: var(--radius);
  color: var(--red);
  background: #fff0c4;
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 1000;
  text-shadow: 0 3px 0 #7f160e;
}

.panel-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.meter strong {
  display: block;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
}

.meter span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

section {
  padding: 96px 0;
}

.band {
  background: #0e1b20;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

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

.feature-row,
.info-card,
.legal-card,
.contact-card,
.download-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .055);
}

.feature-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px;
}

.icon-box {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #071014;
  background: var(--teal);
  font-weight: 1000;
}

.feature-row h3,
.info-card h3,
.legal-card h3,
.contact-card h3,
.download-card h3 {
  color: var(--cream);
  font-size: 20px;
}

.feature-row p,
.info-card p,
.legal-card p,
.contact-card p,
.download-card p,
.feature-row ul,
.legal-card ul,
.download-card ul {
  margin: 8px 0 0;
  color: var(--muted);
}

.photo-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #111;
}

.photo-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.steps,
.cards-grid,
.legal-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.info-card,
.legal-card,
.download-card {
  padding: 22px;
}

.num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #160a04;
  background: var(--gold);
  font-weight: 1000;
}

.cta-band {
  padding: 64px 0;
  background: linear-gradient(135deg, #38100d, #082326);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.page-hero {
  padding: 92px 0 64px;
  background:
    radial-gradient(circle at 20% 10%, rgba(50, 214, 208, .18), transparent 32%),
    radial-gradient(circle at 86% 4%, rgba(239, 53, 40, .2), transparent 30%),
    #0b1519;
}

.page-hero.image-hero {
  background:
    linear-gradient(90deg, rgba(7, 16, 20, .95), rgba(7, 16, 20, .62)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.legal-card {
  margin-bottom: 18px;
  background: #ffffff;
  border-color: #eadfcb;
}

.legal-card h2,
.legal-card h3,
.light-page .download-card h3,
.light-page .contact-card h3 {
  color: #102126;
}

.legal-card p,
.legal-card ul,
.light-page .download-card p,
.light-page .download-card ul,
.light-page .contact-card p {
  color: #4b6267;
}

.notice {
  border-left: 5px solid var(--red);
  background: #fff0df;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #20383d;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d6cab4;
  border-radius: var(--radius);
  padding: 14px 14px;
  color: #102126;
  background: #fffdf7;
  font: inherit;
}

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

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

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #41565b;
  font-weight: 700;
}

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

.form-message {
  min-height: 24px;
  margin-top: 14px;
  color: #1a6b45;
  font-weight: 900;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.store {
  min-width: 180px;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: #fff;
  background: #0d171b;
  text-decoration: none;
  font-weight: 900;
}

.store span {
  display: block;
  color: #b8c6c7;
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: #071014;
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-links a {
  color: var(--cream);
  text-decoration: none;
}

.h5-about {
  background: #0b1519;
}

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

@media (max-width: 860px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 16px 18px;
    background: rgba(7, 16, 20, .98);
    border-bottom: 1px solid var(--line);
  }

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

  .nav-links a {
    width: 100%;
    padding: 13px 0;
  }

  .hero-grid,
  .split,
  .cta-content,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .steps,
  .cards-grid,
  .legal-grid,
  .download-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  section {
    padding: 68px 0;
  }

  .photo-frame img {
    height: 340px;
  }
}

@media (max-width: 560px) {
  .brand span {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reels {
    gap: 8px;
    padding: 12px;
  }

  .reel {
    min-height: 106px;
    font-size: 44px;
  }

  .panel-strip {
    flex-direction: column;
  }

  .actions,
  .store-buttons {
    width: 100%;
  }

  .btn,
  .store {
    width: 100%;
  }
}
