/* ============================================================
   Perspektiv — Design System
   ============================================================ */
:root {
  /* Brand — Spectrum (blue · green · amber, themed per product line)
     base is a calm deep slate; each track overrides --accent below.
     var names kept as "navy-*" but values are slate. */
  --navy-900: #0b1018;   /* deep slate  */
  --navy-800: #131c2b;   /* slate       */
  --navy-700: #1d2838;   /* light slate */
  --navy-600: #283546;   /* steel slate */

  /* default accent = blue (calm / AI) — tracks override this */
  --accent:        #3b82f6;
  --accent-bright: #60a5fa;
  --accent-soft:   rgba(59,130,246,0.12);
  --glow:          rgba(59,130,246,0.22);
  --btn-text:      #ffffff;
  --teal:          #2dd4bf;   /* green secondary (checkmarks) */

  /* Neutrals */
  --ink:      #0d1320;
  --slate-700:#334155;
  --slate-500:#64748b;
  --slate-300:#cbd5e1;
  --slate-100:#f1f5f9;
  --white:    #ffffff;
  --bg:       #ffffff;
  --bg-alt:   #f5f8fc;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(10, 17, 36, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(10, 17, 36, 0.30);
}

/* Per-track accent themes (set on <body data-track="…"> by components.js) */
body[data-track="ai-consulting"] {
  --accent:#3b82f6; --accent-bright:#60a5fa; --accent-soft:rgba(59,130,246,.12); --glow:rgba(59,130,246,.22); --btn-text:#fff;
}
body[data-track="custom-ai"] {
  --accent:#10b981; --accent-bright:#34d399; --accent-soft:rgba(16,185,129,.14); --glow:rgba(16,185,129,.20); --btn-text:#fff;
}
body[data-track="heimdal"] {
  --accent:#d97706; --accent-bright:#f59e0b; --accent-soft:rgba(217,119,6,.14); --glow:rgba(245,158,11,.22); --btn-text:#1a1205;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--slate-700); }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--slate-500); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease; text-decoration: none;
}
.btn--primary { background: var(--accent); color: var(--btn-text); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); text-decoration: none; transform: translateY(-1px); }
.btn--block { width: 100%; justify-content: center; }

/* ===================== Header / Nav ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .logo { width: auto; height: 30px; display: block; }
.brand-mark { display: inline-flex; color: var(--accent-bright); }
.brand-mark svg { width: 27px; height: 27px; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate-300); font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; color: var(--slate-300); display: flex; align-items: center; }
.cart-link:hover { color: #fff; }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.cart-count[hidden] { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }

/* ===================== Hero ===================== */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--glow), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff; padding: 96px 0 104px;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: rgba(226,232,240,.85); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero--page { padding: 72px 0 64px; }
.hero--page h1 { max-width: 22ch; }

/* ===================== Cards / Grid ===================== */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid #e6ebf3; border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 18px; }
.card-link { font-weight: 600; font-size: .95rem; }

.feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--slate-700); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800;
}

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

/* Sector chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
  background: #fff; border: 1px solid #e6ebf3; border-radius: 999px; padding: 8px 16px;
  font-size: .9rem; font-weight: 600; color: var(--navy-700);
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 60px; margin-bottom: 28px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===================== Shop ===================== */
.shop-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product {
  background: #fff; border: 1px solid #e6ebf3; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.product-media {
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85);
}
.product-media svg { width: 72px; height: 72px; }
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.1rem; }
.product-body p { font-size: .92rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }
.price { font-weight: 800; font-size: 1.25rem; color: var(--navy-900); }
.price small { font-weight: 500; font-size: .8rem; color: var(--slate-500); }

.cart-panel {
  position: sticky; top: 92px; background: #fff; border: 1px solid #e6ebf3;
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.cart-panel h3 { margin-bottom: 16px; }
.cart-items { list-style: none; padding: 0; margin: 0 0 16px; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eef2f8; }
.cart-item .ci-name { flex: 1; font-size: .9rem; font-weight: 600; }
.cart-item .ci-price { font-size: .85rem; color: var(--slate-500); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid #d7deea; background: #fff;
  cursor: pointer; font-weight: 700; color: var(--navy-700); line-height: 1;
}
.qty span { min-width: 20px; text-align: center; font-weight: 600; font-size: .9rem; }
.cart-empty { color: var(--slate-500); font-size: .92rem; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; margin: 8px 0 18px; }

/* ===================== Forms ===================== */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy-800); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #d7deea;
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { font-size: .85rem; color: var(--slate-500); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem; display: none; }
.form-status.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-status.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ===================== CTA band ===================== */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff; border-radius: 20px; padding: 56px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(226,232,240,.85); max-width: 52ch; margin: 0 auto 24px; }

/* ===================== Footer ===================== */
.site-footer { background: var(--navy-900); color: var(--slate-300); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--slate-300); font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: var(--slate-500); font-size: .92rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: var(--slate-500);
}

