@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #14243A;
  --green: #2F8F7A;
  --green-dark: #23705F;
  --green-light: #5FC3A8;
  --text: #14243A;
  --muted: #5B6878;
  --line: #DDE3EA;
  --bg: #FFFFFF;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.green { color: var(--green); }

/* Sidhuvud */
.top { border-bottom: 1px solid var(--line); }
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}
.symbol { width: 36px; height: 36px; flex: none; }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.top-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.top-link:hover { border-bottom-color: var(--green); }

/* Hjälte */
.hero { padding-top: 112px; padding-bottom: 72px; }
.eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}
h1 {
  margin: 0 0 28px;
  max-width: 12em;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.lead {
  margin: 0;
  max-width: 36em;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--muted);
}

/* Tre principer */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 96px;
}
.pillar { border-top: 2px solid var(--navy); padding-top: 20px; }
.num {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--green);
}
.pillar h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.pillar p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Kontaktband */
.band { background: var(--navy); color: #fff; }
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.band-title { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.band-text { margin: 0; color: #C9D3E0; font-size: 16px; line-height: 1.5; }
.cta {
  flex: none;
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.cta:hover { background: var(--green-dark); }
.cta:focus-visible, .top-link:focus-visible, .logo:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 3px;
}

/* Sidfot */
.foot {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}

@media (max-width: 760px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 64px; padding-bottom: 48px; }
  .pillars { grid-template-columns: 1fr; gap: 28px; padding-bottom: 64px; }
  .band-inner { flex-direction: column; align-items: flex-start; }
}

/* Ettor och nollor som tänds svagt runt muspekaren (bg.js) */
.stage { position: relative; overflow: hidden; }
.stage > .container { position: relative; z-index: 1; }
.binary {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: .5em;
  white-space: pre;
  color: var(--green);
  opacity: 0;
  transition: opacity .6s ease;
  -webkit-mask-image: radial-gradient(circle 240px at var(--x, -999px) var(--y, -999px), #000 0%, rgba(0,0,0,.35) 45%, transparent 100%);
          mask-image: radial-gradient(circle 240px at var(--x, -999px) var(--y, -999px), #000 0%, rgba(0,0,0,.35) 45%, transparent 100%);
}
.binary.on { opacity: .16; }
