/* ============================================================
   0x7F Lounge — 0x7f-site/styles.css
   Dark hex-coded lounge. No build step.
   ============================================================ */

:root {
  --bg: #09090f;
  --bg-soft: #0c0c14;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9e9f3;
  --muted: #9a9ab3;
  --muted-dim: #75758d;
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.16);
  --cyan: #5eead4;
  --cyan-soft: rgba(94, 234, 212, 0.14);

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans CJK KR", "Malgun Gothic", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Noto Sans Mono CJK KR", monospace;

  --wrap: 1120px;
  --radius: 18px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.mono { font-family: var(--font-mono); font-variant-ligatures: none; }
.hl { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--cyan); color: #04211d; font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- background ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 45% at 18% 8%, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(55% 45% at 85% 22%, rgba(94, 234, 212, 0.09), transparent 70%),
    radial-gradient(70% 60% at 50% 105%, rgba(139, 92, 246, 0.10), transparent 70%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 78%);
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(9, 9, 15, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; letter-spacing: -0.01em; font-size: 17px; }
.brand-sub { font-size: 11px; color: var(--muted-dim); letter-spacing: 0.06em; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a:not(.btn) {
  font-size: 14.5px; color: var(--muted);
  transition: color 0.18s ease;
}
.site-nav > a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; padding: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.6px; background: var(--text); border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary .icon { fill: currentColor; stroke: none; }
.btn-primary {
  background: linear-gradient(135deg, #9b6dff 0%, #8b5cf6 45%, #6d7cff 100%);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(139, 92, 246, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(139, 92, 246, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost {
  background: var(--panel); border-color: var(--line-strong); color: var(--text);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--panel-strong); border-color: rgba(94, 234, 212, 0.45); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn:active { transform: translateY(0); }

/* ---------- hero ---------- */
.hero { padding: calc(var(--header-h) + 64px) 0 76px; position: relative; }
.hero-inner {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: 56px; align-items: center;
}
.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted);
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 22px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.16);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(94, 234, 212, 0.06); }
}

.hero-title {
  font-size: clamp(42px, 7.2vw, 76px);
  font-weight: 800; letter-spacing: -0.045em;
  margin-bottom: 18px;
}
.hero-title .accent-line {
  background: linear-gradient(120deg, #b08aff 0%, #8b5cf6 40%, #5eead4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.05em; font-weight: 700;
}
.hero-sub {
  font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; line-height: 1.5;
  color: #f3f3fa; margin-bottom: 14px; letter-spacing: -0.02em;
}
.hero-desc { color: var(--muted); font-size: 15.5px; max-width: 33em; margin-bottom: 28px; }
.hero-desc .hl { color: #cfc6ff; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-link { font-size: 13px; color: var(--muted-dim); margin-bottom: 24px; display: flex; gap: 8px; align-items: center; }
.hero-link .prompt { color: var(--cyan); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 13px; color: var(--muted);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}

/* hero visual */
.hero-visual {
  position: relative; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 10px 80px;
}
.hex-frame {
  position: relative; width: min(100%, 370px); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.hex-glow {
  position: absolute; inset: 6%;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.42), rgba(94, 234, 212, 0.12) 55%, transparent 72%);
  filter: blur(38px); border-radius: 50%;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.04); }
}
.hero-logo {
  position: relative; width: 100%; height: auto;
  filter: drop-shadow(0 6px 34px rgba(139, 92, 246, 0.35));
}

