/*
   RuneCast — Mystical Automation Platform
   Dark theme with rune energy: deep void + electric blue + cyan + purple
*/

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --bg-void: #050508;
  --bg-deep: #08080e;
  --bg-card: #0d0d16;
  --bg-card-hover: #12121f;
  --bg-elevated: #141422;
  --border: #1a1a2e;
  --border-glow: #1e1e38;

  --accent: #00a3ff;
  --accent-soft: rgba(0, 163, 255, 0.12);
  --cyan: #00e5c7;
  --cyan-soft: rgba(0, 229, 199, 0.10);
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.10);
  --gold: #f0c040;
  --discord: #5865F2;
  --discord-soft: rgba(88, 101, 242, 0.12);
  --discord-hover: #4752c4;

  --text: #e8eaf0;
  --text-sec: #9498a8;
  --text-dim: #5a5e72;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;

  --glow-blue: 0 0 40px rgba(0, 163, 255, 0.15), 0 0 80px rgba(0, 163, 255, 0.05);
  --glow-cyan: 0 0 40px rgba(0, 229, 199, 0.12), 0 0 80px rgba(0, 229, 199, 0.04);
  --glow-purple: 0 0 40px rgba(168, 85, 247, 0.12), 0 0 80px rgba(168, 85, 247, 0.04);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-void);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

/* ── Floating Rune Particles ─────────────────────────────────── */
.rune-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.rune-particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1.5); }
}

/* Generate multiple particles */
.rune-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; background: var(--cyan); }
.rune-particle:nth-child(2) { left: 25%; animation-delay: 1.2s; animation-duration: 9s; background: var(--purple); }
.rune-particle:nth-child(3) { left: 40%; animation-delay: 2.5s; animation-duration: 6s; }
.rune-particle:nth-child(4) { left: 55%; animation-delay: 0.8s; animation-duration: 8s; background: var(--cyan); }
.rune-particle:nth-child(5) { left: 70%; animation-delay: 3.1s; animation-duration: 10s; background: var(--purple); }
.rune-particle:nth-child(6) { left: 85%; animation-delay: 1.7s; animation-duration: 7.5s; }
.rune-particle:nth-child(7) { left: 15%; animation-delay: 4.2s; animation-duration: 8.5s; background: var(--purple); }
.rune-particle:nth-child(8) { left: 60%; animation-delay: 2.0s; animation-duration: 6.5s; background: var(--cyan); }
.rune-particle:nth-child(9) { left: 90%; animation-delay: 3.5s; animation-duration: 9.5s; }
.rune-particle:nth-child(10) { left: 35%; animation-delay: 0.3s; animation-duration: 7.2s; background: var(--cyan); }
.rune-particle:nth-child(11) { left: 50%; animation-delay: 5s; animation-duration: 11s; background: var(--purple); }
.rune-particle:nth-child(12) { left: 75%; animation-delay: 2.8s; animation-duration: 8s; }

/* ── Header ──────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: height 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  height: 36px;
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em;
  transition: font-size 0.3s, gap 0.3s;
}
.header.scrolled .logo { font-size: 0.78rem; gap: 6px; }

.logo svg { flex-shrink: 0; width: 22px; height: 22px; transition: width 0.3s, height 0.3s; }
.header.scrolled .logo svg { width: 15px; height: 15px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--text-sec); font-size: 0.82rem; font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0066cc);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 163, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 163, 255, 0.35);
  color: #fff;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-ghost {
  background: transparent;
  color: var(--text-sec);
  border: 1px solid var(--border);
  padding: 11px 27px;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: 8px; }

.btn-discord {
  background: linear-gradient(135deg, var(--discord), var(--discord-hover));
  color: #fff;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
}
.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.4);
  color: #fff;
}
.btn-discord::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-discord:hover::after { transform: translateX(100%); }

.nav-cta {
  padding: 6px 16px !important;
  font-size: 0.78rem !important;
  border-radius: 7px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s, font-size 0.3s;
}
.header.scrolled .nav-cta {
  padding: 3px 10px !important;
  font-size: 0.68rem !important;
}
.header.scrolled .nav a:not(.nav-cta) {
  font-size: 0.72rem;
}
.header.scrolled .nav {
  gap: 16px;
}

/* ── Sections ────────────────────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
  padding: 100px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-sec);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

/* Animated rune circle behind hero */
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(0, 163, 255, 0.08);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: runeRotate 30s linear infinite;
}
.hero::after {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: runeRotate 25s linear infinite reverse;
}

