/* ── LANDING PAGE — TCGARKIVE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #07070A;
  --bg2:       #0E0E12;
  --bg3:       #131318;
  --bg4:       #1A1A20;
  --border:    #1F1F26;
  --border2:   #2A2A32;
  --text:      #F5F5F7;
  --text2:     #9A9AAF;
  --text3:     #6B6B7A;
  --accent:    #D4A64F;
  --accent2:   #F2D188;
  --silver:    #BFC3CC;
  --accent-glow: rgba(212,166,79,0.18);
  --accent-glow2: rgba(212,166,79,0.06);
  --red:       #cc2233;
  --green:     #3ddc84;
  --radius:    12px;
  --radius-lg: 20px;
  --maxw:      1200px;
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: 'Outfit', sans-serif;
  background: transparent;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────── */
h1, h2, h3, h4, .rajdhani {
  font-family: 'Akt', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.gold { color: var(--accent); }

/* ── NAVBAR ──────────────────────────────────────────────────────────── */
.lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  height: 110px;
  background: rgba(7,7,10,0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.lp-nav-brand { justify-self: center; }
.lp-nav-cta { justify-self: end; }
.lp-nav-left { display: flex; align-items: center; gap: 18px; }
.lp-nav-brand { display: flex; align-items: center; gap: 10px; }

/* Burger */
.lp-burger {
  position: relative;
  width: 26px; height: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  color: var(--text);
}
.lp-burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all .3s ease-in-out;
}
.lp-burger span:nth-child(1) { width: 26px; }
.lp-burger span:nth-child(2) { width: 16px; }
.lp-burger span:nth-child(3) { width: 22px; }
.lp-burger:hover { color: var(--accent); }
.lp-burger.open span:nth-child(1) {
  width: 26px;
  transform: translateY(7px) rotate(45deg);
}
.lp-burger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(8px);
}
.lp-burger.open span:nth-child(3) {
  width: 26px;
  transform: translateY(-7px) rotate(-45deg);
}

/* Fullscreen menu overlay */
.lp-menu {
  position: fixed;
  top: 110px; left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(212,166,79,0.06), transparent 65%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.lp-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lp-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 0;
}
.lp-menu-link {
  position: relative;
  display: block;
  font-family: 'Akt', sans-serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text2);
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: color .25s ease, padding-left .35s ease;
  opacity: 0;
  transform: translateY(12px);
  cursor: pointer;
  background: none;
  text-align: left;
  width: 100%;
}
.lp-menu-link::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1.5px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: width .35s ease;
}
.lp-menu-link:hover { color: var(--accent); padding-left: 36px; }
.lp-menu-link:hover::before { width: 24px; }
.lp-menu-link-gold { color: var(--accent2); }

.lp-menu.open .lp-menu-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease, color .25s, padding-left .35s;
}
.lp-menu.open .lp-menu-link:nth-child(1) { transition-delay: .08s; }
.lp-menu.open .lp-menu-link:nth-child(2) { transition-delay: .14s; }
.lp-menu.open .lp-menu-link:nth-child(3) { transition-delay: .20s; }
.lp-menu.open .lp-menu-link:nth-child(4) { transition-delay: .26s; }
.lp-menu.open .lp-menu-link:nth-child(5) { transition-delay: .32s; }

.lp-nav-logo { max-height: 88px; height: 88px; width: auto; display: block; }

