:root {
  --ink: #0a3a48;
  --deep: #06242e;
  --teal: #1a8878;
  --teal-soft: #dff0ef;
  --gold: #b87808;
  --gold-soft: #fff4d9;
  --sand: #fbf8f2;
  --paper: #ffffff;
  --muted: #5a7a82;
  --line: #dbe9e8;
  --shadow: 0 22px 60px rgba(10, 58, 72, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--sand);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 248, 242, 0.9);
  border-bottom: 1px solid rgba(219, 233, 232, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(10, 58, 72, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a,
.secondary-link,
.text-link,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.secondary-link:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--teal);
}

.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(10, 58, 72, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 92px) clamp(20px, 5vw, 72px) 42px;
  background:
    radial-gradient(circle at 92% 12%, rgba(184, 120, 8, 0.16), transparent 26%),
    linear-gradient(135deg, #fbf8f2 0%, #eef6f5 100%);
  overflow: hidden;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(6, 36, 46, 0.22);
}

.app-store-badge img {
  display: block;
  width: 180px;
  height: auto;
  max-width: none;
}

.secondary-link,
.text-link {
  font-weight: 800;
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 520px;
  margin: 34px 0 0;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-stats dt {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  border: 10px solid #102b34;
  border-radius: 34px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-main {
  width: min(300px, 44vw);
  height: 626px;
  z-index: 2;
}

.phone-secondary {
  width: min(300px, 44vw);
  height: 626px;
  margin-left: -28px;
  z-index: 1;
  box-shadow: 0 28px 70px rgba(10, 58, 72, 0.23);
}

.section,
.feature-section,
.final-cta,
.site-footer {
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
}

.section {
  padding-top: clamp(58px, 8vw, 104px);
  padding-bottom: clamp(58px, 8vw, 104px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  background: var(--deep);
  color: #ffffff;
}

.intro-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.steps article,
.game-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.steps article {
  padding: 24px;
}

.steps span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--teal);
  font-weight: 900;
}

.steps p,
.feature-copy p,
.game-grid p,
.faq-list p,
.final-cta p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
  background: #ffffff;
}

.feature-copy {
  max-width: 640px;
}

.feature-media {
  display: flex;
  justify-content: center;
}

