/* ============================================================
   Luvanti — design tokens
   Palette sampled from the logo (deep navy field, white wordmark,
   soft slate-blue network mark). Deliberately monochrome — no
   borrowed accent hue — to match the calm, connected brand.
   Type: Outfit (display) / Inter (body) / IBM Plex Mono (data)
   ============================================================ */

:root {
  --ink:          #0E1A31;
  --navy-700:     #16305A;
  --accent:       #35507C;
  --accent-bright:#6B84A8;
  --amber:        #E8965A;

  --paper:      #F6F7FA;
  --surface:    #FFFFFF;
  --surface-2:  #EEF1F6;
  --line:       #DFE4EC;
  --text:       #101826;
  --text-muted: #4B5670;

  --grad: linear-gradient(135deg, var(--navy-700) 0%, var(--accent-bright) 100%);
  --grad-soft: linear-gradient(135deg, rgba(22,48,90,.10) 0%, rgba(107,132,168,.14) 100%);

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;

  --font-display: 'Outfit', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}

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

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(22,48,90,.45);
}
.btn--primary:hover { box-shadow: 0 10px 28px -8px rgba(107,132,168,.45); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); }

.btn--sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__mark {
  height: 74px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.brand__mark img { height: 100%; width: auto; object-fit: contain; display: block; }

.nav__links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14.5px;
  font-weight: 500;
}
.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--text); }

.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle-hint {
  display: none;
}

.nav__burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  margin: 18px 0 22px;
}
.hero p.lead {
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero__stats {
  display: flex;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.hero__stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--text);
  font-weight: 700;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .55;
  pointer-events: none;
}
.hero__bg svg { width: 100%; height: 100%; }
.node { fill: var(--accent); }
.node--alt { fill: var(--accent-bright); }
.edge { stroke: url(#edgeGrad); stroke-width: 1; opacity: .5; }
.pulse { animation: pulse 3.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: .35; r: 2.6; }
  50% { opacity: 1; r: 4; }
}

/* ---------- Terminal / signature widget ---------- */
.term {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(11,18,32,.35);
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--r { background: #ED6A5E; }
.dot--y { background: #F4BF4F; }
.dot--g { background: #61C554; }
.term__title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
}
.term__body { padding: 18px 20px 20px; }
.term__code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 18px;
  white-space: pre-wrap;
}
.term__code .kw { color: var(--accent); }

.metric__row {
  display: grid;
  grid-template-columns: 62px 1fr 68px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.metric__label { color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.metric__track {
  height: 8px;
  border-radius: 5px;
  background: var(--surface-2);
  overflow: hidden;
}
.metric__fill { height: 100%; border-radius: 5px; }
.metric__fill--before { width: 96%; background: linear-gradient(90deg, var(--amber), #d9532f); }
.metric__fill--after { width: 6%; background: var(--grad); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.metric__value { text-align: right; font-weight: 600; }

.term__result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-bright);
}

/* ---------- Section shell ---------- */
section { padding: 88px 0; }
.section__head { max-width: 640px; margin-bottom: 46px; }
.section__head h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 14px; }
.section__head p { color: var(--text-muted); margin: 14px 0 0; font-size: 16px; }

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.service {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.service:last-child { border-right: none; }
.service__icon {
  display: inline-block;
  width: 38px; height: 38px;
  margin-bottom: 22px;
  color: var(--accent);
}
.service__icon svg { width: 100%; height: 100%; }
.service h3 {
  font-size: 16.5px;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 700;
}
.service p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

.policy {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grad-soft);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.policy h3 {
  font-size: 18px;
  margin: 10px 0 8px;
  font-family: var(--font-display);
}
.policy p { color: var(--text-muted); margin: 0; font-size: 14.5px; max-width: 52ch; }
.policy .btn { flex-shrink: 0; }

/* ---------- Portfolio ---------- */
.portfolio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.case__sector {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  margin-bottom: 18px;
}
.case h3 { font-size: 20px; margin-bottom: 12px; }
.case p { color: var(--text-muted); margin: 0 0 18px; font-size: 15px; }
.case__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.case__tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  background: var(--grad-soft);
  padding: 4px 9px;
  border-radius: 5px;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: start;
}
.about p { color: var(--text-muted); font-size: 16.5px; margin: 16px 0 0; max-width: 56ch; }
.about p + p { margin-top: 14px; }
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  padding: 16px 20px 4px;
}
.facts dd {
  margin: 0;
  padding: 0 20px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.facts > div:last-child dd { border-bottom: none; }

/* ---------- CTA ---------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: -40% -10% auto -10%;
  height: 220px;
  background: var(--grad);
  filter: blur(90px);
  opacity: .35;
}
.cta h2 { color: #fff; font-size: clamp(26px, 3.6vw, 36px); position: relative; }
.cta p { color: #B9C2D9; max-width: 52ch; margin: 16px auto 34px; position: relative; font-size: 16px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta .btn--ghost { border-color: rgba(255,255,255,.25); color: #fff; }
.cta__direct { margin-top: 26px; font-family: var(--font-mono); font-size: 13px; color: #8C9AC2; position: relative; }
.cta__direct a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
footer { padding: 46px 0 40px; border-top: 1px solid var(--line); }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}
.footer__meta div + div { margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: none; }
  .service:nth-child(1), .service:nth-child(2) { border-bottom: 1px solid var(--line); }
  .portfolio { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 64px; }
  section { padding: 60px 0; }
  .services { grid-template-columns: 1fr; }
  .service { border-right: none !important; border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: none; }
  .cta { padding: 44px 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
