:root {
  --bg: #0b0d12;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-secondary: #a0a4b0;
  --text-tertiary: #6b7080;
  --accent: #d8dde8;
  --accent-soft: #b0b8c8;
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: 'League Spartan', sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(9, 11, 15, 0.48), rgba(9, 11, 15, 0.72)),
    url('assets/images/ancient-world-map-from-1689.jpg') center / cover no-repeat fixed;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 196, 92, 0.28) 0%, rgba(255, 170, 58, 0.16) 18%, rgba(255, 140, 32, 0.08) 34%, transparent 54%),
    radial-gradient(circle at center, transparent 36%, rgba(8, 9, 12, 0.24) 68%, rgba(5, 6, 8, 0.66) 100%),
    radial-gradient(circle at 18% 18%, rgba(255, 247, 224, 0.18), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(12, 14, 20, 0.18), rgba(12, 14, 20, 0.45));
  pointer-events: none;
}

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

button {
  font: inherit;
}

.landing-shell {
  min-height: 100vh;
  padding: var(--space-4);
  perspective: 1800px;
}

.hero-panel {
  position: relative;
  width: min(100%, 1240px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(20, 24, 33, 0.48), rgba(11, 13, 18, 0.6)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(135%);
  overflow: hidden;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px);
  padding: var(--space-4) 40px var(--space-3);
}

.hero-panel::before {
  content: '';
  position: absolute;
  left: -10%;
  bottom: -18%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 184, 200, 0.18) 0%, transparent 70%);
  filter: blur(30px);
}

.hero-panel::after {
  content: '';
  position: absolute;
  right: -8%;
  top: -12%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 110, 140, 0.16) 0%, transparent 72%);
  filter: blur(30px);
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-content {
  flex: 1;
  width: 100%;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 20px;
  padding-top: 10px;
}

.hero-copy {
  width: min(100%, 760px);
  text-align: center;
}

.brand-lockup {
  width: min(100%, 168px);
  max-width: 72vw;
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0;
}

.brand-logo-image {
  width: 100%;
  height: auto;
}

.brand-slogan {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  width: 100%;
  text-align: center;
}

h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-family: 'Ledger', serif;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 46rem;
  margin: 20px auto 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.52;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.app-store-badge {
  width: min(100%, 188px);
  height: auto;
}

.hero-support {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 48px;
}

.founder-quote {
  width: min(100%, 760px);
  margin: 0;
  padding: 0 0 8px;
  display: grid;
  gap: 14px;
  text-align: center;
}

.founder-quote-text {
  margin: 0;
  font-family: 'Ledger', serif;
  font-size: clamp(1.08rem, 1.55vw, 1.45rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255, 248, 232, 0.93);
}

.founder-quote-credit {
  font-size: 0.84rem;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 208, 128, 0.72);
}

.support-copy {
  display: flex;
  justify-content: center;
  width: 100%;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  width: min(100%, 860px);
  margin: 0 auto;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.3;
  white-space: nowrap;
}

.trust-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(216, 221, 232, 0.14);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  flex: none;
}

.carousel-wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 24px 0;
}

