:root {
  --bg-deep: #111317;
  --bg-canvas: #141619;
  --bg-panel: #1B1E23;
  --bg-elevated: #232730;
  --border: #2D333F;
  --border-strong: #464F60;
  --ink: #ECE8DF;
  --ink-muted: #A3AAB5;
  --ink-subtle: #737B88;
  --ochre: #D9A441;
  --ochre-hover: #E3B252;
  --sage: #74B876;
  --water: #5B97CC;
  --clay: #C97045;
  --alert: #D96259;
  --radius: 6px;
}

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

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.hidden {
  display: none !important;
}

/* --- Sticky Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 22, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-link .nav-inner-arrow {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-link:hover .nav-inner-arrow {
  transform: translateY(-1.5px);
}

.brand-wordmark {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.main-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.lang-btn.active {
  background: var(--bg-elevated);
  color: var(--ink);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 20px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ochre);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: var(--ochre-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--ochre);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-deep);
  padding: 64px 0 58px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 19, 23, 0.97) 0%, rgba(17, 19, 23, 0.88) 46%, rgba(17, 19, 23, 0.58) 100%),
    linear-gradient(180deg, rgba(17, 19, 23, 0.45) 0%, rgba(20, 22, 25, 0.25) 45%, rgba(20, 22, 25, 0.98) 100%),
    url("assets/hero-tin-bg.png");
  background-size: cover;
  background-position: right center;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  min-width: 0;
  width: 100%;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 20px;
}

/* Official NordCivil Lockup (unboxed, breathes cleanly on dark canvas) */
.hero-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  margin-bottom: 26px;
  cursor: pointer;
}

.hero-logo-title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-logo-sub {
  margin-top: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ochre);
  text-transform: uppercase;
}

/* Lager & Norrpil SVG Animation (rapp 0.7s sekvens med synlig ram från start) */
.anim-layers .nc-badge-fill {
  opacity: 1;
}

.anim-layers .nc-band-water {
  transform-origin: 32px 53.8px;
  transform: scaleX(0);
  animation: ncBandGrow 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
}

.anim-layers .nc-band-cut {
  transform-origin: 32px 47.8px;
  transform: scaleX(0);
  animation: ncBandGrow 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.anim-layers .nc-band-mark {
  transform-origin: 32px 41.8px;
  transform: scaleX(0);
  animation: ncBandGrow 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.20s forwards;
}

.anim-layers .nc-arrow-outer {
  opacity: 0;
  transform: translateY(8px);
  animation: ncArrowRise 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.26s forwards;
}

.anim-layers .nc-arrow-inner {
  opacity: 0;
  transform-origin: 32px 30px;
  transform: scale(0.65);
  animation: ncInnerPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) 0.42s forwards;
}

.anim-layers .nc-wordmark {
  opacity: 0;
  transform: translateX(-8px);
  animation: ncSlideWord 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.36s forwards;
}

.anim-layers .nc-tagline {
  opacity: 0;
  animation: ncFadeIn 0.32s ease-out 0.54s forwards;
}

@keyframes ncFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ncBandGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ncArrowRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ncInnerPop { 0% { opacity: 0; transform: scale(0.6); } 65% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ncSlideWord { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  .anim-layers * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.95rem);
  line-height: 1.13;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 700;
}

.hero-lead {
  margin: 16px 0 0;
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 650px;
}

.hero-cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.edge-points {
  margin: 34px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid rgba(70, 79, 96, 0.45);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  font-size: 0.88rem;
  color: var(--ink);
}

.edge-points li {
  border-left: 2px solid var(--ochre);
  padding-left: 12px;
  line-height: 1.4;
}