/* Nav CTA icon button */
.btn-nav-icon-only {
  display: inline-block;
  width: 64px; height: 64px;
  background: url('../images/login_icon.webp') center/contain no-repeat;
  cursor: pointer;
  transition: transform .25s ease, filter .25s ease;
  border: none;
}
.btn-nav-icon-only:hover {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 4px 12px var(--accent-glow));
}
.btn-nav-icon-label { display: none !important; }

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn-primary, .btn-secondary {
  text-transform: uppercase;
  letter-spacing: .14em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
/* Btn-primary — ShimmerButton 3D press style */
.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 4px;
  border: 0;
  font-weight: 700;
  color: #1a1206;
  background: linear-gradient(180deg, var(--accent2) 0%, var(--accent) 100%);
  cursor: pointer;
  user-select: none;
  text-shadow: none;
  box-shadow:
    inset 0 0 0.1rem 0 rgba(255,255,255,0.6),
    0 0.3rem 0.1rem -0.2rem rgba(110,70,15,0.6),
    0 0.3rem 0 0 rgba(110,70,15,0.85),
    0 0.4rem 0 0.1rem rgba(0,0,0,0.45),
    -0.4rem 0.4rem 0.4rem 0 rgba(0,0,0,0.45);
  transition: all .2s ease-out;
}
.btn-primary::before { display: none; }
.btn-primary::after  { display: none; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary svg { stroke-width: 1.8; color: #1a1206; }
.btn-primary .material-symbols-outlined,
.btn-primary .material-icons { color: #1a1206; }
.btn-primary:hover {
  transform: translateY(0.4rem);
  text-shadow: none;
  box-shadow:
    inset 0 0 0.1rem 0 rgba(255,255,255,0.7),
    0 0 0.1rem -0.2rem rgba(110,70,15,0.6),
    0 0 0 0 rgba(110,70,15,0.85),
    0 0.1rem 0 0.1rem rgba(0,0,0,0.4),
    -0.1rem 0 0.2rem 0 rgba(0,0,0,0.4);
}
.btn-primary:active {
  transform: translateY(0.55rem);
  box-shadow:
    inset 0 0 0.1rem 0 rgba(255,255,255,0.5),
    0 0 0 0 rgba(110,70,15,0.6),
    0 0 0 0 rgba(110,70,15,0.85),
    0 0 0 0.1rem rgba(0,0,0,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border2);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Google / store buttons */
.btn-google-img {
  display: inline-block;
  transition: transform .25s ease, filter .25s ease;
}
.btn-google-img img { height: 60px; width: auto; display: block; }
.btn-google-img:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 28px var(--accent-glow));
}
.lp-stores {
  display: flex; gap: 14px;
  justify-content: center; align-items: center;
  flex-wrap: wrap;
}
.store-badge-img {
  display: inline-block;
  transition: transform .25s ease, filter .25s ease;
}
.store-badge-img img { height: 56px; width: auto; display: block; }
.store-badge-img:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 22px var(--accent-glow));
}

/* ── HERO ────────────────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 48px 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: transparent;
}
.lp-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  pointer-events: none; z-index: 1;
}
.lp-hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw);
  margin: 0 auto;
  display: flex; justify-content: center; text-align: center;
}
.lp-hero-copy { max-width: 760px; }
.lp-hero-desc { margin-left: auto; margin-right: auto; }
.lp-hero-actions { justify-content: center; }
.lp-hero-stats { margin-left: auto; margin-right: auto; }

.lp-hero-title { font-size: clamp(48px, 7vw, 88px); margin-bottom: 14px; }
.lp-hero-subtitle {
  font-family: 'Akt', sans-serif;
  font-size: 22px; font-weight: 500;
  color: var(--silver);
  letter-spacing: .25em; text-transform: uppercase;
  margin-bottom: 24px;
}
.lp-hero-desc {
  font-size: 17px; color: var(--text2);
  max-width: 560px; margin-bottom: 36px;
}
.lp-hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 50px;
}
.lp-hero-stats {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: nowrap; max-width: 560px;
}
.lp-hero-stats .lp-stat { flex: 1; }
.lp-stat { white-space: nowrap; }
.lp-stat-value {
  font-family: 'Akt', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 4px;
}
.lp-stat-label {
  font-size: 11px; text-transform: uppercase;
  color: var(--text3); letter-spacing: .15em;
}
.lp-stat-sep { width: 1px; height: 36px; background: var(--border2); }

/* ── SECTION COMMONS ──────────────────────────────────────────────────── */
.lp-section-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .25em;
  color: var(--accent); margin-bottom: 18px;
}
.lp-section-label.center { text-align: center; }
.lp-section-title {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 18px; color: var(--text);
}
.lp-section-title.center { text-align: center; }
.lp-section-title span { color: var(--accent); }
.lp-section-desc {
  font-size: 17px; color: var(--text2);
  max-width: 640px; margin-bottom: 60px;
}