@keyframes runeRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Radial glow behind hero */
.hero-glow {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.06) 0%, rgba(168, 85, 247, 0.03) 40%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  border: 1px solid var(--border-glow);
  background: rgba(168, 85, 247, 0.06);
  font-size: 0.8rem; font-weight: 500;
  color: var(--purple);
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.hero-badge.pioneer-badge {
  border-color: rgba(240, 192, 64, 0.3);
  background: rgba(240, 192, 64, 0.06);
  color: var(--gold);
}

.hero-badge.pioneer-badge .dot {
  background: var(--gold);
}

/* Pioneer Callout */
.pioneer-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 480px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(240, 192, 64, 0.2);
  background: rgba(240, 192, 64, 0.04);
  text-align: left;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.pioneer-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.pioneer-callout strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.pioneer-callout p {
  font-size: 0.85rem;
  color: var(--text-sec);
  line-height: 1.6;
  margin: 0;
}

.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 50%, var(--purple) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-sec);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* ── Stats Bar ───────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 80px;
  position: relative;
  z-index: 2;
}

.stat {
  padding: 24px 16px;
  text-align: center;
  background: var(--bg-deep);
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-val .accent { color: var(--accent); }
.stat-val .cyan { color: var(--cyan); }
.stat-val .purple { color: var(--purple); }
.stat-val .gold { color: var(--gold); }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ── How It Works (3 Steps) ──────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}

/* Connector lines between steps */
.steps-grid::before,
.steps-grid::after {
  content: '';
  position: absolute;
  top: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 0.2;
}
.steps-grid::before { left: 20%; width: 26%; }
.steps-grid::after { left: 54%; width: 26%; }

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 18px;
  position: relative;
}

.step:nth-child(1) .step-num {
  background: var(--accent-soft);
  border: 1px solid rgba(0, 163, 255, 0.2);
  color: var(--accent);
}
.step:nth-child(2) .step-num {
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 229, 199, 0.2);
  color: var(--cyan);
}
.step:nth-child(3) .step-num {
  background: var(--purple-soft);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--purple);
}

.step h3 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem; color: var(--text-sec);
  line-height: 1.6;
}

/* ── Feature Cards ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--accent) 50%, var(--purple) 70%, transparent 90%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-blue);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.feature-icon.blue { background: var(--accent-soft); color: var(--accent); }
.feature-icon.cyan { background: var(--cyan-soft); color: var(--cyan); }
.feature-icon.purple { background: var(--purple-soft); color: var(--purple); }

.feature-card h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── Comparison ──────────────────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
}

.compare-card .vs {
  font-size: 0.7rem; font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 8px 0;
}

.compare-card .ours {
  color: var(--cyan);
  font-weight: 700;
  font-size: 1rem;
}

.compare-card .theirs {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-decoration: line-through;
  opacity: 0.6;
}

.compare-card p {
  font-size: 0.88rem;
  color: var(--text-sec);
  margin-top: 12px;
  line-height: 1.6;
}

/* ── Trust Section ───────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.trust-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.trust-card h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 0.88rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── Accordion (Guide + FAQ) ─────────────────────────────────── */
.accordion { margin-top: 40px; }

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.3s;
}

.accordion-item.open { border-color: var(--border-glow); }

.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
  transition: background 0.2s;
}

.accordion-header:hover { background: var(--bg-card-hover); }

.accordion-chevron {
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: transform 0.3s;
}

