/* ==========================================================================
   Ludio Games — site stylesheet
   Plain CSS, mobile-first, dark theme. No build step, no external assets.
   Brand colors live in :root — edit them there.
   ========================================================================== */

:root {
  /* Color system */
  --bg:         #0d0f15;
  --bg-deep:    #08090d;
  --surface:    #151926;
  --surface-2:  #1c2132;
  --line:       #2a3147;

  --text:       #eef1f8;
  --text-muted: #aab3c8;

  --blaze:      #ff8b2e;   /* primary accent (orange) */
  --amber:      #ffb52e;
  --gold:       #ffd75e;
  --teal:       #46d7c2;
  --danger:     #ff5d78;

  --grad-blaze: linear-gradient(120deg, #ff7a1a 0%, #ffb300 100%);

  --radius:     16px;
  --radius-sm:  10px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  /* Soft glow behind the hero, pure CSS */
  background-image:
    radial-gradient(58rem 34rem at 85% -8rem, rgba(255, 130, 40, 0.14), transparent 60%),
    radial-gradient(40rem 28rem at -10% 12rem, rgba(70, 215, 194, 0.07), transparent 60%);
  background-repeat: no-repeat;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 800;
}

p { margin: 0 0 1em; }

a { color: var(--amber); }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Skip link — visible only when focused */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 120ms ease;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid rgba(42, 49, 71, 0.6);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand .logo-mark { display: inline-flex; flex: none; }

.nav-links {
  display: flex;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

/* Keep the header on one line on small phones */
@media (max-width: 27rem) {
  .nav-links a {
    padding: 0.45rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   Hero (home page)
   -------------------------------------------------------------------------- */

.hero { padding-block: 3rem 3.5rem; }

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blaze);
  background: rgba(255, 139, 46, 0.1);
  border: 1px solid rgba(255, 139, 46, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 10vw, 4.25rem);
  font-weight: 900;
  margin-bottom: 0.3em;
}

.accent {
  background: var(--grad-blaze);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6em;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.8em;
}

/* Store badges (inert placeholders until launch — see index.html comments) */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 11.5rem;
  padding: 0.7rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
}
.store-badge[href]:hover {
  border-color: var(--blaze);
  background: var(--surface-2);
  color: var(--text);
}
.store-badge .badge-icon {
  flex: none;
  display: inline-flex;
  color: var(--amber);
}
.store-badge .badge-text { line-height: 1.25; }
.store-badge .badge-top {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.store-badge .badge-store {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

/* Hero art panel */
.hero-art { display: flex; justify-content: center; }
.hero-art svg {
  width: min(100%, 23rem);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

@media (min-width: 56rem) {
  .hero { padding-block: 4.5rem 5rem; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.features { padding-block: 1rem 3.5rem; }

.features h2,
.about h2 {
  font-size: clamp(1.6rem, 6vw, 2.1rem);
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.feature-card .feature-icon {
  display: inline-flex;
  padding: 0.6rem;
  border-radius: 12px;
  background: rgba(255, 139, 46, 0.12);
  color: var(--blaze);
  margin-bottom: 0.9rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35em;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

@media (min-width: 44rem) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   About strip
   -------------------------------------------------------------------------- */

.about { padding-block: 0 4rem; }

.about-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.about-box p {
  color: var(--text-muted);
  max-width: 44rem;
  margin: 0;
}

@media (min-width: 44rem) {
  .about-box { padding: 2.5rem 2.25rem; }
}

/* --------------------------------------------------------------------------
   Prose pages (privacy, support)
   -------------------------------------------------------------------------- */

.page-hero { padding-block: 2.75rem 0.5rem; }
.page-hero h1 { font-size: clamp(2rem, 8vw, 2.9rem); }
.page-hero .page-intro {
  color: var(--text-muted);
  max-width: 40rem;
  font-size: 1.05rem;
}

.prose {
  max-width: 44rem;
  padding-block: 1rem 4rem;
}
.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
}
.prose h2::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 4px;
  border-radius: 2px;
  background: var(--grad-blaze);
  margin-bottom: 0.75rem;
}
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--text); }

/* Callout note (e.g. "template — get it reviewed") */
.note {
  background: rgba(255, 181, 46, 0.08);
  border: 1px solid rgba(255, 181, 46, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
}
.note p { margin: 0; color: var(--text); font-size: 0.95rem; }

.meta-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* "At a glance" summary card */
.glance {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin: 1.6rem 0;
}
.glance h2 { font-size: 1.05rem; margin: 0 0 0.8em; }
.glance h2::before { display: none; }
.glance ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.glance li {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.55em;
}
.glance li:last-child { margin-bottom: 0; }
.glance .mark {
  flex: none;
  font-weight: 800;
}
.glance .mark.yes { color: var(--teal); }
.glance .mark.no  { color: var(--danger); }

/* "On this page" table of contents */
.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
  font-size: 0.95rem;
}
.toc strong { display: block; margin-bottom: 0.4rem; }
.toc ol {
  margin: 0;
  padding-left: 1.3rem;
  columns: 2;
  column-gap: 2rem;
}
.toc li { margin-bottom: 0.3em; break-inside: avoid; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--amber); text-decoration: underline; }

@media (max-width: 34rem) {
  .toc ol { columns: 1; }
}

/* Contact card (support page) */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem;
  margin: 1.4rem 0;
}
.contact-card .contact-email {
  display: inline-block;
  font-weight: 800;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  overflow-wrap: anywhere;
}
.contact-card p:last-child { margin-bottom: 0; }

/* FAQ — native <details> disclosures */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
}
.faq summary:hover { background: var(--surface-2); }
.faq details[open] summary {
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.faq details p {
  padding-inline: 1.1rem;
  margin-block: 0.9rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid rgba(42, 49, 71, 0.6);
  padding-block: 1.8rem;
  background: var(--bg-deep);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (min-width: 44rem) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */

.notfound {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: 4rem;
}
.notfound .big {
  font-size: clamp(4rem, 20vw, 7rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.15em;
}
.notfound p { color: var(--text-muted); }

.button {
  display: inline-block;
  background: var(--grad-blaze);
  color: #1c1206;
  font-weight: 800;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  margin-top: 1rem;
  justify-self: center;
}
.button:hover { color: #000; filter: brightness(1.06); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-art svg { animation: hero-float 7s ease-in-out infinite; }
  @keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
