/* ═══════════════════════════════════════════
   SOLARA EXECUTOR · styles.css
   Dark cinematic · Purple-indigo beams
═══════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  --bg:      #08080e;
  --bg2:     #0c0c18;
  --bg3:     #10101f;
  --sur:     rgba(255,255,255,0.038);
  --sur2:    rgba(255,255,255,0.065);
  --bdr:     rgba(255,255,255,0.07);
  --bdr2:    rgba(255,255,255,0.13);

  --p:       #7c3aed;
  --p2:      #6d28d9;
  --pl:      #a78bfa;
  --pdim:    rgba(124,58,237,0.15);
  --pglow:   rgba(109,40,217,0.45);

  --tx:      #ede9fc;
  --tx2:     #9c94b8;
  --tx3:     #514b6a;

  --g:       linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
  --r:       12px;
  --r2:      18px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── CONTAINER ── */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BREADCRUMBS ── */
.bc {
  background: var(--bg2);
  border-bottom: 1px solid var(--bdr);
  padding: 8px 0;
  font-size: 12px;
  color: var(--tx3);
}
.bc ol {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bc li { display: flex; align-items: center; }
.bc a { color: var(--tx3); transition: color .2s; }
.bc a:hover { color: var(--pl); }
.bc-sep { user-select: none; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8,8,14,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--bdr);
}
.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tx);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tx2);
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav a:hover,
.nav a.active { color: var(--tx); }
.nav a.active { background: var(--sur); }

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--p);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 0 24px var(--pglow);
  margin-left: 12px;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}
.btn-primary:hover {
  background: #8b5cf6;
  transform: translateY(-1px);
  box-shadow: 0 6px 32px var(--pglow);
}
.btn-primary:active { transform: none; }

.btn-lg  { font-size: 15px; padding: 13px 28px; border-radius: 11px; }
.btn-xl  { font-size: 16px; padding: 15px 36px; border-radius: 12px; box-shadow: 0 0 60px var(--pglow); }

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--bdr2);
  color: var(--tx2);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 11px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(139,92,246,0.5); color: var(--tx); background: rgba(124,58,237,0.08); }

/* Hamburger */
.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  margin-left: 8px;
}
.ham span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--tx2);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mob-nav {
  display: none;
  flex-direction: column;
  padding: 10px 24px 16px;
  border-top: 1px solid var(--bdr);
  gap: 1px;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  padding: 9px 10px;
  font-size: 14px;
  color: var(--tx2);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.mob-nav a:hover { color: var(--tx); background: var(--sur); }
.mob-dl { margin-top: 10px; width: 100%; margin-left: 0; }

/* ═══════════════════════════════════════════
   ATMOSPHERE — soft orbs, position:absolute
   They scroll with the page naturally.
   No conic-gradient, no fixed artifacts.
═══════════════════════════════════════════ */

body::before, body::after { display: none; content: none; }

/* Container spans the full document height */
.atmo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

/* Orb 1 — large violet, top-left of hero */
.orb-1 {
  width: 600px;
  height: 600px;
  top: -80px;
  left: -160px;
  background: radial-gradient(circle, rgba(109,40,217,0.45) 0%, transparent 70%);
  animation: drift1 18s ease-in-out infinite alternate;
}

/* Orb 2 — large violet, top-right of hero */
.orb-2 {
  width: 560px;
  height: 560px;
  top: -60px;
  right: -140px;
  background: radial-gradient(circle, rgba(124,58,237,0.4) 0%, transparent 70%);
  animation: drift2 22s ease-in-out infinite alternate;
}

/* Orb 3 — mid-page left accent */
.orb-3 {
  width: 400px;
  height: 400px;
  top: 55%;
  left: -100px;
  background: radial-gradient(circle, rgba(88,28,220,0.28) 0%, transparent 70%);
  animation: drift3 26s ease-in-out infinite alternate;
}

/* Orb 4 — mid-page right accent */
.orb-4 {
  width: 440px;
  height: 440px;
  top: 45%;
  right: -120px;
  background: radial-gradient(circle, rgba(109,40,217,0.22) 0%, transparent 70%);
  animation: drift4 20s ease-in-out infinite alternate;
}

/* Orb 5 — bottom center under CTA */
.orb-5 {
  width: 500px;
  height: 500px;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(88,28,220,0.3) 0%, transparent 70%);
  animation: drift5 24s ease-in-out infinite alternate;
}

