/* ===========================
   RESET & BASE
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:        #1a1a1a;
  --text:         #1a1a1a;
  --body-text:    #6b7280;
  --border:       #e5e7eb;
  --bg-card:      #f4f4f4;
  --white:        #ffffff;
  --radius-card:  16px;
  --radius-btn:   8px;
  --max-width:    1200px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===========================
   ANNOUNCEMENT BANNER
   =========================== */

.announcement-banner {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 10px 1.5rem;
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.announcement-link {
  font-weight: 600;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.15s;
}

.announcement-link:hover {
  gap: 0.5rem;
}

.announcement-link .arrow {
  transition: transform 0.15s;
}

.announcement-link:hover .arrow {
  transform: translateX(3px);
}

/* ===========================
   NAVBAR
   =========================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--black);
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
}

.logo-word {
  display: inline-flex;
  align-items: baseline;
}

.logo-rest,
.logo-sep {
  display: inline-block;
  overflow: hidden;
  max-width: 10em;
  opacity: 1;
  transition: max-width 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
}

.nav-logo.logo-collapsed .logo-rest,
.nav-logo.logo-collapsed .logo-sep {
  max-width: 0;
  opacity: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--black);
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-ghost {
  height: 36px;
  padding: 0 1rem;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}

.btn-ghost:hover {
  color: var(--black);
  background: var(--bg-card);
}

.btn-solid {
  height: 36px;
  padding: 0 1rem;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  background: var(--black);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s;
}

.btn-solid:hover {
  opacity: 0.85;
}

/* ===========================
   HERO
   =========================== */

.hero {
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 2rem 0;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-headline {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 20px;
}

.hero-subline {
  font-size: 20px;
  line-height: 1.65;
  color: var(--body-text);
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

.btn-large {
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-large:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border);
}

/* Screenshot container */
.hero-screenshot {
  width: 100%;
  max-width: 960px;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.screenshot-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
}

.screenshot-body {
  background: #F0EAD4;
  height: 420px;
  overflow: hidden;
}

.map-mockup {
  display: flex;
  height: 100%;
}

.map-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-sidebar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body-text);
}

.map-sidebar-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}

.map-sidebar-name span {
  font-size: 12px;
  font-weight: 400;
  color: var(--body-text);
}

.stat-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  padding: 3px 10px;
}

.map-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--body-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.map-sidebar-row strong {
  font-weight: 700;
  color: var(--black);
}

.map-area {
  flex: 1;
  position: relative;
  background: #E0D8BC;
  overflow: hidden;
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--white) 1px, transparent 1px),
    linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}

.map-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--body-text);
  opacity: 0.5;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.map-marker:hover {
  opacity: 1;
  transform: scale(1.2);
}

.map-marker.active {
  background: var(--black);
  opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.15);
}

.m1 { top: 38%; left: 42%; }
.m2 { top: 22%; left: 58%; }
.m3 { top: 55%; left: 65%; }
.m4 { top: 70%; left: 30%; }
.m5 { top: 30%; left: 25%; }
.m6 { top: 60%; left: 50%; }

.map-tooltip {
  position: absolute;
  top: calc(38% - 64px);
  left: calc(42% + 10px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  pointer-events: none;
}

.map-tooltip span {
  font-weight: 400;
  color: var(--body-text);
}

/* ===========================
   LOGO STRIP — MARQUEE
   =========================== */

.logo-strip {
  width: 100%;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
}

.logo-strip-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--body-text);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

/* Scrolling track */
.marquee-track {
  overflow: hidden;
  width: 100%;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-inner:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-item {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--body-text);
  opacity: 0.55;
  white-space: nowrap;
  padding: 0 32px;
  transition: opacity 0.2s, color 0.2s;
  cursor: default;
}

.logo-item:hover {
  opacity: 1;
  color: var(--black);
}

.logo-sep {
  font-size: 18px;
  color: var(--border);
  flex-shrink: 0;
  line-height: 1;
}

/* ===========================
   PANEL SECTION (Notion-style)
   =========================== */

