/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; padding-top: 68px;
  overflow: hidden; background: var(--bg); transition: background 0.3s ease;
}
.hero__spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,40%), rgba(108,99,255,0.13) 0%, transparent 70%);
}
[data-theme="light"] .hero__spotlight {
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,40%), rgba(91,82,240,0.08) 0%, transparent 70%);
}
.hero__bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--hero-grid-color) 1px,transparent 1px), linear-gradient(90deg,var(--hero-grid-color) 1px,transparent 1px);
  background-size: 60px 60px; pointer-events: none; z-index: 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  animation: scanline-drift 12s linear infinite;
}
[data-theme="light"] .hero::after { opacity: 0.4; }
@keyframes scanline-drift { from { background-position: 0 0; } to { background-position: 0 100px; } }

#hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.55; }
[data-theme="light"] #hero-particles { opacity: 0.3; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.hero__glow--1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -200px; opacity: 0.13; animation: glow-pulse 6s ease-in-out infinite; }
.hero__glow--2 { width: 400px; height: 400px; background: var(--accent-2); bottom: 0; right: 100px; opacity: 0.1; animation: glow-pulse 8s ease-in-out infinite reverse; }
[data-theme="light"] .hero__glow--1 { opacity: 0.07; }
[data-theme="light"] .hero__glow--2 { opacity: 0.06; }
@keyframes glow-pulse { 0%,100% { opacity:0.1; transform:scale(1); } 50% { opacity:0.18; transform:scale(1.08); } }

.hero__inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 64px; padding: 80px 0; width: 100%; }
.hero__left { flex: 1; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero__right { flex: 0 0 420px; display: flex; align-items: center; justify-content: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(108,99,255,0.12); border: 1px solid rgba(108,99,255,0.25);
  border-radius: var(--radius-pill); padding: 6px 14px;
  font-size: 0.78rem; font-weight: 600; color: var(--accent-2);
  letter-spacing: 0.08em; text-transform: uppercase; width: fit-content;
  animation: badge-in 0.7s cubic-bezier(0.4,0,0.2,1) both;
}
[data-theme="light"] .hero__badge { background: rgba(91,82,240,0.08); border-color: rgba(91,82,240,0.2); }
@keyframes badge-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem,4vw,3.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--text);
  animation: hero-in 0.8s 0.1s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes hero-in { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }

.hero__highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero__typewriter {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  position: relative;
}
.hero__typewriter::after { content: '|'; -webkit-text-fill-color: var(--accent-2); animation: blink 0.9s step-end infinite; margin-left: 2px; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

@keyframes glitch-flicker {
  0%   { text-shadow: 2px 0 #ff0060, -2px 0 #00eaff; transform: translateX(0); }
  20%  { text-shadow: -2px 0 #ff0060, 2px 0 #00eaff; transform: translateX(-2px); }
  40%  { text-shadow: 2px 0 #ff0060, -2px 0 #00eaff; transform: translateX(2px); }
  60%  { text-shadow: -1px 0 #ff0060, 1px 0 #00eaff; transform: translateX(0); }
  80%  { text-shadow: 1px 0 #ff0060; transform: translateX(1px); }
  100% { text-shadow: none; transform: translateX(0); }
}
.hero__headline.glitch {
  animation: hero-in 0.8s 0.1s cubic-bezier(0.4,0,0.2,1) both,
             glitch-flicker 0.06s 1.2s steps(1) 5;
}

.hero__sub { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; max-width: 460px; animation: hero-in 0.8s 0.2s cubic-bezier(0.4,0,0.2,1) both; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; animation: hero-in 0.8s 0.3s cubic-bezier(0.4,0,0.2,1) both; }
.hero__stats { display: flex; align-items: center; gap: 28px; padding-top: 8px; border-top: 1px solid var(--border); animation: hero-in 0.8s 0.4s cubic-bezier(0.4,0,0.2,1) both; }
.stat__num { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--text); }
.stat__label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.stat__divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* ---------- PREVIEW CARD ---------- */
.preview-card-wrap {
  position: relative; width: 100%;
  border-radius: calc(var(--radius) + 2px); padding: 2px;
  background: linear-gradient(135deg,rgba(108,99,255,0.6),rgba(167,139,250,0.2),rgba(108,99,255,0.5));
  background-size: 200% 200%;
  animation: border-spin 4s linear infinite, float 4s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(108,99,255,0.25);
}
[data-theme="light"] .preview-card-wrap {
  background: linear-gradient(135deg,rgba(91,82,240,0.5),rgba(124,111,247,0.15),rgba(91,82,240,0.4));
  box-shadow: 0 8px 48px rgba(91,82,240,0.18);
}
@keyframes border-spin { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.preview-card { background: var(--bg-3); border-radius: var(--radius); overflow: hidden; width: 100%; box-shadow: var(--shadow-card); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.preview-card__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red{background:#ff5f57} .dot--yellow{background:#febc2e} .dot--green{background:#28c840}
.preview-card__url { font-size: 0.72rem; color: var(--text-muted); background: var(--bg); border-radius: var(--radius-pill); padding: 3px 10px; margin-left: 4px; }
.preview-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-3); }
.preview-line { border-radius: 6px; height: 12px; background: var(--border); }
.preview-line--hero { height: 32px; background: linear-gradient(90deg,rgba(108,99,255,0.4),rgba(167,139,250,0.2)); }
.preview-line--sub { height: 10px; width: 85%; }
.preview-line--short { width: 60%; }
.preview-line--btn { height: 36px; width: 40%; background: var(--accent); border-radius: var(--radius-pill); opacity: 0.9; }
.preview-metrics { display: flex; gap: 12px; margin-top: 8px; }
.preview-metric { flex: 1; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.preview-metric__val { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: #28c840; }
.preview-metric__label { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