.carousel-track {
  --mockup-width: clamp(212px, min(19.55vw, 27.6vh), 297px);
  position: relative;
  width: 100%;
  min-height: calc(var(--mockup-width) * 2.28);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.mockup {
  position: absolute;
  top: 0;
  width: var(--mockup-width);
  border-radius: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f131c;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  transition: transform 320ms ease, opacity 320ms ease, filter 320ms ease, box-shadow 320ms ease;
}

.mockup img {
  width: 100%;
  height: auto;
}

.mockup.is-active {
  z-index: 3;
  transform: translateX(0) scale(1.06);
  opacity: 1;
  filter: none;
  box-shadow: 0 52px 140px rgba(0, 0, 0, 0.62);
}

.mockup.is-left {
  z-index: 1;
  transform: translateX(calc(var(--mockup-width) * -0.8)) translateY(26px) scale(0.88);
  opacity: 0.58;
  filter: saturate(0.84);
}

.mockup.is-right {
  z-index: 1;
  transform: translateX(calc(var(--mockup-width) * 0.8)) translateY(34px) scale(0.88);
  opacity: 0.58;
  filter: saturate(0.84);
}

.carousel-arrow {
  position: absolute;
  top: 46%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.carousel-arrow-left {
  left: clamp(28px, 7vw, 108px);
}

.carousel-arrow-right {
  right: clamp(28px, 7vw, 108px);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.is-active {
  width: 28px;
  background: var(--accent);
}

.site-footer {
  width: min(100%, 1240px);
  margin: 18px auto 0;
  padding: 0 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.site-footer-copy {
  margin: 0;
}

.site-footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.legal-shell {
  min-height: calc(100vh - 96px);
  padding: 24px;
}

.legal-card {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 28px 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(20, 24, 33, 0.5), rgba(11, 13, 18, 0.62)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(135%);
}

.legal-back-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 1.28rem;
  line-height: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.18);
}

.legal-back-link:hover,
.legal-back-link:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.legal-header {
  margin-bottom: 28px;
}

.legal-eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
}

.legal-title {
  margin: 0;
  max-width: none;
  font-family: 'Ledger', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.legal-updated {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-prose {
  display: grid;
  gap: 22px;
  color: rgba(255, 255, 255, 0.88);
}

.legal-prose section {
  display: grid;
  gap: 10px;
}

.legal-prose h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.legal-prose p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal-prose ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
}

.legal-prose li {
  line-height: 1.6;
}

.legal-prose a {
  color: rgba(255, 255, 255, 0.9);
}

.legal-footer {
  padding-bottom: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-panel {
    padding: 24px 24px 20px;
  }

  .hero-content {
    gap: 18px;
    padding-top: 6px;
  }

  .trust-badges {
    width: min(100%, 620px);
    gap: 10px 14px;
  }

  .carousel-wrap {
    padding: var(--space-2) 24px 0;
  }

  .carousel-arrow {
    display: none;
  }

  .mockup.is-left {
    transform: translateX(calc(var(--mockup-width) * -0.76)) translateY(22px) scale(0.84);
  }

  .mockup.is-right {
    transform: translateX(calc(var(--mockup-width) * 0.76)) translateY(28px) scale(0.84);
  }
}

@media (max-width: 820px) {
  .site-footer {
    margin-top: 14px;
    padding: 0 14px 18px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .site-footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .legal-shell {
    padding: 16px;
  }

  .legal-card {
    border-radius: 24px;
    padding: 22px 18px 24px;
  }

  .legal-title {
    font-size: clamp(1.95rem, 9vw, 2.7rem);
  }

  .landing-shell {
    padding: var(--space-3);
  }

  .hero-panel {
    border-radius: 28px;
    min-height: auto;
    padding: 18px 14px 16px;
  }

  .hero-content {
    gap: 24px;
    padding-top: 0;
  }

  .hero-copy {
    width: min(100%, 360px);
  }

  .hero-support {
    gap: 28px;
  }

  .founder-quote {
    width: min(100%, 332px);
    gap: 12px;
    padding-bottom: 2px;
  }

  .founder-quote-text {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .founder-quote-credit {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .brand-logo-image {
    width: 100%;
  }

  .brand-lockup {
    width: min(100%, 136px);
    justify-self: center;
    gap: 4px;
  }

  .hero-topbar {
    justify-content: center;
    min-height: 104px;
    margin-bottom: 20px;
  }

  .brand-slogan {
    font-size: 0.56rem;
    line-height: 1.15;
    letter-spacing: 0.14em;
  }

  h1 {
    font-size: clamp(2.35rem, 9.4vw, 3.1rem);
    max-width: 11ch;
    line-height: 1.12;
    letter-spacing: -0.015em;
  }

  .hero-lead {
    max-width: 21rem;
    margin-top: 14px;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .app-store-badge {
    width: min(100%, 168px);
  }

  .trust-badges {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .trust-badge {
    justify-content: center;
    font-size: 0.9rem;
    white-space: normal;
    text-align: center;
  }

  .carousel-wrap {
    width: 100%;
    max-width: 340px;
    padding: 0;
  }

  .carousel-track {
    min-height: auto;
    display: grid;
    justify-items: center;
  }

  .mockup,
  .mockup.is-active {
    position: relative;
    top: auto;
    transform: none;
    width: min(100%, 332px);
    opacity: 1;
    filter: none;
  }

  .mockup.is-left,
  .mockup.is-right,
  .carousel-arrow,
  .carousel-dots {
    display: none;
  }
}
