/* ============================================================
   NÓRDICA TECHNOLOGY ADVISORY — Portal styles
   ============================================================ */
:root {
  --bg: #050d1f;
  --bg-deep: #020716;
  --bg-band: #061129;
  --bg-card: rgba(255,255,255,0.012);
  --border: rgba(120, 170, 255, 0.13);
  --border-strong: rgba(120, 170, 255, 0.28);
  --text: #e6ecf7;
  --text-soft: #b3c0d8;
  --text-dim: #6b7a96;
  --accent: #4a90e2;
  --accent-bright: #6aa9f0;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,13,31,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brandmark { display: flex; align-items: center; gap: 14px; }
.brandmark svg { width: 40px; height: 40px; color: var(--accent-bright); }
.brandmark .wordmark {
  font-family: var(--serif); font-weight: 500; font-size: 26px;
  letter-spacing: 0.16em; line-height: 1; color: var(--text);
}
.brandmark .tagline {
  font-size: 8.5px; letter-spacing: 0.42em; color: var(--text-dim);
  margin-top: 5px; text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-soft); padding: 8px 0; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--accent-bright); border-bottom-color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong);
  width: 44px; height: 44px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 500; color: #fff; background: var(--accent);
  border: 1px solid var(--accent); cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-bright); }
.btn.ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn.ghost:hover { background: rgba(74,144,226,0.08); }
.btn.small { padding: 11px 20px; font-size: 10.5px; }
.btn .arr { font-family: var(--mono); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--accent-bright);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.eyebrow.centered::after { content: ""; width: 32px; height: 1px; background: var(--accent); }

.display {
  font-family: var(--serif); font-weight: 500;
  line-height: 1.04; letter-spacing: -0.01em; color: var(--text);
  font-size: clamp(44px, 5vw, 72px);
  margin: 0;
}
.display .accent { color: var(--accent-bright); font-style: italic; }
.h-section {
  font-family: var(--serif); font-weight: 500; color: var(--text);
  font-size: clamp(34px, 3.6vw, 52px); line-height: 1.1; margin: 0;
  letter-spacing: -0.005em;
}
.h-section .accent { color: var(--accent-bright); font-style: italic; }
.lead { font-size: 17px; line-height: 1.6; color: var(--text-soft); }
.body-copy { font-size: 15px; line-height: 1.65; color: var(--text-soft); }

