/* ASOLTU — static site design system.
   Tokens mirror lib/core/theme/theme_manager.dart 1:1 so dark/light stay
   identical to the Flutter build this replaces. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg-canvas: #fbfaff;
  --bg-subtle: #f3f2fc;
  --bg-card: #ffffff;
  --bg-card-raised: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.62);
  --text-primary: #120e2e;
  --text-secondary: #585272;
  --text-muted: #8b85a8;
  --border: rgba(18, 14, 46, 0.09);
  --border-strong: rgba(18, 14, 46, 0.16);
  --accent: #3a5bf5;
  --gold: #e09a00;
  --violet: #7b4df0;
  --teal: #0ea5a5;
  --accent-soft: rgba(58, 91, 245, 0.12);
  --gold-soft: rgba(224, 154, 0, 0.16);
  --accent-grad: linear-gradient(135deg, #3a5bf5, #7b3df0);
  --brand-grad: linear-gradient(90deg, #3a5bf5, #7b3df0, #e09a00);
  --shadow-card: 0 10px 20px -4px rgba(18, 14, 46, 0.14), 0 1px 4px rgba(18, 14, 46, 0.06);
  --shadow-lifted: 0 14px 30px -6px rgba(18, 14, 46, 0.20), 0 0 36px -10px rgba(123, 77, 240, 0.20);
  --shadow-screenshot: 0 22px 44px -10px rgba(18, 14, 46, 0.24), 0 0 56px -16px rgba(123, 77, 240, 0.24);
  --header-h: 68px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html[data-theme='dark'] {
  --bg-canvas: #0d1024;
  --bg-subtle: #11152e;
  --bg-card: #171b3a;
  --bg-card-raised: #1e2347;
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text-primary: #f6f6ff;
  --text-secondary: #afafd0;
  --text-muted: #7a7aa0;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #f5a524;
  --gold: #f5a524;
  --violet: #a07cff;
  --accent-soft: rgba(110, 139, 255, 0.2);
  --gold-soft: rgba(255, 201, 77, 0.18);
  --accent-grad: linear-gradient(135deg, #f5a524, #e8761a);
  --brand-grad: linear-gradient(90deg, #8aa0ff, #f5a524);
  --shadow-card: 0 8px 20px -4px rgba(0, 0, 20, 0.35);
  --shadow-lifted: 0 20px 30px -8px rgba(0, 0, 20, 0.55), 0 0 36px -10px rgba(160, 124, 255, 0.28);
  --shadow-screenshot: 0 24px 48px -12px rgba(0, 0, 20, 0.7), 0 0 64px -16px rgba(160, 124, 255, 0.34);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
html[data-theme='dark'] { color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-canvas);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.skip-link {
  position: absolute; left: -9999px; z-index: 200;
  background: #fff; color: #120e2e; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1600px) { .container { padding: 0 40px; } }
@media (max-width: 380px) { .container { padding: 0 16px; } }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 28px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.site-header.scrolled {
  background: var(--bg-canvas);
  opacity: 1;
}
html[data-theme='light'] .site-header.scrolled,
:root:not([data-theme='dark']) .site-header.scrolled { background: rgba(255,255,255,0.94); }
html[data-theme='dark'] .site-header.scrolled { background: rgba(10,10,27,0.94); }
.site-header.scrolled { border-bottom-color: var(--border); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand span { font-weight: 900; font-size: 15px; letter-spacing: 1px; }

.nav-primary { display: flex; align-items: center; margin-left: 36px; gap: 2px; }
.nav-link {
  position: relative; padding: 8px 14px; font-size: 14.5px; font-weight: 600;
  color: var(--text-secondary); display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
}
.nav-link .label-row { display: flex; align-items: center; gap: 4px; }
.nav-link svg { width: 15px; height: 15px; transition: transform 0.18s ease; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link .underline {
  height: 2px; width: 0; border-radius: 2px; background: var(--brand-grad);
  transition: width 0.2s ease;
}
.nav-link:hover .underline, .nav-link.active .underline { width: 20px; }
.nav-link:hover svg.chevron { transform: rotate(180deg); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: none; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary);
}
.icon-btn:hover { background: var(--bg-glass); color: var(--text-primary); }
.icon-btn svg { width: 19px; height: 19px; }

.ghost-btn {
  padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: 14.5px;
  color: var(--text-primary); background: transparent; cursor: pointer; border: none;
}
.ghost-btn:hover { background: var(--bg-glass); }

.accent-btn {
  padding: 11px 18px; border-radius: 9px; font-weight: 700; font-size: 14.5px;
  color: #fff; background: var(--accent-grad); border: none; cursor: pointer;
  box-shadow: 0 5px 14px -4px rgba(58,91,245,0.35);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.accent-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -4px rgba(58,91,245,0.45); }

.hamburger { display: none; }

/* mega menu */
.mega-menu {
  position: fixed; top: calc(var(--header-h) + 8px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(720px, 92vw);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lifted); padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 90;
}
.mega-menu.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-label { font-size: 11px; font-weight: 800; letter-spacing: 1.1px; color: var(--text-muted); padding-left: 8px; margin: 6px 0; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.mega-row {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer;
}
.mega-row:hover { background: var(--bg-glass); }
.mega-row img { width: 40px; height: 40px; border-radius: 10px; }
.mega-row .name { font-size: 14.5px; font-weight: 700; }
.mega-row .tag { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-foot { display: flex; align-items: center; gap: 8px; padding: 12px 8px 4px; border-top: 1px solid var(--border); margin-top: 12px; }
.mega-foot a { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--accent); }

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 150; display: none;
}
.mobile-drawer.open { display: block; }
.mobile-drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.mobile-drawer .panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 82vw);
  background: var(--bg-canvas); box-shadow: var(--shadow-lifted); overflow-y: auto;
  padding: 20px;
}
.mobile-drawer .panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mobile-drawer .nav-item {
  display: block; padding: 12px 4px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--border);
}
.mobile-drawer .app-item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.mobile-drawer .app-item img { width: 34px; height: 34px; border-radius: 9px; }
.mobile-drawer .app-item .name { font-size: 15px; font-weight: 600; }
.mobile-drawer .app-item .tag { font-size: 12.5px; color: var(--text-muted); }

