/* hero.css — Section 1: Hero — dark cinematic, fullscreen canvas */

.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat; opacity: 0.5;
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 20px;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 24px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; margin-bottom: 28px; backdrop-filter: blur(12px);
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); } 50% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 {
  font-size: clamp(40px, 10vw, 80px); font-weight: 900;
  line-height: 1.05; margin-bottom: 20px; color: #fff;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200% 200%;
  animation: heroGrad 6s ease infinite;
}
@keyframes heroGrad { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero .sub {
  font-size: clamp(16px, 3vw, 21px); color: rgba(255,255,255,0.5);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 44px; background: #fff; color: #000;
  border-radius: 60px; font-weight: 700; font-size: 17px;
  text-decoration: none; transition: all 0.4s;
  box-shadow: 0 0 60px rgba(255,255,255,0.1);
}
.hero-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 80px rgba(255,255,255,0.2); }
.hero-cta svg { width: 18px; height: 18px; }

/* Cycling words */
.cycle-word {
  display: inline-block; text-align: center;
  color: #fff; font-weight: 700;
  border-bottom: 2px solid rgba(139,92,246,0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cycle-word.out {
  opacity: 0; transform: translateY(-6px);
}

/* Glitch magic text */
.glitch-text {
  position: relative; display: inline-block;
  font-style: italic;
  font-weight: 800; letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 10px rgba(139,92,246,0.6), 0 0 40px rgba(139,92,246,0.2);
  animation: glitchGlow 4s ease-in-out infinite;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.glitch-text::before {
  color: #ff00ea;
  animation: glitch1 3.5s infinite linear;
  clip-path: inset(0 0 60% 0);
  text-shadow: -2px 0 #ff00ea;
}
.glitch-text::after {
  color: #00f0ff;
  animation: glitch2 3.5s infinite linear;
  clip-path: inset(60% 0 0 0);
  text-shadow: 2px 0 #00f0ff;
}
@keyframes glitch1 {
  0%, 89%   { transform: translate(0); }
  90%       { transform: translate(-3px, -1px); }
  91%       { transform: translate(2px, 1px); }
  92%       { transform: translate(-1px, 0); }
  93%, 100% { transform: translate(0); }
}
@keyframes glitch2 {
  0%, 84%   { transform: translate(0); }
  85%       { transform: translate(3px, 1px); }
  86%       { transform: translate(-2px, -1px); }
  87%       { transform: translate(1px, 0); }
  88%, 100% { transform: translate(0); }
}
.magic-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 3;
}

@keyframes glitchGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(139,92,246,0.6), 0 0 40px rgba(139,92,246,0.2); }
  25%      { text-shadow: 0 0 15px rgba(236,72,153,0.7), 0 0 50px rgba(236,72,153,0.2), 0 0 80px rgba(139,92,246,0.1); }
  50%      { text-shadow: 0 0 12px rgba(103,232,249,0.6), 0 0 45px rgba(103,232,249,0.2); }
  75%      { text-shadow: 0 0 15px rgba(251,191,36,0.5), 0 0 50px rgba(139,92,246,0.25); }
}

/* Hero devices row */
.hero-devices {
  margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hd-icons {
  display: flex; align-items: center; gap: 8px;
}
.hd-icon {
  width: 32px; height: 32px; padding: 5px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid transparent;
  opacity: 0.2; transition: all 0.4s ease;
  color: #fff;
}
.hd-icon svg { width: 18px; height: 18px; }
.hd-icon.active {
  opacity: 1;
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 16px rgba(255,255,255,0.08);
  transform: scale(1.15);
}
.hd-text {
  font-size: 13px; color: rgba(255,255,255,0.4); letter-spacing: 0.5px;
}
.hd-text strong {
  color: rgba(255,255,255,0.75); font-weight: 600;
  transition: opacity 0.2s ease;
}
@media (max-width: 480px) {
  .hd-icons { gap: 4px; }
  .hd-icon { width: 28px; height: 28px; padding: 4px; }
  .hd-icon svg { width: 15px; height: 15px; }
}

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.3); font-size: 11px; letter-spacing: 2px;
}
.scroll-hint .mouse {
  width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.15);
  border-radius: 11px; position: relative;
}
.scroll-hint .mouse::after {
  content: ''; width: 3px; height: 7px; background: rgba(255,255,255,0.3);
  border-radius: 2px; position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%); animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 20px; } }

/* Hero trial text */
.hero-trial {
  margin-top: 12px; font-size: 13px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.3px;
}

/* Hero device row (icon + cycling text) */
.hero-device-row {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; color: rgba(255,255,255,0.4); letter-spacing: 0.3px;
}
.hd-icon-mini {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.25s ease;
}
.hd-icon-mini svg {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,0.5); fill: none;
}
.hero-device-label strong {
  color: rgba(255,255,255,0.75); font-weight: 600;
}