.accordion-item.open .accordion-chevron { transform: rotate(90deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-body-inner {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.7;
}

/* ── Final CTA ───────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 32px;
  position: relative;
  z-index: 1;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 163, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--text-sec);
  margin-bottom: 32px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex; justify-content: center; gap: 24px;
  margin-top: 8px;
}

.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text-sec); }

/* ── Scroll Animations ───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.56s; }
.stagger.visible > *:nth-child(9) { transition-delay: 0.64s; }

/* ── Showcase Video ──────────────────────────────────────────── */
.showcase-wrapper {
  margin-top: 56px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  perspective: 1400px;
}

.showcase-glow {
  position: absolute;
  inset: -20px;
  border-radius: 28px;
  background: linear-gradient(135deg,
    rgba(0, 163, 255, 0.15),
    rgba(168, 85, 247, 0.12),
    rgba(0, 229, 199, 0.08));
  filter: blur(40px);
  opacity: 0.6;
  z-index: -1;
  animation: showcaseGlow 5s ease-in-out infinite alternate;
}

@keyframes showcaseGlow {
  0% { opacity: 0.4; filter: blur(35px); transform: scale(0.98); }
  100% { opacity: 0.7; filter: blur(45px); transform: scale(1.02); }
}

.showcase-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 163, 255, 0.2);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.3),
    0 12px 24px rgba(0, 0, 0, 0.4),
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 60px rgba(0, 163, 255, 0.06),
    0 0 120px rgba(168, 85, 247, 0.03);
  transform: rotateX(2deg) rotateY(-0.5deg);
  transform-style: preserve-3d;
  animation: showcaseFloat 7s ease-in-out infinite;
  position: relative;
}

.showcase-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(0, 163, 255, 0.3) 0%,
    transparent 30%,
    transparent 70%,
    rgba(168, 85, 247, 0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

@keyframes showcaseFloat {
  0%, 100% { transform: rotateX(2deg) rotateY(-0.5deg) translateY(0); }
  50% { transform: rotateX(1deg) rotateY(0.5deg) translateY(-10px); }
}

/* ── Mock UI Showcase ────────────────────────────────────────── */
.mock-ui {
  background: #0c0c14;
  font-family: 'Segoe UI', 'Inter', sans-serif;
  font-size: 11px;
  color: #c8ccd8;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  user-select: none;
}

/* Toolbar */
.mock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #111119;
  border-bottom: 1px solid #1a1a2e;
  gap: 8px;
  flex-shrink: 0;
}

.mock-toolbar-left,
.mock-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-btn-icon {
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #2a2a3e;
  background: #16161f;
  font-size: 10px;
  color: #9498a8;
}

.mock-window-name {
  color: var(--accent);
  font-weight: 600;
  font-size: 10px;
}

.mock-zoom {
  padding: 2px 6px;
  border-radius: 3px;
  background: #16161f;
  border: 1px solid #2a2a3e;
  font-size: 9px;
  color: #7a7e92;
}

.mock-label { font-size: 9px; color: #5a5e72; }

.mock-slider {
  width: 50px;
  height: 4px;
  background: #1a1a2e;
  border-radius: 2px;
  overflow: hidden;
}

.mock-slider-fill {
  width: 30%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.mock-interval { font-size: 9px; color: #9498a8; font-weight: 600; }

.mock-cpu {
  font-size: 9px;
  color: var(--cyan);
  font-weight: 600;
}

.mock-btn-bg {
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.mock-btn-mouse {
  padding: 2px 6px;
  border-radius: 3px;
  background: #16161f;
  border: 1px solid #2a2a3e;
  font-size: 9px;
  color: #9498a8;
}

.mock-hotkey { font-size: 9px; color: #5a5e72; }

.mock-btn-play {
  padding: 3px 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: playPulse 2s ease-in-out infinite;
}

.mock-play-icon { font-size: 8px; }

@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.6); }
}

/* Main Body */
.mock-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Preview Panel */
.mock-preview {
  flex: 1;
  background: #08080e;
  position: relative;
  overflow: hidden;
}

/* Abstract app content in preview */
.mock-app-content {
  position: absolute;
  inset: 8px;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: 24px 1fr;
  gap: 4px;
  opacity: 0.6;
}

.mock-app-header {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #14142a, #1a1a36);
  border-radius: 3px;
}

.mock-app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px;
}

.mock-app-nav-item {
  height: 8px;
  border-radius: 2px;
  background: #14142a;
}
.mock-app-nav-item.active {
  background: rgba(0, 163, 255, 0.2);
  border-left: 2px solid var(--accent);
}

.mock-app-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  padding: 2px;
}

