/* =============================================================
   SECTION 1 — PREMIUM HERO / FIRST IMPRESSION
   All rules scoped under .premium-hero
   ============================================================= */

.premium-hero {
  /* Section-scoped tokens (not :root — local to this section only) */
  --ph-navy-900: #071B31;
  --ph-navy-800: #0A2F52;
  --ph-navy-700: #0F3D68;
  --ph-teal-500: #14B8A6;
  --ph-teal-300: #5EEAD4;
  --ph-cyan-300: #67E8F9;
  --ph-white: #FFFFFF;
  --ph-ink-mist: rgba(255, 255, 255, 0.72);
  --ph-ink-faint: rgba(255, 255, 255, 0.5);
  --ph-line: rgba(255, 255, 255, 0.14);
  --ph-font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --ph-font-body: 'Inter', sans-serif;

  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ph-navy-900) 0%, var(--ph-navy-800) 52%, var(--ph-navy-700) 100%);
  padding-top: 6.5rem;
  padding-bottom: 6rem;
  font-family: var(--ph-font-body);
  isolation: isolate;

  /* Vertical centering at full viewport height */
  display: flex;
  align-items: center;
  min-height: 100vh;
}

/* ---------- Ambient background ---------- */
.premium-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.premium-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.premium-hero-glow-1 {
  width: 32rem;
  height: 32rem;
  top: -10rem;
  right: -8rem;
  background: radial-gradient(circle, var(--ph-teal-500) 0%, transparent 70%);
  animation: premium-hero-drift 14s ease-in-out infinite;
}

.premium-hero-glow-2 {
  width: 24rem;
  height: 24rem;
  bottom: -8rem;
  left: -6rem;
  background: radial-gradient(circle, var(--ph-cyan-300) 0%, transparent 70%);
  opacity: 0.18;
  animation: premium-hero-drift 18s ease-in-out infinite reverse;
}

.premium-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ph-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ph-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 0%, transparent 70%);
  opacity: 0.5;
}

@keyframes premium-hero-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2rem, 2rem) scale(1.08); }
}

/* ---------- Layout container ---------- */
.premium-hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ---------- Content (left) ---------- */
.premium-hero-content {
  opacity: 0;
  transform: translateY(18px);
  animation: premium-hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes premium-hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

.premium-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ph-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-teal-300);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.28);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.premium-hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ph-teal-300);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.25);
  animation: premium-hero-pulse-dot 2.4s ease-in-out infinite;
}

@keyframes premium-hero-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.premium-hero-title {
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ph-white);
  margin-bottom: 1.5rem;
}

.premium-hero-title-accent {
  background: linear-gradient(90deg, var(--ph-teal-300), var(--ph-cyan-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.premium-hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ph-ink-mist);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.premium-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.premium-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ph-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 0.7rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.premium-hero-btn:focus-visible {
  outline: 2px solid var(--ph-teal-300);
  outline-offset: 3px;
}

.premium-hero-btn-primary {
  background: linear-gradient(90deg, var(--ph-teal-500), #0EA5A0);
  color: var(--ph-navy-900);
  box-shadow: 0 8px 24px -8px rgba(20, 184, 166, 0.55);
}

.premium-hero-btn-primary i {
  transition: transform 0.25s ease;
}

.premium-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(20, 184, 166, 0.65);
  color: var(--ph-navy-900);
}

.premium-hero-btn-primary:hover i {
  transform: translate(2px, -2px);
}

.premium-hero-btn-secondary {
  background: transparent;
  color: var(--ph-white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.premium-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: var(--ph-white);
}

.premium-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ph-line);
}

.premium-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ph-ink-faint);
}

.premium-hero-trust-item i {
  color: var(--ph-teal-300);
  font-size: 1rem;
}

/* ---------- Visual (right) ---------- */
.premium-hero-visual {
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  animation: premium-hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.premium-hero-visual-frame {
  position: relative;
  min-height: 380px;
  border-radius: 1.5rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--ph-line);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}

