/* ============================================================
   HERO SECTION — Dark immersive full-bleed header
   ============================================================ */

@property --button-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

#hero-section {
  position: relative;
  width: 100%;
  background: radial-gradient(ellipse at 30% 50%, #0a1628 0%, #050d1a 60%, #020408 100%);
  padding: 80px 40px 60px;
  overflow: hidden;
  margin: 0;
  box-sizing: border-box;
}

/* Ambient living background */
#hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(45, 143, 111, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(200, 148, 62, 0.03) 0%, transparent 40%);
  animation: ambientShift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes ambientShift {
  0%   { opacity: 0.6; transform: scale(1.0); }
  50%  { opacity: 1.0; transform: scale(1.1); }
  100% { opacity: 0.7; transform: scale(1.05); }
}

.hero-content {
  display: flex;
  flex-direction: row;
  gap: 48px;
  max-width: 1210px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* --- Left column: Video --- */
.hero-video-column {
  flex: 1 1 0;
  min-width: 280px;
}

.hero-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(45, 143, 111, 0.15),
    0 0 80px rgba(45, 143, 111, 0.05);
  background: #0a0a0a;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-caption {
  color: rgba(255, 255, 255, 0.4);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* --- Right column: Summary + CTA --- */
.hero-summary-column {
  flex: 1 1 0;
  min-width: 280px;
}

.hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: left;
}

.hero-subtitle {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(45, 180, 130, 0.85);
  margin: 0 0 28px 0;
  letter-spacing: 0.01em;
  text-align: left;
}

.hero-description {
  color: rgba(255, 255, 255, 0.72);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.72;
  margin-bottom: 36px;
  text-align: left;
}

.hero-description p {
  margin: 0;
}

.hero-description p + p {
  margin-top: 14px;
}

/* --- Device warning --- */
.hero-device-warning {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 200, 100, 0.85);
  background: rgba(255, 200, 100, 0.08);
  border: 1px solid rgba(255, 200, 100, 0.2);
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 32px;
  line-height: 1.5;
  text-align: left;
}

/* ============================================================
   THE GLOWING CTA BUTTON
   ============================================================ */

.demo-button {
  position: relative;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 3px;
  border-radius: 14px;
  background: conic-gradient(
    from var(--button-angle, 0deg),
    #00d4aa,
    #7c3aed,
    #f59e0b,
    #ef4444,
    #00d4aa
  );
  text-decoration: none;
  cursor: pointer;
  animation:
    rotateBorderGradient 4s linear infinite,
    buttonPulse 3s ease-in-out infinite;
  z-index: 1;
  transition: transform 0.2s ease;
}

/* Outer aura glow */
.demo-button::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 24px;
  background: conic-gradient(
    from var(--button-angle, 0deg),
    rgba(0, 212, 170, 0.3),
    rgba(124, 58, 237, 0.25),
    rgba(245, 158, 11, 0.25),
    rgba(239, 68, 68, 0.2),
    rgba(0, 212, 170, 0.3)
  );
  filter: blur(25px);
  animation: rotateBorderGradient 4s linear infinite;
  z-index: -1;
}

/* Inner button face */
.demo-button-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #0a1e2e 0%, #0d2840 100%);
  color: #ffffff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.demo-button-icon {
  font-size: 1.3rem;
  line-height: 1;
}

@keyframes rotateBorderGradient {
  to { --button-angle: 360deg; }
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(0, 212, 170, 0.3),
      0 0 60px rgba(0, 212, 170, 0.1);
  }
  50% {
    box-shadow:
      0 0 30px rgba(0, 212, 170, 0.5),
      0 0 80px rgba(0, 212, 170, 0.2),
      0 0 120px rgba(124, 58, 237, 0.1);
  }
}

.demo-button:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 40px rgba(0, 212, 170, 0.6),
    0 0 100px rgba(0, 212, 170, 0.3),
    0 0 160px rgba(124, 58, 237, 0.15);
}

.demo-button:hover .demo-button-inner {
  background: linear-gradient(135deg, #0f2a3d 0%, #143550 100%);
}

.demo-button:active {
  transform: scale(0.97);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 850px) {
  #hero-section {
    padding: 48px 20px 40px;
  }

  .hero-content {
    flex-direction: column;
    gap: 32px;
  }

  .hero-video-column,
  .hero-summary-column {
    min-width: unset;
    width: 100%;
  }

  .hero-video-container {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
  }

  .hero-description {
    text-align: left;
  }

  .demo-button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .demo-button-inner {
    justify-content: center;
    padding: 20px 24px;
  }
}

@media (max-width: 480px) {
  #hero-section {
    padding: 36px 16px 32px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }
}

/* Firefox fallback — @property not supported */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .demo-button {
    background: linear-gradient(135deg, #00d4aa, #7c3aed, #f59e0b);
    animation: buttonPulse 3s ease-in-out infinite;
  }
  .demo-button::before {
    background: linear-gradient(135deg, rgba(0,212,170,0.3), rgba(124,58,237,0.3));
    animation: none;
  }
}
