/* /css/main-website/hero.css
   ========================================================================== 
   GFC – Main Website Hero
   --------------------------------------------------------------------------
   Optimized for the reduced landing-page structure:
   - Core proposition and primary CTA first
   - Compact current-status notice
   - Cinematic video as supporting evidence/brand layer below the message
   ========================================================================== */

/* 1. HERO FOUNDATION ------------------------------------------------------ */
.section.hero {
  --gfc-hero-bg: var(--hero-bg, #050913);
  --gfc-hero-surface: var(--hero-surface, rgba(11, 17, 32, 0.88));
  --gfc-hero-surface-soft: var(--hero-surface-soft, rgba(11, 17, 32, 0.72));
  --gfc-hero-border: var(--hero-border, rgba(255, 255, 255, 0.12));
  --gfc-hero-text: var(--hero-ink, var(--text, #f5f7fb));
  --gfc-hero-muted: var(--hero-muted, var(--muted, #a9b2c3));
  --gfc-hero-accent: var(--hero-accent, var(--accent, #5cc8ff));
  --gfc-hero-accent-ink: var(--hero-accent-ink, var(--brand-ink, #07111f));
  --gfc-hero-radius: var(--hero-radius, 20px);
  --gfc-hero-text-width: 68ch;

  position: relative;
  overflow: clip;
  padding: 0;
  color: var(--gfc-hero-text);
  text-align: start;
  background:
    radial-gradient(1100px 420px at 16% -8%, rgba(92, 200, 255, 0.17), transparent 62%),
    radial-gradient(820px 320px at 86% 0%, rgba(98, 230, 167, 0.08), transparent 58%),
    var(--gfc-hero-bg);
}

.section.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-position: -4px -4px;
  background-size: 26px 26px;
}

/* 2. MESSAGE FIRST -------------------------------------------------------- */
.hero-inner {
  position: relative;
  z-index: 2;
  min-inline-size: 0;
  padding-block-start: clamp(1rem, 2vw, 1.5rem);
}

.section.hero .hero-surface.mt-5 {
  margin-block-start: 0;
}

.hero-surface {
  min-inline-size: 0;
  padding: clamp(1.3rem, 2.8vw, 2rem);
  border: 1px solid var(--gfc-hero-border);
  border-radius: var(--gfc-hero-radius);
  background:
    linear-gradient(180deg, var(--gfc-hero-surface), var(--gfc-hero-surface-soft));
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-top,
.hero-copy {
  min-inline-size: 0;
}

.hero-top {
  margin-block-end: 0.9rem;
}

.hero .eyebrow {
  margin-block-end: 0.625rem;
}

.hero-title {
  max-inline-size: var(--gfc-hero-text-width);
  margin: 0;
  color: var(--gfc-hero-text);
  font-size: var(--h1-size, clamp(2rem, 5vw, 4.25rem));
  font-weight: 850;
  line-height: 1.07;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.hero .nowrap {
  white-space: normal;
}

.hero .lead {
  max-inline-size: var(--gfc-hero-text-width);
  margin: 0 0 0.8rem;
  color: var(--gfc-hero-text);
  font-size: var(--lead-size, clamp(1rem, 1.5vw, 1.16rem));
  line-height: 1.62;
}

.hero .lead strong,
.hero .muted strong {
  color: var(--gfc-hero-text);
}

.hero .muted {
  max-inline-size: 76ch;
  color: var(--gfc-hero-muted);
}

/* 3. PRIMARY ACTIONS ------------------------------------------------------ */
.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.1rem 0 0;
}

.hero .btn {
  min-block-size: 48px;
  padding: 0.78rem 1.15rem;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.005em;
}

.hero .btn-primary {
  background: linear-gradient(180deg, var(--gfc-hero-accent), #89dbff);
  color: var(--gfc-hero-accent-ink);
  box-shadow: 0 10px 26px rgba(92, 200, 255, 0.28);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.025);
  color: var(--gfc-hero-text);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* 4. CURRENT STATUS ------------------------------------------------------- */
.hero .note {
  max-inline-size: 96ch;
  margin: 1rem 0 0;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(255, 189, 66, 0.32);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 189, 66, 0.13), rgba(255, 189, 66, 0.07));
  color: var(--gfc-hero-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero .note strong {
  color: #ffd98a;
}

/* 5. SUPPORTING VIDEO ----------------------------------------------------- */
.hero-video-stage {
  position: relative;
  z-index: 1;
  inline-size: min(var(--container-max, 1180px), calc(100% - 2rem));
  block-size: clamp(160px, 18vw, 240px);
  min-inline-size: 0;
  margin: 0.875rem auto clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-block-end-color: rgba(92, 200, 255, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(92, 200, 255, 0.08), transparent 56%),
    #030407;
  box-shadow:
    inset 0 -48px 90px rgba(2, 6, 23, 0.76),
    0 18px 46px rgba(0, 0, 0, 0.3);
}

.hero-video {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
  filter: saturate(0.92) contrast(1.08) brightness(0.76);
  transform: scale(1.015);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.08) 0%, rgba(2, 6, 23, 0.16) 48%, rgba(2, 6, 23, 0.88) 100%),
    radial-gradient(ellipse at center, transparent 28%, rgba(2, 6, 23, 0.14) 68%, rgba(2, 6, 23, 0.48) 100%);
}

@media (hover: hover) and (pointer: fine) {
  .hero .btn-primary:hover,
  .hero .btn-outline:hover {
    transform: translateY(-1px);
  }

  .hero .btn-primary:hover {
    box-shadow: 0 13px 32px rgba(92, 200, 255, 0.35);
  }

  .hero .btn-outline:hover {
    border-color: rgba(92, 200, 255, 0.46);
    background: rgba(92, 200, 255, 0.08);
    color: var(--gfc-hero-accent);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  }
}

/* 6. TABLET --------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner {
    padding-block-start: 0.75rem;
  }

  .hero-surface {
    padding: clamp(1.2rem, 4vw, 1.65rem);
  }

  .hero-title {
    /* Continuous scaling: ~29px at 320px, ~34.5px at 430px, 43.2px from ~605px upward. */
    font-size: clamp(1.8rem, calc(0.81rem + 5vw), 2.7rem);
  }

  .hero-video-stage {
    inline-size: calc(100% - 1.75rem);
    block-size: clamp(150px, 27vw, 220px);
    margin-block-start: 0.75rem;
    margin-block-end: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: 15px;
  }
}

/* 7. MOBILE --------------------------------------------------------------- */
@media (max-width: 680px) {
  .hero-inner {
    padding-block-start: 0.625rem;
  }

  .hero-surface {
    padding: 1.05rem;
    border-radius: 16px;
  }


  .hero .lead {
    font-size: 1rem;
    line-height: 1.56;
  }

  .hero .cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
    margin-block-start: 0.95rem;
  }

  .hero .cta-row .btn {
    inline-size: 100%;
  }

  .hero .note {
    padding: 0.72rem 0.8rem;
    font-size: 0.86rem;
  }

  .hero-video-stage {
    inline-size: calc(100% - 1.25rem);
    block-size: clamp(130px, 36vw, 180px);
    margin-block-start: 0.625rem;
    margin-block-end: 1.75rem;
    border-radius: 13px;
  }
}

@media (max-width: 360px) {
  .hero-inner {
    padding-block-start: 0.45rem;
  }

  .hero-surface {
    display: flex;
    flex-direction: column;
    padding: 0.82rem;
  }

  .hero-top {
    order: 1;
    margin-block-end: 0.55rem;
  }

  .hero .eyebrow {
    margin-block-end: 0.35rem;
  }

  .hero .lead {
    order: 2;
    margin-block-end: 0;
    line-height: 1.46;
  }

  .hero .cta-row {
    order: 3;
    gap: 0.5rem;
    margin-block-start: 0.55rem;
  }

  .hero .muted.small {
    order: 4;
    margin: 0.6rem 0 0;
    line-height: 1.46;
  }

  .hero .note {
    order: 5;
    margin-block-start: 0.65rem;
    padding: 0.6rem 0.68rem;
    font-size: 0.82rem;
    line-height: 1.42;
  }
}

/* 8. LIGHT COLOR SCHEME --------------------------------------------------- */
@media (prefers-color-scheme: light) {
  .section.hero {
    --gfc-hero-bg: #eef4f9;
    --gfc-hero-surface: rgba(255, 255, 255, 0.94);
    --gfc-hero-surface-soft: rgba(247, 250, 253, 0.92);
    --gfc-hero-border: rgba(14, 24, 42, 0.12);
    --gfc-hero-text: var(--text, #111827);
    --gfc-hero-muted: var(--muted, #5f6b7d);
    --gfc-hero-accent: #0ea5e9;
    --gfc-hero-accent-ink: #07111f;

    background:
      radial-gradient(1000px 400px at 16% -8%, rgba(20, 135, 190, 0.14), transparent 62%),
      radial-gradient(800px 300px at 86% 0%, rgba(30, 170, 110, 0.08), transparent 58%),
      var(--gfc-hero-bg);
  }

  .section.hero::before {
    opacity: 0.08;
    background-image: radial-gradient(rgba(14, 24, 42, 0.12) 1px, transparent 1px);
  }

  .hero-surface {
    box-shadow:
      0 12px 34px rgba(14, 24, 42, 0.11),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .hero .btn-outline {
    border-color: rgba(14, 24, 42, 0.2);
    background: rgba(255, 255, 255, 0.48);
    color: var(--gfc-hero-text);
  }

  .hero .note strong {
    color: #7c5200;
  }
}

/* 9. ACCESSIBILITY / OUTPUT MODES ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .section.hero::before {
    background-image: none;
  }

  .hero-video,
  .hero .btn {
    transition: none !important;
  }

  .hero-video,
  .hero .btn:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .section.hero {
    background: Canvas;
    color: CanvasText;
  }

  .section.hero::before,
  .hero-video-stage {
    display: none;
  }

  .hero-surface,
  .hero .note,
  .hero .btn-outline {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero .btn-primary {
    border: 1px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
    box-shadow: none;
  }
}

@media print {
  .section.hero {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .section.hero::before,
  .hero-video-stage,
  .hero .cta-row {
    display: none !important;
  }

  .hero-inner {
    padding-block-start: 0 !important;
  }

  .hero-surface {
    padding: 1rem !important;
    border: 1px solid #000000 !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .hero-title,
  .hero .lead,
  .hero .muted,
  .hero .note {
    color: #000000 !important;
  }

  .hero .note {
    border-color: #000000 !important;
    background: none !important;
  }
}