/* ── SPLIT SECTIONS ──────────────────────────────────────────────────── */
.lp-split {
  padding: 110px 48px;
  border-top: 1px solid var(--border);
  background: rgba(7,7,10,0.6);
  position: relative; z-index: 1;
}
.lp-split-alt { background: rgba(14,14,18,0.65); }
.lp-split-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.lp-split-copy .lp-section-label { margin-bottom: 14px; }
.lp-split-copy .lp-section-desc { margin-bottom: 28px; }
.lp-split-copy .lp-section-title { margin-bottom: 18px; }

.lp-split-visual {
  position: relative; min-height: 320px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg3) 0%, var(--bg) 100%);
  padding: 32px; display: grid; place-items: center; overflow: hidden;
}
.lp-split-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}

/* Visual: database tile cluster */
.visual-grid {
  position: relative; display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px; width: 100%; max-width: 380px;
}
.vg-tile {
  aspect-ratio: 1.6/1; display: grid; place-items: center;
  border-radius: 10px; background: var(--bg2);
  border: 1px solid var(--border2);
  font-family: 'Akt', sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: .08em;
  color: var(--text); font-style: italic;
}
.vg-sv { color: #d97ab4; }
.vg-ss { color: #6ec8e6; }
.vg-sm { color: #f0c44a; }
.vg-xy { color: #e5e7eb; font-style: normal; }
.vg-bw { color: #e5e7eb; font-style: normal; letter-spacing: .12em; }
.vg-mega { color: var(--accent); }

/* Visual: collection rings */
.visual-rings { display: flex; gap: 22px; align-items: center; }
.visual-rings .ring {
  width: 90px; height: 90px; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p)*1%), var(--bg4) 0);
  display: grid; place-items: center; position: relative;
}
.visual-rings .ring::before {
  content: ''; position: absolute; inset: 8px;
  background: var(--bg2); border-radius: 50%;
}
.visual-rings .ring-pct {
  position: relative; z-index: 1;
  font-family: 'Akt', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--accent);
}

/* Visual: scanner */
.lp-split-visual--scanner {
  overflow: visible;
  min-height: 360px;
}

/* wrapper that holds card + info panel side by side */
.scan-stage {
  display: flex;
  align-items: center;
  gap: 24px;
}

.visual-scan {
  position: relative;
  flex-shrink: 0;
  width: 200px; height: 280px;
}

/* hide everything until JS starts the cycle */
.visual-scan .scan-card,
.visual-scan .scan-line,
.visual-scan .scan-corners {
  opacity: 0;
  transition: opacity .4s ease;
}
.visual-scan.ready .scan-card,
.visual-scan.ready .scan-line,
.visual-scan.ready .scan-corners {
  opacity: 1;
}

.scan-card {
  position: absolute; inset: 0; border-radius: 5px; overflow: hidden;
}
.scan-card img {
  width: 100%; height: 100%; object-fit: contain;
  border-radius: 5px;
  transition: opacity .4s ease;
}
.scan-card img.loading { opacity: 0; }

/* Info panel — zero width until revealed so the card stays centred */
.scan-info-panel {
  flex-shrink: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: width .6s cubic-bezier(.4,0,.2,1),
              opacity .5s ease,
              transform .5s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.scan-info-panel.visible {
  width: 220px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Spinner shown while scanning (before data reveal) */
.sip-spinner {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
/* reuse page-loader triangle at smaller scale */
.sip-spinner .loader {
  --path: var(--text2); --dot: var(--accent); --duration: 3s;
  width: 30px; height: 30px; position: relative;
}
.sip-spinner .loader::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  position: absolute; display: block; background: var(--dot);
  top: 25px; left: 14px; transform: translate(-10px, -18px);
  animation: dotTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}
.sip-spinner .loader svg { display: block; width: 100%; height: 100%; }
.sip-spinner .loader svg polygon {
  fill: none; stroke: var(--path); stroke-width: 10px;
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 145 76 145 76; stroke-dashoffset: 0;
  animation: pathTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}
.sip-spinner-txt {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text3);
}
.sip-content { transition: opacity .3s ease; }

/* scanning state: show spinner, hide content */
.scan-info-panel.scanning .sip-spinner  { display: flex; }
.scan-info-panel.scanning .sip-content  { opacity: 0; pointer-events: none; }
.sip-label {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.sip-label::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: sip-blink 1.2s ease-in-out infinite;
}
@keyframes sip-blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.2; }
}
.sip-name {
  font-family: 'Akt', sans-serif;
  font-size: 15px; font-weight: 700; line-height: 1.25;
  color: var(--text); margin-bottom: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.sip-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 10px;
}
.sip-cell { display: flex; flex-direction: column; gap: 2px; }
.sip-lbl {
  font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text3);
}
.sip-val {
  font-size: 12px; color: var(--text2); font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.sip-val.sip-price { color: var(--accent); font-weight: 700; }
.sip-series {
  font-size: 11px; color: var(--text3);
  border-top: 1px solid var(--border);
  padding-top: 8px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* fade-in animation for data update */
.scan-info-panel.sip-in .sip-name,
.scan-info-panel.sip-in .sip-val,
.scan-info-panel.sip-in .sip-series {
  animation: sip-fade .35s ease;
}
@keyframes sip-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.scan-line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px var(--accent);
  animation: scanline 2.4s ease-in-out infinite;
}
@keyframes scanline {
  0%, 100% { top: 0; }
  50% { top: calc(100% - 2px); }
}
.scan-corners i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); }
.scan-corners i:nth-child(1) { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.scan-corners i:nth-child(2) { top: -6px; right: -6px; border-left: 0; border-bottom: 0; }
.scan-corners i:nth-child(3) { bottom: -6px; left: -6px; border-right: 0; border-top: 0; }
.scan-corners i:nth-child(4) { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }

/* Visual: blog posts */
.visual-posts { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; }
.post-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--bg2);
  border: 1px solid var(--border2); border-radius: 10px;
}
.post-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent);
  padding: 4px 8px; background: var(--accent-glow2);
  border: 1px solid var(--accent-glow); border-radius: 4px; white-space: nowrap;
}
.post-title { font-size: 14px; color: var(--text); font-weight: 500; }

