/* SoftInvent ApS — site styles
   Design: "Direction A · Signal" (dark navy, electric blue, one glowing hero graphic).
   No build step: plain CSS, custom properties for the tokens. */

:root {
  --bg: #070B18;
  --surface: #0D1428;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #E8EDF8;
  --text-soft: #B7C1D9;
  --text-muted: #98A4BF;
  --text-faint: #6F7A94;
  --accent: #2F6BFF;
  --accent-light: #7FA9FF;
  --accent-deep: #12306F;

  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;

  --container: 1296px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 8px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a:hover {
  color: #B4CCFF;
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.eyebrow-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent-light);
}

.accent {
  color: var(--accent-light);
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms var(--ease-out);
}

.button:hover .icon {
  transform: translateX(3px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: #4A7EFF;
  color: #fff;
}

.button-glow {
  box-shadow: 0 0 0 1px rgba(127, 169, 255, 0.4), 0 12px 40px rgba(47, 107, 255, 0.35);
}

.button-glow:hover {
  box-shadow: 0 0 0 1px rgba(127, 169, 255, 0.6), 0 16px 48px rgba(47, 107, 255, 0.45);
}

.button-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0 22px;
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.button-light {
  background: #fff;
  color: var(--accent-deep);
  font-weight: 600;
  padding: 0 26px;
}

.button-light:hover {
  background: #EEF3FF;
  color: var(--accent-deep);
}

.button-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 46px;
  height: 28px;
  fill: var(--accent);
  flex-shrink: 0;
}

.brand-mark-small {
  width: 30px;
  height: 18px;
  fill: #4B6FB8;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  color: var(--text-soft);
  transition: color 160ms var(--ease-out);
}

.nav-list a:hover {
  color: var(--text);
}

.nav-list .nav-lang {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  min-height: 32px;
}

.nav-list .nav-lang:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 220ms var(--ease-out), top 220ms var(--ease-out);
}

.nav-toggle-bar:nth-child(1) {
  top: 16px;
}

.nav-toggle-bar:nth-child(2) {
  top: 26px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) 0 clamp(72px, 8vw, 120px);
}

.hero-backdrop {
  position: absolute;
  top: -40px;
  right: -8vw;
  width: min(1100px, 90vw);
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 30%);
  mask-composite: intersect;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 320px;
  background: linear-gradient(180deg, rgba(7, 11, 24, 0) 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* Danish copy runs longer; keep the headline at three lines on desktop. */
html[lang="da"] .hero h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-soft);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  max-width: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.55) 0%, rgba(47, 107, 255, 0) 70%);
  filter: blur(10px);
  animation: breathe 6s ease-in-out infinite;
}

.hero-graphic {
  position: relative;
  width: min(700px, 112%);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(47, 107, 255, 0.35));
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 7vw, 96px) 0;
}

.section-tight {
  padding-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-muted);
}

.section-head-narrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 40px;
}

/* Services */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.card:hover {
  border-color: rgba(127, 169, 255, 0.35);
  transform: translateY(-2px);
}

.card p {
  color: var(--text-muted);
}

.card-highlight {
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.18) 0%, rgba(47, 107, 255, 0.05) 100%);
  border-color: rgba(127, 169, 255, 0.3);
}

.card-highlight p {
  color: var(--text-soft);
}

.card-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Consulting */

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-soft);
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.card-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
}

/* How we build */

.panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
  padding: clamp(40px, 5vw, 80px) clamp(24px, 4.5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.panel-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-diagram {
  width: min(440px, 100%);
  height: auto;
}

.ring {
  stroke-width: 1;
}

.ring-outer {
  stroke: rgba(127, 169, 255, 0.18);
}

.ring-mid {
  stroke: rgba(127, 169, 255, 0.28);
}

.ring-inner {
  stroke: rgba(127, 169, 255, 0.45);
}

.ring-core {
  fill: rgba(47, 107, 255, 0.25);
  stroke: var(--accent-light);
  stroke-width: 1.5;
}

.arch-slice {
  fill: rgba(127, 169, 255, 0.035);
}

.arch-slice-alt {
  fill: rgba(127, 169, 255, 0.075);
}

.arch-slice-hl {
  fill: rgba(47, 107, 255, 0.28);
  stroke: var(--accent-light);
  stroke-width: 1.2;
  stroke-linejoin: round;
  animation: slice-breathe 4s ease-in-out infinite;
}

.arch-bound {
  stroke: rgba(127, 169, 255, 0.28);
  stroke-width: 1;
}

.arch-flow {
  stroke: rgba(127, 169, 255, 0.45);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  animation: dep-flow 1.6s linear infinite;
}

.arch-flow-static {
  stroke: rgba(127, 169, 255, 0.6);
  stroke-width: 1.2;
}

.arch-chevron {
  stroke: var(--accent-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.arch-halo {
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 6px;
  stroke-linejoin: round;
}

@keyframes dep-flow {
  to {
    stroke-dashoffset: -10;
  }
}

@keyframes slice-breathe {
  0%,
  100% {
    fill: rgba(47, 107, 255, 0.22);
  }

  50% {
    fill: rgba(47, 107, 255, 0.38);
  }
}

.node {
  fill: var(--accent-light);
}

.diagram-label {
  font-family: var(--font-body);
  font-size: 12px;
  fill: var(--text-soft);
}

.diagram-label-strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  fill: var(--text);
}

.diagram-label-muted {
  font-size: 11px;
  fill: var(--text-muted);
}

.diagram-label-accent {
  font-size: 11px;
  letter-spacing: 1.5px;
  fill: var(--accent-light);
}

.panel-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.panel-copy .practice-list {
  align-self: stretch;
}

.panel-copy > p:not(.eyebrow) {
  font-size: 17px;
  color: var(--text-muted);
}

.practice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 4px;
  font-size: 15px;
}

.practice-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.practice-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
}

/* Industries */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.industry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  background: var(--bg);
}

.industry h3 {
  font-size: 20px;
}

.industry p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Contact / CTA */

.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4.5vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
}

.cta-graphic {
  position: absolute;
  right: -40px;
  top: -70px;
  width: 460px;
  pointer-events: none;
  user-select: none;
}

.cta-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

.cta-copy h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 36px);
}

.cta-copy p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
}

.cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.cta-contact {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--text-faint);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.footer-links a {
  color: var(--text-faint);
}

.footer-links a:hover {
  color: var(--text-soft);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 240ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-glow,
  .arch-flow,
  .arch-slice-hl {
    animation: none;
  }

  .arch-motion {
    display: none;
  }

  .button,
  .card {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1140px) {
  .nav-list {
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    min-height: 0;
    order: -1;
  }

  .hero-graphic {
    width: min(520px, 96%);
  }

  .hero-glow {
    width: 320px;
    height: 320px;
  }

  .panel-visual {
    order: 1;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-highlight {
    grid-column: 1 / -1;
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* The nav folds into the toggle menu: five links plus the language chip and the button no longer fit beside the brand. */
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px var(--gutter) 24px;
    background: rgba(7, 11, 24, 0.97);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    min-height: 48px;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
  }

  .nav-list .nav-lang {
    min-height: 48px;
    font-size: 15px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .site-nav .button {
    margin-top: 12px;
  }
}

@media (max-width: 768px) {
  .hero-backdrop {
    right: -30vw;
    width: 140vw;
    opacity: 0.18;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-highlight {
    grid-column: auto;
  }

  .practice-list {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions {
    align-items: stretch;
  }

  .cta-actions .button {
    width: 100%;
  }

  .cta-graphic {
    right: -140px;
    top: -40px;
    width: 380px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .industry {
    padding: 24px;
  }

  .card {
    padding: 24px;
  }

  .nav-list {
    gap: 0;
  }
}