/* ---------- Sections ---------- */
section.block { padding: 110px 0; }
section.block.band { background: var(--bg-band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .lead { margin-top: 20px; }

/* ---------- Cards ---------- */
.num-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 34px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.num-card:hover { border-color: var(--border-strong); background: rgba(74,144,226,0.045); transform: translateY(-3px); }
.num-card .num {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em;
  color: var(--accent-bright); margin-bottom: 20px; font-weight: 500;
}
.num-card .title {
  font-family: var(--serif); font-size: 27px; font-weight: 500;
  line-height: 1.15; color: var(--text); margin: 0 0 14px;
}
.num-card .copy { font-size: 14px; line-height: 1.6; color: var(--text-soft); }

.pillar {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 42px 30px 38px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.pillar:hover { border-color: var(--border-strong); background: rgba(74,144,226,0.045); transform: translateY(-3px); }
.pillar .roman { font-family: var(--serif); font-size: 32px; color: var(--accent-bright); letter-spacing: 0.1em; margin-bottom: 24px; }
.pillar .icon { width: 52px; height: 52px; margin-bottom: 28px; color: var(--accent-bright); }
.pillar .icon svg { width: 100%; height: 100%; }
.pillar .label { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-bright); font-weight: 500; margin-bottom: 8px; }
.pillar .name { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.pillar .desc { font-size: 13px; line-height: 1.6; color: var(--text-soft); }

/* ---------- Stats ---------- */
.stats-band { background: var(--bg-band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 44px 36px;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat .s-icon { width: 38px; height: 38px; color: var(--accent-bright); flex-shrink: 0; margin-top: 6px; }
.stat .s-icon svg { width: 100%; height: 100%; }
.stat .s-num { font-family: var(--serif); font-size: 42px; color: var(--accent-bright); line-height: 1; font-weight: 500; }
.stat .s-label { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text); font-weight: 600; margin-top: 10px; }
.stat .s-detail { font-size: 13px; line-height: 1.5; color: var(--text-soft); margin-top: 6px; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: stretch; }
.svc-arrow { display: flex; align-items: center; justify-content: center; }
.svc-arrow svg { width: 26px; height: 26px; color: var(--accent-bright); opacity: 0.85; }
.svc-card { display: flex; flex-direction: column; padding: 34px 32px 0; }
.svc-card .head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.svc-card .head-row svg { width: 34px; height: 34px; color: var(--accent-bright); flex-shrink: 0; margin-top: 2px; }
.svc-card .copy { margin-top: 14px; flex: 1; }
.svc-card .meta {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); margin-top: 26px; padding: 15px 0;
  font-size: 12.5px; color: var(--text-soft);
}
.svc-card .price {
  border-top: 1px solid var(--border);
  padding: 20px 0 26px; text-align: center;
  font-family: var(--serif); font-size: 28px; color: var(--accent-bright);
}

/* ---------- KV ---------- */
.kv .key { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.kv .val { font-size: 17px; color: var(--text); font-weight: 500; }

/* ---------- Checklist ---------- */
.checklist { display: flex; flex-direction: column; }
.check-item { display: flex; gap: 18px; padding: 20px 0; }
.check-item + .check-item { border-top: 1px solid var(--border); }
.check-item svg { width: 20px; height: 20px; color: var(--accent-bright); flex-shrink: 0; margin-top: 3px; }
.check-item .t { font-family: var(--serif); font-size: 20px; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.check-item .d { font-size: 13.5px; color: var(--text-soft); line-height: 1.55; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-deep); border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-band .wrap {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center;
  padding-top: 90px; padding-bottom: 90px; position: relative; z-index: 1;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 64px 0 48px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 0.8fr 1.1fr 1.1fr; gap: 48px; }
.site-footer h4 { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 18px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { font-size: 14px; color: var(--text-soft); transition: color 0.2s; }
.site-footer ul a:hover { color: var(--accent-bright); }
.site-footer .quote { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--text); line-height: 1.4; margin-top: 22px; max-width: 380px; }
.site-footer .bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-dim);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 110px 0 80px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero .lead { margin-top: 26px; max-width: 720px; }

/* ---------- Grid utilities ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero .hero-img { position: absolute; top: 0; right: 0; bottom: 0; width: 68%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero .hero-fade-x { position: absolute; inset: 0; background: linear-gradient(95deg, var(--bg) 0%, var(--bg) 40%, rgba(5,13,31,0.72) 58%, rgba(5,13,31,0.12) 82%, rgba(5,13,31,0) 100%); }
.hero .hero-fade-y { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(5,13,31,0) 0%, rgba(5,13,31,0.85) 100%); }

/* ---------- Contact form ---------- */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .field.full { grid-column: 1 / -1; }
.contact-form label {
  display: block; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px; font-weight: 500;
}
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-family: var(--sans); font-size: 15px;
  padding: 14px 16px; outline: none; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }

/* ---------- Insights ---------- */
.insight-meta {
  display: flex; gap: 16px; align-items: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim);
}
.insight-card { display: flex; flex-direction: column; }
.insight-card .insight-meta { margin-bottom: 18px; }
.insight-card .title { display: block; }
.insight-card a.title:hover { color: var(--accent-bright); }
.insight-card .more {
  margin-top: auto; padding-top: 24px;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent-bright); font-weight: 500;
}
.article { max-width: 760px; margin: 0 auto; }
.article p { font-size: 16.5px; line-height: 1.78; color: var(--text-soft); margin: 0 0 26px; }
.article strong { color: var(--text); font-weight: 600; }
.article h3 {
  font-family: var(--serif); font-weight: 500; font-size: 29px; line-height: 1.2;
  color: var(--text); margin: 52px 0 18px;
}
.article h3 .n { color: var(--accent-bright); font-style: italic; margin-right: 10px; }
.article .pull {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 27px; line-height: 1.35; color: var(--accent-bright);
  text-align: center; padding: 34px 24px; margin: 44px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.article ul { margin: 0 0 26px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.article ul li { font-size: 16px; line-height: 1.65; color: var(--text-soft); }
.article ul li::marker { color: var(--accent-bright); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(5,13,31,0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 40px 24px;
  }
  .site-nav a { padding: 14px 0; font-size: 13px; width: 100%; border-bottom: 1px solid var(--border); }
  .site-nav a.active { border-bottom-color: var(--border); }
  .nav-open .site-nav { display: flex; }
  .nav-toggle { display: inline-flex; }
  .site-header .btn.small { display: none; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--border); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-arrow { transform: rotate(90deg); padding: 4px 0; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  .site-header .wrap { height: 72px; }
  .site-nav { padding: 8px 24px 20px; }
  .brandmark svg { width: 34px; height: 34px; }
  .brandmark .wordmark { font-size: 22px; }
  section.block { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .display { font-size: clamp(36px, 10vw, 48px); }
  .h-section { font-size: clamp(28px, 7.5vw, 38px); }
  .lead { font-size: 16px; }
  .hero .hero-img { width: 100%; opacity: 0.5; }
  .hero .hero-fade-x { background: linear-gradient(180deg, rgba(5,13,31,0.55) 0%, rgba(5,13,31,0.82) 70%, var(--bg) 100%); }
  .grid-2, .grid-4, .pillar-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; border-top: 1px solid var(--border); padding: 30px 8px; }
  .stat:first-child { border-top: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .btn { padding: 14px 20px; }
  .site-footer .bottom { flex-direction: column; gap: 10px; }
  .page-hero { padding: 72px 0 56px; }
  .cta-band .wrap { padding-top: 64px; padding-bottom: 64px; gap: 40px; }
}