.float-pill {
  position: absolute; z-index: 2;
  font-size: 12px; color: #d8d2ff;
  padding: 7px 12px; border-radius: 10px;
  background: rgba(17, 17, 28, 0.86);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: float 6.5s ease-in-out infinite;
  white-space: nowrap;
}
.pill-a { top: 8%; left: -2%; animation-delay: 0s; border-color: rgba(139, 92, 246, 0.4); }
.pill-b { top: 34%; right: -6%; animation-delay: 1.4s; color: #c6fff4; border-color: rgba(94, 234, 212, 0.35); }
.pill-c { bottom: 20%; left: 2%; animation-delay: 2.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.terminal-card {
  position: absolute; left: 0; bottom: -56px; z-index: 3;
  width: min(100%, 290px);
  background: rgba(13, 13, 22, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  box-shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.terminal-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2c2c3d; }
.terminal-bar span:nth-child(1) { background: #ff5f57; opacity: 0.65; }
.terminal-bar span:nth-child(2) { background: #febc2e; opacity: 0.65; }
.terminal-bar span:nth-child(3) { background: #28c840; opacity: 0.65; }
.terminal-card pre {
  margin: 0; padding: 14px 16px 16px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.85;
  color: #cdc9e4; white-space: pre-wrap; word-break: break-word;
}
.t-muted { color: #6c6c85; }
.t-cyan { color: var(--cyan); }
.t-violet { color: #b79dff; }
.caret { color: var(--cyan); animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- sections ---------- */
.section { padding: 92px 0; position: relative; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0) 30%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 660px; margin-bottom: 46px; }
.kicker {
  font-size: 12px; color: var(--cyan); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2, .voice-copy h2, .rules-copy h2, .cta-card h2 {
  font-size: clamp(27px, 4vw, 38px); font-weight: 800; letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.section-lead { color: var(--muted); font-size: 15.5px; }
.section-lead .mono { font-size: 0.92em; color: #cfc6ff; }
.section-lead strong { color: var(--text); font-weight: 700; }

/* about cards */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  padding: 26px 22px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.4); background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 0.015)); }
.card-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 20px; border-radius: 12px; margin-bottom: 16px;
  background: var(--panel-strong); border: 1px solid var(--line);
}
.card h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* channels */
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.channel-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.channel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.channel-badge {
  width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center;
  font-size: 20px; border-radius: 13px;
}
.badge-violet { background: var(--violet-soft); border: 1px solid rgba(139, 92, 246, 0.4); }
.badge-cyan { background: var(--cyan-soft); border: 1px solid rgba(94, 234, 212, 0.32); }
.channel-head h3 { font-size: 18px; font-weight: 800; }
.channel-head p { font-size: 13px; color: var(--muted-dim); margin-top: 2px; }

.channel-list { display: flex; flex-direction: column; gap: 2px; }
.channel-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 10px; border-radius: 9px;
  transition: background 0.18s ease;
}
.channel-list li:hover { background: rgba(255, 255, 255, 0.045); }
.ch-name { font-size: 13.5px; color: #ddd8f5; letter-spacing: -0.01em; white-space: nowrap; }
.ch-desc { font-family: var(--font-sans); font-size: 12.5px; color: var(--muted-dim); text-align: right; }

.bot-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.bot-chip {
  font-size: 12px; color: #c6fff4;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(94, 234, 212, 0.08); border: 1px solid rgba(94, 234, 212, 0.24);
}
.channel-note { font-size: 12.5px; color: var(--muted-dim); margin-top: 14px; }
.channel-note .mono { color: #b9b2de; font-size: 0.95em; }

/* voice */
.voice-panel {
  margin-top: 18px; padding: 38px 34px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center;
  border-radius: 22px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(94, 234, 212, 0.09), transparent 60%),
    radial-gradient(70% 120% at 100% 100%, rgba(139, 92, 246, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.02);
}
.voice-copy .section-lead { margin-bottom: 20px; }
.voice-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-tags span {
  font-size: 12.5px; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.voice-list { display: flex; flex-direction: column; gap: 8px; }
.voice-list li {
  display: grid; grid-template-columns: 34px 1fr; align-items: center;
  column-gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(9, 9, 15, 0.55);
  border: 1px solid var(--line);
}
.v-icon { grid-row: span 2; font-size: 16px; text-align: center; }
.v-name { font-size: 13.5px; color: #e2ddfa; }
.v-desc { font-size: 12px; color: var(--muted-dim); line-height: 1.4; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature {
  display: grid; grid-template-columns: 40px 1fr; column-gap: 14px;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012));
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 0.015));
}
.feature-no { font-size: 12px; color: var(--violet); letter-spacing: 0.1em; padding-top: 4px; }
.feature-body { min-width: 0; }
.feature h3 {
  display: flex; align-items: center; gap: 9px;
  font-size: 17.5px; font-weight: 800; margin-bottom: 9px; letter-spacing: -0.025em;
}
.feature-emoji { font-size: 19px; line-height: 1; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.feature p .mono { font-size: 0.93em; color: #cfc6ff; }
.feature-pill {
  display: inline-block; margin-top: 14px;
  font-size: 12px; color: #e7e2ff;
  padding: 4px 11px; border-radius: 8px;
  background: rgba(139, 92, 246, 0.18); border: 1px solid rgba(139, 92, 246, 0.42);
  word-break: break-word;
}
.feature-pill.pill-cyan {
  color: #c6fff4;
  background: rgba(94, 234, 212, 0.08); border-color: rgba(94, 234, 212, 0.28);
}

.steps-block { margin-top: 46px; padding-top: 38px; border-top: 1px solid var(--line); }
.steps-kicker {
  font-size: 12px; color: var(--cyan); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 18px;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.step-num { font-size: 12px; color: var(--violet); letter-spacing: 0.1em; }
.step h3 { font-size: 16.5px; font-weight: 800; margin: 8px 0 8px; }
.step p { font-size: 13.5px; color: var(--muted); }
.step p .mono { color: #cfc6ff; font-size: 0.94em; }

/* rules */
.rules-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 54px; align-items: start; }
.rule-callout {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 24px; padding: 15px 17px; border-radius: 13px;
  background: rgba(139, 92, 246, 0.09); border: 1px solid rgba(139, 92, 246, 0.28);
}
.rule-callout p { font-size: 13px; color: #d5cdf7; }
.rules-list { display: flex; flex-direction: column; gap: 10px; }
.rules-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
}
.rule-no { font-size: 11.5px; color: var(--cyan); flex: 0 0 auto; }
.rules-list p { font-size: 14px; color: #d7d5e6; }
.rules-list .mono { font-size: 0.93em; color: #cfc6ff; }

/* CTA */
.cta-section { padding: 96px 0 104px; }
.cta-card {
  position: relative; overflow: hidden;
  padding: 58px 34px 54px; text-align: center;
  border-radius: 26px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background:
    radial-gradient(70% 120% at 50% -10%, rgba(139, 92, 246, 0.26), transparent 62%),
    radial-gradient(60% 100% at 50% 120%, rgba(94, 234, 212, 0.12), transparent 60%),
    rgba(14, 13, 24, 0.9);
}
.cta-card::after {
  content: "";
  position: absolute; right: -60px; top: -90px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 68%);
  pointer-events: none;
}
.cta-card .kicker { color: var(--cyan); }
.cta-card h2 { font-size: clamp(25px, 3.6vw, 34px); margin-bottom: 12px; }
.cta-card > p:not(.kicker):not(.cta-link) { color: var(--muted); font-size: 15px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 18px; position: relative; }
.cta-link { font-size: 12.5px; color: var(--muted-dim); position: relative; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 40px; background: rgba(6, 6, 11, 0.6); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer-name { font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.footer-meta { font-size: 11.5px; color: var(--muted-dim); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.18s ease; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { font-size: 12px; color: var(--muted-dim); }
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--cyan); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 18px);
  z-index: 150; pointer-events: none;
  padding: 12px 20px; border-radius: 12px;
  background: rgba(20, 19, 32, 0.96); color: var(--text);
  border: 1px solid rgba(94, 234, 212, 0.4);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  font-size: 14px; font-weight: 600;
  opacity: 0; transition: opacity 0.22s ease, transform 0.22s ease;
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.7, 0.3, 1), transform 0.6s cubic-bezier(0.22, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; will-change: auto; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { gap: 34px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .pill-b { right: 0; }
  .voice-panel { gap: 30px; padding: 32px 26px; }
  .rules-wrap { gap: 36px; }
}

@media (max-width: 900px) {
  .section { padding: 74px 0; }
  .hero { padding: calc(var(--header-h) + 44px) 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-visual { order: 2; padding: 22px 0 0; flex-direction: column; align-items: center; }
  .hex-frame { width: min(68%, 290px); }
  .float-pill { display: none; }
  .terminal-card { position: relative; left: auto; bottom: auto; margin-top: 22px; width: min(100%, 340px); }
  .channel-grid { grid-template-columns: 1fr; }
  .voice-panel { grid-template-columns: 1fr; }
  .rules-wrap { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps-block { margin-top: 34px; padding-top: 30px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: var(--header-h); right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px;
    background: #0d0d17;
    border: 1px solid var(--line-strong); border-radius: 16px;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav > a:not(.btn) { padding: 11px 12px; border-radius: 10px; font-size: 15px; }
  .site-nav > a:not(.btn):hover { background: var(--panel-strong); }
  .nav-cta { margin-top: 6px; }
  .site-header.is-scrolled, .site-header { background: rgba(9, 9, 15, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero-title { font-size: clamp(38px, 12vw, 52px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-desc { font-size: 14.5px; }
  .chips li { font-size: 12px; padding: 5px 10px; }
  .cards-4 { grid-template-columns: 1fr; }
  .channel-card { padding: 20px 16px; }
  .channel-list li { flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 8px; }
  .ch-desc { text-align: left; }
  .ch-name { font-size: 13px; }
  .voice-panel { padding: 26px 18px; }
  .cta-card { padding: 40px 20px 36px; border-radius: 20px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .toast { left: 18px; right: 18px; bottom: 18px; transform: translateY(18px); max-width: none; }
  .toast.is-visible { transform: none; }
}

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