/* Subtle drift animations — slow and calm */
@keyframes drift1 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40px, 30px); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-35px, 25px); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(30px, -20px); }
}
@keyframes drift4 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-25px, -30px); }
}
@keyframes drift5 {
  0%   { transform: translateX(-50%) scale(1); }
  100% { transform: translateX(-50%) scale(1.12); }
}

/* All real content above atmosphere */
.bc, .header, main, footer { position: relative; z-index: 1; }

/* Sections with bg2 get slight transparency so orbs bleed through */
.section-dark, .footer { background: rgba(12,12,24,0.88); }
.section-cta          { background: rgba(12,12,24,0.82); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  /* no overflow:hidden — let the page bg show through */
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  padding: 60px 0 0;
  text-align: center;
}

/* Hero background: starfield canvas only */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
}

/* Unused beam divs — hidden, beams now come from .page-bg */
.beam-l, .beam-r { display: none; }

/* Very soft center glow in hero only — does not affect beams */
.hero-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 40% at 50% 75%,
    rgba(60, 10, 160, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  mix-blend-mode: normal;
}

/* Bottom fade into next section */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Hero content */
.hero-body {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: 0;
}

/* Pill badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.22);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--tx2);
  margin-bottom: 24px;
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pl);
  animation: pd 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pd { 0%,100%{opacity:1} 50%{opacity:.35} }

/* H1 */
.hero h1 {
  font-size: clamp(36px, 6vw, 70px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: #fff;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--tx2);
  max-width: 440px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-cta .btn-primary { margin-left: 0; }

/* Stats row */
.hero-stats {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--bdr);
  border-radius: 14px;
  padding: 16px 0;
  margin-bottom: 44px;
  flex-wrap: wrap;
  justify-content: center;
}
.hs {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 26px;
  gap: 2px;
}
.hs strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.hs span {
  font-size: 11px;
  color: var(--tx3);
  font-weight: 500;
}
.hs-div {
  width: 1px;
  height: 34px;
  background: var(--bdr);
  flex-shrink: 0;
}

/* App window */
.appwin {
  max-width: 940px;
  margin: 0 auto;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  background: #0d0d1c;
  box-shadow:
    0 -30px 80px rgba(88,28,220,0.18),
    0 0 0 1px rgba(124,58,237,0.1);
  position: relative;
  z-index: 4;
}

/* Window title bar */
.appwin-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: #111124;
  border-bottom: 1px solid var(--bdr);
  overflow: hidden;
}
.appwin-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.d-red { width:11px;height:11px;border-radius:50%;background:#ff5f57; }
.d-ylw { width:11px;height:11px;border-radius:50%;background:#febc2e; }
.d-grn { width:11px;height:11px;border-radius:50%;background:#28c840; }

.appwin-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--tx3);
  flex-shrink: 0;
}
.appwin-title b { color: var(--pl); font-weight: 700; }

.appwin-tabs {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow: hidden;
  margin-left: 6px;
}
.tab {
  padding: 3px 10px;
  font-size: 11.5px;
  color: var(--tx3);
  border-radius: 5px;
  white-space: nowrap;
  cursor: default;
}
.tab-on { color: var(--tx); background: rgba(124,58,237,0.15); }
.tab-add { margin-left: 4px; }

/* Screenshot */
.appwin-img {
  display: block;
  width: 100%;
  height: auto;
  background: #0d0d1c;
  min-height: 280px;
  object-fit: cover;
}

/* Fallback code */
.appwin-code {
  background: #0d0d1c;
  padding: 24px 28px;
  font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 13px;
  line-height: 1.85;
  color: #7a7aa8;
  text-align: left;
  overflow-x: auto;
  min-height: 300px;
}
.cc { color: #3e3e60; }
.ck { color: #c084fc; }
.cs { color: #86efac; }
.cn { color: #fdba74; }
.cb { color: #a78bfa; }
.cf { color: #67e8f9; }

/* ═══════════════════════════════════════════
   TICKER BAR
═══════════════════════════════════════════ */
.ticker {
  background: var(--bg2);
  border-top: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
  padding: 0;
  overflow: hidden;
}
.ticker-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.ticker-inner > span:not(.td) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--tx2);
  padding: 4px 18px;
  white-space: nowrap;
}
.ticker-inner svg { color: var(--pl); flex-shrink: 0; }
.td {
  color: var(--tx3);
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════════ */
.section { padding: 72px 0; }
.section-dark { background: var(--bg2); }

.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pl);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  color: var(--tx);
}
.section-head p { font-size: 14.5px; color: var(--tx2); max-width: 400px; margin: 0 auto; }

/* ═══════════════════════════════════════════
   FEATURES GRID — 3×2, wall-to-wall, even
═══════════════════════════════════════════ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
/* Override wide spans — all cells equal */
.feat-grid .card,
.feat-grid .card-wide { grid-column: unset; }

.card {
  background: var(--sur);
  border: 1px solid var(--bdr);
  border-radius: var(--r2);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .2s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(124,58,237,0.5) 50%, transparent 90%);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover { border-color: rgba(124,58,237,0.35); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--pdim);
  border: 1px solid rgba(124,58,237,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pl);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--tx);
}
.card p { font-size: 13.5px; color: var(--tx2); line-height: 1.65; }

/* ═══════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.gal-slot {
  background: var(--bg3);
  border: 1px solid var(--bdr);
  border-radius: var(--r2);
  overflow: hidden;
  transition: border-color .25s, transform .2s;
}
.gal-slot:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-3px); }

.gal-img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--bg3);
}

/* Placeholder shown when image src is missing */
.gal-placeholder {
  width: 100%;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg3);
  color: var(--tx3);
  border-bottom: 1px solid var(--bdr);
}
.gal-placeholder svg { color: var(--tx3); }
.gal-placeholder span { font-size: 14px; font-weight: 600; }
.gal-placeholder small { font-size: 12px; color: var(--tx3); }

.gal-caption {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gal-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pl);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 3px 9px;
  border-radius: 6px;
  align-self: flex-start;
}
.gal-caption p { font-size: 13px; color: var(--tx2); line-height: 1.5; }