@media (max-width: 899px) {
  .nav-primary, .header-right .ghost-btn, .header-right .accent-btn { display: none; }
  .hamburger { display: flex; }
}

/* ---------------------------------------------------------------- aurora */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(0px); }
.aurora .b1 { top: -300px; left: -220px; width: 860px; height: 860px; background: radial-gradient(circle, rgba(58,91,245,0.20), transparent 72%); }
.aurora .b2 { top: -220px; right: -260px; width: 780px; height: 780px; background: radial-gradient(circle, rgba(123,77,240,0.18), transparent 72%); }
.aurora .b3 { top: 180px; right: 60px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(224,154,0,0.13), transparent 72%); }
.aurora .b4 { top: 320px; left: -120px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(46,211,183,0.11), transparent 72%); }
html[data-theme='dark'] .aurora .b1 { background: radial-gradient(circle, rgba(58,91,245,0.30), transparent 72%); }
html[data-theme='dark'] .aurora .b2 { background: radial-gradient(circle, rgba(123,77,240,0.28), transparent 72%); }
html[data-theme='dark'] .aurora .b3 { background: radial-gradient(circle, rgba(224,154,0,0.14), transparent 72%); }
html[data-theme='dark'] .aurora .b4 { background: radial-gradient(circle, rgba(46,211,183,0.13), transparent 72%); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 72px) 24px 90px; }
@media (max-width: 600px) { .hero { padding: calc(var(--header-h) + 44px) 20px 60px; } }
.hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px;
  border-radius: 100px; background: var(--bg-glass); border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #2ed3b7; box-shadow: 0 0 9px rgba(46,211,183,0.7); }

.h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.06; letter-spacing: -2.2px; margin: 0; }
@media (max-width: 600px) { .h1 { letter-spacing: -1.2px; } }
.h1 .grad {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 580px; margin: 20px auto 0; font-size: 19px; line-height: 1.55; color: var(--text-secondary); }
@media (max-width: 600px) { .lede { font-size: 16.5px; } }

.featured-card {
  max-width: 700px; margin: 48px auto 0; padding: 36px;
  background: var(--bg-glass); border: 1.4px solid var(--border); border-radius: 26px;
  box-shadow: var(--shadow-lifted); text-align: center;
}
@media (max-width: 600px) { .featured-card { padding: 24px; margin-top: 36px; } }
.start-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px;
  background: var(--gold-soft); border: 1px solid rgba(224,154,0,0.4); font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.1px; color: var(--gold);
}
.featured-card img.icon { width: 100px; height: 100px; border-radius: 23px; margin: 26px auto 20px; box-shadow: var(--shadow-lifted); }
@media (max-width: 600px) { .featured-card img.icon { width: 82px; height: 82px; } }
.featured-card h2 { font-size: 42px; font-weight: 800; letter-spacing: -1.4px; margin: 0 0 10px; }
@media (max-width: 600px) { .featured-card h2 { font-size: 32px; } }
.featured-card p.tag { color: var(--text-secondary); font-size: 18px; line-height: 1.55; margin: 0 0 28px; }
@media (max-width: 600px) { .featured-card p.tag { font-size: 15.5px; } }

