/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
  sans-serif;
  background-color: #0b326b;
  color: #f9fafb;
  overflow-x: hidden;
}

/* ===== BASIS SCALING ===== */
html {
  font-size: 16px;
}

@media (min-width: 1280px) {
  html { font-size: 18px; }
}

@media (min-width: 1600px) {
  html { font-size: 20px; }   /* GØR ALT STØRRE PÅ 1440p+ */
}

/* ===== SECTIONS ===== */
.section {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 4vh 6vh;
}

.section-inner {
  width: min(1600px, 94vw);   /* STOR CONTAINER */
  margin: 0 auto;
}

/* ===== HERO ===== */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
}

.hero-image-clip {
  width: 100%;
  max-width: 40vw;
  min-width: 320px;
  aspect-ratio: 4 / 5;
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

.hero-image-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text-wrap {
  position: relative;
}

.hero-logo {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.2rem;
}

.hero-logo img {
  max-width: clamp(220px, 26vw, 360px);
  height: auto;
}

.hero-title {
  font-size: clamp(2.6rem, 3.7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.accent-bold,
.accent {
  color: #27b4ff;
  font-weight: 700;
}

.hero-subline {
  font-size: clamp(1.6rem, 2.6vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-body {
  max-width: 40rem;
  font-size: clamp(1rem, 1.15vw, 1.3rem);
  margin-bottom: 0.7rem;
}

.hero-list-block {
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
}

.hero-list-title {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.hero-list {
  list-style: disc;
  padding-left: 1.4rem;
  font-size: clamp(1rem, 1.15vw, 1.3rem);
}

.hero-list li {
  margin-bottom: 0.15rem;
}

.hero-body-final {
  max-width: 40rem;
}

.hero-footerline {
  margin-top: 1.8rem;
  font-size: clamp(0.75rem, 0.9vw, 0.95rem);
  opacity: 0.8;
  text-align: center;
}

/* ===== PRODUKTER ===== */
.section-products {
  padding-top: 6vh;
}

.products-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 5vw, 6rem);
  align-items: stretch;
}

.section-heading {
  font-size: clamp(2.2rem, 3.1vw, 3rem);
  margin-bottom: 1.8rem;
  font-weight: 700;
}

.product-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.6rem;
  margin-bottom: 1.9rem;
}

.product-icon {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 2px solid #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon svg {
  width: 54px;
  height: 54px;
}

.product-text h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  margin-bottom: 0.4rem;
  color: #27b4ff;
}

.product-text p {
  font-size: clamp(0.98rem, 1.1vw, 1.2rem);
}

/* ===== PARTNERS ===== */
.products-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-card {
  width: 100%;
  background-color: #ffffff;
  color: #111827;
  border-radius: 32px;
  padding: clamp(2.2rem, 3vh, 2.8rem) clamp(2.4rem, 3vw, 3.2rem);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  border: 3px solid #dce6f9;
  transform: scale(1.06);
}

.partners-heading {
  font-size: clamp(1.9rem, 2.7vw, 2.6rem);
  margin-bottom: 1.8rem;
  text-align: center;
  color: #0b326b;
  font-weight: 700;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2rem;
  align-items: center;
  justify-items: center;
}

.partner img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
}

/* ===== OM MIG ===== */
.section-about {
  padding-top: 6vh;
}

.section-about-inner {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.about-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 32vw;
  min-width: 320px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

.about-logo img {
  max-width: clamp(220px, 24vw, 340px);
  margin-bottom: 1.2rem;
}

.about-text p {
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  margin-bottom: 0.8rem;
  max-width: 40rem;
}

.about-bottom {
  text-align: center;
  margin-top: 1.4rem;
}

.big-cta {
  font-size: clamp(2.4rem, 3.2vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1.8rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #f9fafb;
  padding: 0.9rem 2.2rem;
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: transparent;
  color: #f9fafb;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease,
              box-shadow 0.15s ease;
}

.cta-button:hover {
  background-color: #f9fafb;
  color: #0b326b;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* ===== ANIMATIONER ===== */

/* Keyframes er de samme som før */
@keyframes heroSlideIn {
  0% { opacity: 0; transform: translateX(-3vw); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes caret {
  50% { border-color: transparent; }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes partnersIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.06); }
}

@keyframes slideLeft {
  0% { opacity: 0; transform: translateX(-3vw); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  0% { opacity: 0; transform: translateX(3vw); }
  100% { opacity: 1; transform: translateX(0); }
}

/* --- Grundtilstand: ingen animation endnu --- */

/* Hero-titel og billede: starter ude til venstre */
.animate-hero-title,
.animate-about-image {
  opacity: 0;
  transform: translateX(-3vw);
}

/* Tekstblokke / partnere: starter ude til højre */
.animate-about-text,
.animate-partners {
  opacity: 0;
  transform: translateX(3vw);
}

/* Overskrifter, produkter, big-CTA: starter lidt nede */
.animate-section-title,
.animate-product,
.animate-big-cta {
  opacity: 0;
  transform: translateY(18px);
}

/* Hero-subline: typing-effekt – starter med bredde 0 */
.animate-hero-sub {
  opacity: 1;               /* vi styrer synlighed via width */
  width: 0;                 /* typing starter herfra */
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #f9fafb;
}

/* --- Når elementet er i viewport, tilføjer JS .in-view --- */

.in-view.animate-hero-title {
  animation: heroSlideIn 0.7s ease-out forwards;
}

.in-view.animate-hero-sub {
  animation:
    typing 1.6s steps(30, end) 0.3s forwards,
    caret 0.7s step-end infinite;
}

.in-view.animate-section-title {
  animation: fadeUp 0.8s ease-out forwards;
}

.in-view.animate-product {
  animation: fadeUp 0.8s ease-out forwards;
}

.in-view.animate-partners {
  animation: partnersIn 0.8s ease-out forwards;
  animation-delay: 0.25s;
}

.in-view.animate-about-image {
  animation: slideLeft 0.8s ease-out forwards;
}

.in-view.animate-about-text {
  animation: slideRight 0.9s ease-out forwards;
}

.in-view.animate-big-cta {
  animation: fadeUp 0.9s ease-out forwards;
  animation-delay: 0.3s;
}


/* ===== RESPONSIV ===== */
@media (max-width: 960px) {

  .section {
    padding-block: 3rem;
  }

  .section-inner {
    width: min(100% - 2rem, 100%);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
  }

  .hero-logo {
    justify-content: flex-start;
  }

  .hero-image-wrap {
    order: -1;
  }

  .products-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .partners-card {
    transform: scale(1);
    margin-top: 2rem;
  }

  .product-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-icon {
    width: 72px;
    height: 72px;
  }

  .partners-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