.panel-section {
  padding: 100px 2rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.panel-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: start;
}

/* LEFT COLUMN */
.panel-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 88px; /* below nav */
}

.panel-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-text);
  opacity: 0.55;
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--black);
}

/* Cards */
.panel-cards {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-card {
  width: 100%;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 28px 1fr 20px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.panel-card:hover {
  background: var(--bg-card);
}

.panel-card.active {
  background: var(--black);
}

.pc-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--body-text);
  opacity: 0.5;
  flex-shrink: 0;
}

.panel-card.active .pc-num {
  color: rgba(255,255,255,0.4);
  opacity: 1;
}

.pc-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.panel-card.active .pc-title {
  color: var(--white);
}

.pc-desc {
  font-size: 12px;
  color: var(--body-text);
  line-height: 1.45;
}

.panel-card.active .pc-desc {
  color: rgba(255,255,255,0.55);
}

.pc-arrow {
  font-size: 14px;
  color: var(--body-text);
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.panel-card:hover .pc-arrow,
.panel-card.active .pc-arrow {
  opacity: 1;
  color: var(--white);
}

/* RIGHT COLUMN */
.panel-right {
  position: relative;
  height: 540px;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.panel-display {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  display: flex;
  align-items: flex-end;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.panel-display.active {
  opacity: 1;
  pointer-events: auto;
}

.pd-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}

.pd-number--light {
  color: rgba(255,255,255,0.9);
}

.pd-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.pd-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  max-width: 420px;
}

.pd-source {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-style: italic;
  margin-top: 4px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .btn-ghost {
    display: none;
  }
}

@media (max-width: 960px) {
  .panel-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .panel-left {
    position: static;
  }

  .panel-right {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 36px 1.25rem 0;
  }

  .hero-subline {
    font-size: 17px;
  }

  .map-sidebar {
    display: none;
  }

  .screenshot-body {
    height: 280px;
  }
}

/* ===========================
   IDENTITY SECTION
   =========================== */

.identity-section {
  padding: 96px 2rem;
  border-top: 1px solid var(--border);
}

.identity-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.identity-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-text);
  margin-bottom: 20px;
}

.identity-headline {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--black);
}

.identity-underline {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--black);
  transition: opacity 0.2s;
}

.identity-underline:hover {
  opacity: 0.6;
}

.identity-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-text);
  margin-top: 4px;
}

.identity-text strong {
  color: var(--black);
  font-weight: 600;
}

@media (max-width: 768px) {
  .identity-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ===========================
   FEATURE DARK SECTION
   =========================== */

.feature-dark {
  background: var(--black);
  padding: 96px 2rem;
  margin: 0 64px;
  border-radius: 20px;
  transition: margin 1s cubic-bezier(0.4, 0, 0.2, 1), border-radius 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-dark.fd-expanded {
  margin: 0;
  border-radius: 0;
}

.feature-dark-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-dark-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 24px;
}

.feature-dark-title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}

.feature-dark-body {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 32px;
}

.feature-dark-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.feature-dark-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.feature-dark-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-dark-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 28px 32px;
  transition: background 0.2s ease;
}

.feature-dark-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.feature-dark-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.feature-dark-card-body {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 768px) {
  .feature-dark-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Sweden map animation */
.swe-map-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 55px;
}

.swe-map-container {
  position: relative;
  aspect-ratio: 1 / 2;
  width: min(390px, 100%);
}

.swe-map-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: block;
}

.swe-map-layer.swe-visible {
  opacity: 1;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  background: var(--black);
  padding: 64px 2rem 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.35);
  max-width: 240px;
}

.footer-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.22);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 500px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ===========================
   RESEARCH PAGE INTRO BANNER
   =========================== */

.research-intro {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 56px 2rem;
}

.research-intro-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.research-intro-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-text);
  margin-bottom: 16px;
}

.research-intro-title {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--black);
}

.research-intro-why-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-text);
  margin-bottom: 16px;
}

.research-intro-why {
  font-size: 15px;
  line-height: 1.8;
  color: var(--body-text);
}

@media (max-width: 768px) {
  .research-intro-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
