/* ============================================================
   Solmigo — studio site
   Warm-dark, single amber accent, Space Grotesk. Product-utility
   register (iyron preset #12). No gradient text, no glassmorphism,
   no eyebrow-dots, no EST badge, 60/30/10 accent discipline.
   ============================================================ */

:root {
  /* Warm near-black scale (tinted toward amber hue ~70) */
  --bg:        oklch(0.165 0.018 70);
  --bg-2:      oklch(0.205 0.020 70);
  --bg-3:      oklch(0.255 0.022 70);
  --line:      oklch(0.320 0.020 70);
  --line-soft: oklch(0.300 0.016 70 / 0.6);

  --text:  oklch(0.965 0.010 85);
  --muted: oklch(0.740 0.022 78);
  --faint: oklch(0.600 0.020 78);

  /* Accent — "sol" / sun, cohesive with the Ball Swinger game */
  --accent:      oklch(0.815 0.150 78);
  --accent-deep: oklch(0.720 0.170 58);
  --accent-ink:  oklch(0.220 0.060 70);

  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1120px;

  --font: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 12vw, 140px); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

h1, h2, h3 { font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; margin: 0; }

.h-lead { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.h-sec  { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.lede   { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 54ch; }

/* ---- Buttons ---- */
.btn {
  --pad-y: 14px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: var(--pad-y) 26px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); background: oklch(0.86 0.15 80); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* ---- Nav ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: oklch(0.155 0.018 70 / 0.94); border-bottom-color: var(--line-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand .sun { width: 24px; height: 24px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.98rem; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { padding: 9px 18px; font-size: 0.92rem; }

/* ---- Hero ---- */
.hero { padding-top: 128px; padding-bottom: clamp(60px, 9vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 720px; height: 720px; top: -280px; right: -180px;
  background: radial-gradient(closest-side, oklch(0.72 0.17 62 / 0.35), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .accent-word { color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap; color: var(--faint); font-size: 0.9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---- Phone mock (CSS scene mirrors the actual game HUD) ---- */
.phone-wrap { display: grid; place-items: center; }
.phone {
  position: relative; width: min(280px, 78vw); aspect-ratio: 9 / 19;
  border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px oklch(0 0 0 / 0.7), inset 0 1px 0 oklch(1 0 0 / 0.06);
}
.phone-screen {
  height: 100%; border-radius: 30px; overflow: hidden; position: relative;
  background: radial-gradient(120% 80% at 50% 0%, oklch(0.28 0.05 60), oklch(0.15 0.02 70) 70%);
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 18px 22px; text-align: center;
}
.ps-score { font-size: 0.72rem; letter-spacing: 0.28em; color: var(--muted); }
.ps-num { font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1; margin-top: 4px; }
.ps-rule { width: 70%; height: 2px; margin: 14px 0 auto;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.5), transparent); }
.ps-ball {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(0.9 0.09 70), var(--accent-deep));
  box-shadow: 0 0 24px oklch(0.72 0.17 58 / 0.6); margin-bottom: 26px;
}
.ps-platform {
  width: 74%; height: 18px; border-radius: 6px; position: relative;
  background: linear-gradient(180deg, oklch(0.55 0.11 145), oklch(0.42 0.10 145));
  box-shadow: 0 0 18px oklch(0.6 0.14 150 / 0.45);
}
.ps-platform::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 20%; height: 100%;
  background: oklch(1 0 0 / 0.3); border-radius: 3px;
}
.ps-tap { margin-top: 20px; font-size: 0.66rem; letter-spacing: 0.2em; color: var(--faint); text-transform: uppercase; }

/* ---- Apps ---- */
.apps-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.apps-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }

.card {
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 30px;
  transition: transform .4s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line); }

.app-feature { display: flex; gap: 26px; align-items: center; }
.app-icon {
  width: 92px; height: 92px; flex: none; border-radius: 22px;
  background: radial-gradient(130% 120% at 30% 20%, oklch(0.32 0.06 60), oklch(0.17 0.02 70));
  border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: 0 14px 30px -14px oklch(0 0 0 / 0.7);
}
.app-icon .ball {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(0.9 0.09 70), var(--accent-deep));
  box-shadow: 0 0 20px oklch(0.72 0.17 58 / 0.55);
}
.app-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.app-body p { color: var(--muted); margin: 0 0 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.76rem; font-weight: 500; color: var(--muted);
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
}
.tag-live { color: var(--accent-ink); background: var(--accent); border-color: transparent; font-weight: 600; }

.app-soon { display: flex; flex-direction: column; justify-content: center; text-align: left; }
.app-soon .soon-mark { font-size: 2rem; margin-bottom: 14px; }
.app-soon h3 { font-size: 1.3rem; margin-bottom: 8px; }
.app-soon p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about p { color: var(--muted); font-size: 1.08rem; }
.about p + p { margin-top: 18px; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.values li { display: flex; gap: 16px; align-items: flex-start; }
.values .v-mark { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--accent); }
.values .v-mark svg { width: 20px; height: 20px; }
.values h4 { margin: 0 0 3px; font-size: 1.05rem; font-weight: 600; }
.values p { margin: 0; font-size: 0.96rem; }

/* ---- Contact ---- */
.contact { text-align: center; }
.contact .h-sec { margin-bottom: 16px; }
.contact .lede { margin-inline: auto; margin-bottom: 30px; }
.mail-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 600; color: var(--text);
  padding-bottom: 4px; border-bottom: 2px solid var(--accent);
  transition: color .25s var(--ease);
}
.mail-btn:hover { color: var(--accent); }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line-soft); padding-block: 40px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .brand { font-size: 1.05rem; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--muted); font-size: 0.92rem; transition: color .2s var(--ease); }
.foot-links a:hover { color: var(--accent); }
.foot-copy { color: var(--faint); font-size: 0.86rem; width: 100%; margin-top: 8px; }

/* ---- Reveal motion ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .btn-primary:hover, .btn-ghost:hover { transform: none; }
}

/* ---- Legal / prose (privacy page) ---- */
.legal { padding-top: 116px; }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 10px; }
.legal .updated { color: var(--faint); font-size: 0.92rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 1.02rem; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 600; }
.back-home { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.95rem; margin-bottom: 26px; transition: color .2s var(--ease); }
.back-home:hover { color: var(--accent); }
.back-home svg { width: 16px; height: 16px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; margin-bottom: 10px; }
  .apps-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .app-feature { flex-direction: column; text-align: center; align-items: center; }
  .tag-row { justify-content: center; }
}
@media (max-width: 560px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links a.nav-apps { display: inline; }
  .hero-meta { gap: 16px; }
  .app-feature { padding: 4px; }
}