/* ── 3D GALAXY SECTION ───────────────────────────────────────────────── */
.lp-galaxy {
  position: relative; padding: 110px 48px 80px;
  background: linear-gradient(180deg, var(--bg) 0%, #000 50%, var(--bg) 100%);
  border-top: 1px solid var(--border); overflow: hidden;
}
.lp-galaxy-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.lp-galaxy-head .lp-section-label { margin-bottom: 14px; }
.lp-galaxy-stage {
  position: relative; max-width: 1100px; margin: 0 auto;
  height: 560px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: #000;
  overflow: hidden; cursor: grab;
}
.lp-galaxy-stage:active { cursor: grabbing; }
.lp-galaxy-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.lp-galaxy-hint {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent2); background: rgba(0,0,0,0.55);
  border: 1px solid rgba(212,166,79,0.35);
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(6px); pointer-events: none;
}
.lp-galaxy-cta { text-align: center; margin-top: 36px; }

/* galaxy modal */
.lp-galaxy-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s; padding: 24px;
}
.lp-galaxy-modal.open { opacity: 1; visibility: visible; }
.lp-galaxy-modal-card {
  position: relative; background: transparent;
  border: none; border-radius: 18px;
  padding: 0; max-width: 320px; width: 100%;
  transform: scale(.94); transition: transform .3s ease;
}
.lp-galaxy-modal.open .lp-galaxy-modal-card { transform: scale(1); }
.lp-galaxy-modal-img {
  width: 100%; margin: 0 auto;
  aspect-ratio: 589 / 836; border-radius: 14px;
}
.lp-galaxy-modal-title { display: none; }
.lp-galaxy-modal-close {
  position: absolute; top: -12px; right: -12px;
  width: 32px; height: 32px; background: rgba(0,0,0,.7);
  border: 1px solid var(--border2); border-radius: 50%;
  color: var(--text2); font-size: 20px;
  cursor: pointer; line-height: 32px; text-align: center;
}
.lp-galaxy-modal-close:hover { color: var(--accent); }

