﻿/* ============================================================
   MINT DEGEN - product landing
   Palette: obsidian + mint bull gradient
   ============================================================ */

:root {
  --bg: #060707;
  --bg-2: #0a0c0e;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.14);

  --text: #f4f5f6;
  --muted: #9aa0a6;
  --dim: #6b7076;

  --gold-1: #ffffff;
  --gold-2: #70E688;
  --gold-3: #3bcf65;
  --gold-grad: linear-gradient(120deg, #70E688 0%, #c9f8d4 58%, #ffffff 100%);

  --green: #70E688;
  --purple: #b7f4c6;
  --cyan: #ecfff1;
  --green-grad: linear-gradient(120deg, #70E688 0%, #b8f6c7 62%, #ffffff 115%);

  --red: #ff5c72;
  --phantom-purple: #AB9FF2;

  --radius: 10px;
  --radius-lg: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 20px 60px -18px rgba(112, 230, 136, 0.36);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- ambient background ---------- */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.55;
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: fixed; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(90px);
  opacity: 0.5;
}
.glow-a {
  top: -12%; left: -8%;
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(112, 230, 136, 0.28), transparent 70%);
  animation: drift 22s var(--ease) infinite alternate;
}
.glow-b {
  bottom: -18%; right: -10%;
  width: 50vw; height: 50vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(236, 255, 241, 0.16), transparent 70%);
  animation: drift 26s var(--ease) infinite alternate-reverse;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.12); }
}

/* scroll progress */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--gold-grad); z-index: 200;
  box-shadow: 0 0 12px rgba(112, 230, 136, 0.62);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: "Space Grotesk", sans-serif; font-weight: 600; line-height: 1.06; letter-spacing: 0; }
h1 { font-size: 4.1rem; }
h2 { font-size: 3.3rem; }
h3 { font-size: 1.28rem; }

