/* ============================================================
   Geometry Blocks — landing page
   Brand: Nona Vulpus
   ============================================================ */

:root {
  /* Palette (from the app) */
  --navy:    #0D0D1A;
  --navy-2:  #101127;
  --deep:    #1E2140;
  --frame:   #2A2F55;
  --purple:  #7C4DFF;
  --cyan:    #26C6DA;
  --orange:  #FF7043;
  --green:   #66BB6A;
  --yellow:  #FFEE58;
  --blue:    #42A5F5;
  --pink:    #EC407A;

  --text:    #F4F5FB;
  --muted:   #A7AAC6;

  /* Glass */
  --glass-bg:     rgba(255, 255, 255, 0.055);
  --glass-bg-2:   rgba(255, 255, 255, 0.085);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);

  --radius:    20px;
  --radius-sm: 14px;
  --maxw:      1160px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { margin: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--text);
  background: var(--navy);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }

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

section { scroll-margin-top: 90px; }

/* Skip link (visible on focus) */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--purple);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ============================================================
   Animated background
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(124, 77, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(38, 198, 218, 0.12), transparent 55%),
    linear-gradient(180deg, #0a0a16 0%, var(--navy) 40%, #0a0a14 100%);
}

.blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 22s var(--ease) infinite alternate;
}
.blob--purple { top: -8%;  left: 58%; background: var(--purple); }
.blob--cyan   { top: 38%;  left: -12%; background: var(--cyan); animation-delay: -7s; }
.blob--orange { top: 72%;  left: 62%; background: var(--orange); opacity: 0.32; animation-delay: -13s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -40px, 0) scale(1.12); }
}

.grid-overlay {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --pad-y: 0.85rem;
  --pad-x: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--purple), #5a32e0);
  color: #fff;
  box-shadow: 0 12px 30px rgba(124, 77, 255, 0.42);
}
.btn--primary:hover { box-shadow: 0 16px 38px rgba(124, 77, 255, 0.55); }

.btn--ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: var(--glass-bg-2); border-color: rgba(255,255,255,0.28); }

.btn--small { --pad-y: 0.6rem; --pad-x: 1.1rem; font-size: 0.95rem; }

/* Google Play style button */
.btn--play { --pad-y: 0.7rem; --pad-x: 1.5rem; padding-left: 1.2rem; }
.playmark { width: 26px; height: 26px; flex: none; }
.btn__lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.btn__small { font-size: 0.68rem; font-weight: 600; opacity: 0.85; letter-spacing: 0.04em; text-transform: uppercase; }
.btn__big   { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.01em; }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2rem, var(--maxw));
  margin: 0.8rem auto 0;
  padding: 0.6rem 0.9rem 0.6rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 13, 26, 0.55);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; }
.nav__logo { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.nav__name { font-size: 1.05rem; letter-spacing: -0.01em; }

.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.96rem;
  color: var(--muted);
}
.nav__links a { transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--text); }

.nav__cta { margin-left: 0.4rem; }

/* ============================================================
   Layout helpers
   ============================================================ */
.section {
  width: min(100% - 2.4rem, var(--maxw));
  margin: clamp(4rem, 9vw, 7.5rem) auto 0;
}
.section--tight { margin-top: clamp(3rem, 6vw, 5rem); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section__head h2 { font-size: clamp(1.8rem, 4.4vw, 2.75rem); }
.section__sub { margin-top: 0.8rem; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.12rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: var(--glass-shadow);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  width: min(100% - 2.4rem, var(--maxw));
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: #fff; /* fallback if background-clip:text is unsupported */
  margin-bottom: 0.4rem;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title {
    background: linear-gradient(120deg, #fff 30%, #c9b8ff 70%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.hero__tagline { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; color: #e6e7f5; }
.hero__lead { margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 2.3vw, 1.15rem); max-width: 46ch; }

.trust {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.trust li { display: flex; align-items: center; gap: 0.5rem; }
.trust li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(102, 187, 106, 0.8);
}

/* ---------- Board artwork ---------- */
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }

.board-art {
  position: relative;
  width: min(420px, 86%);
  aspect-ratio: 1 / 1;
}
/* soft glow halo behind the board */
.board-art::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  background:
    radial-gradient(closest-side, rgba(124, 77, 255, 0.45), transparent 72%),
    radial-gradient(closest-side, rgba(38, 198, 218, 0.30), transparent 78%);
  filter: blur(14px);
}
.board-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  /* The board SVG already has its own rounded frame; the drop-shadow follows it. */
  filter: drop-shadow(0 26px 60px rgba(0, 0, 0, 0.55));
}

