/* ==========================================================================
   Nidoria website — theme matched to the Nidoria app (night sky, moon blue, lavender)
   ========================================================================== */

:root {
  --night-0: #03031c;
  --night-1: #05052a;
  --night-2: #0b0b3b;
  --surface: #12123a;
  --surface-2: #191948;
  --line: rgba(167, 160, 255, 0.14);
  --line-strong: rgba(167, 160, 255, 0.28);

  --moon: #7b9cf5;
  --lavender: #a78bfa;
  --lilac: #c4a3f7;
  --teal: #6ee7d8;
  --gold: #f5b83d;

  --text: #eef0ff;
  --text-2: #b9bce6;
  --text-3: #8a8dc0;

  --grad: linear-gradient(100deg, var(--moon) 0%, var(--lavender) 55%, var(--lilac) 100%);
  --grad-btn: linear-gradient(100deg, #6f8ff2 0%, #9a7cf6 100%);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(123, 110, 245, 0.55);

  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
  --gutter: 16px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night-1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--moon); text-decoration: none; }
a:hover { color: var(--lilac); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.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-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--lavender); color: var(--night-0); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
@media (min-width: 768px) { :root { --gutter: 28px; } }

.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Night sky background ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(91, 79, 214, 0.35), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(60, 80, 200, 0.22), transparent 60%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 50%, var(--night-1) 100%);
}
.stars { position: absolute; inset: 0; background-repeat: repeat; opacity: .7; }
.stars.s1 {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 140px 80px, #dfe3ff, transparent),
    radial-gradient(1px 1px at 260px 160px, #fff, transparent),
    radial-gradient(1px 1px at 90px 220px, #cfd6ff, transparent),
    radial-gradient(1px 1px at 330px 260px, #fff, transparent);
  background-size: 360px 300px;
}
.stars.s2 {
  background-image:
    radial-gradient(1.5px 1.5px at 60px 120px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 300px 40px, #e6e0ff, transparent),
    radial-gradient(1.5px 1.5px at 420px 300px, #fff, transparent);
  background-size: 520px 420px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
.stars.s3 {
  background-image:
    radial-gradient(2px 2px at 200px 90px, #c4b5fd, transparent),
    radial-gradient(2px 2px at 620px 380px, #a5b4fc, transparent);
  background-size: 800px 600px;
  animation: twinkle 9s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: .9; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px -10px rgba(140, 120, 250, .8); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(140, 120, 250, .95); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { color: var(--text); background: rgba(167, 139, 250, .12); }
.btn-sm { padding: .65em 1.2em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background .2s;
}
.icon-btn:hover { background: #26265e; }

/* ---------- Store badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: block; border-radius: 12px; transition: transform .2s ease, filter .2s ease; }
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 18px rgba(123, 110, 245, .5)); }
.store-badges-sm .store-badge img { height: 44px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); isolation: isolate; }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(5, 5, 42, .78); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: opacity .3s ease;
}
.site-header.is-scrolled::before, .site-header.is-open::before { opacity: 1; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line), 0 6px 20px -6px rgba(123, 110, 245, .7); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 11px; border-radius: 999px; color: var(--text-2); font-size: .94rem; font-weight: 500; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a.is-active, .main-nav a[aria-current="page"] { color: var(--text); background: rgba(167, 139, 250, .12); }
.main-nav .nav-cta-mobile { display: none; color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .header-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border-radius: 12px; border: 0;
    background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong);
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; margin: 0;
    padding: 20px var(--gutter) 32px; overflow-y: auto;
    background: rgba(5, 5, 42, .97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .is-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { font-size: 1.15rem; padding: 14px 14px; border-radius: 12px; }
  .main-nav .nav-cta-mobile { display: flex; margin-top: 18px; width: 100%; padding: 16px; border-radius: 999px; font-size: 1.05rem; }
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 420px) { .header-cta { display: none; } .nav-toggle { margin-left: auto; } }

/* ---------- Common section ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(18, 18, 58, .55) 15%, rgba(18, 18, 58, .55) 85%, transparent); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head p { color: var(--text-2); font-size: 1.08rem; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; text-align: left; max-width: none; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; margin: 0 0 1rem;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(167, 139, 250, .1); box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--lilac); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 560px; }

.pro-badge {
  display: inline-block; vertical-align: middle; margin-left: 4px;
  padding: 2px 8px; border-radius: 6px; background: var(--gold); color: #3a2600;
  font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .06em; line-height: 1.6;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); overflow: hidden; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .store-badges { margin: 28px 0 26px; }
.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2); font-size: .9rem;
}
.hero-chips .icon { color: var(--moon); width: 1.1em; height: 1.1em; }

.hero-visual { position: relative; display: grid; place-items: center; }
.moon-glow {
  position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 120, 250, .45), rgba(91, 79, 214, .15) 45%, transparent 70%);
  filter: blur(10px); animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06); opacity: .85; } }
.hero-visual .phone-shot { position: relative; width: min(380px, 80vw); }

.phone-shot { border-radius: var(--radius-lg); box-shadow: var(--glow); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: 16px; background: rgba(18, 18, 58, .85); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.float-card small { display: block; color: var(--text-3); font-size: .78rem; }
.float-card .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(245, 184, 61, .15); color: var(--gold); }
.fc-ring {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  background: conic-gradient(var(--teal) 0 80%, rgba(255, 255, 255, .1) 80% 100%);
  position: relative; isolation: isolate;
}
.fc-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); z-index: -1; }
.fc-1 { left: -4%; top: 18%; }
.fc-2 { right: -2%; bottom: 16%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero .lead { margin-inline: auto; }
  .hero-chips, .hero .store-badges { justify-content: center; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
}
@media (max-width: 480px) {
  .float-card { padding: 9px 12px; gap: 9px; }
  .float-card small { display: none; }
  .store-badge img { height: 48px; }
}

/* ---------- Pillars (Track / Analyze / Improve) ---------- */
.pillars { padding-bottom: 24px; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px;
  border-radius: var(--radius); background: rgba(18, 18, 58, .6); box-shadow: inset 0 0 0 1px var(--line);
}
.pillar h2 { font-size: 1.2rem; margin: 0 0 4px; }
.pillar p { margin: 0; color: var(--text-2); font-size: .95rem; }
.pillar-icon, .feature-icon, .step-icon {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(160deg, rgba(123, 156, 245, .22), rgba(167, 139, 250, .22));
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--lilac);
}
.pillar-icon .icon, .feature-icon .icon, .step-icon .icon { width: 26px; height: 26px; }
@media (max-width: 760px) { .pillars-grid { grid-template-columns: 1fr; } }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  padding: 26px 22px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(25, 25, 72, .75), rgba(18, 18, 58, .55));
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 50px -24px rgba(123, 110, 245, .6); }
.feature-card h3 { margin: 18px 0 8px; }
.feature-card p { margin: 0; color: var(--text-2); font-size: .95rem; }
@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Showcase splits ---------- */
.showcase .split + .split { margin-top: clamp(72px, 10vw, 130px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-rev .split-media { order: 2; }
.split-media { position: relative; display: grid; place-items: center; }
.split-media::before {
  content: ""; position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 110, 245, .35), transparent 65%);
}
.split-media .phone-shot { position: relative; width: min(340px, 78vw); }
.split-media-duo { padding-right: 70px; }
.split-media-duo .phone-shot-overlap { position: absolute; width: min(200px, 42vw); right: 0; bottom: -6%; }
.split-copy p { color: var(--text-2); font-size: 1.05rem; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list .icon {
  width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%;
  background: rgba(110, 231, 216, .14); color: var(--teal);
}
.tag-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 7px 16px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: .9rem; font-weight: 500; }
.tag-list li:first-child { background: var(--lavender); color: var(--night-0); box-shadow: none; }

.milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.milestones div { text-align: center; padding: 16px 8px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.milestones strong { display: block; font-family: var(--font-head); font-size: 1.7rem; line-height: 1.1; }
.milestones div:nth-child(1) strong { color: var(--teal); }
.milestones div:nth-child(2) strong { color: var(--moon); }
.milestones div:nth-child(3) strong { color: var(--lavender); }
.milestones div:nth-child(4) strong { color: var(--gold); }
.milestones span { font-size: .8rem; color: var(--text-3); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-rev .split-media { order: 0; }
  .split-media-duo { padding-right: 0; }
  .split-media-duo .phone-shot-overlap { right: 2%; }
}
@media (max-width: 420px) { .milestones { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 24px 26px; border-radius: var(--radius); background: rgba(18, 18, 58, .7); box-shadow: inset 0 0 0 1px var(--line); }
.step-num {
  position: absolute; top: 18px; right: 20px; font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .55;
}
.step h3 { margin: 20px 0 8px; }
.step p { margin: 0; color: var(--text-2); font-size: .95rem; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Premium table ---------- */
.plan-table { max-width: 880px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; background: rgba(18, 18, 58, .7); box-shadow: inset 0 0 0 1px var(--line); }
.plan-row { display: grid; grid-template-columns: 1fr 150px 170px; align-items: center; }
.plan-row > span { padding: 15px 22px; }
.plan-row + .plan-row { border-top: 1px solid var(--line); }
.plan-row > span:not(:first-child) { text-align: center; display: flex; justify-content: center; }
.plan-head { font-family: var(--font-head); font-weight: 600; background: rgba(255, 255, 255, .03); }
.plan-head .plan-premium { color: var(--gold); gap: 6px; align-items: center; }
.plan-premium { background: linear-gradient(180deg, rgba(167, 139, 250, .14), rgba(123, 156, 245, .08)); align-self: stretch; align-items: center; }
.plan-row .yes .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(110, 231, 216, .16); color: var(--teal); }
.plan-row .no .icon { width: 22px; height: 22px; color: var(--text-3); opacity: .6; }
.plan-text { font-size: .88rem; color: var(--text-2); line-height: 1.3; }
.plan-premium .plan-text { color: var(--text); font-weight: 500; }
.fine-print { text-align: center; color: var(--text-3); font-size: .88rem; margin: 20px auto 0; max-width: 640px; }
@media (max-width: 640px) {
  .plan-row { grid-template-columns: 1fr 76px 92px; }
  .plan-row > span { padding: 13px 10px; font-size: .9rem; }
  .plan-row > span:first-child { padding-left: 16px; }
  .plan-head .plan-premium .icon { display: none; }
  .plan-text { font-size: .76rem; }
}

/* ---------- Audience ---------- */
.audience-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.audience-grid li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: rgba(18, 18, 58, .7); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.audience-grid .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: rgba(167, 139, 250, .18); color: var(--lilac); }
@media (max-width: 1024px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .audience-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-tabs { display: flex; justify-content: center; gap: 6px; width: max-content; margin: 0 auto 32px; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.gallery-tabs button { padding: 10px 26px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-family: var(--font-head); font-weight: 600; }
.gallery-tabs button[aria-selected="true"] { background: var(--grad-btn); color: #fff; }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 8px 4px 20px; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 6px; }
.shot { padding: 0; border: 0; background: none; scroll-snap-align: start; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.shot:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px -20px rgba(123, 110, 245, .7); }
.shot img { width: 100%; height: auto; }
.gallery-nav { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
@media (max-width: 520px) { .gallery-track { grid-auto-columns: 68vw; } }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px 72px;
  background: rgba(3, 3, 28, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); width: auto; border-radius: 20px; box-shadow: var(--glow); }
.lightbox .icon-btn { position: absolute; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox { padding: 64px 12px 80px; }
  .lightbox img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
  .lightbox-prev { left: calc(50% - 56px); }
  .lightbox-next { right: calc(50% - 56px); }
}

/* ---------- Download card ---------- */
.download-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(167, 139, 250, .35), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(123, 156, 245, .28), transparent 70%),
    linear-gradient(135deg, #1a1650, #10104a);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow);
}
.download-card h2 { margin-bottom: .35em; }
.download-card p { color: var(--text-2); font-size: 1.08rem; }
.download-card .store-badges { margin-top: 24px; }
.download-icon { width: 80px; height: 80px; border-radius: 20px; margin-bottom: 20px; box-shadow: 0 0 0 1px var(--line-strong), 0 12px 30px -10px rgba(123, 110, 245, .8); }
.qr-group { display: flex; gap: 16px; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: .85rem; font-weight: 500; }
.qr:hover { color: var(--text); }
.qr img { width: 130px; height: 130px; border-radius: 10px; }
.download-card-compact { grid-template-columns: 1fr auto; }
.download-card-compact .store-badges { margin-top: 0; }
@media (max-width: 860px) {
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .download-icon { margin-inline: auto; }
  .download-card .store-badges { justify-content: center; }
  .qr-group { display: none; } /* phones download directly via badges */
}

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { border-radius: var(--radius); overflow: hidden; background: rgba(18, 18, 58, .75); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 50px -24px rgba(123, 110, 245, .6); }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-card-link:hover { color: inherit; }
.post-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8; overflow: hidden; }
.post-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 70%, #e0d8ff, transparent), radial-gradient(1px 1px at 35% 75%, #fff, transparent), radial-gradient(1px 1px at 55% 50%, #cfd6ff, transparent); opacity: .7; }
.post-cover.has-image::after { display: none; }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-cover .icon { width: 64px; height: 64px; color: #fff; opacity: .92; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .35)); position: relative; z-index: 1; }
.cover-moon { background: radial-gradient(circle at 30% 20%, #7b9cf5, transparent 60%), linear-gradient(135deg, #3b3aa8, #17164f); }
.cover-lotus { background: radial-gradient(circle at 70% 30%, #c4a3f7, transparent 60%), linear-gradient(135deg, #5a3fb8, #1c1456); }
.cover-wave { background: radial-gradient(circle at 20% 80%, #6ee7d8, transparent 55%), linear-gradient(135deg, #2f55b5, #121247); }
.cover-alarm { background: radial-gradient(circle at 75% 25%, #f5b83d, transparent 50%), linear-gradient(135deg, #6b4bd0, #1a1550); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.post-card h3 { font-size: 1.2rem; margin: 10px 0 10px; }
.post-card p { color: var(--text-2); font-size: .95rem; }
.post-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--moon); font-weight: 600; font-size: .92rem; }
.post-card:hover .post-more { color: var(--lilac); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--text-3); font-size: .85rem; }
.post-cat { padding: 3px 10px; border-radius: 999px; background: rgba(167, 139, 250, .15); color: var(--lilac); font-weight: 600; font-size: .76rem; letter-spacing: .03em; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Blog pages ---------- */
.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(8px, 2vw, 24px); text-align: center; }
.page-hero .lead { margin-inline: auto; }
.page-hero .btn { margin-top: 12px; }
.article-head { padding: clamp(32px, 6vw, 72px) 0 28px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 18px 0 16px; }
.article-head .lead { max-width: none; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 26px; color: var(--text-2); font-weight: 500; font-size: .95rem; }
.article-cover { border-radius: var(--radius-lg); aspect-ratio: 16 / 6; margin-bottom: 44px; box-shadow: inset 0 0 0 1px var(--line); }
.prose { font-size: 1.08rem; line-height: 1.8; color: #d9dbf7; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 2em 0 .6em; color: var(--text); }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--lavender); }
.prose strong { color: var(--text); }
.prose em { color: var(--text-2); }
.article-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 56px 0 clamp(56px, 8vw, 96px); padding: 26px;
  border-radius: var(--radius-lg); background: linear-gradient(135deg, #1a1650, #10104a); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.article-cta img { width: 64px; height: 64px; border-radius: 16px; }
.article-cta div { flex: 1; min-width: 200px; }
.article-cta h2 { font-size: 1.3rem; margin: 0 0 4px; }
.article-cta p { margin: 0; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq { border-radius: var(--radius); background: rgba(18, 18, 58, .75); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.faq[open] { box-shadow: inset 0 0 0 1px var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 500; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--lilac); transition: transform .25s ease, background .25s; }
.faq-icon .icon { width: 18px; height: 18px; }
.faq[open] .faq-icon { transform: rotate(45deg); background: var(--lavender); color: var(--night-0); }
.faq-body { padding: 0 22px 20px; color: var(--text-2); }
.faq-body p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-copy p { color: var(--text-2); font-size: 1.08rem; }
.contact-mail { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 20px 14px 14px; border-radius: var(--radius); background: rgba(18, 18, 58, .75); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-weight: 600; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 420px) { .contact-mail { font-size: .9rem; } }
.contact-mail small { display: block; font-weight: 500; color: var(--text-3); font-size: .8rem; }
.contact-form { padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: rgba(18, 18, 58, .8); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(5, 5, 42, .65); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--night-2); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 3px rgba(167, 139, 250, .25); }
.field.has-error input, .field.has-error textarea { border-color: #f87191; }
.field-error { display: block; margin-top: 6px; font-size: .85rem; color: #fda4b8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; min-height: 1.4em; font-weight: 500; }
.form-status.is-ok { color: var(--teal); }
.form-status.is-error { color: #fda4b8; }
.form-note { margin: 6px 0 0; font-size: .83rem; color: var(--text-3); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 28px; background: linear-gradient(180deg, transparent, rgba(3, 3, 28, .85) 30%); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .9fr 1.5fr; gap: 36px; }
.footer-brand p { color: var(--text-2); max-width: 340px; margin: 16px 0 20px; font-size: .95rem; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 6px 0 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--text-2); font-size: .95rem; }
.footer-links a:hover { color: var(--text); }
.footer-links .footer-mail { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; font-size: .9rem; }
.footer-mail .icon { color: var(--lavender); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-2); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