.grad-gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.grad-green { background: var(--green-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.muted-word { color: var(--dim); }

.kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 18px;
}
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 18px auto 0; }
.lede { color: var(--muted); font-size: 1.15rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 0.94rem;
  padding: 12px 22px; border-radius: 100px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-gold {
  background: var(--gold-grad); color: #07120a;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 26px 70px -16px rgba(112, 230, 136, 0.58); }

.btn-line { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-line:hover { background: var(--surface-2); border-color: var(--gold-3); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.icon-btn:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--gold-3);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* glass */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 7, 7, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 0 10px rgba(112, 230, 136, 0.38)); }
.md-mark {
  width: 44px;
  height: 44px;
  border-radius: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  border: 0;
}
.md-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.brand-name {
  display: block;
  width: 178px;
  max-width: clamp(130px, 20vw, 178px);
  flex: 0 1 auto;
}
.brand-name img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(112, 230, 136, 0.22));
}
.forge-logo { display: block; overflow: visible; }
.forge-ring {
  fill: rgba(255, 255, 255, 0.035);
  stroke: var(--forge-grad, url(#forgeGradA));
  stroke-width: 1.8;
}
.forge-flame { fill: var(--forge-grad, url(#forgeGradA)); filter: drop-shadow(0 0 10px rgba(52, 245, 197, 0.25)); }
.forge-spark { fill: #f7d774; filter: drop-shadow(0 0 8px rgba(247, 215, 116, 0.45)); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.25s; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--gold-grad); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: 6px; padding: 0 24px;
  max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.4s;
  background: rgba(6, 7, 7, 0.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { max-height: 420px; padding: 12px 24px 22px; }
.nav-mobile a { padding: 12px 0; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.nav-mobile a.btn { border: 0; margin-top: 10px; color: #07120a; }

/* ---------- HERO ---------- */
.hero { padding: 128px 0 56px; position: relative; }
.md-hero { padding-bottom: 46px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero .reveal { opacity: 1; transform: none; transition-delay: 0s; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  padding: 7px 15px 7px 12px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 26px;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(20, 241, 149, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0); } }

.hero-copy h1 { margin-bottom: 24px; }
.hero-copy h1 .grad-gold { display: block; }
.hero-sub { color: var(--muted); font-size: 1.16rem; max-width: 540px; margin-bottom: 34px; }
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-trust { display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.avatars img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
.hero-trust p { font-size: 0.9rem; color: var(--muted); }
.hero-trust b { color: var(--text); }
.stars { color: var(--gold-2); letter-spacing: 1px; }

/* live terminal */
.hero-visual { position: relative; }
.mission-card { border-radius: var(--radius-lg); padding: 18px; }
.mission-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 4px 2px 16px;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
}
.mission-top b { color: var(--green); letter-spacing: 0.1em; }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.mission-grid div {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.18);
}
.mission-grid span {
  display: block;
  color: var(--dim);
  font-size: 0.75rem;
  margin-bottom: 3px;
}
.mission-grid b {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
}
.term { border-radius: var(--radius-lg); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.term-title { margin-left: 8px; font-family: "Space Grotesk", sans-serif; font-size: 0.8rem; color: var(--dim); letter-spacing: 0.04em; }
.term-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; color: var(--green); }
.term-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.term-body { padding: 18px 18px 22px; font-family: "Space Grotesk", ui-monospace, monospace; font-size: 0.86rem; line-height: 1.85; min-height: 320px; }
.term-line { opacity: 0; transform: translateY(6px); animation: lineIn 0.4s var(--ease) forwards; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.term-line .t { color: var(--dim); margin-right: 10px; }
.term-line .ok { color: var(--green); }
.term-line .g { color: var(--gold-2); }
.term-line .p { color: var(--purple); }
.term-line .muted { color: var(--muted); }
.term-cursor { display: inline-block; width: 8px; height: 15px; background: var(--gold-2); vertical-align: middle; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute; border-radius: 16px; padding: 14px 18px;
  display: flex; flex-direction: column; gap: 2px;
  animation: floaty 6s var(--ease) infinite alternate;
}
.fc-1 { top: -26px; right: -18px; }
.fc-2 { bottom: -30px; left: -26px; animation-delay: -3s; }
.fc-label { font-size: 0.72rem; color: var(--muted); }
.fc-value { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.5rem; }
.fc-spark { display: block; width: 90px; height: 20px; margin-top: 4px;
  background:
    linear-gradient(90deg, transparent, transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='20'%3E%3Cpolyline points='0,16 14,12 26,14 40,7 54,10 68,3 90,1' fill='none' stroke='%2370E688' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat;
}
@keyframes floaty { to { transform: translateY(-12px); } }

/* marquee */
.marquee { margin-top: 70px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: scrollX 26s linear infinite; }
.marquee-track span { font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: 0.12em; color: var(--dim); font-size: 0.95rem; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- STATS ---------- */
.stats { padding: 40px 0 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat-num { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 2.7rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.85rem; color: var(--muted); }

/* ---------- SECTION ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { max-width: 900px; margin: 0 auto; }
.section-head h2 .grad-gold { display: inline; }

/* ---------- NARRATIVE / VS ---------- */
.narrative .narrow { margin-bottom: 60px; }
.vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.vs-card { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.vs-bad { background: rgba(255, 92, 114, 0.04); }
.vs-good { background: rgba(112, 230, 136, 0.05); border-color: rgba(112, 230, 136, 0.28); }
.vs-tag { display: inline-block; font-family: "Space Grotesk", sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.vs-tag.gold { color: var(--gold-2); }
.vs-card ul li { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--muted); font-size: 1.02rem; }
.vs-good ul li { color: var(--text); }
.vs-arrow { display: grid; place-items: center; }
.vs-mid .vs-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  color: var(--gold-2);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}
.vs-arrow svg { animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* check / x icons */
i.c, i.x, i[class="~"] { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto; position: relative; }
i.c { background: rgba(20, 241, 149, 0.14); }
i.c::after { content: ""; width: 5px; height: 9px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
i.x { background: rgba(255, 92, 114, 0.12); }
i.x::before, i.x::after { content: ""; position: absolute; width: 9px; height: 2px; background: var(--red); border-radius: 2px; }
i.x::before { transform: rotate(45deg); } i.x::after { transform: rotate(-45deg); }
i[class="~"] { background: rgba(255, 255, 255, 0.08); }
i[class="~"]::after { content: "~"; color: var(--muted); font-size: 0.9rem; line-height: 1; }

/* ---------- BENTO ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 18px; }
.cell {
  border-radius: var(--radius-lg); padding: 26px; position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.cell:hover { border-color: var(--border-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.cell-lg { grid-column: span 2; grid-row: span 2; }
.cell-tall { grid-row: span 2; }
.cell-wide { grid-column: span 2; }
.cell-icon { font-size: 1.9rem; margin-bottom: 16px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)); }
.cell h3 { margin-bottom: 9px; }
.cell p { color: var(--muted); font-size: 0.96rem; }
.cell-chip { display: inline-block; margin-top: 16px; font-family: "Space Grotesk", sans-serif; font-size: 0.76rem; font-weight: 600; padding: 5px 12px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.cell-chip.green { color: var(--green); border-color: rgba(20, 241, 149, 0.3); background: rgba(20, 241, 149, 0.08); }
.cell-chip.gold { color: var(--gold-2); border-color: rgba(112, 230, 136, 0.3); background: rgba(112, 230, 136, 0.08); }

.ribbon { position: absolute; top: 18px; right: 18px; font-family: "Space Grotesk", sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; background: var(--gold-grad); color: #07120a; }

.brand-art { display: flex; gap: 12px; margin-top: 22px; }
.brand-art img { width: 33%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); transition: transform 0.5s var(--ease); }
.cell-lg:hover .brand-art img:nth-child(1) { transform: translateY(-6px) rotate(-2deg); }
.cell-lg:hover .brand-art img:nth-child(2) { transform: translateY(-10px); }
.cell-lg:hover .brand-art img:nth-child(3) { transform: translateY(-6px) rotate(2deg); }

.mini-chart { height: 52px; margin-top: 18px; border-radius: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='52' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2370E688' stop-opacity='0.35'/%3E%3Cstop offset='1' stop-color='%2370E688' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,44 L30,40 60,42 90,30 120,34 150,20 180,24 210,8 240,4 240,52 0,52 Z' fill='url(%23f)'/%3E%3Cpath d='M0,44 L30,40 60,42 90,30 120,34 150,20 180,24 210,8 240,4' fill='none' stroke='%2370E688' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat; background-size: 100% 100%; }

.mini-list { margin-top: 18px; }
.mini-list li { padding: 8px 0; color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--border); }
.mini-list li:first-child { border-top: 0; }

.dash-mock { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.dash-row { display: grid; grid-template-columns: 70px 64px 1fr; align-items: center; gap: 12px; font-family: "Space Grotesk", sans-serif; font-size: 0.85rem; }
.dash-row .up { color: var(--green); font-weight: 600; }
.dash-row .bar { height: 7px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.dash-row .bar i { display: block; height: 100%; background: var(--green-grad); border-radius: 100px; }

/* ---------- PIPELINE ---------- */
.pipeline .track { position: relative; margin-top: 20px; }
.track-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: var(--border); }
.track-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--gold-grad); box-shadow: 0 0 14px rgba(112, 230, 136, 0.5); }
.steps { display: flex; flex-direction: column; gap: 26px; }
.step { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.step-no { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--gold-2); }
.step-body { padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-body h3 { margin-bottom: 4px; }
.step-body p { color: var(--muted); font-size: 0.94rem; }
.step-t { font-family: "Space Grotesk", sans-serif; font-size: 0.82rem; color: var(--dim); }
/* zig-zag layout */
.step:nth-child(odd) { grid-template-areas: "body no ."; }
.step:nth-child(even) { grid-template-areas: ". no body"; }
.step:nth-child(odd) .step-body { grid-area: body; text-align: right; }
.step:nth-child(even) .step-body { grid-area: body; }
.step .step-no { grid-area: no; z-index: 2; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--border-2); }
.step:nth-child(odd) .step-t { text-align: left; }
.step:nth-child(even) .step-t { text-align: right; grid-column: 1; grid-row: 1; }

/* ---------- SHOWCASE ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot figcaption { position: absolute; left: 14px; bottom: 12px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.86rem; padding: 5px 12px; border-radius: 100px; background: rgba(6, 7, 7, 0.6); backdrop-filter: blur(8px); border: 1px solid var(--border); }

/* ---------- COMPARISON TABLE ---------- */
.table-wrap { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow-x: auto; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--muted); }
.cmp thead th { font-family: "Space Grotesk", sans-serif; font-size: 0.88rem; color: var(--dim); font-weight: 600; }
.cmp thead th.hl, .cmp td.hl { background: rgba(112, 230, 136, 0.06); }
.cmp thead th.hl { color: var(--gold-2); }
.cmp td.hl { color: var(--text); font-weight: 600; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td i.c, .cmp td i.x { margin: 0 auto; }

/* ---------- TESTIMONIALS ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { padding: 28px; border-radius: var(--radius-lg); }
.quote blockquote { font-size: 1.08rem; line-height: 1.55; margin-bottom: 22px; font-weight: 500; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.q-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: "Space Grotesk", sans-serif; font-weight: 700; background: var(--gold-grad); color: #07120a; }
.quote figcaption b { display: block; font-size: 0.92rem; }
.quote figcaption i { font-style: normal; font-size: 0.82rem; color: var(--dim); }

/* ---------- PRICING ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { padding: 34px 30px; border-radius: var(--radius-lg); position: relative; }
.plan h3 { margin-bottom: 16px; font-size: 1.3rem; }
.price { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 3.2rem; line-height: 1; margin-bottom: 8px; display: flex; align-items: baseline; }
.price .cur { font-size: 1.4rem; margin-right: 2px; color: var(--muted); }
.price .per { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-left: 8px; }
.price-word { font-size: 2rem; }
.plan-note { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; min-height: 42px; }
.plan ul { margin-bottom: 26px; }
.plan ul li { display: flex; align-items: center; gap: 11px; padding: 8px 0; font-size: 0.95rem; color: var(--muted); }
.plan-feat { border-color: rgba(112, 230, 136, 0.4); background: linear-gradient(180deg, rgba(112, 230, 136, 0.08), rgba(255, 255, 255, 0.015)); transform: scale(1.03); box-shadow: var(--shadow-gold); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-family: "Space Grotesk", sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; background: var(--gold-grad); color: #07120a; }

/* ---------- LOGIN ---------- */
.login-section { padding-top: 70px; }
.login-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.login-card {
  border-radius: var(--radius-lg);
  padding: 34px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.login-card-featured { border-color: rgba(52, 245, 197, 0.28); background: linear-gradient(180deg, rgba(52, 245, 197, 0.06), rgba(255, 255, 255, 0.015)); }
.login-icon {
  width: 58px;
  height: 54px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #07120a;
  background: var(--gold-grad);
  box-shadow: var(--shadow-gold);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}
.login-icon.web { color: var(--text); background: var(--green-grad); }
.login-icon.mail { color: #07120a; background: linear-gradient(135deg, #70E688, #ffffff); }
.login-icon svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
}
.login-card h3 { margin-bottom: 12px; font-size: 1.45rem; }
.login-card p { color: var(--muted); margin-bottom: 24px; }
.login-card .btn { margin-top: auto; }
.telegram-login-wrap {
  display: grid;
  gap: 12px;
  margin-top: auto;
}
.telegram-widget-slot {
  min-height: 46px;
  display: grid;
  align-items: center;
  justify-items: start;
}
.web-session {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.web-session[hidden] { display: none; }
.web-session img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.web-session b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 0.96rem; }
.web-session span { display: block; color: var(--muted); font-size: 0.84rem; }
.web-session button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.web-session button:hover { color: var(--text); border-color: var(--border-2); }
.login-note { margin: 16px 0 0; font-size: 0.82rem; color: var(--dim); }
.nav-welcome,
#studio-account-name {
  min-width: 0;
  max-width: min(100%, 280px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.email-login-form {
  display: grid;
  gap: 12px;
  margin-top: auto;
}
.email-login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.email-login-form input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 13px;
  font: inherit;
  outline: 0;
}
.email-login-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 245, 197, 0.12);
}
.email-login-form .btn { margin-top: 0; }
.email-login-status {
  min-height: 18px;
  margin: 0;
  color: var(--dim);
  font-size: 0.82rem;
}
.email-login-status.ok { color: var(--green); }
.email-login-status.err { color: #ff8c8c; }
.email-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 126, 247, 0.35), rgba(20, 241, 149, 0.25));
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

/* ---------- STUDIO ---------- */
.studio-section { padding-top: 72px; }
.studio-body:not(.onboarding-active):not(.telegram-connect-active) .studio-section {
  padding-top: 92px;
}
.studio-body:not(.onboarding-active):not(.telegram-connect-active) .studio-section > .container {
  max-width: none;
  padding-left: clamp(18px, 2.2vw, 42px);
  padding-right: clamp(18px, 2.2vw, 42px);
}
.studio-body .nav-inner {
  max-width: none;
  padding-left: clamp(14px, 2vw, 30px);
  padding-right: clamp(18px, 3vw, 42px);
  gap: clamp(20px, 4vw, 66px);
}
.studio-body .brand {
  flex: 0 0 auto;
}
.studio-body .nav-cta {
  gap: 14px;
}
.studio-head { margin-bottom: 28px; }
.studio-body:not(.onboarding-active):not(.telegram-connect-active) .studio-head {
  display: none;
}
.studio-shell { display: grid; gap: 20px; }
.studio-body.onboarding-active .studio-section,
.studio-body.telegram-connect-active .studio-section {
  min-height: 100vh;
  padding: 108px 0 28px;
  display: grid;
  align-items: center;
}
.studio-body.onboarding-active .nav-links,
.studio-body.onboarding-active .nav-cta,
.studio-body.onboarding-active .nav-burger,
.studio-body.onboarding-active .nav-mobile,
.studio-body.telegram-connect-active .nav-links,
.studio-body.telegram-connect-active .nav-cta,
.studio-body.telegram-connect-active .nav-burger,
.studio-body.telegram-connect-active .nav-mobile {
  display: none !important;
}
.studio-body.onboarding-active .nav,
.studio-body.telegram-connect-active .nav {
  background: rgba(6, 7, 7, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.studio-body.onboarding-active .nav-inner,
.studio-body.telegram-connect-active .nav-inner {
  justify-content: flex-start;
}
.studio-body.onboarding-active .studio-head,
.studio-body.telegram-connect-active .studio-head {
  display: none;
}
.studio-body.onboarding-active .studio-dashboard,
.studio-body.telegram-connect-active .studio-dashboard,
.studio-body.telegram-connect-active .onboarding-panel {
  display: none !important;
}
.studio-body.onboarding-active .studio-shell,
.studio-body.telegram-connect-active .studio-shell {
  display: block;
}
.studio-body.onboarding-active .onboarding-panel,
.studio-body.telegram-connect-active .telegram-connect-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  text-align: left;
}
.studio-dashboard {
  display: block;
}
.studio-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(20px, 2vw, 34px);
  align-items: start;
}
.studio-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}
.studio-sidebar-head h3 {
  max-width: 100%;
  margin: 8px 0 4px;
  font-size: 1.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-sidebar-head p {
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.studio-sidebar-metrics {
  margin: 0;
}
.studio-section-nav {
  display: grid;
  gap: 8px;
}
.studio-section-button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 11px 12px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.studio-section-button:hover,
.studio-section-button.is-active {
  color: var(--text);
  border-color: rgba(112, 230, 136, 0.22);
  background: rgba(112, 230, 136, 0.08);
}
.studio-sidebar-actions {
  display: grid;
  gap: 8px;
}
.studio-main {
  min-width: 0;
}
.studio-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.studio-settings-view {
  grid-template-columns: 1fr;
}
.studio-view[hidden] {
  display: none !important;
}
.studio-wide-panel,
.studio-primary-panel {
  grid-column: 1 / -1;
}
.studio-panel {
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.studio-phantom-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(171, 159, 242, 0.28);
}
.studio-phantom-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--phantom-purple), rgba(255, 255, 255, 0));
}
.phantom-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--phantom-purple);
}
.phantom-label img {
  width: 26px;
  height: auto;
  flex: 0 0 auto;
}
.studio-panel h3 { font-size: 1.35rem; margin: 10px 0 10px; }
.studio-panel p { color: var(--muted); margin-bottom: 22px; }
.studio-panel .btn { margin-top: 0; }
.studio-metric-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 18px;
}
.studio-metric-list div,
.studio-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
.studio-metric-list span,
.studio-copy-field span,
.studio-launch-form span,
.studio-list-item span,
.studio-empty {
  color: var(--muted);
  font-size: 0.86rem;
}
.studio-metric-list b,
.studio-list-item b {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}
.studio-copy-field,
.studio-launch-form label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.studio-copy-field {
  grid-template-columns: minmax(0, 1fr) auto;
}
.studio-copy-field span {
  grid-column: 1 / -1;
  font-weight: 700;
}
.studio-copy-field input,
.studio-copy-field select,
.studio-launch-form input,
.studio-launch-form textarea {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  outline: 0;
}
.studio-launch-form textarea {
  resize: vertical;
}
.studio-copy-field input:focus,
.studio-copy-field select:focus,
.studio-launch-form input:focus,
.studio-launch-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 245, 197, 0.12);
}
.phantom-wallet-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(171, 159, 242, 0.08);
}
.phantom-wallet-state span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phantom-brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.phantom-brand-btn::before {
  content: "";
  width: 22px;
  height: 18px;
  flex: 0 0 auto;
  background: url("assets/phantom-icon-transparent-white.svg") center / contain no-repeat;
}
.phantom-deposit-field {
  grid-template-columns: minmax(0, 1fr) auto;
}
.phantom-swap-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.phantom-swap-box label {
  display: grid;
  gap: 7px;
}
.phantom-swap-box span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.phantom-swap-box input {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  outline: 0;
}
.phantom-swap-box input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 245, 197, 0.12);
}
.studio-button-row,
.studio-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.studio-workflow-actions .btn.is-active {
  color: #07120a;
  background: var(--gold-2);
  border-color: var(--gold-2);
}
.studio-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.studio-list-item {
  align-items: flex-start;
}
.studio-list-item div:first-child {
  display: grid;
  gap: 3px;
}
.studio-list-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
}
.studio-list-meta a {
  color: var(--gold-2);
  font-size: 0.86rem;
}
.studio-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.studio-list-actions .btn {
  padding: 8px 12px;
  font-size: 0.8rem;
}
.studio-empty {
  padding: 13px;
  border: 1px dashed var(--border);
  border-radius: 8px;
}
.studio-label {
  color: var(--gold-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.studio-nav-links {
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(26px, 5vw, 82px);
}
.studio-nav-links span,
.studio-mobile span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.studio-nav-links b,
.studio-mobile b {
  color: var(--text);
  margin-left: 6px;
}
.onboarding-panel,
.telegram-connect-panel {
  max-width: 620px;
  margin: 0 auto;
  min-height: 0;
}
.telegram-connect-panel h3 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.98;
  margin: 12px 0 14px;
}
.telegram-connect-panel p {
  max-width: 560px;
}
.onboarding-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}
.onboarding-step {
  display: none;
}
.onboarding-step.is-active {
  display: grid;
  gap: 14px;
}
.onboarding-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.onboarding-form input,
.onboarding-form select,
.onboarding-form textarea {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  outline: 0;
}
.onboarding-form select {
  height: 48px;
  color: var(--text);
  background: #0b1610;
}
.onboarding-form option {
  color: var(--text);
  background: #0b1610;
}
.onboarding-form textarea {
  resize: vertical;
}
.onboarding-form input:focus,
.onboarding-form select:focus,
.onboarding-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 245, 197, 0.12);
}
.onboarding-fill-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.onboarding-fill-actions .btn {
  margin-top: 0;
  padding: 9px 16px;
}
.onboarding-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
}
.onboarding-actions .btn {
  margin-top: 0;
}
.nav-welcome {
  color: var(--gold-2);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.settings-open { overflow: auto; }
.settings-modal {
  display: none;
}
.settings-backdrop {
  display: none;
}
.settings-panel {
  position: relative;
  width: 100%;
  max-height: none;
  overflow: visible;
  border-radius: 8px;
  padding: 28px;
}
.studio-settings-view #studio-settings-close {
  display: none;
}
.settings-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.settings-panel-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  margin-top: 6px;
}
.settings-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.settings-tab,
.segmented-control button {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.settings-tab.is-active,
.segmented-control button.is-active {
  background: var(--gold-grad);
  color: #07120a;
  border-color: transparent;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.settings-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
.settings-wide,
.settings-general {
  margin-top: 14px;
}
.settings-copy {
  display: grid;
  gap: 6px;
}
.settings-copy h3 {
  font-size: 1.03rem;
}
.settings-copy p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.settings-group input,
.settings-group select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b1610;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  outline: 0;
}
.settings-group input:focus,
.settings-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 245, 197, 0.12);
}
.settings-preset-toolbar {
  max-width: 220px;
}
.settings-preset-toolbar label,
.settings-presets label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.settings-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.settings-toggle-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.switch {
  width: 54px;
  height: 30px;
  position: relative;
  display: inline-flex;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s var(--ease);
}
.switch input:checked + span {
  background: rgba(112, 230, 136, 0.35);
  border-color: rgba(112, 230, 136, 0.55);
}
.switch input:checked + span::after {
  transform: translateX(24px);
}
.settings-status {
  min-height: 18px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 0.86rem;
}
.settings-status.ok { color: var(--green); }
.settings-status.err { color: #ff8c8c; }

/* ---------- CTA ---------- */
.cta-box { text-align: center; padding: 70px 40px; border-radius: 32px; position: relative; overflow: hidden; border-color: rgba(112, 230, 136, 0.25); }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% -10%, rgba(112, 230, 136, 0.22), transparent 60%); pointer-events: none; }
.cta-box h2 { margin: 14px auto 18px; max-width: 760px; }
.cta-sub { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-fine { margin-top: 24px; font-size: 0.84rem; color: var(--dim); }

/* ---------- FAQ ---------- */
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color 0.3s, background 0.3s; }
.acc details[open] { border-color: var(--border-2); background: var(--surface-2); }
.acc summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; background: var(--gold-2); border-radius: 2px; transition: transform 0.3s; }
.acc summary i::before { top: 7px; left: 0; width: 16px; height: 2px; }
.acc summary i::after { left: 7px; top: 0; width: 2px; height: 16px; }
.acc details[open] summary i::after { transform: rotate(90deg); opacity: 0; }
.acc details p { padding: 0 24px 22px; color: var(--muted); font-size: 0.98rem; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 34px; margin-top: 40px; background: var(--bg-2); position: relative; z-index: 2; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 0.94rem; max-width: 320px; margin-top: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 24px; }
.footer-cols h4 { font-family: "Space Grotesk", sans-serif; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer-cols a { display: block; padding: 6px 0; color: var(--muted); font-size: 0.92rem; transition: color 0.25s; }
.footer-cols a:hover { color: var(--gold-2); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.035);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.socials a:hover { transform: translateY(-2px); border-color: var(--gold-3); background: rgba(220,185,116,0.08); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom p { font-size: 0.82rem; color: var(--dim); }
.footer-warn { max-width: 460px; }

/* ---------- LEGAL PAGES ---------- */
.legal-main { padding: 132px 0 70px; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.legal-aside { position: sticky; top: 96px; padding: 18px; border-radius: var(--radius-lg); }
.legal-aside a { display: block; padding: 9px 0; color: var(--muted); }
.legal-aside a:hover { color: var(--gold-2); }
.legal-doc { padding: 34px; border-radius: var(--radius-lg); }
.legal-doc h1 { font-size: 2.65rem; line-height: 1.02; margin-bottom: 18px; letter-spacing: 0; }
.legal-doc h2 { font-size: 1.45rem; margin: 30px 0 10px; }
.legal-doc p, .legal-doc li { color: var(--muted); }
.legal-doc ul { display: grid; gap: 8px; margin: 12px 0 0 18px; list-style: disc; }
.legal-updated { color: var(--gold-2); font-family: "Space Grotesk", sans-serif; font-size: 0.9rem; margin-bottom: 20px; }

/* ---------- API DOCS ---------- */
.docs-body { min-height: 100vh; background: var(--bg); color: var(--text); }
.docs-main { padding-top: 86px; }
.docs-hero { padding: 64px 0 34px; }
.docs-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: end; }
.docs-hero h1 { font-family: "Space Grotesk", sans-serif; font-size: 5rem; line-height: 0.95; margin: 8px 0 18px; letter-spacing: 0; }
.docs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.docs-status { padding: 22px; border-radius: 8px; display: grid; gap: 8px; }
.docs-status span { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.docs-status code { display: block; overflow-wrap: anywhere; color: var(--gold); }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 72px; }
.docs-toc { position: sticky; top: 96px; padding: 14px; border-radius: 8px; display: grid; gap: 4px; }
.docs-toc a { color: var(--muted); padding: 9px 10px; border-radius: 6px; }
.docs-toc a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.docs-content { display: grid; gap: 18px; }
.doc-block { border-radius: 8px; padding: 24px; scroll-margin-top: 100px; }
.doc-block h2 { font-family: "Space Grotesk", sans-serif; font-size: 1.8rem; margin: 0 0 12px; letter-spacing: 0; }
.doc-block h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; margin: 22px 0 8px; letter-spacing: 0; }
.doc-block p, .doc-block li { color: var(--muted); line-height: 1.65; }
.doc-block code { color: var(--gold); overflow-wrap: anywhere; }
.doc-block pre { margin: 14px 0 0; padding: 16px; overflow-x: auto; border-radius: 8px; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.08); }
.doc-block pre code { color: #dffcf2; white-space: pre; }
.copy-toast { position: fixed; right: 18px; bottom: 18px; z-index: 90; padding: 10px 14px; border-radius: 8px; background: rgba(112, 230, 136, 0.16); color: var(--text); border: 1px solid rgba(112, 230, 136, 0.3); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.copy-toast.show { opacity: 1; transform: translateY(0); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fx-ready .reveal { opacity: 0; transform: translateY(26px); }
.fx-ready .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  h1 { font-size: 3.35rem; }
  h2 { font-size: 2.75rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 520px; }
  .docs-hero h1 { font-size: 3.4rem; }
  .docs-hero-grid, .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-lg { grid-column: span 2; grid-row: span 1; }
  .cell-wide { grid-column: span 2; }
  .cell-tall { grid-row: span 1; }
  .quotes { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .login-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .studio-workspace { grid-template-columns: 1fr; }
  .studio-sidebar { position: static; }
  .studio-section-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio-section-button { text-align: center; padding: 10px 8px; }
  .studio-view { grid-template-columns: 1fr; }
  .studio-body .nav-inner { gap: 18px; }
  .studio-nav-links { gap: 20px; }
  .plan-feat { transform: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-aside { position: static; }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  h1 { font-size: 2.7rem; line-height: 1.03; }
  h2 { font-size: 2.25rem; line-height: 1.08; }
  .section { padding: 76px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .nav-inner { height: 70px; }
  .brand-name { width: 150px; max-width: 42vw; }
  .hero { padding: 104px 0 42px; }
  .hero-inner { gap: 30px; }
  .hero-copy h1 { margin-bottom: 16px; color: var(--text); }
  .hero-sub { display: block; font-size: 1rem; line-height: 1.55; margin-bottom: 22px; max-width: 100%; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { align-items: flex-start; }
  .hero-trust .avatars { flex: 0 0 76px; }
  .hero-trust p { font-size: 0.82rem; line-height: 1.45; }
  .avatars img { width: 30px; height: 30px; }
  .term { border-radius: 14px; }
  .term-body { min-height: 210px; font-size: 0.76rem; line-height: 1.65; padding: 14px; }
  .term-title { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .float-card { display: none; }
  .marquee { margin-top: 34px; }
  .stat-num { font-size: 2.1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .cell-lg, .cell-wide { grid-column: span 1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-mid { display: none; }
  /* pipeline single column */
  .track-line { left: 27px; }
  .step { grid-template-columns: auto 1fr !important; grid-template-areas: "no body" !important; gap: 16px; text-align: left !important; }
  .step .step-no { width: 48px; height: 48px; }
  .step:nth-child(odd) .step-body, .step:nth-child(even) .step-body { text-align: left; }
  .step-t { display: none; }
  .footer-bottom { flex-direction: column; }
  .login-card { padding: 26px; min-height: 0; }
  .studio-panel { padding: 24px; min-height: 0; }
  .studio-sidebar { padding: 16px; }
  .studio-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-copy-field,
  .phantom-deposit-field { grid-template-columns: 1fr; }
  .phantom-wallet-state { align-items: stretch; flex-direction: column; }
  .studio-button-row .btn,
  .studio-workflow-actions .btn { flex: 1 1 150px; }
  .studio-list-item { flex-direction: column; }
  .studio-list-meta { justify-content: flex-start; text-align: left; }
  .onboarding-panel { max-width: none; }
  .onboarding-actions { flex-direction: column-reverse; }
  .onboarding-actions .btn { width: 100%; justify-content: center; }
  .studio-mobile span { padding: 12px 18px; }
  .telegram-widget-slot { justify-items: stretch; overflow: hidden; }
  .telegram-widget-slot iframe { max-width: 100%; }
  .settings-panel { padding: 18px; }
  .settings-mode-tabs,
  .settings-grid,
  .settings-presets { grid-template-columns: 1fr; }
  .segmented-control { grid-template-columns: 1fr; }
  .settings-toggle-row { grid-template-columns: 1fr; }
  .hero-visual { max-width: 100%; }
  .mission-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mission-grid div { padding: 11px; }
}
@media (max-width: 460px) {
  h1 { font-size: 2.35rem; }
  h2 { font-size: 2rem; }
  .btn-lg { padding: 14px 18px; font-size: 0.98rem; }
  .hero-copy h1 .grad-gold { display: inline; }
  .eyebrow { max-width: 100%; font-size: 0.75rem; white-space: normal; border-radius: 14px; }
  .gallery { grid-template-columns: 1fr; }
  .hero { padding-top: 96px; }
  .docs-main { padding-top: 72px; }
  .docs-hero { padding-top: 42px; }
  .docs-hero h1 { font-size: 2.5rem; }
  .doc-block { padding: 18px; }
  .docs-toc { grid-template-columns: 1fr; }
  .docs-actions .btn { width: 100%; justify-content: center; }
  .footer-cols { grid-template-columns: 1fr; }
  .legal-main { padding-top: 104px; }
  .legal-doc { padding: 24px; }
  .legal-doc h1 { font-size: 2.3rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  #bg-canvas { display: none; }
}


