/* ==========================================================================
   Nordlytics AB — Company website
   ========================================================================== */

:root {
  --bg: #0a0e14;
  --bg-soft: #10151d;
  --bg-elevated: #151c26;
  --surface: #1a2330;
  --border: #243244;
  --text: #e9eff5;
  --text-soft: #a9b6c4;
  --text-muted: #75849a;
  --teal: #3ee6c4;
  --blue: #5cc8ff;
  --violet: #8b7bff;
  --grad: linear-gradient(120deg, #3ee6c4 0%, #5cc8ff 45%, #8b7bff 100%);
  --accent: #5cc8ff;
  --accent-soft: rgba(92, 200, 255, 0.12);
  --good: #4ade80;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font-sans: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo,
    Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 123, 255, 0.13), transparent 60%),
    radial-gradient(1000px 600px at -5% 5%, rgba(62, 230, 196, 0.08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

main { min-height: 70vh; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 20, 0.75);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); }
.site-header__brand:hover { text-decoration: none; }
.site-header__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad);
  color: #07101a;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}
.site-header__name { font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.site-header__right { display: flex; align-items: center; gap: 1.5rem; }
.site-header__nav { display: flex; gap: 1.3rem; }
.site-header__nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-header__nav a:hover { color: var(--text); text-decoration: none; }
.site-header__nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 720px) {
  .site-header__inner { flex-wrap: wrap; }
  .site-header__right { width: 100%; justify-content: space-between; }
  .site-header__nav { gap: 0.9rem; }
  .site-header__nav a { font-size: 0.88rem; }
  .site-header__cta { display: none; }
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--grad);
  color: #07101a;
  box-shadow: 0 10px 30px -12px rgba(92, 200, 255, 0.55);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface); }
.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; }

/* ---------------------------------------------------------------- Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.section__head { max-width: 720px; margin-bottom: 2.6rem; }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 0.6rem;
}
.section__title {
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
  font-weight: 750;
}
.section__lead { color: var(--text-soft); margin: 0; font-size: 1.08rem; }

/* ---------------------------------------------------------------- Hero (home) */
.hero { overflow: hidden; }
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7rem 1.5rem 4.5rem;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.hero__pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}
.hero__title {
  font-size: clamp(3rem, 2rem + 6.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 1.1rem;
  font-weight: 800;
}
.hero__title .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  color: var(--text-soft);
  font-size: 1.22rem;
  max-width: 640px;
  margin: 0 0 2rem;
}
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 3.2rem; }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.8rem;
}
.hero__meta-item .num {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__meta-item .label { color: var(--text-muted); font-size: 0.86rem; margin: 0.15rem 0 0; }

@media (max-width: 760px) {
  .hero__inner { padding: 4.5rem 1.5rem 3rem; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------- Page hero (subpages) */
.page-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem 1rem;
}
.page-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 0.7rem;
}
.page-hero__title {
  font-size: clamp(2.1rem, 1.3rem + 3.5vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
  font-weight: 800;
}
.page-hero__lead { color: var(--text-soft); font-size: 1.15rem; max-width: 680px; margin: 0; }

/* ---------------------------------------------------------------- Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.7rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #2f4156;
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(92, 200, 255, 0.25);
  margin-bottom: 0.4rem;
}
.card__icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.2rem; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.card__desc { color: var(--text-soft); font-size: 0.97rem; margin: 0; }
.card__list { list-style: none; padding: 0; margin: 0.3rem 0 0; }
.card__list li {
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 0.25rem 0 0.25rem 1.1rem;
  position: relative;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}
.card__link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
}
a.card { color: inherit; }
a.card, a.card * { text-decoration: none; }
a.card:hover .card__title { color: #fff; }

.chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }

/* ---------------------------------------------------------------- Product panel */
.product-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.product-panel__title { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.7rem; }
.product-panel__desc { color: var(--text-soft); margin: 0 0 1.4rem; }
.product-panel__side {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 1.3rem 1.4rem;
}
.product-panel__side h4 { margin: 0 0 0.7rem; font-size: 0.95rem; color: var(--text); }
.product-panel__side ul { margin: 0; padding-left: 1.1rem; color: var(--text-soft); font-size: 0.9rem; }
.product-panel__side li { margin: 0.25rem 0; }
.product-panel__side li::marker { color: var(--accent); }
@media (max-width: 860px) { .product-panel { grid-template-columns: 1fr; padding: 1.6rem; } }

/* ---------------------------------------------------------------- About / person */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-grid__text p { color: var(--text-soft); margin: 0 0 1rem; }
.about-grid__text p:last-child { margin-bottom: 0; }
.person-card {
  border-radius: 20px;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-soft));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.person-card__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.person-card__body { padding: 1.3rem 1.5rem 1.6rem; }
.person-card__name { font-size: 1.15rem; font-weight: 700; margin: 0; }
.person-card__role { color: var(--accent); font-size: 0.9rem; margin: 0.2rem 0 0; }
.person-card__bio { color: var(--text-soft); font-size: 0.9rem; margin: 0.8rem 0 0; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Facts table */
.facts {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}
.fact-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-top: 1px solid var(--border);
}
.fact-row:first-child { border-top: none; }
.fact-label {
  padding: 0.9rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
}
.fact-value { padding: 0.9rem 1.3rem; color: var(--text); font-size: 0.95rem; }
@media (max-width: 640px) {
  .fact-row { grid-template-columns: 1fr; }
  .fact-label { border-right: none; padding-bottom: 0.2rem; }
  .fact-value { padding-top: 0.2rem; }
}

/* ---------------------------------------------------------------- Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.contact-card__label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 0.55rem;
}
.contact-card__value { margin: 0; font-size: 1.02rem; }
.contact-card__value a { font-weight: 600; }
.contact-card__note { color: var(--text-muted); font-size: 0.86rem; margin: 0.5rem 0 0; }

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  background: linear-gradient(120deg, rgba(62, 230, 196, 0.10), rgba(92, 200, 255, 0.10) 45%, rgba(139, 123, 255, 0.12));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.8rem 2.5rem;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  font-weight: 800;
}
.cta-band p { color: var(--text-soft); margin: 0 0 1.6rem; }
.cta-band .btn { margin: 0.2rem 0.3rem; }

/* ---------------------------------------------------------------- Prose (legal pages) */
.prose { max-width: 780px; color: var(--text); }
.prose h2 {
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.9rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose p { color: var(--text-soft); margin: 0 0 1.05rem; }
.prose ul, .prose ol { color: var(--text-soft); padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin: 0.3rem 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose address { font-style: normal; color: var(--text-soft); margin: 0 0 1.1rem; line-height: 1.7; }
.prose .updated { color: var(--text-muted); font-size: 0.9rem; }

/* ---------------------------------------------------------------- Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4rem;
}
.site-footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.8rem 1.5rem 2.2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2rem;
}
.site-footer__brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 700; margin-bottom: 0.7rem; }
.site-footer__brand .site-header__mark { width: 28px; height: 28px; font-size: 0.85rem; }
.site-footer__tag { color: var(--text-soft); max-width: 280px; margin: 0 0 0.8rem; }
.site-footer__heading {
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin: 0 0 0.8rem;
}
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin: 0.35rem 0; }
.site-footer__links a { color: var(--text-soft); }
.site-footer__links a:hover { color: var(--text); }
.site-footer__legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 404 */
.not-found { max-width: var(--maxw); margin: 0 auto; padding: 7rem 1.5rem; text-align: center; }
.not-found__code {
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found p { color: var(--text-soft); }