/* ── CTA ─────────────────────────────────────────────────────────────── */
.lp-cta {
  position: relative; padding: 140px 48px;
  text-align: center; overflow: hidden;
  border-top: 1px solid var(--border);
}
.lp-cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, var(--accent-glow), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.lp-cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.lp-cta-title { font-size: clamp(40px, 6vw, 72px); margin-bottom: 20px; }
.lp-cta-title span { color: var(--accent); }
.lp-cta-desc { font-size: 18px; color: var(--text2); margin-bottom: 36px; }
.lp-cta-fine {
  margin-top: 18px; font-size: 12px;
  color: var(--text3); text-transform: uppercase; letter-spacing: .15em;
}
.lp-cta-divider {
  display: flex; align-items: center; gap: 16px;
  max-width: 420px; margin: 32px auto 24px;
  color: var(--text3); font-size: 11px;
  letter-spacing: .25em; text-transform: uppercase;
}
.lp-cta-divider::before,
.lp-cta-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.lp-footer {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 32px 48px; border-top: 1px solid var(--border);
  background: var(--bg2); flex-wrap: wrap; gap: 16px;
}
.lp-footer-brand { display: flex; align-items: center; gap: 10px; }
.lp-footer-logo { height: 28px; }
.lp-footer-name { font-family: 'Akt', sans-serif; font-weight: 700; letter-spacing: .1em; color: var(--text); }
.lp-footer-copy { font-size: 13px; color: var(--text3); }
.lp-footer-links { display: flex; gap: 24px; }
.lp-footer-links a { font-size: 13px; color: var(--text2); transition: color .15s; }
.lp-footer-links a:hover { color: var(--accent); }

/* ── AUTH MODAL ──────────────────────────────────────────────────────── */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity .25s ease;
}
.auth-modal-overlay.open { opacity: 1; }
.auth-modal {
  position: relative; background: #0e0e14;
  border: 1px solid #2a2a36; border-radius: 20px;
  padding: 36px 32px 32px; width: 100%; max-width: 400px;
  box-shadow: 0 40px 100px rgba(0,0,0,.8), 0 0 0 1px rgba(212,166,79,0.1);
}
.auth-modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px;
  background: none; border: none; color: var(--text3);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.auth-modal-close:hover { color: var(--accent); }