/* Dark overscroll / rubber-band area for the full-screen dark pages */
html:has(body[data-splash]),
html:has(body[data-page="start"]) { background: var(--navy-900); }
body[data-splash],
body[data-page="start"] { background: var(--navy-900); }

/* ===================== Splash / Chooser ===================== */
.splash {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  color: #fff;
  background:
    radial-gradient(1000px 560px at 78% -5%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(820px 520px at 6% 108%, rgba(16,185,129,.14), transparent 58%),
    radial-gradient(680px 480px at 50% 122%, rgba(245,158,11,.10), transparent 60%),
    linear-gradient(180deg, var(--navy-900), #070b12);
}
.splash-inner {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 24px; max-width: 1080px; margin: 0 auto; width: 100%;
}
.splash-brand {
  display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.4rem;
  color: #fff; margin-bottom: 36px;
}
.splash-brand .logo { width: auto; height: 44px; display: block; }
.splash-title {
  color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.7rem); max-width: 18ch; margin: 0 0 18px;
}
.splash-sub { color: rgba(226,232,240,.82); font-size: 1.15rem; max-width: 52ch; margin: 0 0 48px; }
.splash-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; }
.choice {
  display: flex; flex-direction: column; text-align: left; gap: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 30px 26px 26px; color: #fff; text-decoration: none;
  transition: .2s ease; position: relative; overflow: hidden;
}
.choice::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent; transition: .2s ease;
}
/* Each choice card carries its own spectrum colour (--cc / --ccb) */
.choice[data-track="ai-consulting"] { --cc:#3b82f6; --ccb:#60a5fa; }
.choice[data-track="custom-ai"]     { --cc:#10b981; --ccb:#34d399; }
.choice[data-track="heimdal"]       { --cc:#f59e0b; --ccb:#fbbf24; }
.choice:hover {
  transform: translateY(-5px); text-decoration: none;
  background: color-mix(in srgb, var(--cc) 10%, transparent);
  border-color: color-mix(in srgb, var(--cc) 55%, transparent);
}
.choice .c-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: color-mix(in srgb, var(--cc) 16%, transparent);
  color: var(--ccb); display: flex; align-items: center; justify-content: center;
}
.choice h2 { color: #fff; font-size: 1.3rem; margin: 4px 0 0; }
.choice p { color: rgba(226,232,240,.78); font-size: .95rem; margin: 0; flex: 1; }
.choice .c-go { color: var(--ccb); font-weight: 700; font-size: .92rem; margin-top: 6px; }
.splash-foot {
  text-align: center; padding: 24px; color: var(--slate-500); font-size: .85rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* Track badge + switch link in header */
.track-badge {
  color: var(--slate-300); font-weight: 500; font-size: .95rem;
  padding-left: 12px; margin-left: 4px; border-left: 1px solid rgba(255,255,255,.18);
}
.switch-link {
  color: var(--slate-500); font-size: .85rem; display: inline-flex; align-items: center; gap: 5px;
}
.switch-link:hover { color: #fff; text-decoration: none; }
.mobile-switch { display: none; }
.mobile-switch .switch-link { padding: 14px 24px; }

/* ===================== Get-in-touch (start) ===================== */
.start {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: #fff;
  background:
    radial-gradient(1000px 620px at 50% -12%, var(--glow), transparent 60%),
    linear-gradient(180deg, var(--navy-900), #070b12);
}
.start-inner {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; width: 100%;
}
.start-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 14px; }
.start-brand .brand-mark { display: inline-flex; color: var(--accent-bright); }
.start-brand .brand-mark svg { width: 26px; height: 26px; display: block; }
.start-eyebrow { color: var(--accent-bright); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.start-card {
  width: 100%; max-width: 520px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 30px;
}
.start-card h1 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.start-card .sub { color: rgba(226,232,240,.82); margin-bottom: 22px; }
.start .field label { color: var(--slate-300); }
.start-foot { text-align: center; padding: 22px; }
.start-foot a { color: var(--slate-500); font-size: .9rem; }
.start-ok { text-align: center; }
.start-ok .ok-mark {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-bright);
  display: flex; align-items: center; justify-content: center;
}
.start-ok h1 { color: #fff; }

/* ===================== Cookie consent banner ===================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 540px; margin: 0 auto;
  background: var(--navy-800); color: var(--slate-300);
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.cookie-banner p { margin: 0; flex: 1; min-width: 220px; font-size: .88rem; color: var(--slate-300); }
.cookie-banner .cc-actions { display: flex; gap: 10px; margin-left: auto; }
.cookie-banner .btn { padding: 8px 16px; font-size: .88rem; }

/* ===================== Responsive ===================== */
@media (max-width: 920px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .splash-choices { grid-template-columns: 1fr; max-width: 460px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .shop-layout { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .grid--3, .grid--4, .grid--2, .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 0; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-toggle { display: block; }
  .desktop-switch { display: none; }
  .mobile-switch { display: block; }
  .track-badge { display: none; }
}
