/* ═══════════════════════════════════════════════
   erigo-base.css — Shared styles across all pages
   Pixel-matched to erigo.se design
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Variables ──────────────────────────────── */
:root {
  --bg:         #0a0c0e;
  --bg-hero:    #0d1a14;
  --nav-bg:     #0e1012;
  --topbar-bg:  #080a0c;
  --teal:       #00c896;
  --teal-btn:   #0d9e78;
  --teal-hover: #00e5a8;
  --text:       #ffffff;
  --text-muted: #8a9ab0;
  --text-dim:   #4a5568;
  --border:     rgba(255,255,255,0.08);
  --border-nav: rgba(255,255,255,0.06);
}

/* ─── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── TOP BAR ────────────────────────────────── */
.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.topbar-item img,
.topbar-item .icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.topbar-lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: color 0.2s;
}
.topbar-lang:hover { color: var(--text); }

/* ─── NAVIGATION ─────────────────────────────── */
nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-nav);
  padding: 0 3rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-dots {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 2px;
}
.nav-logo-dots span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}
.nav-logo-dots span:first-child {
  width: 4px;
  height: 4px;
  opacity: 0.45;
}
.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  height: 64px;
  gap: 0;
  margin: 0 2rem;
}
.nav-links li {
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 600;
}

/* VR World nav item — special highlight */
.nav-links a.nav-vr {
  color: var(--teal);
  font-weight: 600;
  gap: 0.4rem;
}
.nav-links a.nav-vr:hover { color: var(--teal-hover); }
.nav-links a.nav-vr.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-login {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
}
.btn-login:hover { border-color: rgba(255,255,255,0.2); }

.btn-demo {
  background: var(--teal-btn);
  color: #fff;
  border-radius: 8px;
  padding: 0.6rem 1.3rem;
}
.btn-demo:hover {
  background: #0bb88a;
  transform: translateY(-1px);
}

.btn-demo-hero {
  background: var(--teal-btn);
  color: #fff;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}
.btn-demo-hero:hover { background: #0bb88a; transform: translateY(-1px); }

.btn-priser {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}
.btn-priser:hover { border-color: rgba(255,255,255,0.35); }

/* Search icon */
.nav-search {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
}
.nav-search:hover { color: var(--text); }

/* ─── BREADCRUMB ─────────────────────────────── */
.breadcrumb {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-nav);
  padding: 0.7rem 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--teal); }

/* ─── HERO ───────────────────────────────────── */
.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d1a14 0%, #080a0c 60%);
}

/* Subtle radial glow in hero background */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: 5%;
  width: 55%;
  height: 110%;
  background: radial-gradient(ellipse at center,
    rgba(0,180,120,0.07) 0%,
    transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 2rem;
  width: fit-content;
}
.hero-badge svg { width: 13px; height: 13px; }

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin-bottom: 1.3rem;
}

/* Gradient text — matches Erigo's purple→teal gradient on "Learning Suite" */
.hero h1 .gradient-text {
  background: linear-gradient(90deg, #7c6dfa 0%, #4fc3f7 50%, #00c896 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Teal underline accent — matches "Kompetens under kontroll" style */
.hero h1 .underline-accent {
  position: relative;
  display: inline-block;
}
.hero h1 .underline-accent::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: var(--topbar-bg);
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.footer-logo-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}
.footer-logo-dots span {
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
}
.footer-logo-dots span:first-child { width:4px; height:4px; opacity:0.45; }
.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}
.footer-note { font-size: 0.78rem; color: var(--text-dim); }