/* /assets/css/landing.css (COMPLETE REPLACEMENT — Calphii cosy + Fortnite-sky vibe)
   Goals:
   - Calm, cosy, human
   - Skybox feel: deep blue, soft clouds, star specks (via canvas)
   - Glass UI that feels warm, not “corporate”
   - No loud gradients on content, no harsh vignettes
*/

:root{
  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --max: 1140px;

  /* Ink */
  --ink: rgba(255,255,255,.92);
  --ink-strong: rgba(255,255,255,.96);
  --ink-soft: rgba(255,255,255,.78);
  --ink-dim: rgba(255,255,255,.66);

  /* Fortnite-ish skybox baseline (kept clean, not peach-washed) */
  --sky-top: #0b1a5a;
  --sky-mid: #16317f;
  --sky-low: #2a56c6;

  /* Warm cosy accents (used sparingly) */
  --warm: #f2a54a;
  --warm2:#ffd1a0;

  /* Cool accents */
  --cool:#78d3ff;
  --cool2:#b39bff;

  /* Glass system */
  --glass: rgba(255,255,255,.065);
  --glass2: rgba(255,255,255,.042);
  --stroke: rgba(255,255,255,.13);
  --stroke2: rgba(255,255,255,.08);

  /* Shadows (soft, deep) */
  --shadow-1: 0 10px 26px rgba(0,0,0,.22);
  --shadow-2: 0 18px 54px rgba(0,0,0,.36);
  --shadow-3: 0 28px 90px rgba(0,0,0,.55);

  /* Radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;

  /* Spacing */
  --pad: 20px;
  --gap: 12px;

  color-scheme: dark;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--ink);
  background: #050611;
  overflow-x:hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a{ color:inherit; }
.wrap{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:14px; top:14px; width:auto; height:auto;
  padding:10px 12px; border-radius:12px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  z-index:9999;
}

/* ============================================================
   SKYBOX (Fortnite-ish)
   - Keep it crisp. Let the canvas handle clouds/stars.
   - No heavy fog wash over UI.
============================================================ */
.sky{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(1200px 900px at 50% 125%, rgba(120,175,255,.16), transparent 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-low) 100%);
}

#skyCanvas{
  width:100%;
  height:100%;
  display:block;
  /* keep it “game skybox”: crisp, not dreamy mush */
  filter: saturate(1.05) contrast(1.12);
}

.sky-glow{
  position:absolute; inset:0;
  /* subtle horizon lift + a tiny moonish bloom, not peach haze */
  background:
    radial-gradient(900px 420px at 50% 88%, rgba(150,190,255,.18), transparent 64%),
    radial-gradient(720px 520px at 60% 22%, rgba(120,160,255,.10), transparent 70%);
  mix-blend-mode: screen;
  opacity:.55;
}

.sky-haze{
  position:absolute; inset:0;
  /* light vignette only; avoid muddying the hero */
  background:
    radial-gradient(1400px 980px at 50% 55%, rgba(0,0,0,0), rgba(0,0,0,.14) 70%, rgba(0,0,0,.22) 100%);
}

/* All content above sky */
main{ position:relative; z-index:2; }

/* ============================================================
   TOPBAR (calm glass, not heavy)
============================================================ */
.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(180deg, rgba(8,12,32,.62), rgba(8,12,32,.20));
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
}

.brand-mark{
  width:22px; height:22px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.20), rgba(255,255,255,.03)),
    radial-gradient(circle at 75% 75%, rgba(255,210,160,.18), transparent 62%);
  box-shadow: 0 0 0 7px rgba(120,175,255,.08);
}

.brand-name{
  font-weight: 840;
  letter-spacing: .2px;
}

.nav{
  display:flex;
  gap: 12px;
  align-items:center;
}

.nav a{
  text-decoration:none;
  font-size: 13px;
  color: rgba(255,255,255,.90);
  opacity: .80;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .16s ease, opacity .16s ease;
}

