:root {
  color-scheme: dark;
  --ink: #f3f7fc;
  --muted: #a9b4c1;
  --paper: #08121d;
  --surface: #131e2b;
  --line: #263442;
  --lime: #00ed9a;
  --blue: #11c8f2;
  --dark: #080e17;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(120deg, #0b2930, #080e17 52%, #0a1d2a);
  background-attachment: fixed;
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #ffffff35;
}

.brand {
  font: 700 1.05rem "Space Grotesk", sans-serif;
  text-decoration: none;
}

.brand span {
  color: var(--lime);
}

.site-nav {
  display: flex;
  gap: 28px;
  color: #c5d0dc;
  font-size: .9rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--lime);
}

.site-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c5d0dc;
  font-size: .78rem;
}

.site-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #61a874;
  content: "";
}

.hero {
  position: relative;
  display: flex;
  min-height: 245px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin: 20px 0 55px;
  padding: 38px clamp(28px, 7vw, 84px);
  background-color: var(--dark);
  background-image: radial-gradient(#ffffff16 1px, transparent 1px);
  background-size: 18px 18px;
  color: #f4f7ed;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--lime);
}

.hero h1 {
  margin: 0;
  font: 700 clamp(3.2rem, 8vw, 5.8rem)/.95 "Space Grotesk", sans-serif;
}

.hero h1 span {
  color: var(--lime);
}

.hero-intro {
  max-width: 430px;
  margin: 14px 0 0;
  color: #aab7c5;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-stamp {
  display: grid;
  width: 150px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-content: center;
  border: 1px solid #ffffff4a;
  border-radius: 50%;
  color: var(--lime);
  font: 600 1.2rem "Space Grotesk", sans-serif;
  text-align: center;
  transform: rotate(9deg);
}

.hero-stamp span {
  display: block;
  margin-top: 4px;
  color: #aab7c5;
  font: 500 .65rem "DM Sans", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.collection {
  margin-bottom: 78px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ffffff20;
}

.section-kicker {
  margin-bottom: 7px;
  color: var(--lime);
}

.section-heading h2 {
  margin: 0;
  font: 600 clamp(1.7rem, 4vw, 2.35rem)/1.1 "Space Grotesk", sans-serif;
}

.section-note {
  margin: 0 0 3px;
  color: #d1e1f2;
  font-size: .9rem;
  text-align: right;
}

.service-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 14px;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px;
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-radius: 5px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.card>*:not(.card-snake-bg) {
  position: relative;
  z-index: 1;
}

.card-snake-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  display: block;
}

.card:hover {
  transform: translateY(-5px) rotate(-.35deg);
  border-color: #b4d0ec;
  border-top-color: var(--blue);
  box-shadow: 0 14px 28px #09274740;
}

.card:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.card-meta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.card-index {
  color: #8695a5;
  font: 600 .78rem "Space Grotesk", sans-serif;
}

.platform {
  padding: 5px 8px;
  background: #123027;
  color: var(--lime);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.platform.cloudflare {
  background: #10303b;
  color: var(--blue);
}

.card h3 {
  margin: 0 0 8px;
  font: 600 1.28rem "Space Grotesk", sans-serif;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.card-arrow {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 12px;
  color: var(--blue);
  font-size: 1.1rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 28px;
  border-top: 1px solid #ffffff20;
  color: #c5d0dc;
  font-size: .8rem;
}

@media (max-width: 640px) {

  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    min-height: 66px;
  }

  .site-nav {
    gap: 14px;
    font-size: .82rem;
  }

  .site-status {
    display: none;
  }

  .hero {
    min-height: 230px;
    margin: 15px 0 42px;
    padding: 28px 20px;
  }

  .hero-stamp {
    width: 82px;
    margin-left: 12px;
    font-size: .85rem;
  }

  .hero-stamp span {
    font-size: .55rem;
  }

  .collection {
    margin-bottom: 58px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-note {
    text-align: left;
  }

  .card {
    min-height: 170px;
  }
}

/* Party-Quiz Featured Banner */
.promo-banner {
  position: relative;
  overflow: hidden;
  display: block;
  margin: 0 0 70px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #080d16;
  text-decoration: none;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.promo-banner:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 218, 245, 0.5);
  box-shadow: 0 24px 55px rgba(17, 200, 242, 0.18);
}

.promo-banner:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.promo-stage {
  position: relative;
  height: 290px;
  width: 100%;
  overflow: hidden;
}

.promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity .8s cubic-bezier(0.4, 0, 0.2, 1),
    transform .8s cubic-bezier(0.4, 0, 0.2, 1),
    visibility .8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.promo-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

/* Första sliden: Text & styling matchande bilden */
.promo-slide-title {
  background: radial-gradient(circle at 50% 40%, #162438 0%, #080d16 75%);
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

.party-quiz-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: -0.03em;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.7));
  user-select: none;
}

.party-quiz-logo .part-party {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  color: #ffffff;
  letter-spacing: -0.04em;
}

.party-quiz-logo .part-hyphen {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: #e5f0ff;
  margin: 0 1px;
}

.party-quiz-logo .part-quiz {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #3ddaf5 0%, #68a9f7 45%, #ca7cf2 85%, #df74d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.party-badge-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.party-pill {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.party-pill-green {
  background: #00ed9a;
  color: #032115;
}

.party-pill-pink {
  background: #e94ca1;
  color: #ffffff;
}

.party-pill-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #d8e5f5;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Bildslides */
.promo-slide-img {
  background-color: #080d16;
}

.promo-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 23, 0.05) 0%, rgba(8, 14, 23, 0.15) 100%);
  pointer-events: none;
}

.promo-slide-caption {
  position: absolute;
  bottom: 24px;
  left: 28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promo-slide-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0, 237, 154, 0.35);
}

.promo-slide-title-text {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Snake Promo Slide */
.promo-slide-snake {
  background: radial-gradient(circle at 50% 50%, #0d2320 0%, #071317 65%, #050c10 100%);
  flex-direction: column;
  gap: 14px;
  text-align: center;
  padding: 24px;
  position: relative;
}

.promo-snake-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.promo-slide-snake-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.snake-banner-logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(135deg, #7dff9e 0%, #00ed9a 50%, #11c8f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 35px rgba(0, 237, 154, 0.45));
  user-select: none;
}

/* Kontroller och indikatorer */
.promo-controls {
  position: absolute;
  bottom: 18px;
  right: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.promo-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00ed9a;
  color: #051a12;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(0, 237, 154, 0.4);
}

.promo-play-btn span {
  font-size: 1.05rem;
  transition: transform .2s ease;
}

.promo-banner:hover .promo-play-btn span {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .promo-stage {
    height: 240px;
  }

  .promo-controls {
    bottom: 12px;
    right: 14px;
  }

  .promo-slide-caption {
    bottom: 14px;
    left: 14px;
  }

  .promo-play-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