/* ═══════════════════════════════════════════
   SUPPORTED SCRIPTS
═══════════════════════════════════════════ */
.scripts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sc {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sur);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 14px 18px;
  transition: border-color .2s;
}
.sc:hover { border-color: rgba(124,58,237,0.3); }
.sc > img {
  width: 40px; height: 40px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--sur2);
  object-fit: cover;
}
.sc-n {
  font-size: 18px;
  font-weight: 800;
  color: var(--tx3);
  letter-spacing: -0.04em;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.sc-info { flex: 1; min-width: 0; }
.sc-info h3 { font-size: 14px; font-weight: 700; margin-bottom: 3px; color: var(--tx); }
.sc-info span { font-size: 11.5px; color: var(--tx3); }
.sc-ok {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(52,211,153,0.1);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   COMPARE TABLE
═══════════════════════════════════════════ */
.cmp-wrap {
  overflow-x: auto;
  border-radius: var(--r2);
  border: 1px solid var(--bdr);
  -webkit-overflow-scrolling: touch;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sur);
  font-size: 14px;
}
.cmp-table th, .cmp-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--bdr);
}
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table td:first-child,
.cmp-table th:first-child { text-align: left; color: var(--tx2); font-weight: 500; }
.cmp-table th {
  font-size: 13px;
  font-weight: 700;
  color: var(--tx2);
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--bdr2);
}
.cmp-table th.cmp-us {
  background: rgba(124,58,237,0.1);
  color: var(--pl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cmp-table td.cmp-us {
  background: rgba(124,58,237,0.06);
  font-weight: 600;
  color: var(--tx);
}
.cmp-yes { color: var(--pl); font-weight: 600; }
.cmp-no  { color: var(--tx3); }

/* Fix th.cmp-us — it's a th not a div */
thead th.cmp-us {
  display: table-cell;
  vertical-align: middle;
}
thead th.cmp-us svg { vertical-align: middle; margin-right: 5px; }

.cmp-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.cmp-table td svg { vertical-align: middle; }
td.cmp-yes svg { color: var(--pl); }
td.cmp-no  svg { color: var(--tx3); }

/* ═══════════════════════════════════════════
   HOW TO USE — STEPS
═══════════════════════════════════════════ */
.steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.step {
  flex: 1;
  background: var(--sur);
  border: 1px solid var(--bdr);
  border-radius: var(--r2);
  padding: 28px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.step:hover { border-color: rgba(124,58,237,0.3); transform: translateY(-2px); }
.step-num {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .4;
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--tx); }
.step p  { font-size: 13px; color: var(--tx2); line-height: 1.6; }

/* Arrow connectors */
.step-line {
  display: flex;
  align-items: center;
  padding: 0 10px;
  padding-bottom: 20px;
  color: var(--tx3);
  flex-shrink: 0;
}
.step-line::before {
  content: '›';
  font-size: 22px;
  font-weight: 300;
}

/* ═══════════════════════════════════════════
   CHANGELOG
═══════════════════════════════════════════ */
.cl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.cl {
  background: var(--sur);
  border: 1px solid var(--bdr);
  border-radius: var(--r2);
  padding: 22px 20px;
  transition: border-color .2s;
}
.cl:hover { border-color: var(--bdr2); }
.cl-latest { border-color: rgba(124,58,237,0.35); }

.cl-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.cl-v {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cl-d { font-size: 12px; color: var(--tx3); }
.cl-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(124,58,237,0.15);
  color: var(--pl);
  border: 1px solid rgba(124,58,237,0.25);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cl ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cl li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--tx2);
  line-height: 1.5;
}
.ct {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ct-f { background: rgba(124,58,237,0.2); color: #c4b5fd; }
.ct-x { background: rgba(244,114,182,0.15); color: #f9a8d4; }
.ct-p { background: rgba(52,211,153,0.1); color: #6ee7b7; }

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.fq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.fq {
  background: var(--sur);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s;
}
.fq[open] { border-color: rgba(124,58,237,0.3); }
.fq summary {
  padding: 17px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  color: var(--tx);
}
.fq summary::-webkit-details-marker { display: none; }
.fq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--p);
  flex-shrink: 0;
  transition: transform .2s;
  font-weight: 300;
  line-height: 1;
}
.fq[open] summary::after { transform: rotate(45deg); }
.fq p {
  padding: 13px 18px 17px;
  border-top: 1px solid var(--bdr);
  font-size: 13.5px;
  color: var(--tx2);
  line-height: 1.7;
}
.fq a { color: var(--pl); }
.fq a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   DOWNLOAD CTA
═══════════════════════════════════════════ */
.section-cta {
  position: relative;
  text-align: center;
  padding: 88px 0;
  background: var(--bg2);
}
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Local beams hidden — page-level body::before/::after handle it */
.cta-beam-l, .cta-beam-r { display: none; }
.cta-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 50% 100%, rgba(80,20,200,0.13) 0%, transparent 65%);
}
.cta-body {
  position: relative;
  z-index: 1;
}
.section-cta h2 {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 10px;
  margin-top: 8px;
}
.cta-sub { font-size: 14px; color: var(--tx2); margin-bottom: 26px; }
.cta-body .btn-primary { margin-left: 0; }
.cta-note { font-size: 12px; color: var(--tx3); margin-top: 12px; }
.cta-checks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}
.cta-checks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tx2);
  font-weight: 500;
}
.cta-checks svg { color: var(--pl); }