.browse-link { display: inline-block; margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--text-muted); }
.browse-link:hover { color: var(--text-primary); }

/* ------------------------------------------------------------ download btn */
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 28px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--accent-grad); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 18px -4px rgba(58,91,245,0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -4px rgba(58,91,245,0.45); }
.dl-btn.compact { padding: 12px 18px; font-size: 14px; border-radius: 10px; }
/* Button rows: .dl-btn is inline-flex, so two of them (Windows + macOS,
   App Store + Google Play) sat glued together with no CSS setting a gap
   on their container. */
[data-card-cta] { display: flex; flex-wrap: wrap; gap: 10px; }
/* Only used inside centered hero/CTA blocks (never in a left-aligned card),
   so centering here is always correct. */
[data-secondary-slot] { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
@media (max-width: 420px) {
  .dl-btn { font-size: 14.5px; padding: 15px 20px; white-space: nowrap; }
  .dl-btn .size { font-size: 12.5px; }
}
.dl-btn svg { width: 20px; height: 20px; flex: none; }
.dl-btn .size { opacity: 0.72; font-weight: 600; font-size: 14px; }
.dl-requirement { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.dl-secondary { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.dl-secondary:hover { color: var(--text-primary); text-decoration: underline; }
.dl-secondary svg { width: 15px; height: 15px; }
.what-it-does { margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--text-muted); }
.what-it-does:hover { color: var(--text-primary); }

/* ------------------------------------------------------------- sections */
.section { position: relative; padding: 68px 24px; }
@media (min-width: 900px) { .section { padding: 104px 24px; } }
.section.subtle { background: var(--bg-subtle); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.eyebrow {
  display: inline-block; padding: 6px 13px; border-radius: 100px; background: var(--accent-soft);
  color: var(--accent); font-weight: 800; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase;
}
.section-title { text-align: center; font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; letter-spacing: -1.4px; line-height: 1.12; margin: 16px 0 0; }
.section-head { text-align: center; margin-bottom: 46px; }

/* ---------------------------------------------------------------- cards */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 999px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 619px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-card); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: block;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lifted); }
/* Whole-card click target. Sits UNDER the real content (z-index 0) so the
   download buttons stay independently clickable above it; see product_card()
   in build.py for why this isn't just the outer element wrapped in <a>. */
.product-card .stretched-link { position: absolute; inset: 0; z-index: 0; }
.product-card .art, .product-card .body { position: relative; z-index: 1; }
.product-card .art {
  height: 176px; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--card-a1), var(--card-a2));
}
.product-card .art .glow {
  position: absolute; top: -80px; right: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.42), transparent);
}
html[data-theme='dark'] .product-card .art .glow { background: radial-gradient(circle, rgba(255,255,255,0.16), transparent); }
.product-card .art img.icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow-lifted); position: relative; }
.product-card .art .shot-wrap {
  position: absolute; left: 28px; right: -36px; top: 30px; bottom: -28px; border-radius: 12px 0 0 0; overflow: hidden;
  box-shadow: var(--shadow-lifted);
}
.product-card .art .shot-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.product-card .art .mini-phone {
  position: relative; width: 78px; height: 100%; max-height: 152px; margin: 12px 0;
  border-radius: 14px; overflow: hidden; border: 3px solid rgba(0,0,0,0.75);
  box-shadow: var(--shadow-lifted); background: #000;
}
html[data-theme='dark'] .product-card .art .mini-phone { border-color: rgba(0,0,0,0.9); }
.product-card .art .mini-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.product-card .body { padding: 20px 22px 22px; }
.product-card .top-row { display: flex; align-items: flex-start; gap: 13px; }
.product-card .top-row img.mini-icon { width: 44px; height: 44px; border-radius: 10px; }
.product-card .name { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; margin: 0; }
.product-card .platforms { font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin: 3px 0 0; }
.product-card .desc { margin: 16px 0 20px; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }

/* -------------------------------------------------------------- why cards */
.why-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.why-card { width: 344px; max-width: 100%; padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-card); }
.why-card .ico { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.why-card .ico svg { width: 23px; height: 23px; }
.why-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; margin: 0 0 10px; }
.why-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

/* --------------------------------------------------------------- app frame */
.app-window { border-radius: 16px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-screenshot); background: var(--bg-card); }
.app-window .bar { height: 32px; background: #e9ebef; display: flex; align-items: center; padding: 0 12px; gap: 7px; }
html[data-theme='dark'] .app-window .bar { background: #23262e; }
.app-window .bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.app-window .bar .title { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.app-window img { width: 100%; display: block; }

.phone-frame { width: 220px; margin: 0 auto; padding: 7px; border-radius: 32px; background: #2a2d35; box-shadow: var(--shadow-screenshot); }
html[data-theme='dark'] .phone-frame { background: #1b1e25; }
.phone-frame .screen { border-radius: 26px; overflow: hidden; aspect-ratio: 9 / 19.5; }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; }

.icon-dock {
  display: inline-flex; flex-wrap: wrap; gap: 22px; justify-content: center;
  padding: 26px 30px; border-radius: 36px; background: var(--bg-glass); border: 1px solid var(--border);
  box-shadow: var(--shadow-screenshot);
}
.icon-dock img { width: 84px; height: 84px; border-radius: 20px; transition: transform 0.15s ease; cursor: pointer; }
.icon-dock img:hover { transform: translateY(-8px); }

/* --------------------------------------------------------------------- cta */
.cta-box {
  border-radius: 28px; padding: 76px 64px; text-align: center; background: var(--accent-grad); box-shadow: var(--shadow-lifted); color: #fff;
}
@media (max-width: 600px) { .cta-box { padding: 48px 28px; } }
.cta-box h2 { font-size: clamp(29px, 5vw, 44px); font-weight: 800; letter-spacing: -1.4px; margin: 0 0 14px; }
.cta-box p { margin: 0 0 32px; font-size: 18px; opacity: 0.9; }
.white-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 18px 30px; border-radius: 13px;
  background: #fff; color: #120e2e; font-weight: 700; font-size: 16px; box-shadow: 0 8px 16px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease; border: none; cursor: pointer;
}
.white-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.3); }
.white-btn svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------------- footer */
.site-footer { background: var(--bg-canvas); border-top: 1px solid var(--border); padding: 56px 24px 32px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-brand { width: 320px; max-width: 100%; }
.footer-brand p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; margin-top: 18px; }
.footer-col { width: 180px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin: 0 0 18px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 11px; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }

/* ------------------------------------------------------------- downloads page */
.release-card {
  padding: 32px; border-radius: 20px; margin-bottom: 24px; background: var(--bg-card); border: 1px solid var(--card-border, var(--border)); box-shadow: var(--shadow-card);
}
.release-card .head-row { display: flex; align-items: flex-start; gap: 16px; }
.release-card img.icon { width: 56px; height: 56px; border-radius: 13px; }
.release-card .title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.7px; margin: 0; }
.version-chip { padding: 3px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.release-card .sub { color: var(--text-secondary); font-size: 15px; margin: 6px 0 0; }
.release-card .buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
.release-card .req-line { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 5px; }
.release-card .req-line svg { width: 13px; height: 13px; flex: none; }
.release-split { display: grid; grid-template-columns: 5fr 4fr; gap: 36px; }
@media (max-width: 899px) { .release-split { grid-template-columns: 1fr; } }
.release-split .art { align-self: start; }
.release-split .phone-frame { width: 200px; }

.install-help-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.help-card { width: 344px; max-width: 100%; padding: 24px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.help-card svg { width: 22px; height: 22px; color: var(--accent); }
.help-card h4 { font-size: 16px; font-weight: 700; margin: 16px 0 10px; line-height: 1.35; }
.help-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }

/* -------------------------------------------------------------- hub links */
.hub-links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.hub-link-card {
  width: 424px; max-width: 100%; padding: 28px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 18px; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.hub-link-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lifted); }
.hub-link-card .ico { padding: 12px; border-radius: 12px; background: var(--accent-soft); flex: none; }
.hub-link-card .ico svg { width: 24px; height: 24px; color: var(--accent); }
.hub-link-card h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; margin: 0 0 6px; }
.hub-link-card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }
.hub-link-card .arrow { margin-left: auto; color: var(--text-muted); flex: none; }
.hub-link-card:hover .arrow { color: var(--accent); }