.nav a:hover{
  opacity: 1;
  background: rgba(255,255,255,.07);
}

.topbar-cta{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* ============================================================
   BUTTONS (cosy, tactile, not neon)
============================================================ */
.btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--ink-strong);
  font-weight: 760;
  font-size: 13px;
  letter-spacing: .15px;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}

.btn:active{ transform: translateY(0); }

.btn-big{
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
}

.btn-ghost{
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.12);
}

.btn-primary{
  border-color: rgba(242,165,74,.52);
  background:
    radial-gradient(700px 240px at 25% 20%, rgba(255,225,190,.22), transparent 60%),
    linear-gradient(180deg, rgba(242,165,74,.28), rgba(242,165,74,.10));
  box-shadow: 0 14px 34px rgba(242,165,74,.14);
}

.btn-primary:hover{
  border-color: rgba(255,220,175,.70);
  box-shadow: 0 16px 40px rgba(242,165,74,.18);
}

.arrow{ opacity:.9; }

/* ============================================================
   HERO (cosy, big, clear)
============================================================ */
.hero{
  padding: 52px 0 20px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items:start;
}

.kicker{
  font-size: 12px;
  letter-spacing: .34px;
  text-transform: uppercase;
  color: rgba(255,255,255,.86);
  opacity: .86;
}

.hero h1{
  margin: 12px 0 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.9px;
  color: var(--ink-strong);
  text-shadow: 0 22px 55px rgba(0,0,0,.22);
}

.sub{
  margin-top: 14px;
  max-width: 66ch;
  color: rgba(255,255,255,.88);
  opacity: .90;
  font-size: 16.6px;
  line-height: 1.62;
}

.hero-cta{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* small “notes” under hero */
.hero-notes{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.note{
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(700px 220px at 15% 0%, rgba(255,255,255,.07), transparent 60%),
    rgba(255,255,255,.045);
  padding: 12px 12px;
  box-shadow: var(--shadow-1);
}

.note-h{
  font-weight: 860;
  font-size: 13px;
}

.note-p{
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.74);
  opacity: .92;
}

.micro-row{
  margin-top: 12px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.micro-pill{
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.84);
  opacity: .88;
}

/* ============================================================
   HERO PREVIEW (cosy glass card)
============================================================ */
.hero-preview .scene{
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(900px 360px at 20% 10%, rgba(255,255,255,.06), transparent 62%),
    rgba(12,14,30,.38);
  box-shadow: var(--shadow-3);
  overflow:hidden;
  position:relative;
}

.hero-preview .scene::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(120deg, rgba(255,255,255,.06), rgba(255,255,255,0) 44%);
  opacity:.55;
  pointer-events:none;
}

.scene-top{ padding: 14px 14px 0; }
.scene-title{ font-weight: 900; letter-spacing: -0.2px; }
.scene-sub{ margin-top: 6px; color: rgba(255,255,255,.78); opacity:.92; font-size: 12px; }

.scene-grid{
  padding: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tile{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(600px 180px at 15% 0%, rgba(255,255,255,.07), transparent 62%),
    rgba(255,255,255,.04);
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.t-board{ grid-column: 1 / -1; }

.tile-h{ font-weight: 860; font-size: 12px; opacity: .96; }
.tile-p{
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.76);
  opacity: .92;
}

.seek{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  margin-top: 10px;
  position:relative;
  overflow:hidden;
}

.seek::after{
  content:"";
  position:absolute; left:0; top:0; bottom:0;
  width: 62%;
  background: linear-gradient(90deg, rgba(255,210,160,.85), rgba(255,255,255,.10));
}

.mix{ margin-top: 10px; }
.mix-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  opacity: .92;
}

.bar{
  width: 44%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,210,160,.85), rgba(255,255,255,.10));
}
.bar.b2{ width: 32%; opacity: .90; }
.bar.b3{ width: 26%; opacity: .82; }