/* ═══════════════════════════════════════════
   SHARE
═══════════════════════════════════════════ */
.section-share {
  padding: 48px 0;
  background: var(--bg);
  border-top: 1px solid var(--bdr);
}
.share-body { text-align: center; }
.share-body h2 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.share-body p { font-size: 14px; color: var(--tx2); margin-bottom: 22px; }
.share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: opacity .2s, transform .15s;
}
.sbtn:hover { opacity: .87; transform: translateY(-2px); }
.li { background: #0a66c2; }
.tw { background: #000; border: 1px solid rgba(255,255,255,.12); }
.fb { background: #1877f2; }
.rd { background: #ff4500; }
.pt { background: #e60023; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--bdr);
}
.footer-inner {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  padding: 52px 0 40px;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo { font-size: 16px; font-weight: 700; display: inline-flex; }
.footer-brand p { font-size: 13px; color: var(--tx3); line-height: 1.7; margin-top: 10px; max-width: 240px; }

.footer-nav { display: flex; gap: 50px; flex-wrap: wrap; align-items: flex-start; }
.fcol { display: flex; flex-direction: column; gap: 10px; }
.fcol strong { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tx3); margin-bottom: 2px; }
.fcol a { font-size: 13.5px; color: var(--tx2); transition: color .2s; }
.fcol a:hover { color: var(--pl); }
.fcol-dl { color: var(--pl) !important; font-weight: 600; }

.footer-bar {
  border-top: 1px solid var(--bdr);
  padding: 16px 24px;
  max-width: 1060px;
  margin: 0 auto;
}
.footer-bar p { font-size: 12px; color: var(--tx3); text-align: center; }

/* ═══════════════════════════════════════════
   SCROLL FADE ANIMATION
═══════════════════════════════════════════ */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.fade.on { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── Tablet 860px ── */
@media (max-width: 860px) {
  .section { padding: 60px 0; }

  /* Features → 2 cols */
  .feat-grid { grid-template-columns: 1fr 1fr; }

  /* Changelog → 1 col centered */
  .cl-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  /* FAQ → 1 col centered */
  .fq-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  /* Steps → 2×2 grid */
  .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .step-line { display: none; }
}

/* ── Mobile 640px ── */
@media (max-width: 640px) {

  /* HEADER */
  .nav { display: none; }
  .ham { display: flex; }
  .header-inner .btn-primary { display: none; }

  /* HERO */
  .hero { min-height: unset; padding: 44px 0 0; }
  .hero h1 { font-size: clamp(28px, 9vw, 44px); }
  .hero h1 br { display: none; }

  .hero-sub { font-size: 14px; margin-bottom: 24px; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-primary,
  .hero-cta .btn-ghost { width: 100%; justify-content: center; margin: 0; }
  .btn-lg { font-size: 15px; padding: 14px 20px; }
  .btn-ghost { font-size: 14px; padding: 13px 20px; }

  /* Stats — 2×2 on mobile */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 36px;
  }
  .hs {
    padding: 16px 12px;
    border-right: 1px solid var(--bdr);
    border-bottom: 1px solid var(--bdr);
  }
  .hs:nth-child(3), .hs:nth-child(7) { border-right: none; }
  .hs:nth-last-child(-n+4) { border-bottom: none; }
  .hs strong { font-size: 20px; }
  .hs span { font-size: 11px; }
  .hs-div { display: none; }

  /* App window */
  .appwin-tabs { display: none; }
  .appwin-bar { gap: 8px; }
  .appwin-code { font-size: 11.5px; padding: 16px 18px; min-height: 220px; }

  /* TICKER */
  .ticker-inner {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 10px 20px;
    scrollbar-width: none;
  }
  .ticker-inner::-webkit-scrollbar { display: none; }
  .ticker-inner > span:not(.td) { padding: 4px 10px; font-size: 12px; }

  /* SECTIONS */
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(20px, 6vw, 28px); }

  /* FEATURES */
  .feat-grid { grid-template-columns: 1fr; gap: 10px; }

  /* GALLERY */
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .gal-img, .gal-placeholder { height: 196px; }

  /* SCRIPTS */
  .scripts-grid { grid-template-columns: 1fr; gap: 8px; }
  .sc { padding: 12px 14px; }
  .sc-n { width: 22px; font-size: 15px; }

  /* COMPARE TABLE */
  .cmp-wrap { border-radius: var(--r); }
  .cmp-table { font-size: 12.5px; }
  .cmp-table th,
  .cmp-table td { padding: 11px 10px; }
  .cmp-table th:first-child,
  .cmp-table td:first-child { min-width: 90px; }

  /* STEPS */
  .steps { display: flex; flex-direction: column; gap: 8px; }
  .step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    padding: 18px 16px;
  }
  .step-num {
    font-size: 26px;
    margin-bottom: 0;
    padding-top: 2px;
    flex-shrink: 0;
    line-height: 1;
  }
  .step h3 { margin-bottom: 5px; }

  /* CHANGELOG */
  .cl-grid { grid-template-columns: 1fr; max-width: 100%; }
  .cl { padding: 18px 16px; }
  .cl-v { font-size: 16px; }

  /* FAQ */
  .fq-grid { grid-template-columns: 1fr; max-width: 100%; }
  .fq summary { padding: 15px 16px; font-size: 13.5px; }
  .fq p { padding: 12px 16px 15px; font-size: 13px; }

  /* CTA */
  .section-cta { padding: 60px 0; }
  .section-cta h2 { font-size: clamp(24px, 7vw, 36px); }
  .cta-body .btn-xl { width: 100%; max-width: 340px; font-size: 15px; padding: 14px 20px; }
  .cta-checks { gap: 12px; }
  .cta-checks span { font-size: 12px; }

  /* SHARE */
  .share-body h2 { font-size: 20px; }
  .share-row { gap: 8px; }
  .sbtn { padding: 10px 16px; font-size: 12.5px; }

  /* FOOTER */
  .footer-inner { flex-direction: column; gap: 24px; padding: 36px 0 24px; }
  .footer-nav { gap: 28px; flex-wrap: wrap; }
  .fcol { min-width: 110px; }
  .footer-bar p { font-size: 11px; }

  /* PILL */
  .pill { font-size: 11.5px; padding: 4px 11px; }
}

/* ── Small phones 400px ── */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { border-radius: 12px; }
  .hs strong { font-size: 18px; }
  .cmp-table { font-size: 11.5px; }
  .cmp-table th, .cmp-table td { padding: 9px 8px; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.65); }
::selection { background: rgba(124,58,237,0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--p); outline-offset: 3px; }