/* ---------------------------------------------------------------- gallery */
.gallery-wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.gallery-wrap .app-window { width: 520px; max-width: 100%; }

/* -------------------------------------------------------------------- generic */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

.legal-page { max-width: 780px; margin: 0 auto; }
.legal-page h2 { font-size: 24px; margin-top: 40px; }
.legal-page p, .legal-page li { color: var(--text-secondary); line-height: 1.7; font-size: 15.5px; }
.legal-page .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }

.text-page-hero { text-align: center; padding: calc(var(--header-h) + 60px) 24px 50px; }
.text-page-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -1.6px; margin: 0; }
.text-page-hero p { max-width: 600px; margin: 16px auto 0; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-secondary); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-card);
  color: var(--text-primary); font-family: inherit; font-size: 14.5px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-card { padding: 32px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; }
.form-status.ok { color: #12b981; }
.form-status.err { color: #ef4444; }

.contact-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 640px) { .contact-info-grid { grid-template-columns: 1fr; } }
.contact-info-card { padding: 20px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); display: flex; gap: 14px; align-items: center; }
.contact-info-card svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.contact-info-card .lbl { font-size: 12.5px; color: var(--text-muted); }
.contact-info-card .val { font-size: 14.5px; font-weight: 700; }

.floating-bar {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lifted); cursor: pointer;
}
.floating-bar svg { width: 24px; height: 24px; color: #fff; }

.breadcrumb { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--text-primary); }

/* ================= v2 home, studios, filters (Rajasthan night) ================= */
[hidden] { display: none !important; }
.hero-home { padding-bottom: 56px; }
.hero-home .h1 .grad { background: linear-gradient(90deg, #8aa0ff, #f5a524); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; align-items: center; }
html[data-theme='dark'] .dl-btn { color: #241800; background: linear-gradient(135deg, #f5a524, #ffcb6b); box-shadow: 0 8px 26px -8px rgba(245,165,36,.55); }
.ghost-cta { padding: 14px 20px; border-radius: 12px; border: 1px solid var(--border-strong); font-weight: 700; color: var(--text-primary); text-decoration: none; }
.ghost-cta:hover { background: var(--bg-glass); }
.marquee { margin: 46px auto 0; overflow: hidden; max-width: 900px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 22px; width: max-content; animation: drift 38s linear infinite; }
.marquee img { width: 64px; height: 64px; border-radius: 15px; flex: none; box-shadow: 0 6px 18px -6px rgba(0,0,0,.5); }
@keyframes drift { to { transform: translateX(-50%); } }
.studio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; } }
.studio-card { position: relative; padding: 28px; border-radius: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--plan) 22%, var(--bg-card)), var(--bg-card) 60%); border: 1px solid color-mix(in srgb, var(--plan) 40%, transparent); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 18px; }
.studio-head { display: flex; gap: 16px; align-items: center; }
.studio-head .icon { border-radius: 18px; flex: none; }
.studio-head h3 { margin: 0; font-size: 22px; letter-spacing: -.4px; }
.studio-head p { margin: 4px 0 0; color: var(--text-secondary); font-size: 15px; }
.studio-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.studio-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-secondary); font-size: 14.5px; }
.studio-points svg { flex: none; margin-top: 3px; color: var(--plan); }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 16px; background: var(--bg-glass); border: 1px solid var(--border); }
.hero .plan, .section-inner .plan { align-items: flex-start; }
.trial-pill { display: inline-block; background: #f5a524; color: #241800; font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; letter-spacing: .2px; }
.plan-price { display: flex; flex-direction: column; }
.plan-price b { font-size: 26px; letter-spacing: -.6px; }
.plan-price span { color: var(--text-muted); font-size: 13px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 30px 0 28px; }
.chip { font: inherit; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-secondary); cursor: pointer; }
.chip:hover { color: var(--text-primary); }
.chip.on { background: #f5a524; border-color: #f5a524; color: #241800; }
.filter-empty { text-align: center; color: var(--text-muted); }
.card-badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: #f5a524; color: #241800; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.product-card .art { position: relative; }
.product-card .platforms { color: var(--text-muted); }
.product-card [data-card-cta] { display: flex; flex-wrap: wrap; gap: 8px; }
.plan .dl-btn { margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } html { scroll-behavior: auto; } }

.visit-counter { position: fixed; left: 14px; bottom: 14px; z-index: 40; display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--bg-glass); border: 1px solid var(--border); color: var(--text-secondary); font-size: 12.5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.visit-counter b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.visit-counter svg { color: #f5a524; }
