/* Adelan – Nordic technology palette */
:root {
  --navy: #0d3855;
  --ink: #0a1720;
  --paper: #f6f8f8;
  --mist: #e6eef1;
  --slate: #24313a;
  --muted: #65727c;
  --ice: #7cc7d8;
  --green: #4f8f6a;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --max-width: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  --font-display: "Satoshi", "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "General Sans", "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-card: 0 1px 0 rgba(13, 56, 85, 0.05), 0 12px 32px -16px rgba(13, 56, 85, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy);
  text-decoration-color: var(--ice);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.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;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 10px 14px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(246, 248, 248, 0.78);
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.scrolled {
  background: rgba(246, 248, 248, 0.92);
  border-bottom-color: var(--mist);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  object-fit: cover;
  box-shadow: 0 1px 0 rgba(13, 56, 85, 0.06);
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: var(--navy);
}

.nav-cta a {
  color: var(--paper);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 200ms ease, top 200ms ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--mist);
}
.btn-ghost:hover {
  background: var(--mist);
  color: var(--ink);
}

.btn-lg {
  padding: 16px 26px;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 10vw, 112px) 0 clamp(40px, 8vw, 80px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.hero-copy .lead {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 28px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.hero-art {
  position: relative;
}
.hero-art svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(13, 56, 85, 0.18));
}

/* ---------- Facts strip ---------- */
.facts {
  background: var(--mist);
  border-top: 1px solid rgba(13, 56, 85, 0.06);
  border-bottom: 1px solid rgba(13, 56, 85, 0.06);
  padding: 28px 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.fact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 6px;
  font-family: var(--font-mono);
}

.fact-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 10vw, 112px) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--paper) 0%, #eef3f5 100%);
}

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--slate);
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 199, 216, 0.5);
  box-shadow: 0 1px 0 rgba(13, 56, 85, 0.05), 0 24px 48px -20px rgba(13, 56, 85, 0.25);
}

.card-active {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fa 100%);
  border-color: rgba(124, 199, 216, 0.45);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-head h3 {
  margin: 0;
  font-size: 1.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--mist);
  padding: 4px 10px;
  border-radius: 999px;
}

.tag-live {
  color: var(--green);
  background: rgba(79, 143, 106, 0.12);
}

.card p {
  color: var(--slate);
  margin: 0;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--ice);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: gap 150ms ease;
}

.card-link:hover {
  gap: 12px;
  color: var(--ink);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about-copy p {
  font-size: 1.05rem;
}

/* ---------- Roadmap ---------- */
.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.roadmap li {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}

.roadmap li::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  width: 32px;
  height: 3px;
  background: var(--ice);
  border-radius: 0 0 3px 3px;
}

.step-label {
  color: var(--muted);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.roadmap h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.roadmap p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.section-contact {
  background: var(--ink);
  color: var(--paper);
}

.section-contact .eyebrow,
.section-contact .section-lead {
  color: rgba(246, 248, 248, 0.72);
}

.section-contact h2 {
  color: var(--paper);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.section-contact .btn-primary {
  background: var(--ice);
  color: var(--ink);
}

.section-contact .btn-primary:hover {
  background: #a3dae6;
  color: var(--ink);
}

.section-contact .meta-row {
  color: rgba(246, 248, 248, 0.6);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246, 248, 248, 0.12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tagline {
  margin: 0;
  color: rgba(246, 248, 248, 0.72);
  max-width: 32ch;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(246, 248, 248, 0.6);
  margin: 0 0 14px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(246, 248, 248, 0.85);
  font-size: 0.95rem;
}

.footer-list a {
  color: var(--paper);
  text-decoration-color: rgba(124, 199, 216, 0.5);
}

.footer-list a:hover {
  color: var(--ice);
}

.footer-bottom {
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(246, 248, 248, 0.55);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .hero-art-frame {
    margin: 0 auto;
    max-width: 320px;
  }
  .cards,
  .roadmap {
    grid-template-columns: 1fr;
  }
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-menu {
    position: absolute;
    top: 72px;
    right: var(--gutter);
    left: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--paper);
    border: 1px solid var(--mist);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: 0 20px 40px -20px rgba(13, 56, 85, 0.25);
    display: none;
  }
  .nav-menu.is-open {
    display: flex;
  }
  .nav-menu a {
    padding: 10px 8px;
    border-radius: var(--radius-sm);
  }
  .nav-menu a:hover {
    background: var(--mist);
  }
  .nav-cta a {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .facts-grid {
    grid-template-columns: 1fr;
  }
}

