/* PyramIQ website. Plain CSS, no build step. Colors and fonts match the game (styles.css at the repo root). */
@font-face { font-family: "Outfit"; src: url("fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --night-0: #070a18;
  --night-1: #0b1024;
  --night-2: #171a3d;
  --dusk: #47305a;
  --ember: #b8634a;
  --horizon: #eba45e;
  --sand: #dcae6c;
  --gold-hi: #fff2c0;
  --gold: #f1c44a;
  --gold-lo: #c08622;
  --gold-ink: #3d2606;
  --btn-hi: #ffe08a;
  --btn-lo: #e2a531;
  --btn-edge: #a06c17;
  --panel: #111428;
  --panel-2: #191d38;
  --line: rgba(255, 228, 180, 0.12);
  --text: #f5ead6;
  --muted: #b3a998;
  --radius: 16px;
  --font-ui: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cinzel", Georgia, serif;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--night-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Night sky with a few stars, fading to a warm dusk at the bottom of the hero */
.sky {
  position: relative;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 28% 8%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 26%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 63% 12%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 30%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 6% 40%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 54% 44%, rgba(255,255,255,.45), transparent 60%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 35%, var(--night-2) 62%, var(--dusk) 84%, #6b3c3f 100%);
}

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img.mark { width: 34px; }
.brand img.word { width: 116px; }
.site-nav { display: flex; gap: 18px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 28px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.hero-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
.hero-logo .mark { width: 92px; filter: drop-shadow(0 10px 30px rgba(241,196,74,.35)); }
.hero-logo .word { width: min(340px, 78vw); }
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: .01em;
}
.lede { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 600 17px/1 var(--font-ui);
  color: var(--gold-ink);
  background: linear-gradient(180deg, var(--btn-hi), var(--btn-lo));
  border: 0; border-radius: 14px;
  box-shadow: 0 4px 0 var(--btn-edge), 0 12px 30px rgba(226,165,49,.25);
  text-decoration: none;
}
.btn:hover { color: var(--gold-ink); filter: brightness(1.05); }
.btn[aria-disabled="true"] { cursor: default; }
.btn .apple { width: 18px; height: 18px; }
.cta-note { color: var(--muted); font-size: 15px; }
.badge-link img { height: 54px; width: auto; }

.hero-phone { display: flex; justify-content: center; }
.phone {
  width: min(300px, 72vw);
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(180deg, #2a2d4d, #15182f);
  box-shadow: 0 -10px 60px rgba(241,196,74,.18), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone img { border-radius: 33px; aspect-ratio: 390 / 844; }

/* Sections */
section { padding: 72px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 700;
  margin: 0 0 12px;
  text-align: center;
}
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 34em; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.feature .icon { font-size: 28px; line-height: 1; margin-bottom: 14px; }
.feature h3 { font-size: 19px; margin: 0 0 8px; color: var(--gold-hi); font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* How it plays */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 auto; max-width: 720px; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  font: 700 20px var(--font-display);
  color: var(--gold-ink);
  background: linear-gradient(180deg, var(--btn-hi), var(--btn-lo));
}
.steps strong { display: block; color: var(--text); font-weight: 600; }
.steps span { color: var(--muted); }

/* Screenshots: scrolls sideways inside its own box on small screens */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 18px; margin: 0 -4px;
  scrollbar-width: thin;
}
.shots figure { margin: 0; scroll-snap-align: center; }
.shots img {
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
  aspect-ratio: 390 / 844;
  object-fit: cover;
}
.shots figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 12px; }

.band { background: linear-gradient(180deg, var(--night-1), var(--night-0)); }
.closing { text-align: center; }
.closing .mark { width: 72px; margin: 0 auto 20px; }
.closing .cta { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; background: var(--night-0); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Text pages (privacy, support, 404) */
.page { padding: 24px 0 72px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(30px, 5vw, 40px); margin-top: 12px; }
.page h2 { font-size: 21px; color: var(--gold-hi); margin: 40px 0 10px; font-weight: 600; }
.page h3 { font-size: 18px; margin: 24px 0 6px; font-weight: 600; }
.page p, .page li { color: #e3d8c4; }
.page ul { padding-left: 1.2em; }
.page li { margin: 6px 0; }
.meta { color: var(--muted); font-size: 15px; margin-top: -6px; }
.callout {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p { margin: 0; }
.toc { columns: 2; column-gap: 28px; padding-left: 1.2em; }
.faq details {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
  margin: 10px 0;
}
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 14px; }
.faq details p:first-child { margin-top: 0; }
.contact-card { text-align: center; }
.contact-card .btn { margin-top: 6px; }

.notfound { text-align: center; padding-top: 12vh; min-height: 80vh; }
.notfound img { margin: 0 auto 24px; }
.notfound-cta { margin-top: 28px; }

/* Phones and small tablets */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-logo { align-items: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .toc { columns: 1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-nav { gap: 14px; }
  .brand img.word { display: none; }
  .features { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .steps li { grid-template-columns: 38px 1fr; padding: 16px; }
  .steps li::before { width: 38px; height: 38px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
