/* Slice Flow web - public page */
:root {
  --bg: #070919;
  --bg-2: #0e1233;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #eef0ff;
  --muted: #a8acd6;
  --gold: #ffc93c;
  --gold-2: #ff9f1c;
  --blue: #49a6ff;
  --violet: #9b6bff;
  --pink: #ff5fd2;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-title: 'Fredoka', system-ui, sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 80% -10%, #2a1a6b 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 30%, #0f3a7a 0%, transparent 55%),
              radial-gradient(900px 700px at 110% 80%, #5a1460 0%, transparent 55%),
              var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}
[v-cloak] { display: none; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(30px, 5vw, 46px); text-align: center; }
.grad { background: linear-gradient(90deg, var(--gold), var(--pink) 60%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Twinkling star field */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 200px 160px, #ffe9a8 50%, transparent 51%),
    radial-gradient(1px 1px at 260px 40px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 330px 220px, #cfe3ff 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 260px, #fff 50%, transparent 51%);
  background-size: 360px 300px;
  opacity: 0.7;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.8; } }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, env(safe-area-inset-left)); gap: 12px;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.solid { background: rgba(7, 9, 25, 0.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--card-border); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 22px var(--font-title); }
.brand img { border-radius: 12px; }
.links { display: flex; align-items: center; gap: 26px; }
.links a { color: var(--text); text-decoration: none; font-weight: 700; opacity: 0.85; }
.links a:hover { opacity: 1; color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 16px; border: 0;
  font: 600 19px var(--font-title); text-decoration: none; color: #1b1030; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn small { font: 700 12px var(--font); opacity: 0.8; letter-spacing: 0.02em; }
.btn-primary { background: linear-gradient(180deg, #ffe066, var(--gold-2)); box-shadow: 0 10px 30px rgba(255, 159, 28, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.btn-play { background: #fff; box-shadow: 0 10px 30px rgba(73, 166, 255, 0.3); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--card-border); }
.btn-soon { background: rgba(255, 255, 255, 0.04); color: var(--muted); border: 1px dashed var(--card-border); cursor: default; }
.btn-soon:hover { transform: none; }
.btn-small { padding: 9px 18px; font-size: 16px; color: #1b1030 !important; opacity: 1 !important; background: linear-gradient(180deg, #ffe066, var(--gold-2)); }

/* Hero */
.hero {
  min-height: 100vh; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
  padding: 110px 16px 60px;
}
.pill {
  display: inline-block; margin: 0 0 18px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 201, 60, 0.12); border: 1px solid rgba(255, 201, 60, 0.35); color: #ffe39a; font-weight: 700; font-size: 15px;
}
.wordmark { width: min(520px, 100%); height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5)); }
.tagline { font: 600 clamp(22px, 3vw, 28px)/1.3 var(--font-title); margin: 14px 0 10px; }
.lead { color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.cta.center { justify-content: center; }
.note { color: var(--muted); font-size: 15px; margin-top: 14px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(300px, 72vw); aspect-ratio: 9 / 18.5;
  border-radius: 42px; padding: 12px; background: linear-gradient(160deg, #3b3f6e, #12142c);
  box-shadow: var(--shadow), 0 0 0 2px rgba(255, 255, 255, 0.08), 0 0 80px rgba(155, 107, 255, 0.35);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.8s, transform 3s; }
.screen img.active { opacity: 1; transform: scale(1); }
.planet { position: absolute; width: 120px; height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)); animation: float 7s ease-in-out infinite; z-index: 2; }
.p1 { top: 4%; left: -4%; width: 150px; }
.p2 { bottom: 10%; right: -6%; width: 110px; animation-delay: -2s; }
.p3 { bottom: -2%; left: 2%; width: 90px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(6deg); } }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 70px 16px; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 14px auto 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(6px); }
.card h3 { font-size: 22px; margin: 10px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.feature-icon { font-size: 36px; }

.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.world {
  display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px;
  transition: transform 0.2s, border-color 0.2s;
}
.world:hover { transform: translateY(-4px); border-color: rgba(255, 201, 60, 0.5); }
.world img { grid-row: span 2; width: 96px; height: 96px; object-fit: contain; animation: float 8s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
.world h3 { font-size: 21px; display: flex; align-items: center; gap: 8px; }
.world p { margin: 4px 0 0; color: var(--muted); font-size: 15px; align-self: start; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg, #ffe066, var(--gold-2)); color: #1b1030; font-size: 14px; }

.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 36px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shot { flex: 0 0 auto; width: 220px; padding: 0; border: 0; background: none; color: var(--text); cursor: zoom-in; scroll-snap-align: center; text-align: center; font: 600 15px var(--font); }
.shot img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--card-border); margin-bottom: 10px; transition: transform 0.2s; }
.shot:hover img { transform: translateY(-6px); }
.video { margin: 30px auto 0; max-width: 820px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video iframe { width: 100%; height: 100%; border: 0; }

.steps { list-style: none; padding: 0; margin: 40px auto 0; max-width: 760px; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 16px 20px; }
.steps span { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 20px var(--font-title); color: #1b1030; background: linear-gradient(180deg, #8fd3ff, var(--blue)); }
.steps p { margin: 0; font-weight: 600; }

.download-box {
  max-width: 820px; margin: 0 auto; text-align: center; padding: 48px 24px; border-radius: 32px;
  background: linear-gradient(160deg, rgba(155, 107, 255, 0.22), rgba(73, 166, 255, 0.12)), url('/assets/img/bg-nebulosa.webp') center / cover;
  border: 1px solid var(--card-border); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.download-box::before { content: ''; position: absolute; inset: 0; background: rgba(7, 9, 25, 0.62); }
.download-box > * { position: relative; }
.dl-icon { margin: 0 auto 16px; border-radius: 28px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); }
.download-box .cta { margin-top: 26px; }
.install { text-align: left; max-width: 520px; margin: 30px auto 0; background: rgba(0, 0, 0, 0.35); border-radius: 18px; padding: 18px 22px; }
.install h3 { font-size: 20px; }
.install ol { margin: 10px 0 0; padding-left: 22px; color: var(--muted); }
.install b { color: var(--text); }

.faq { max-width: 800px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 4px 20px; }
.faq summary { cursor: pointer; font: 600 19px var(--font-title); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 16px; color: var(--muted); }

.footer { text-align: center; padding: 50px 16px 60px; border-top: 1px solid var(--card-border); }
.footer img { margin: 0 auto 14px; }
.footer a { color: var(--text); }
.muted { color: var(--muted); font-size: 14px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(3, 4, 12, 0.92); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; }
.lightbox figure { margin: 0; max-height: 92vh; text-align: center; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 22px; margin: 0 auto; }
.lightbox figcaption { margin-top: 10px; font-weight: 700; }
.lb-close, .lb-nav { background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; cursor: pointer; flex: none; }
.lb-close { position: absolute; top: 16px; right: 16px; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
  .lead, .wordmark { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .worlds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .links {
    position: fixed; top: 64px; left: 12px; right: 12px; flex-direction: column; gap: 6px; padding: 14px;
    background: rgba(12, 14, 40, 0.97); border: 1px solid var(--card-border); border-radius: 20px;
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: 0.2s;
  }
  .links.open { opacity: 1; pointer-events: auto; transform: none; }
  .links a { padding: 10px; width: 100%; text-align: center; }
  .features, .worlds { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .planet.p1 { width: 100px; left: 0; }
  .planet.p2 { width: 80px; right: 0; }
  .planet.p3 { display: none; }
  .section { padding: 54px 16px; }
  .lb-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