.premium-hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15rem;
  height: 15rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.28) 0%, rgba(15, 61, 104, 0) 72%);
  animation: premium-hero-orb-pulse 5s ease-in-out infinite;
}

@keyframes premium-hero-orb-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.6; }
}

.premium-hero-pulse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.premium-hero-pulse-path {
  fill: none;
  stroke: var(--ph-teal-300);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: premium-hero-draw 3.6s ease-in-out infinite;
}

@keyframes premium-hero-draw {
  0% { stroke-dashoffset: 900; opacity: 0; }
  15% { opacity: 0.75; }
  55% { stroke-dashoffset: 0; opacity: 0.75; }
  75% { opacity: 0.75; }
  100% { stroke-dashoffset: -900; opacity: 0; }
}

.premium-hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(10, 27, 49, 0.65);
  border: 1px solid var(--ph-line);
  border-radius: 0.9rem;
  padding: 0.85rem 1.1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.5);
  animation: premium-hero-float 5s ease-in-out infinite;
  will-change: transform;
}

.premium-hero-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  flex-shrink: 0;
  background: linear-gradient(140deg, var(--ph-teal-500), var(--ph-cyan-300));
  color: var(--ph-navy-900);
  font-size: 1.1rem;
}

.premium-hero-card-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  white-space: nowrap;
}

.premium-hero-card-text strong {
  font-size: 0.85rem;
  color: var(--ph-white);
  font-weight: 600;
}

.premium-hero-card-text span {
  font-size: 0.72rem;
  color: var(--ph-ink-faint);
}

.premium-hero-card-1 {
  top: 12%;
  left: 4%;
  animation-delay: 0s;
}

.premium-hero-card-2 {
  top: 46%;
  right: 2%;
  animation-delay: 1.2s;
}

.premium-hero-card-3 {
  bottom: 10%;
  left: 14%;
  animation-delay: 2.1s;
}

@keyframes premium-hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Entrance stagger once JS marks section as ready */
.premium-hero-card {
  opacity: 0;
  animation-play-state: paused;
}

.premium-hero.is-ready .premium-hero-card {
  opacity: 1;
  animation-play-state: running;
  transition: opacity 0.6s ease;
}

.premium-hero.is-ready .premium-hero-card-1 { transition-delay: 0.5s; }
.premium-hero.is-ready .premium-hero-card-2 { transition-delay: 0.75s; }
.premium-hero.is-ready .premium-hero-card-3 { transition-delay: 1s; }

/* ---------- Scroll cue ---------- */
.premium-hero-scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid var(--ph-line);
  border-radius: 999px;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.premium-hero-scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--ph-teal-300);
  animation: premium-hero-scroll-dot 1.8s ease-in-out infinite;
}

@keyframes premium-hero-scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .premium-hero {
    padding-top: 5.5rem;
    padding-bottom: 4.5rem;
    text-align: center;
  }

  .premium-hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .premium-hero-actions,
  .premium-hero-trust {
    justify-content: center;
  }

  .premium-hero-visual-frame {
    min-height: 320px;
    margin-top: 1rem;
  }

  .premium-hero-card-text {
    white-space: normal;
  }
}

@media (max-width: 575.98px) {
  .premium-hero-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .premium-hero-card {
    padding: 0.65rem 0.85rem;
    gap: 0.6rem;
  }

  .premium-hero-card-text strong {
    font-size: 0.78rem;
  }

  .premium-hero-card-text span {
    font-size: 0.66rem;
  }

  .premium-hero-card-1 { left: 2%; top: 8%; }
  .premium-hero-card-2 { right: 2%; top: 42%; }
  .premium-hero-card-3 { left: 6%; bottom: 6%; }

  .premium-hero-scroll-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-hero-glow,
  .premium-hero-orb,
  .premium-hero-card,
  .premium-hero-pulse-path,
  .premium-hero-eyebrow-dot,
  .premium-hero-scroll-cue span,
  .premium-hero-content,
  .premium-hero-visual {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}