.cols{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.col-h{
  font-size: 11px;
  color: rgba(255,255,255,.72);
  opacity: .88;
  margin-bottom: 6px;
}

.card{
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-size: 12px;
  line-height: 1.25;
}
.card.dim{ opacity:.74; }

.chips{
  margin-top: 10px;
  display:flex;
  gap: 6px;
  flex-wrap:wrap;
}

.chipmini{
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
  opacity:.90;
}

.scene-bottom{
  padding: 10px 14px 14px;
  display:flex;
  align-items:center;
  gap: 8px;
  color: rgba(255,255,255,.72);
  opacity: .86;
  font-size: 11px;
}

.dot{ width:8px; height:8px; border-radius:999px; background: rgba(255,255,255,.18); }
.scene-cap{ margin-left:auto; }

/* ============================================================
   SECTIONS
============================================================ */
.section{ padding: 52px 0; }

.section-alt{
  /* gentle, barely-there separation */
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.section-head h2{
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.3px;
  color: var(--ink-strong);
}

.section-head p{
  margin-top: 10px;
  max-width: 92ch;
  color: rgba(255,255,255,.76);
  opacity: .92;
  line-height: 1.58;
}

/* ============================================================
   CARDS / GRIDS (cosy glass, consistent)
============================================================ */
.why-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.feature-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.feel-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.why-card,
.feature,
.feel{
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(900px 260px at 18% 10%, rgba(255,255,255,.06), transparent 60%),
    rgba(255,255,255,.04);
  padding: 16px;
  box-shadow: var(--shadow-2);
}

.why-card h3,
.feature h3,
.feel h3{
  margin:0;
  font-size: 15px;
  font-weight: 900;
}

.why-card p,
.feel p{
  margin-top: 10px;
  color: rgba(255,255,255,.74);
  opacity:.92;
  line-height: 1.58;
  font-size: 13px;
}

/* Feature card internals */
.f-top{ display:flex; align-items:center; gap:10px; }
.f-ico{
  width:34px; height:34px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.055);
}

.f-why{
  margin-top: 10px;
  color: rgba(255,255,255,.88);
  opacity:.92;
  font-size: 13px;
  line-height: 1.45;
}

.f-list{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.72);
  opacity:.92;
  font-size: 12.5px;
  line-height: 1.55;
}

.f-list li{ margin: 6px 0; }

.f-ex{
  margin-top: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.10);
  color: rgba(255,255,255,.76);
  opacity:.92;
  font-size: 12px;
}

/* ============================================================
   SPACES BLOCK
============================================================ */
.spaces-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
}

.spaces-controls{
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  padding: 14px;
  box-shadow: var(--shadow-2);
}

.seg{ display:flex; gap:8px; flex-wrap:wrap; }

.seg-btn{
  border-radius: 999px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.86);
  opacity:.88;
  cursor:pointer;
  font-weight: 860;
  font-size: 12px;
  transition: transform .14s ease, background .14s ease, opacity .14s ease, border-color .14s ease;
}
.seg-btn:hover{ transform: translateY(-1px); opacity: 1; }
.seg-btn.is-on{
  border-color: rgba(255,220,175,.62);
  background:
    radial-gradient(420px 140px at 20% 20%, rgba(255,235,190,.20), transparent 62%),
    rgba(242,165,74,.11);
}

.tour-card{
  margin-top: 12px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(800px 260px at 25% 10%, rgba(255,255,255,.06), transparent 62%),
    rgba(255,255,255,.04);
  padding: 14px;
}

.tour-title{ font-weight: 920; letter-spacing: -0.2px; }
.tour-sub{
  margin-top: 8px;
  color: rgba(255,255,255,.76);
  opacity:.92;
  font-size: 13px;
  line-height: 1.55;
}

.tour-list{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.72);
  opacity:.92;
  font-size: 12.5px;
  line-height: 1.55;
}
.tour-list li{ margin: 6px 0; }

