/* Hero Section - New Design */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 243, 255, 0.08), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(188, 0, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.6), rgba(0,0,0,0.95));
}

/* Subtle floating glow orbs */
.hero-section::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.12), rgba(0, 243, 255, 0));
  filter: blur(10px);
  animation: float-orb 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes float-orb {
  0% { transform: translate(0, 0); opacity: 0.8; }
  100% { transform: translate(30px, -20px); opacity: 1; }
}

.hero-container {
  max-width: min(92vw, 1400px);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero-content {
  text-align: center;
  max-width: clamp(720px, 65vw, 1100px);
}

.hero-headline {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: var(--accent);
  position: relative;
}
.hero-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0,243,255,0.35), rgba(188,0,255,0.35));
  filter: blur(6px);
}

.hero-subheadline {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #00F3FF, #BC00FF);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18), 0 0 0 0 rgba(0, 243, 255, 0.0);
  position: relative;
  overflow: hidden;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.22), 0 0 24px rgba(57, 255, 20, 0.35);
  filter: brightness(1.1);
}

.hero-cta:active {
  transform: translateY(0);
}

/* Magic Window - The Glowing Video Container */
.magic-window {
  max-width: min(92vw, 1280px);
  width: 100%;
  position: relative;
}

.video-container {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 0;
  overflow: hidden;
  background: var(--shadow);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.18),
    0 12px 30px rgba(0,0,0,0.12);
  border: none;
  background-clip: padding-box;
  position: relative;
  transform: translateY(0) scale(1);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), box-shadow 0.6s ease, filter 0.6s ease;
  animation: none;
  --trace-size: 3px;
}

.video-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,243,255,0.18), rgba(188,0,255,0.18)) top/100% 2px no-repeat,
    linear-gradient(90deg, rgba(0,243,255,0.18), rgba(188,0,255,0.18)) bottom/100% 2px no-repeat,
    linear-gradient(0deg, rgba(0,243,255,0.18), rgba(188,0,255,0.18)) left/2px 100% no-repeat,
    linear-gradient(0deg, rgba(0,243,255,0.18), rgba(188,0,255,0.18)) right/2px 100% no-repeat;
  border-radius: 0;
  z-index: 2;
  pointer-events: none;
  filter: blur(0.3px) drop-shadow(0 0 10px rgba(0,243,255,0.25)) drop-shadow(0 0 14px rgba(188,0,255,0.18));
}

.video-container::after {
  content: none;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 0;
  position: relative;
  z-index: 1;
}

/* SVG tracer wrapper sits above iframe but only draws the border */
/* remove any tracer overlay entirely */
.video-tracer { display: none !important; }

.video-tracer svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.video-tracer .border { fill: none; stroke: rgba(255,255,255,0.04); stroke-width: 1px; }
.video-tracer .runner {
  fill: none;
  stroke: url(#grad);
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-dasharray: 240 880; /* longer visible segment, subtle */
  animation: dash-rotate 6s linear infinite;
}

@keyframes dash-rotate {
  to { stroke-dashoffset: -1120; }
}

/* Light mode removed */

/* Interactive Elements Glow Effect */
.hero-cta:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,0.22), 0 0 24px rgba(57, 255, 20, 0.35);
}

/* Single hover handled above */

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .video-tracer .runner { animation: none; }
  .hero-section::after { animation: none; }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-section { padding: 5rem 1.5rem 3rem; }
  .hero-container { gap: 3.5rem; }
}

@media (max-width: 768px) {
  .hero-section { padding: 4rem 1rem 2.5rem; }
  .hero-container { gap: 3rem; }
  .hero-headline { line-height: 1.12; }
}

@media (max-width: 480px) {
  .hero-section { padding: 3.25rem 1rem 2rem; }
  .hero-container { gap: 2.25rem; }
}

/* XL screens */
@media (min-width: 1440px) {
  .hero-headline { font-size: 4.25rem; }
  .magic-window { max-width: 1320px; }
}

/* Center tightening on ultra-wide */
@media (min-width: 1800px) {
  .hero-container { max-width: 1500px; }
  .hero-content { max-width: 1200px; }
}

/* Small device font tuning */
@media (max-width: 380px) {
  .hero-headline { font-size: 1.9rem; }
  .hero-subheadline { font-size: 0.95rem; }
}

/* Light mode removed */