.auth-logo {
  font-family: 'Akt', sans-serif; font-weight: 700; font-size: 22px;
  letter-spacing: .1em; color: var(--text); text-align: center; margin-bottom: 22px;
}
.auth-logo span { color: var(--accent); }
.auth-tabs {
  display: flex; border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border2);
  padding: 4px; margin-bottom: 24px; gap: 4px;
}
.auth-tab {
  flex: 1; padding: 8px; background: transparent; border: none;
  border-radius: 6px; font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text2); cursor: pointer; transition: all .2s;
}
.auth-tab.active { background: var(--accent); color: #1a1206; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form.hidden { display: none; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.auth-field input {
  padding: 11px 14px; background: rgba(255,255,255,.04);
  border: 1px solid var(--border2); border-radius: 8px;
  color: var(--text); font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.auth-field input:focus { border-color: var(--accent); }
.auth-error { font-size: 13px; color: #f87171; min-height: 16px; text-align: center; }
.auth-btn {
  margin-top: 4px; padding: 13px;
  background: var(--accent); border: none; border-radius: 8px;
  color: #1a1206; font-size: 14px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.auth-btn:hover { background: var(--accent2); transform: translateY(-1px); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── LOADER ──────────────────────────────────────────────────────────── */
.lp-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s;
}
.lp-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.lp-loader .loader {
  --path: var(--text); --dot: var(--accent); --duration: 3s;
  width: 44px; height: 44px; position: relative;
}
.lp-loader .loader::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  position: absolute; display: block; background: var(--dot);
  top: 37px; left: 19px; transform: translate(-18px, -18px);
  animation: dotRect var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}
.lp-loader .loader svg { display: block; width: 100%; height: 100%; }
.lp-loader .loader svg rect,
.lp-loader .loader svg polygon,
.lp-loader .loader svg circle {
  fill: none; stroke: var(--path); stroke-width: 10px;
  stroke-linejoin: round; stroke-linecap: round;
}
.lp-loader .loader svg polygon {
  stroke-dasharray: 145 76 145 76; stroke-dashoffset: 0;
  animation: pathTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}
.lp-loader .loader.triangle { width: 48px; }
.lp-loader .loader.triangle::before {
  left: 21px; transform: translate(-10px, -18px);
  animation: dotTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}
@keyframes pathTriangle {
  33%  { stroke-dashoffset: 74; }
  66%  { stroke-dashoffset: 147; }
  100% { stroke-dashoffset: 221; }
}
@keyframes dotTriangle {
  33%  { transform: translate(0, 0); }
  66%  { transform: translate(10px, -18px); }
  100% { transform: translate(-10px, -18px); }
}
@keyframes dotRect {
  25%  { transform: translate(0, 0); }
  50%  { transform: translate(18px, -18px); }
  75%  { transform: translate(0, -36px); }
  100% { transform: translate(-18px, -18px); }
}

/* ── ETHEREAL BACKGROUND ─────────────────────────────────────────────── */
.lp-ethereal-fixed {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}
.lp-ethereal .le-displace {
  position: absolute; inset: -100px;
  filter: url(#leFilter) blur(4px);
  transform: translateZ(0); -webkit-transform: translateZ(0);
  will-change: filter, transform;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.lp-ethereal .le-svg { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.lp-ethereal .le-layer {
  width: 100%; height: 100%;
  background-color: rgba(128,128,128,1);
  -webkit-mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
          mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  -webkit-mask-size: cover; mask-size: cover;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.lp-ethereal .le-noise {
  position: absolute; inset: 0;
  background-image: url('https://framerusercontent.com/images/g0QcWrxr87K0ufOxIUFBakwYA8.png');
  background-size: 240px 240px; background-repeat: repeat;
  opacity: 0.5; pointer-events: none;
}

/* ── COLLECTION PANEL ────────────────────────────────────────────────── */
.visual-collection { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.vc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.vc-title {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--text3); font-weight: 700;
}
.vc-langs { display: inline-flex; gap: 4px; }
.vc-lang {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  padding: 3px 7px; border: 1px solid var(--border2);
  border-radius: 999px; color: var(--text2); background: var(--bg4);
}
.vc-total-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 6px 0 12px; border-bottom: 1px solid var(--border);
}
.vc-total {
  font-family: 'Akt', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--accent); letter-spacing: .04em;
}
.vc-total-sub { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--text3); }
.vc-rows { display: flex; flex-direction: column; gap: 12px; }
.vc-row {
  display: grid; grid-template-columns: 56px 1fr auto;
  align-items: center; gap: 14px; padding: 10px 12px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
}
.vc-ring {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
}
.vc-ring::before {
  content: ''; position: absolute; inset: 5px;
  background: var(--bg2); border-radius: 50%;
}
.vc-ring span { position: relative; z-index: 1; font-family: 'Akt', sans-serif; font-size: 12px; font-weight: 700; }
.vc-ring.high { background: conic-gradient(#3ddc84 calc(var(--p)*1%), var(--bg4) 0); }
.vc-ring.mid  { background: conic-gradient(#D4A64F calc(var(--p)*1%), var(--bg4) 0); }
.vc-ring.low  { background: conic-gradient(#e07a3d calc(var(--p)*1%), var(--bg4) 0); }
.vc-ring.high span { color: #3ddc84; }
.vc-ring.mid  span { color: #F2D188; }
.vc-ring.low  span { color: #e07a3d; }
.vc-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vc-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-sub { font-size: 11px; color: var(--text3); letter-spacing: .04em; }
.vc-lang-pill {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .12em;
  padding: 2px 6px; margin-left: 6px; border: 1px solid var(--border2);
  border-radius: 4px; color: var(--text2); background: var(--bg4); vertical-align: middle;
}
.vc-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 999px; color: var(--text3); background: var(--bg4);
  border: 1px solid var(--border); min-width: 36px; text-align: center;
}
.vc-badge .material-icons { font-size: 12px; }

/* ── CARD STACK (fan layout, database section) ───────────────────── */
.cs-wrap { padding: 0 !important; overflow: visible !important; border: 0 !important; background: transparent !important; }
.cs-wrap::before { display: none !important; }
.cs-stage {
  position: relative;
  width: 100%;
  height: 250px;
  perspective: 1100px;
  outline: none;
  overflow: hidden;
}
.cs-cards {
  position: absolute;
  inset: 0;
}
.cs-card {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 220px;
  height: 170px;
  margin-left: 0;
  border-radius: 6px;
  border: 4px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: grid; place-items: center;
  font-family: 'Akt', sans-serif;
  font-weight: 800;
  font-size: 20px;
  font-style: italic;
  letter-spacing: .04em;
  text-align: center;
  padding: 8px 16px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transform-style: preserve-3d;
  transform-origin: bottom center;
  transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .3s;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.6);
  transform: translate(-50%, 0);
  background: var(--bg);
}
.cs-card::before, .cs-card::after { display: none; }
.cs-card.cs-active {
  box-shadow: 0 40px 80px -10px rgba(0,0,0,0.75), 0 0 0 1px var(--accent-glow);
  cursor: grab;
}
.cs-card span {
  position: relative; z-index: 2;
  background: rgba(0,0,0,0.45);
  padding: 6px 14px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.cs-card img {
  max-width: 110%;
  max-height: 105%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.55));
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.cs-card.cs-bw img { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.55)) brightness(1.6); }

/* Dots */
.cs-dots {
  display: flex; gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.cs-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(245,245,247,0.25);
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.cs-dot.on { background: var(--accent); transform: scale(1.2); }
.cs-dot:hover { background: var(--accent2); }

/* Language tabs */
.cs-langs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.cs-langbtn {
  font-family: inherit;
  font-size: 12px; font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(245,245,247,0.04);
  border: 1px solid var(--border2);
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.cs-langbtn:hover { color: var(--text); border-color: var(--accent); }
.cs-langbtn.on {
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  color: #1a1206;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* ── FLAG SVG SIZING ─────────────────────────────────────────────────── */
img.flag, img.flag-inline {
  display: inline-block !important;
  height: 14px !important;
  width: 20px !important;
  object-fit: cover;
  vertical-align: middle;
  border-radius: 2px;
  margin-right: 4px;
  max-width: 20px;
}
.cs-langbtn img.flag { height: 14px !important; width: 20px !important; }
.vc-lang-pill img.flag-inline { height: 10px !important; width: 14px !important; }

/* ── SPLIT SECTION ALIGNMENT ─────────────────────────────────────────── */
.lp-split .lp-split-copy { text-align: left; }
.lp-split .lp-split-copy .btn-primary,
.lp-split .lp-split-copy .btn-secondary { align-self: flex-start; }

.lp-split-alt .lp-split-copy { text-align: right; }
.lp-split-alt .lp-split-copy .lp-section-title,
.lp-split-alt .lp-split-copy .lp-section-desc,
.lp-split-alt .lp-split-copy .lp-section-label { text-align: right; }
.lp-split-alt .lp-split-copy .btn-primary,
.lp-split-alt .lp-split-copy .btn-secondary { margin-left: auto; }

.lp-split .btn-primary,
.lp-hero .btn-primary {
  min-width: 240px;
  justify-content: center;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lp-split-inner { grid-template-columns: 1fr; gap: 50px; }
  .lp-split-alt .lp-split-visual { order: 2; }
  .lp-split-alt .lp-split-copy { order: 1; }
  .lp-galaxy-stage { height: 460px; }
}
@media (max-width: 900px) {
  .cs-stage { height: 220px; }
  .cs-card { width: 140px; height: 140px; font-size: 16px; bottom: 10px; }
}
@media (max-width: 500px) {
  .cs-stage { height: 170px; }
  .cs-card { width: 150px; height: 110px; font-size: 13px; border-width: 3px; bottom: 8px; }
  .cs-card span { font-size: 12px; padding: 3px 8px; }
  /*.hide-mobile {display:none;};*/
}
@media (max-width: 700px) {
  .lp-nav { padding: 0 16px; height: 76px; }
  .lp-menu { top: 76px; }
  .lp-menu-nav { padding: 0 20px; }
  .lp-menu-link { font-size: 18px; padding: 16px 0; letter-spacing: .05em; }
  .lp-menu-link:hover { padding-left: 18px; }
  .lp-nav-logo { height: 56px; max-height: 56px; }
  .btn-nav-icon-only { width: 42px; height: 42px; }
  .lp-burger { width: 22px; height: 22px; gap: 4px; }
  .lp-burger span { height: 1.5px; }
  .lp-burger span:nth-child(1) { width: 22px; }
  .lp-burger span:nth-child(2) { width: 14px; }
  .lp-burger span:nth-child(3) { width: 18px; }
  .lp-burger.open span:nth-child(1) { width: 22px; transform: translateY(5.5px) rotate(45deg); }
  .lp-burger.open span:nth-child(3) { width: 22px; transform: translateY(-5.5px) rotate(-45deg); }

  .lp-hero { padding: 100px 20px 60px; min-height: auto; }
  .lp-hero-title { font-size: clamp(36px, 10vw, 52px); }
  .lp-hero-subtitle { font-size: 15px; letter-spacing: .18em; }
  .lp-hero-desc { font-size: 15px; }
  .lp-hero-stats { gap: 14px; flex-wrap: wrap; }
  .lp-stat-value { font-size: 22px; }
  .lp-stat-label { font-size: 10px; }
  .lp-stat-sep { display: none; }

  .lp-split { padding: 70px 20px; }
  .lp-split-inner { gap: 36px; }
  .lp-split-visual { min-height: 240px; padding: 24px; }
  .visual-grid { max-width: 100%; gap: 8px; }
  .vg-tile { font-size: 13px; }
  .visual-rings { gap: 14px; }
  .visual-rings .ring { width: 72px; height: 72px; }
  .visual-rings .ring-pct { font-size: 15px; }
  .visual-scan { width: 170px; height: 230px; }
  .scan-stage { flex-direction: column; align-items: center; }
  .scan-info-panel.visible { width: 100%; align-items: center; }
  .scan-info-panel.visible .sip-content { width: 100%; }

  .lp-galaxy { padding: 70px 16px 60px; }
  .lp-galaxy-stage { height: 360px; }
  .lp-galaxy-modal-card { max-width: 92vw; }

  .lp-cta { padding: 80px 20px; }
  .lp-cta-title { font-size: clamp(32px, 9vw, 48px); }
  .lp-footer { flex-direction: column; text-align: center; padding: 28px 20px; }
  .lp-section-title { font-size: clamp(30px, 8vw, 42px); }
  .lp-section-desc { font-size: 15px; }
}

/* ── AUTH MODAL ──────────────────────────────────────────────────────────── */
#authOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  align-items: center;
  justify-content: center;
}
#authBox {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 360px;
  position: relative;
}
#authClose {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 22px;
  color: var(--text2);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
#authClose:hover { color: var(--text); }
#authTabs {
  display: flex;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  background: none !important;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none !important;
  color: var(--text2);
  cursor: pointer;
  transition: color .2s, border-color .2s;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  transform: none !important;
}
.auth-tab:hover {
  color: var(--text);
  transform: none !important;
  box-shadow: none !important;
}
.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
#authMsg {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}
#authMsg.auth-error  { background: rgba(204,34,51,.12); color: #ff6b7a; border: 1px solid rgba(204,34,51,.3); }
#authMsg.auth-ok     { background: rgba(61,220,132,.10); color: #3ddc84; border: 1px solid rgba(61,220,132,.25); }
.auth-field {
  margin-bottom: 16px;
}
.auth-field:last-of-type { margin-bottom: 24px; }
.auth-label {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}
.auth-input:focus { border-color: var(--accent); }
#authSubmit {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px 28px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  #authBox { padding: 32px 20px; max-width: 90%; border-radius: 16px; }
}
