:root {
  color-scheme: dark;
  --deep: #151329;
  --base: #1a1733;
  --surface: #221f43;
  --surface-2: #2b2750;
  --elevated: #342e61;
  --text: #f7f3fb;
  --muted: #b8b1c9;
  --quiet: #8d87a3;
  --red: #ff4d5e;
  --red-soft: rgba(255, 77, 94, 0.16);
  --warm: #f2a59b;
  --green: #34c98a;
  --blue: #6fcbff;
  --purple: #9f8dff;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--text);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
.page-frame {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 96px 96px,
    radial-gradient(circle at 82% 12%, rgba(255,77,94,0.14), transparent 32rem),
    linear-gradient(135deg, var(--deep), var(--base) 62%, #120f25);
}

.page-frame::before {
  content: "";
  position: fixed;
  inset: 18px;
  border: 1px solid rgba(255,255,255,0.035);
  border-radius: 34px;
  pointer-events: none;
}

.site-nav,
.hero,
.section,
.footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-dots { display: flex; gap: 6px; }
.brand-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}
.nav-links .nav-cta { background: var(--red); color: var(--deep); }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: 42px 0 78px;
}

.kicker {
  color: var(--warm);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; margin: 0; letter-spacing: 0; }
h1 {
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.93;
  margin: 18px 0 24px;
  max-width: 850px;
}

.hero-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  margin: 0 0 30px;
}

.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.store-button {
  min-width: 208px;
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.store-button:hover { transform: translateY(-2px); border-color: rgba(242,165,155,0.5); background: var(--surface-2); }
.store-icon { width: 30px; height: 30px; display: grid; place-items: center; font-weight: 900; color: var(--warm); }
.store-text span { display: block; color: var(--quiet); font-size: 11px; font-weight: 800; }
.store-text strong { display: block; color: var(--text); font-size: 18px; }

.meta-row { display: flex; flex-wrap: wrap; gap: 9px; }
.meta-pill {
  border: 1px solid var(--border);
  background: rgba(34,31,67,0.82);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.poster-board { position: relative; min-height: 560px; }
.poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.poster {
  min-height: 188px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.poster:nth-child(2), .poster:nth-child(5) { margin-top: 34px; }
.poster::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--stripe); }
.poster b { font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.06; position: relative; margin-top: 18px; }
.poster small { color: var(--quiet); font-weight: 900; position: relative; }
.activity-card {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  border: 1px solid var(--border-strong);
  background: rgba(26,23,51,0.96);
  border-radius: 24px;
  padding: 22px;
}
.activity-card h3 { font-size: 27px; margin-bottom: 8px; }
.activity-card p { margin: 0; color: var(--muted); }

.section { padding: 74px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section h2 { font-size: clamp(38px, 5vw, 60px); line-height: 1; margin-top: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 23px;
}
.feature-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 22px;
}
.feature h3 { font-size: 23px; margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 78px); align-items: center; }
.log-list { display: grid; gap: 12px; }
.log-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  padding: 13px 16px;
}
.log-index { color: var(--warm); font-weight: 900; }
.log-row b { font-size: 16px; }
.log-row span { color: var(--quiet); font-size: 13px; font-weight: 800; }
.score { color: var(--deep); background: var(--warm); border-radius: 999px; padding: 8px 10px; font-weight: 900; }

.download-panel {
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  background: var(--surface);
  padding: clamp(28px, 5vw, 48px);
  max-width: 900px;
}
.download-panel p { color: var(--muted); font-size: 17px; max-width: 680px; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding: 30px 0 46px;
  color: var(--quiet);
  font-size: 14px;
}
.footer a { color: var(--muted); font-weight: 800; margin-left: 16px; }

.legal-page { width: min(calc(100% - 40px), 860px); margin: 0 auto; padding: 48px 0 74px; }
.legal-card { border: 1px solid var(--border); border-radius: 28px; background: var(--surface); padding: clamp(24px, 5vw, 46px); }
.legal-card h1 { font-size: clamp(42px, 7vw, 72px); margin-top: 0; }
.legal-card h2 { font-size: 28px; margin: 34px 0 10px; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card a { color: var(--warm); font-weight: 800; }

@media (max-width: 920px) {
  .hero, .split { grid-template-columns: 1fr; }
  .poster-board { min-height: auto; padding-bottom: 132px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .page-frame::before { inset: 10px; border-radius: 24px; }
  .site-nav { align-items: flex-start; padding-top: 12px; }
  .brand-name { font-size: 21px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 28px; }
  .store-row { flex-direction: column; }
  .store-button { width: 100%; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
  .poster { min-height: 150px; border-radius: 18px; }
  .poster b { font-size: 20px; }
  .poster:nth-child(2), .poster:nth-child(5) { margin-top: 0; }
  .activity-card { left: 0; right: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 42px 1fr; }
  .score { grid-column: 2; width: fit-content; }
  .footer { flex-direction: column; }
  .footer a { margin-left: 0; margin-right: 16px; }
}