.micro{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.70);
  opacity:.90;
  line-height: 1.45;
}

.spaces-preview{
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  overflow:hidden;
  box-shadow: var(--shadow-2);
}

.space-stage{
  padding: 16px;
  background:
    radial-gradient(900px 340px at 30% 18%, rgba(120,211,255,.12), transparent 64%),
    radial-gradient(900px 340px at 70% 18%, rgba(255,220,185,.10), transparent 64%),
    rgba(0,0,0,.10);
}

.space-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
}

.space-title{ font-weight: 920; letter-spacing: -0.2px; }

.space-tags{
  display:flex;
  gap: 6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.tag{
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
  opacity:.92;
}

.space-panels{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.panel{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding: 12px;
}

.panel-h{ font-weight: 900; font-size: 12px; }
.panel-b{
  margin-top: 8px;
  color: rgba(255,255,255,.74);
  opacity:.92;
  font-size: 12.5px;
  line-height: 1.45;
}

.space-footer{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.chip{
  border-radius: 999px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  display:inline-flex;
  align-items:center;
  gap: 10px;
  cursor:pointer;
}

.chip-dot{
  width:10px; height:10px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--warm2), var(--warm));
  box-shadow: 0 0 0 8px rgba(242,165,74,.12);
}

.chip-text{ font-weight: 860; font-size: 13px; opacity:.94; }

/* ============================================================
   CTA + SIGNUP
============================================================ */
.cta{
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(1100px 380px at 20% 20%, rgba(255,255,255,.06), transparent 62%),
    rgba(255,255,255,.04);
  padding: 18px;
  box-shadow: var(--shadow-2);
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items:center;
}

.cta h2{
  margin:0;
  font-size: 22px;
  letter-spacing: -0.2px;
  font-weight: 920;
}

.cta p{
  margin-top: 10px;
  color: rgba(255,255,255,.74);
  opacity:.92;
  line-height: 1.58;
}

.signup{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.signup input{
  height: 44px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
  color: var(--ink-strong);
  padding: 0 14px;
  outline:none;
}

.signup input::placeholder{ color: rgba(255,255,255,.58); }

.signup input:focus{
  border-color: rgba(255,220,175,.62);
  box-shadow: 0 0 0 7px rgba(120,175,255,.12);
}

.signup-note{
  font-size: 12px;
  color: rgba(255,255,255,.70);
  opacity:.90;
}

.final-cta{
  margin-top: 14px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  padding: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  box-shadow: var(--shadow-2);
}

.final-copy h3{ margin:0; font-size: 18px; font-weight: 920; }
.final-copy p{
  margin-top: 8px;
  color: rgba(255,255,255,.74);
  opacity:.92;
  line-height: 1.58;
}

/* ============================================================
   FAQ + FOOTER
============================================================ */
.faq{ margin-top: 14px; display:grid; gap: 10px; }

details{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  padding: 12px;
}

summary{
  cursor:pointer;
  font-weight: 900;
  list-style:none;
}
summary::-webkit-details-marker{ display:none; }

.faq-a{
  margin-top: 10px;
  color: rgba(255,255,255,.74);
  opacity:.92;
  line-height: 1.58;
  font-size: 13px;
}

.footer{ padding: 24px 0 12px; }

.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
}

.footer-right{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}

.footer-right a{
  text-decoration:none;
  color: rgba(255,255,255,.76);
  opacity:.88;
  font-size: 13px;
}
.footer-right a:hover{ opacity:1; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1040px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-notes{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .feature-grid{ grid-template-columns: 1fr; }
  .spaces-grid{ grid-template-columns: 1fr; }
  .space-panels{ grid-template-columns: 1fr; }
  .feel-grid{ grid-template-columns: 1fr; }
  .cta{ grid-template-columns: 1fr; }
  .nav{ display:none; }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce){
  .btn, .seg-btn{ transition:none; }
  .btn:hover, .seg-btn:hover{ transform:none; }
}
