:root {
  --navy: #34495c;
  --navy-deep: #1e2d3a;
  --navy-mid: #2a3f50;
  --gold: #f5e76a;
  --gold-soft: rgba(245, 231, 106, 0.85);
  --ink: #f4f1eb;
  --ink-muted: rgba(244, 241, 235, 0.72);
  --line: rgba(244, 241, 235, 0.14);
  --font-brand: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(245, 231, 106, 0.12), transparent 55%),
    radial-gradient(900px 600px at -10% 40%, rgba(90, 130, 160, 0.18), transparent 50%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 48%, #243848 100%);
  background-attachment: fixed;
  line-height: 1.5;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff6a8;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
}

.site-header a.home-mark {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-brand);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
}

.site-header nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.site-header nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 1.25rem;
  padding: 5.5rem 1.25rem 2rem;
  overflow: hidden;
}

.hero-visual {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
}

.hero-visual img {
  width: 100%;
  height: auto;
  max-height: min(58dvh, 560px);
  object-fit: contain;
  opacity: 0;
  transform: scale(1.04);
  animation: heroReveal 1.2s ease-out 0.15s forwards;
}

.hero-copy {
  order: 1;
  width: min(560px, 100%);
  opacity: 0;
  transform: translateY(18px);
  animation: copyIn 0.9s ease-out 0.35s forwards;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(3.4rem, 10vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.tagline {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  font-size: 1.08rem;
  color: var(--ink-muted);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  animation: copyIn 0.8s ease-out 0.65s forwards;
}

.store-links a {
  display: inline-flex;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-links a:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-links img.app-store {
  height: 48px;
  width: auto;
}

.store-links img.play-store {
  height: 72px;
  width: auto;
  margin: -12px 0;
}

.about {
  position: relative;
  padding: 2.75rem 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
}

.about p {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1.08rem;
  color: var(--ink-muted);
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: center;
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

/* Legal pages */
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 3.5rem;
}

.legal h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.legal .updated {
  margin: 0 0 2rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-brand);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--gold-soft);
}

.legal p,
.legal li {
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal .trader-box {
  margin: 1.5rem 0;
  padding: 1.1rem 1.15rem;
  border-left: 3px solid var(--gold);
  background: rgba(0, 0, 0, 0.18);
}

.legal .trader-box strong {
  color: var(--ink);
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes copyIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.05fr);
    align-items: center;
    justify-items: stretch;
    gap: 2rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5.5rem 2.5rem 2.5rem;
  }

  .hero-copy {
    order: 0;
    width: auto;
    justify-self: end;
    max-width: 420px;
  }

  .hero-visual {
    order: 0;
    max-width: none;
    justify-self: start;
  }

  .hero-visual img {
    max-height: min(78dvh, 680px);
  }

  .site-header {
    padding: 1.35rem 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img,
  .hero-copy,
  .store-links {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