/* ============================================================
   Feature cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.26);
  background: var(--glass-bg-2);
}
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.35);
}
.card__icon svg { width: 27px; height: 27px; }
.card__icon--purple { background: linear-gradient(135deg, var(--purple), #5a32e0); }
.card__icon--cyan   { background: linear-gradient(135deg, var(--cyan), #1597a8); }
.card__icon--orange { background: linear-gradient(135deg, var(--orange), #e0552c); }
.card__icon--green  { background: linear-gradient(135deg, var(--green), #3f9a45); }
.card__icon--pink   { background: linear-gradient(135deg, var(--pink), #c41f5a); }
.card__icon--blue   { background: linear-gradient(135deg, var(--blue), #1f7fd1); }
.card__icon--yellow { background: linear-gradient(135deg, var(--yellow), #d9c52f); color: #3a3300; }
.card h3 { font-size: 1.18rem; margin-bottom: 0.45rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ============================================================
   How to play — steps
   ============================================================ */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.6rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.step__num {
  position: absolute;
  top: -22px; left: 1.4rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-weight: 800; font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 10px 24px rgba(124, 77, 255, 0.45);
}
.step h3 { margin: 0.6rem 0 0.4rem; font-size: 1.3rem; }
.step p { color: var(--muted); }

/* ============================================================
   Languages
   ============================================================ */
.langs {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}
.langs li {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.98rem;
  font-weight: 600;
  color: #e8e9f6;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.langs li:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.3); }

/* ============================================================
   Download widget (in hero) — QR + Google Play
   ============================================================ */
.getbox {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-top: 1.8rem;
  padding: 1.1rem 1.3rem;
  width: fit-content;
  max-width: 100%;
}
.getbox__main { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.getbox__hint { color: var(--muted); font-size: 0.92rem; max-width: 22ch; }
.getbox__soon { color: var(--muted); font-size: 0.82rem; }

.qr { flex: none; line-height: 0; }
.qr__frame {
  position: relative;
  width: 124px; height: 124px;
  border-radius: 16px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 5px, transparent 5px 10px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 5px, transparent 5px 10px),
    #0b0b18;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}
.qr__finder {
  position: absolute;
  width: 24px; height: 24px;
  border: 4px solid var(--text);
  border-radius: 6px;
}
.qr__finder--tl { top: 11px; left: 11px; }
.qr__finder--tr { top: 11px; right: 11px; }
.qr__finder--bl { bottom: 11px; left: 11px; }
.qr__label {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  margin-top: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 16, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer__inner {
  width: min(100% - 2.4rem, var(--maxw));
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__brand img { border-radius: 12px; }
.footer__name { font-weight: 800; font-size: 1.1rem; }
.footer__by { color: var(--muted); font-size: 0.92rem; }

.footer__cols { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.footer__col a { color: #d9dbef; font-size: 0.96rem; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--cyan); }

.footer__bar {
  width: min(100% - 2.4rem, var(--maxw));
  margin: 0 auto;
  padding: 1.4rem 0 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .trust { justify-content: center; }
  .hero__visual { order: -1; }
  .getbox { margin-inline: auto; }
  .getbox__main { align-items: center; text-align: center; }
  .getbox__hint { max-width: none; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav { padding: 0.55rem 0.6rem 0.55rem 0.7rem; }
}

@media (max-width: 480px) {
  .nav__name { display: none; }
  .nav__cta { margin-left: auto; }
  .btn { font-size: 0.95rem; }
  .getbox { flex-direction: column; }
  .footer__inner { flex-direction: column; gap: 1.8rem; }
  .footer__bar { flex-direction: column; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .btn, .card, .langs li { transition: none; }
}

/* ============================================================
   Legal document pages
   ============================================================ */
.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 77, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 100% 20%, rgba(38, 198, 218, 0.16), transparent 32rem),
    var(--navy);
  color: var(--text);
}

.legal-doc {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.legal-doc h1 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 1;
}

.legal-meta {
  margin: 0 0 2rem;
  color: var(--muted);
}

.legal-doc section {
  padding: 1.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-doc h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}

.legal-doc p {
  max-width: 72ch;
  margin: 0;
  color: #d9dbef;
  line-height: 1.75;
}

.legal-doc a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-back {
  padding-top: 1.5rem;
}
