/* Basal reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Theme tokens */
:root{
  --radius: 16px;
  --gap: 12px;
  --maxw: 1600px;                 /* max width for hero/video */
  --pad: clamp(16px, 3vw, 32px);
  --title: clamp(28px, 5vw, 48px);
  --subtitle: clamp(16px, 2.2vw, 20px);

  --bg: #000;
  --text: #1A1D56;

  --primary: #ffffff;
  --primary-press: #1A1D56;

  --stroke: 1px solid rgba(255,255,255,0.18);
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.16);
}

/* Container */
.hero{
  position: relative;
  width: 100%;
  max-width: var(--maxw);         /* 1600px cap */
  margin: 0 auto 40px;            /* center + spacing below */
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;               /* no shadows */
  padding: 0;
}

/* Mobil-luft rundt om hele blokken */
@media (max-width: 920px){
  .hero{ padding: 10px; }
}

/* Video-wrapper */
.hero__media{
  position: relative;
  width: 100%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;               /* clip video + overlay til radius */
  margin: 0 auto;

  /* Fjern fast aspect-ratio som default (mobil får egen højde) */
  aspect-ratio: auto;
  height: auto;
}

/* Video fylder container og croppes hvis nødvendigt */
.hero__video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Desktop/tablet: brug 16:9 */
@media (min-width: 521px){
  .hero__media{
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

/* Mobil: giv ekstra højde uden at strække videoformatet */
@media (max-width: 520px){
  .hero__media{
    height: 50vh;         /* ca. 70% af skærmhøjden */
    min-height: 360px;    /* bedre for små mobiler */
    max-height: 88vh;     /* undgå at fylde HELE viewport */
  }
}

/* Scrim for læsbarhed over video */
.hero__scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Overlay-indhold: samme radius via clipping i media */
.hero__content{
  position: absolute;
  bottom: var(--pad);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--pad)*2);
  max-width: min(900px, 100%);
  text-align: center;
  color: var(--text);
  padding: var(--pad);
  border-radius: var(--radius);     /* matcher videoens hjørner (visuelt) */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: linear-gradient(180deg, transparent, var(--glass));
  border: var(--stroke);
  box-shadow: none;                 /* no shadow */
  z-index: 1;                       /* over video/scrim */
}

/* Typografi */
.hero__title{
  margin: 0 0 8px 0;
  font-size: var(--title);
  line-height: 1.1;
  font-weight: 800;
  background: radial-gradient(circle at 30% 30%, rgb(255,255,255) 0%, rgb(195,200,212) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero__subtitle{
  margin: 0 0 18px 0;
  font-size: var(--subtitle);
  color: #f3f4f6;
}

/* CTA’er */
.hero__cta-group{
  display: inline-flex;
  gap: var(--gap);
  flex-wrap: wrap;
  justify-content: center;
}

/* Knapper: ingen shadows + variant-farver eksplicit */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: var(--stroke);
  transition: transform .12s ease, opacity .12s ease, background-color .12s ease;
  box-shadow: none;  /* no shadow */
}

.btn:focus{
  outline: 2px solid rgba(42,140,255,0.6);
  outline-offset: 2px;
  box-shadow: none;
}

.btn:active{
  transform: translateY(1px) scale(0.99);
}

/* Primær */
.btn--primary{
  background: linear-gradient(180deg, var(--primary), #d9e1f0);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #1A1D56 !important;   /* tekstfarve slår igennem */
}

.btn--primary:hover{ filter: brightness(1.05); }
.btn--primary:active{ background: var(--primary-press); }

/* Sekundær (ghost) */
.btn--ghost{
  background: var(--glass-strong);
  color: #ffffff !important;   /* tekstfarve slår igennem */
  border: 1px solid rgba(255,255,255,0.22);
}

.btn--ghost:hover{ background: rgba(255,255,255,0.22); }

/* Efterfølgende indhold */
.content{
  width: min(100% - 32px, var(--maxw));
  margin: 0 auto 80px;
  color: #111827;
  line-height: 1.6;
  font-size: 16px;
}

/* Mindre bevægelse */
@media (prefers-reduced-motion: reduce){
  .btn{ transition: none; }
  .hero__content{ backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Små skærme: knapper i fuld bredde */
@media (max-width: 520px){
  .hero__content{ padding: 18px; }
  .btn{ width: 100%; }
}