.audio-phone-stack {
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-phone {
  width: min(300px, 44vw);
  height: 635px;
}

.audio-phone-stack .single-phone {
  position: relative;
  z-index: 2;
}

.audio-phone-stack .phone {
  border-width: 6px;
  background: #102b34;
}

.audio-player-phone {
  width: min(300px, 44vw);
  height: 635px;
  margin-left: -28px;
  z-index: 1;
  opacity: 1;
}

.game-section {
  background: linear-gradient(180deg, #f6fbfa 0%, #fbf8f2 100%);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-grid article {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-screen {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 560px;
  padding: 18px 18px 0;
  background: linear-gradient(180deg, #f8fbfa 0%, #edf5f4 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.game-screen img {
  width: min(100%, 275px);
  height: auto;
  border: 6px solid #102b34;
  border-radius: 28px;
  box-shadow: 0 20px 42px rgba(10, 58, 72, 0.15);
}

.game-grid h3,
.game-grid p {
  padding-left: 18px;
  padding-right: 18px;
}

.game-grid h3 {
  padding-top: 18px;
}

.game-grid p {
  padding-bottom: 20px;
}

.sites-section {
  background: var(--deep);
  color: #ffffff;
}

.site-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
}

.faq-section {
  background: #ffffff;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
}

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(60px, 8vw, 96px);
  padding-bottom: clamp(60px, 8vw, 96px);
}

.final-cta > img {
  margin-bottom: 22px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(10, 58, 72, 0.18);
}

.final-cta p {
  max-width: 560px;
  margin-bottom: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
  background: var(--sand);
}

.footer-brand {
  margin-bottom: 10px;
}

.site-footer p {
  max-width: 420px;
  margin-bottom: 0;
}

.site-footer nav {
  justify-content: flex-end;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero,
  .intro-band,
  .feature-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual {
    min-height: 600px;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .phone-main {
    margin-right: 0;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-screen {
    height: 660px;
  }

  .game-screen img {
    width: min(100%, 330px);
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-header {
    gap: 12px;
    min-height: 56px;
    padding: 8px 16px;
    width: 100%;
  }

  .brand {
    gap: 8px;
    font-size: 1rem;
    min-width: 0;
  }

  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    padding: 24px 18px 34px;
    gap: 0;
    text-align: left;
    background: linear-gradient(180deg, #fbf8f2 0%, #edf6f4 100%);
    overflow: hidden;
  }

  .hero,
  .section,
  .feature-section,
  .final-cta,
  .site-footer {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(1.82rem, 7.2vw, 2.12rem);
    line-height: 1.08;
    margin-bottom: 12px;
  }

  h2 {
    font-size: clamp(1.72rem, 7.5vw, 2.05rem);
    line-height: 1.08;
    margin-bottom: 10px;
  }

  h3 {
    font-size: 1rem;
  }

  .hero-text {
    margin-bottom: 16px;
    font-size: 0.94rem;
    line-height: 1.5;
    color: #486c75;
  }

  .hero-actions {
    order: 5;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
  }

  .hero-copy {
    display: contents;
  }

  .hero .eyebrow {
    order: 1;
  }

  .hero h1 {
    order: 2;
  }

  .hero .hero-text {
    order: 3;
  }

  .secondary-link {
    display: none;
  }

  .section,
  .feature-section,
  .final-cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .feature-section {
    padding-top: 42px;
    padding-bottom: 42px;
    gap: 20px;
  }

  .feature-media {
    min-width: 0;
    width: 100%;
    overflow: visible;
  }

  .section-heading {
    margin-bottom: 18px;
    min-width: 0;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .intro-band {
    gap: 10px;
  }

  .intro-band p:not(.eyebrow),
  .feature-copy p,
  .steps p,
  .game-grid p,
  .faq-list p,
  .final-cta p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .hero-stats {
    display: none;
  }

  .hero-visual {
    order: 4;
    margin-top: 8px;
    padding: 16px 14px;
    background: linear-gradient(165deg, #ffffff 0%, var(--teal-soft) 100%);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(10, 58, 72, 0.08);
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .hero-visual::-webkit-scrollbar {
    display: none;
  }

  .phone {
    border: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: 0 18px 45px rgba(10, 58, 72, 0.16);
  }

  .phone-main,
  .phone-secondary {
    flex: 0 0 min(68vw, 240px);
    width: auto;
    height: auto;
    margin: 0;
    scroll-snap-align: center;
  }

  .phone-secondary {
    display: block;
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    box-shadow: 0 18px 45px rgba(10, 58, 72, 0.16);
  }

  .hero-visual .phone img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .steps article {
    padding: 16px;
  }

  .steps span {
    margin-bottom: 10px;
  }

  .single-phone {
    flex: 0 0 min(70vw, 260px);
    width: min(70vw, 260px);
    height: auto;
    margin: 0;
  }

  .audio-phone-stack {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    min-height: 0;
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 4px 2px 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .audio-phone-stack::-webkit-scrollbar {
    display: none;
  }

  .audio-phone-stack .phone {
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .audio-phone-stack .phone img {
    width: 100%;
    height: auto;
    max-width: 100%;
    transform: none;
    border-radius: 24px;
  }

  .audio-player-phone {
    flex: 0 0 min(70vw, 260px);
    position: relative;
    left: auto;
    bottom: auto;
    width: min(70vw, 260px);
    height: auto;
    transform: none;
    opacity: 1;
    margin: 0;
  }

  .game-grid {
    display: flex;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: auto;
    padding: 0 0 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .game-grid::-webkit-scrollbar {
    display: none;
  }

  .game-grid article {
    flex: 0 0 min(82vw, 310px);
    scroll-snap-align: center;
  }

  .game-screen {
    height: auto;
    min-height: 0;
    padding: 14px;
    align-items: center;
  }

  .game-screen img {
    width: min(100%, 250px);
    height: auto;
    border: 0;
    border-radius: 24px;
    object-fit: contain;
    box-shadow: 0 16px 34px rgba(10, 58, 72, 0.14);
  }

  .game-grid h3,
  .game-grid p {
    padding-left: 16px;
    padding-right: 16px;
  }

  .game-grid h3 {
    padding-top: 14px;
  }

  .game-grid p {
    padding-bottom: 16px;
  }

  .site-list {
    gap: 8px;
  }

  .site-list span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .faq-list {
    gap: 8px;
  }

  .faq-list summary {
    padding: 16px;
    font-size: 0.9rem;
  }

  .faq-list p {
    padding: 0 16px 16px;
  }

  .final-cta {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .final-cta > img {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
  }

  .site-footer {
    flex-direction: column;
    padding: 28px 18px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-cta {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(10, 58, 72, 0.16);
  }

  .hero-actions {
    align-items: center;
    flex-direction: column;
  }

  .app-store-badge img {
    width: 160px;
  }

  .secondary-link {
    display: none;
  }

  .phone-main,
  .phone-secondary {
    flex-basis: min(72vw, 238px);
  }

  .single-phone {
    flex-basis: min(72vw, 250px);
    width: min(72vw, 250px);
  }

  .audio-player-phone {
    flex-basis: min(72vw, 250px);
    width: min(72vw, 250px);
  }

  .game-grid article {
    flex-basis: min(84vw, 300px);
  }

  .game-screen img {
    width: min(100%, 235px);
  }
}
