/* ============================================================
   Vellingiri — shared stylesheet
   Modern, minimalist design system. Plain CSS, no build step.
   ============================================================ */

:root {
  /* Palette */
  --bg: #fbfbfd;
  --surface: #ffffff;
  --ink: #14162b;
  --muted: #6b7088;
  --line: #ececf2;
  --line-strong: #e0e0ea;

  /* Brand accent */
  --accent: #6d5efc;
  --accent-ink: #4b3fe0;
  --accent-soft: #efedff;

  /* Playful accents (from the games) */
  --blue: #45a8ff;
  --green: #8ed11f;
  --red: #ff5a5f;
  --yellow: #ffc531;

  /* Shape & depth */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 43, .06), 0 1px 3px rgba(20, 22, 43, .04);
  --shadow: 0 10px 30px rgba(20, 22, 43, .08);
  --shadow-lg: 0 24px 60px rgba(20, 22, 43, .14);

  /* Layout */
  --container: 1080px;
  --gutter: 24px;

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e17;
    --surface: #15172480;
    --surface: #161827;
    --ink: #f3f4fb;
    --muted: #a0a4bd;
    --line: #262a3d;
    --line-strong: #2f3349;
    --accent-soft: #1d1c3a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  }
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(109, 94, 252, .3); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}
.brand .dots { display: inline-flex; gap: 3px; }
.brand .dots i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.brand .dots i:nth-child(1) { background: var(--blue); }
.brand .dots i:nth-child(2) { background: var(--green); }
.brand .dots i:nth-child(3) { background: var(--red); }
.brand .dots i:nth-child(4) { background: var(--yellow); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color .15s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 96px;
  padding: 48px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Generic sections ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-top: 16px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Coming-soon landing
   ============================================================ */
.coming {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 40px var(--gutter);
}
.coming .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}
.coming .blob.b1 { width: 460px; height: 460px; background: var(--blue);   top: -140px; left: -120px; }
.coming .blob.b2 { width: 420px; height: 420px; background: var(--accent); bottom: -160px; right: -100px; opacity:.4;}
.coming .blob.b3 { width: 320px; height: 320px; background: var(--yellow); bottom: 40px;  left: 10%; opacity:.3;}
.coming-inner { position: relative; z-index: 1; max-width: 620px; }
.coming .wordmark {
  font-size: clamp(2.6rem, 9vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 28px 0 0;
}
.coming .tagline { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.3rem); margin-top: 18px; }
.coming .pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: 0.85rem; color: var(--muted);
}
.coming .pill .ping { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: ping 1.8s infinite; }
@keyframes ping { 0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--green) 60%,transparent);} 70%{box-shadow:0 0 0 10px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }
.coming .actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.coming .mini-foot { margin-top: 56px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); }
.coming .mini-foot a:hover { color: var(--ink); }

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero { padding: 72px 0 8px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p.lead { color: var(--muted); font-size: 1.15rem; margin-top: 16px; max-width: 620px; }

/* ---------- Games grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card .thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb,var(--blue) 35%, transparent), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb,var(--accent) 35%, transparent), transparent 55%),
    var(--accent-soft);
}
.game-card .thumb img { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.game-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card .body h3 { font-size: 1.25rem; }
.game-card .body p { color: var(--muted); font-size: 0.95rem; }
.game-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.tag { font-size: 0.75rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 10px; }
.soon-card { opacity: .75; }
.soon-card .thumb { background: repeating-linear-gradient(45deg, var(--line), var(--line) 12px, var(--bg) 12px, var(--bg) 24px); }
.soon-card .thumb span { font-weight: 700; color: var(--muted); letter-spacing: .04em; }

/* ============================================================
   Game showcase
   ============================================================ */
.show-hero { padding: 56px 0 24px; }
.show-hero .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.show-hero .badge-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.show-hero .app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }
.show-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.show-hero .lead { color: var(--muted); font-size: 1.15rem; margin-top: 18px; max-width: 520px; }
.show-hero .stat-row { display: flex; gap: 32px; margin-top: 28px; }
.show-hero .stat .n { font-size: 1.5rem; font-weight: 800; }
.show-hero .stat .l { font-size: 0.82rem; color: var(--muted); }
.show-hero .logo-wrap {
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 20% 10%, color-mix(in srgb,var(--blue) 30%, transparent), transparent 55%),
    radial-gradient(120% 120% at 90% 90%, color-mix(in srgb,var(--accent) 30%, transparent), transparent 55%),
    var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--line);
}
.show-hero .logo-wrap img { width: min(260px, 70%); filter: drop-shadow(0 18px 30px rgba(20,22,43,.18)); }

/* Store badges */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  transition: transform .15s ease, opacity .15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .txt small { font-size: 0.65rem; opacity: .8; }
.store-badge .txt span { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
.store-badge[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature { padding: 26px; }
.feature .ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); margin-bottom: 16px; }
.feature .ico img { width: 30px; height: 30px; }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: 0.94rem; margin-top: 8px; }

/* Screenshots */
.shots { display: flex; gap: 20px; overflow-x: auto; padding: 8px 2px 20px; scroll-snap-type: x mandatory; }
.shot {
  flex: none;
  width: 240px;
  aspect-ratio: 9 / 19.5;
  border-radius: 32px;
  scroll-snap-align: center;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: grid; place-items: center;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .placeholder { color: var(--muted); font-size: 0.85rem; font-weight: 600; text-align: center; padding: 0 16px; }
.shot .placeholder svg { width: 36px; height: 36px; margin: 0 auto 10px; opacity: .5; display:block; }

/* CTA band */
.cta-band {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), #8b6dff);
  color: #fff;
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.cta-band p { margin-top: 12px; opacity: .9; }
.cta-band .store-row { justify-content: center; }
.cta-band .store-badge { background: #fff; color: var(--ink); border-color: #fff; }
/* Keep CTA badges legible on the purple band — the "Coming soon" copy already signals state */
.cta-band .store-badge[aria-disabled="true"] { opacity: 1; }

/* ============================================================
   Prose (legal / support pages)
   ============================================================ */
.prose { max-width: 740px; }
.prose h2 { font-size: 1.4rem; margin-top: 44px; }
.prose h3 { font-size: 1.1rem; margin-top: 28px; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin-top: 14px; }
.prose ul { margin-top: 14px; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.note {
  margin-top: 28px; padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-ink); font-size: 0.92rem;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.contact-card { padding: 26px; }
.contact-card .ico { font-size: 1.6rem; }
.contact-card h3 { font-size: 1.1rem; margin-top: 10px; }
.contact-card p { color: var(--muted); font-size: 0.94rem; margin-top: 6px; }
.contact-card a { color: var(--accent-ink); font-weight: 600; display: inline-block; margin-top: 12px; }

/* FAQ */
.faq { margin-top: 16px; max-width: 740px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 4px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .show-hero .grid { grid-template-columns: 1fr; gap: 32px; }
  .show-hero .logo-wrap { order: -1; padding: 36px; }
  .nav { display: none; }
}
@media (max-width: 520px) {
  .section { padding: 56px 0; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