.mock-app-card {
  border-radius: 4px;
  background: #12122a;
  position: relative;
}
.mock-app-card.c1 { background: linear-gradient(135deg, #1a1a3e, #141430); }
.mock-app-card.c2 { background: linear-gradient(135deg, #141430, #1e1a38); }
.mock-app-card.c3 { background: linear-gradient(135deg, #1e1a38, #1a1a3e); }
.mock-app-card.c4 { background: linear-gradient(135deg, #14142a, #1a1a36); }
.mock-app-card.c5 { background: linear-gradient(135deg, #1a1a36, #141430); }
.mock-app-card.c6 { background: linear-gradient(135deg, #141430, #12122a); }

/* Scanning rectangles */
.mock-scan-rect {
  position: absolute;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  opacity: 0;
  animation: scanPulse 4s ease-in-out infinite;
}

.mock-scan-rect.r1 {
  top: 32%; left: 12%;
  width: 22%; height: 28%;
  animation-delay: 0s;
  border-color: var(--accent);
}
.mock-scan-rect.r2 {
  top: 38%; left: 42%;
  width: 18%; height: 22%;
  animation-delay: 1.3s;
  border-color: var(--cyan);
}
.mock-scan-rect.r3 {
  top: 55%; left: 68%;
  width: 20%; height: 25%;
  animation-delay: 2.6s;
  border-color: var(--purple);
}

@keyframes scanPulse {
  0% { opacity: 0; transform: scale(0.95); }
  15% { opacity: 0.8; transform: scale(1); }
  40% { opacity: 0.8; transform: scale(1); }
  55% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; }
}

/* Match found */
.mock-match-found {
  position: absolute;
  top: 34%; left: 14%;
  width: 18%; height: 24%;
  animation: matchAppear 4s ease-in-out infinite;
}

.mock-match-pulse {
  position: absolute;
  inset: -4px;
  border: 2px solid var(--cyan);
  border-radius: 3px;
  animation: matchGlow 4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0, 229, 199, 0.3), inset 0 0 12px rgba(0, 229, 199, 0.1);
}

.mock-match-crosshair {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: matchAppear 4s ease-in-out infinite;
}

@keyframes matchAppear {
  0%, 20% { opacity: 0; }
  30% { opacity: 1; }
  50% { opacity: 1; }
  60% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes matchGlow {
  0%, 20% { opacity: 0; box-shadow: 0 0 0 rgba(0, 229, 199, 0); }
  30% { opacity: 1; box-shadow: 0 0 16px rgba(0, 229, 199, 0.4); }
  50% { opacity: 1; box-shadow: 0 0 8px rgba(0, 229, 199, 0.2); }
  60% { opacity: 0; }
  100% { opacity: 0; }
}

/* Click effect */
.mock-click-effect {
  position: absolute;
  top: 43%; left: 22%;
  width: 16px; height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: clickRipple 4s ease-in-out infinite;
}

@keyframes clickRipple {
  0%, 45% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
  65% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
  100% { opacity: 0; }
}

/* Template Panel */
.mock-templates {
  width: 240px;
  background: #0d0d16;
  border-left: 1px solid #1a1a2e;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.mock-tabs {
  display: flex;
  border-bottom: 1px solid #1a1a2e;
}

.mock-tab {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 10px;
  font-weight: 600;
  color: #5a5e72;
  border-bottom: 2px solid transparent;
}
.mock-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  background: rgba(0, 163, 255, 0.05);
}

.mock-subtabs {
  display: flex;
  padding: 4px 6px;
  gap: 2px;
  border-bottom: 1px solid #1a1a2e;
}
.mock-subtabs span {
  flex: 1;
  text-align: center;
  padding: 3px 0;
  font-size: 9px;
  color: #5a5e72;
  border-radius: 3px;
}
.mock-subtabs span.active {
  background: rgba(0, 163, 255, 0.1);
  color: var(--accent);
}

/* Template Cards */
.mock-card-list {
  flex: 1;
  overflow: hidden;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mock-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 5px;
  border: 1px solid #1a1a2e;
  background: #111119;
  transition: all 0.3s;
}

/* Trigger flash — green border synced with bar peak, then fades */
.mock-card.trigger1 {
  animation: cardTrigger1 5s linear infinite;
}
.mock-card.trigger2 {
  animation: cardTrigger2 5s linear 0.6s infinite;
}

@keyframes cardTrigger1 {
  0%, 32%  { background: #111119; border-color: #1a1a2e; }
  34%      { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.6); box-shadow: 0 0 8px rgba(34,197,94,0.3); }
  36%      { background: rgba(34,197,94,0.04); border-color: rgba(34,197,94,0.2); box-shadow: none; }
  40%      { background: #111119; border-color: #1a1a2e; }
  100%     { background: #111119; border-color: #1a1a2e; }
}

@keyframes cardTrigger2 {
  0%, 27%  { background: #111119; border-color: #1a1a2e; }
  29%      { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.6); box-shadow: 0 0 8px rgba(34,197,94,0.3); }
  31%      { background: rgba(34,197,94,0.04); border-color: rgba(34,197,94,0.2); box-shadow: none; }
  35%      { background: #111119; border-color: #1a1a2e; }
  100%     { background: #111119; border-color: #1a1a2e; }
}

.mock-card-thumb {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  flex-shrink: 0;
}
.mock-card-thumb.t1 { background: linear-gradient(135deg, #e05050, #c03030); }
.mock-card-thumb.t2 { background: linear-gradient(135deg, #e09030, #c07020); }
.mock-card-thumb.t3 { background: linear-gradient(135deg, #50a0e0, #3080c0); }
.mock-card-thumb.t4 { background: linear-gradient(135deg, #a060e0, #8040c0); }
.mock-card-thumb.t5 { background: linear-gradient(135deg, #50c080, #30a060); }
.mock-card-thumb.t6 { background: linear-gradient(135deg, #e0c050, #c0a030); }

.mock-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-card-title {
  font-size: 9px;
  font-weight: 600;
  color: #c8ccd8;
}

.mock-card-bar {
  height: 4px;
  background: #1a1a2e;
  border-radius: 2px;
  overflow: hidden;
}

.mock-bar-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
}

/* b1: rises → green (92%) trigger → SHARP DROP (screen changed) */
.mock-bar-fill.b1 { animation: barB1 5s linear infinite; }
@keyframes barB1 {
  0%   { width: 15%; background: #6b7280; }
  20%  { width: 60%; background: #eab308; }
  34%  { width: 92%; background: #22c55e; }
  36%  { width: 10%; background: #6b7280; }
  55%  { width: 45%; background: #eab308; }
  75%  { width: 58%; background: #eab308; }
  100% { width: 15%; background: #6b7280; }
}

/* b2: rises → green (87%) trigger → SHARP DROP */
.mock-bar-fill.b2 { animation: barB2 5s linear 0.6s infinite; }
@keyframes barB2 {
  0%   { width: 10%; background: #6b7280; }
  15%  { width: 50%; background: #eab308; }
  29%  { width: 87%; background: #22c55e; }
  31%  { width: 8%;  background: #6b7280; }
  50%  { width: 35%; background: #eab308; }
  70%  { width: 48%; background: #eab308; }
  100% { width: 10%; background: #6b7280; }
}

/* b3: medium, stays orange, never triggers */
.mock-bar-fill.b3 { animation: barB3 5s ease-in-out 1.2s infinite; }
@keyframes barB3 {
  0%  { width: 15%; background: #6b7280; }
  25% { width: 60%; background: #eab308; }
  50% { width: 72%; background: #eab308; }
  75% { width: 50%; background: #eab308; }
  100%{ width: 15%; background: #6b7280; }
}

/* b4: medium-low, orange dip */
.mock-bar-fill.b4 { animation: barB4 5s ease-in-out 0.3s infinite; }
@keyframes barB4 {
  0%  { width: 10%; background: #6b7280; }
  30% { width: 55%; background: #eab308; }
  50% { width: 65%; background: #eab308; }
  80% { width: 30%; background: #6b7280; }
  100%{ width: 10%; background: #6b7280; }
}

/* b5: low, stays gray */
.mock-bar-fill.b5 { animation: barB5 5s ease-in-out 0.9s infinite; }
@keyframes barB5 {
  0%  { width: 8%;  background: #4b5563; }
  30% { width: 35%; background: #6b7280; }
  50% { width: 42%; background: #6b7280; }
  80% { width: 20%; background: #4b5563; }
  100%{ width: 8%;  background: #4b5563; }
}

/* b6: very low, gray */
.mock-bar-fill.b6 { animation: barB6 5s ease-in-out 1.5s infinite; }
@keyframes barB6 {
  0%  { width: 5%;  background: #4b5563; }
  25% { width: 25%; background: #6b7280; }
  50% { width: 30%; background: #6b7280; }
  75% { width: 15%; background: #4b5563; }
  100%{ width: 5%;  background: #4b5563; }
}

.mock-card-conf {
  font-size: 8px;
  color: #5a5e72;
  text-align: right;
}

.mock-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a2a3e;
  flex-shrink: 0;
}
.mock-card-dot.on {
  background: #22c55e;
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
}

/* Log Panel */
.mock-log {
  height: 42px;
  background: #0a0a12;
  border-top: 1px solid #1a1a2e;
  overflow: hidden;
  padding: 4px 8px;
  flex-shrink: 0;
}

.mock-log-scroll {
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: logScroll 8s linear infinite;
}

.mock-log-line {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 8px;
  color: #5a5e72;
  white-space: nowrap;
  line-height: 1.4;
}

.mock-log-line em {
  font-style: normal;
  font-weight: 600;
}
.log-cyan { color: var(--cyan); }
.log-green { color: #22c55e; }
.log-dim { color: #3a3e52; }

@keyframes logScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-40px); }
}

/* Reflection under showcase */
.showcase-reflection {
  height: 80px;
  margin-top: 4px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(to bottom,
    rgba(0, 163, 255, 0.04) 0%,
    rgba(168, 85, 247, 0.02) 30%,
    transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent);
  transform: scaleY(-0.25) rotateX(2deg);
  transform-origin: top center;
  pointer-events: none;
}

/* ── Showcase Teaser Link ────────────────────────────────────── */
.showcase-teaser {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-sec);
  transition: color 0.2s;
  position: relative;
  z-index: 2;
}
.showcase-teaser:hover { color: var(--discord); }

/* ── "See It In Action" Tease Section ────────────────────────── */
.tease-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.tease-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.35s ease;
  cursor: pointer;
}
.tease-card:hover {
  border-color: var(--discord);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.15);
}

.tease-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
/* Tease mockup base (replaces img) */
.tease-mockup {
  position: absolute;
  inset: 0;
  background: #0a0a14;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
  font-size: 9px;
  overflow: hidden;
}

.tm-bar {
  height: 14px;
  background: #111119;
  border-bottom: 1px solid #1a1a2e;
  flex-shrink: 0;
}

/* RuneCast scan rects on mockups */
.tm-scan-rect {
  position: absolute;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(0, 163, 255, 0.2);
  animation: tmScan 3s ease-in-out infinite;
}
.tm-scan-rect.cyan { border-color: var(--cyan); box-shadow: 0 0 8px rgba(0, 229, 199, 0.2); }
.tm-scan-rect.purple { border-color: var(--purple); box-shadow: 0 0 8px rgba(168, 85, 247, 0.2); }

@keyframes tmScan {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.tm-match-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: tmDot 3s ease-in-out infinite;
}
@keyframes tmDot {
  0%, 30% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}

/* Card game mockup */
.tm-cards-board {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
  padding: 10px 12px;
}
.tm-card-slot { display: flex; align-items: center; justify-content: center; }
.tm-card {
  width: 80%; height: 85%;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}
.tm-card.red { background: linear-gradient(135deg, #c03030, #901818); }
.tm-card.blue { background: linear-gradient(135deg, #2060c0, #183890); }
.tm-card.gold { background: linear-gradient(135deg, #c09020, #906810); }
.tm-card.purple { background: linear-gradient(135deg, #8030c0, #581890); }
.tm-card.green { background: linear-gradient(135deg, #20a050, #107030); }
.tm-card.back { background: repeating-linear-gradient(45deg, #1a1a2e, #1a1a2e 3px, #141422 3px, #141422 6px); }

/* Inventory mockup */
.tm-inv-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 10px 12px;
}
.tm-inv-slot {
  border-radius: 3px;
  border: 1px solid #1a1a2e;
  background: #0d0d16;
}
.tm-inv-slot.filled::after {
  content: '';
  display: block;
  width: 60%; height: 60%;
  margin: 20%;
  border-radius: 3px;
}
.tm-inv-slot.s1::after { background: linear-gradient(135deg, #e05050, #a03030); }
.tm-inv-slot.s2::after { background: linear-gradient(135deg, #50a0e0, #3070b0); }
.tm-inv-slot.s3::after { background: linear-gradient(135deg, #e0c050, #b09020); }
.tm-inv-slot.s4::after { background: linear-gradient(135deg, #50e080, #20b050); }
.tm-inv-slot.s5::after { background: linear-gradient(135deg, #a060e0, #7030b0); }
.tm-inv-slot.s6::after { background: linear-gradient(135deg, #e08050, #b06030); }
.tm-inv-slot.s7::after { background: linear-gradient(135deg, #5080e0, #3060b0); }

.tm-drag-arrow {
  position: absolute;
  top: 38%; left: 26%;
  width: 18%;
  height: 2px;
  background: var(--accent);
  opacity: 0.8;
}
.tm-drag-arrow::after {
  content: '';
  position: absolute;
  right: -4px; top: -3px;
  border: 4px solid transparent;
  border-left: 6px solid var(--accent);
}

/* RPG mockup */
.tm-rpg-scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(180deg, #0a0a14 0%, #0e1020 100%);
}
.tm-rpg-hud { display: flex; flex-direction: column; gap: 4px; width: 40%; }
.tm-hp-bar, .tm-mp-bar {
  height: 8px;
  border-radius: 4px;
  background: #1a1a2e;
  overflow: hidden;
}
.tm-hp-fill {
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, #e05050, #c03030);
  border-radius: 4px;
  animation: tmHpPulse 4s ease-in-out infinite;
}
@keyframes tmHpPulse {
  0%, 100% { width: 42%; }
  50% { width: 38%; }
}
.tm-mp-fill {
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, #4080e0, #3060c0);
  border-radius: 4px;
}

.tm-rpg-skills {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.tm-skill {
  width: 28px; height: 28px;
  border-radius: 4px;
  border: 1px solid #2a2a3e;
}
.tm-skill.sk1 { background: linear-gradient(135deg, #e05050, #901818); }
.tm-skill.sk2 { background: linear-gradient(135deg, #4080e0, #183890); }
.tm-skill.sk3 { background: linear-gradient(135deg, #50c080, #107030); }
.tm-skill.sk4 { background: linear-gradient(135deg, #e0c050, #906810); }
.tm-skill.sk5 { background: linear-gradient(135deg, #a050e0, #581890); }

.tm-cond-label {
  position: absolute;
  top: 12%;
  right: 8%;
  font-size: 8px;
  font-weight: 700;
  color: var(--purple);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--mono);
}

.tease-blur-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(5, 5, 8, 0.8));
}

.tease-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  transition: opacity 0.3s;
}
.tease-card:hover .tease-mockup { filter: brightness(0.4); }
.tease-card:hover .tease-lock { opacity: 1; }

.tease-lock svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

.tease-caption {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-sec);
}

/* ── Discord Community Section ───────────────────────────────── */
.discord-preview {
  max-width: 640px;
  margin: 48px auto 0;
}

.discord-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.discord-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(88, 101, 242, 0.08), transparent 70%);
  pointer-events: none;
}

.discord-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

.discord-server-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--discord);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.3);
}
.discord-server-icon img { width: 100%; height: 100%; object-fit: cover; }

.discord-server-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.discord-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-sec);
}

.discord-online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 4px;
  vertical-align: middle;
  animation: dotPulse 2s ease-in-out infinite;
}

.discord-perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

.discord-perk {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.discord-perk-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1;
}

.discord-perk strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.discord-perk p {
  font-size: 0.8rem;
  color: var(--text-sec);
  line-height: 1.5;
  margin: 0;
}

.discord-join-btn {
  width: 100%;
  padding: 14px 28px;
  font-size: 1rem;
  justify-content: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps-grid::before, .steps-grid::after { display: none; }
  .compare-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 20px; }
  .nav a:not(.nav-cta) { display: none; }
  .showcase-frame { transform: none; animation: none; }
  .showcase-wrapper { max-width: 100%; }
  .mock-templates { width: 180px; }
  .mock-toolbar-left .mock-zoom,
  .mock-toolbar-right .mock-label,
  .mock-toolbar-right .mock-slider,
  .mock-toolbar-right .mock-hotkey { display: none; }
  .tease-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .discord-perks { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; }
  .header { padding: 0 16px; }
  .showcase-wrapper { margin-top: 32px; }
  .showcase-reflection { display: none; }
  .mock-templates { width: 140px; }
  .mock-toolbar { font-size: 8px; padding: 4px 6px; }
  .mock-toolbar-left .mock-window-name { display: none; }
  .mock-subtabs { display: none; }
  .mock-card-thumb { width: 22px; height: 22px; }
  .mock-log { height: 30px; }
  .discord-card { padding: 24px 16px; }
  .discord-server-icon { width: 44px; height: 44px; }
  .discord-join-btn { font-size: 0.9rem; padding: 12px 24px; }
}
