/* ============================================================
   NetInfra.ai — Network & Cloud Automation
   Premium B2B infrastructure consulting aesthetic
   ============================================================ */

:root {
  --bg:        #070b16;
  --bg-2:      #0b1020;
  --bg-alt:    #0a0f1d;
  --panel:     #10162a;
  --panel-2:   #131a30;
  --line:      #1e2740;
  --line-soft: #18203a;
  --text:      #e7ecf5;
  --text-dim:  #9aa6c0;
  --text-mute: #6c7896;
  --accent:    #56b6ff;
  --accent-2:  #7ee0c9;
  --accent-deep: #2b6cff;
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1160px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --shadow:    0 24px 60px -30px rgba(0,0,0,.8);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 700; }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,11,22,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(7,11,22,.88); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; color: var(--text); }
.brand__name { font-size: 20px; letter-spacing: -0.01em; line-height: 1; display: inline-flex; align-items: baseline; }
.brand__net { font-weight: 300; color: var(--text-dim); }
.brand__infra { font-weight: 700; color: var(--text); }
.brand__dot { font-weight: 500; color: var(--accent); }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 15px; color: var(--text-dim); font-weight: 500;
  transition: color .2s var(--ease); position: relative;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 8px;
  background: var(--panel);
  transition: border-color .2s var(--ease), background .2s var(--ease) !important;
}
.nav__cta:hover { border-color: var(--accent); background: var(--panel-2); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s var(--ease); }

/* ============ SHARED SECTION ============ */
.section { padding: 108px 0; position: relative; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section__head { max-width: 760px; margin: 0 0 60px; }
.section__head--tight { margin-bottom: 44px; }
.section__title { font-size: clamp(28px, 3.6vw, 42px); }
.section__lede { color: var(--text-dim); font-size: 18px; margin: 20px 0 0; max-width: 720px; }

/* ============ GRID BACKDROP ============ */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 92px;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(86,182,255,.10), transparent 60%),
    radial-gradient(700px 460px at 10% 8%, rgba(43,108,255,.08), transparent 62%),
    var(--bg);
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero__title { font-size: clamp(34px, 5.4vw, 62px); font-weight: 800; letter-spacing: -0.03em; max-width: 16ch; }
.hero__lede { color: var(--text-dim); font-size: clamp(17px, 1.6vw, 20px); margin: 26px 0 0; max-width: 62ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 9px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer; border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(180deg, #5cb8ff, #2b6cff);
  color: #04122b;
  box-shadow: 0 10px 30px -12px rgba(43,108,255,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(43,108,255,.7); }
.btn--ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); background: var(--panel-2); transform: translateY(-2px); }

/* ============ MATURITY JOURNEY ============ */
.journey { margin-top: 64px; }
.journey__track { position: relative; padding: 8px 0; }
.journey__line {
  position: absolute; top: 15px; left: 4%; right: 4%; height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent) 55%, var(--accent-deep));
  opacity: .55;
}
.journey__stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.journey__stage { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.journey__node {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(86,182,255,.10);
  position: relative; z-index: 1;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.journey__stage:hover .journey__node { background: var(--accent); transform: scale(1.25); box-shadow: 0 0 0 7px rgba(86,182,255,.16); }
.journey__label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px; color: var(--text-dim); letter-spacing: 0.01em;
}
.journey__caption { text-align: center; color: var(--text-mute); font-size: 14px; margin: 26px 0 0; }
.journey--compact { margin-top: 40px; margin-bottom: 12px; }

/* ============ MATURITY STAGE CARDS ============ */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stage-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  position: relative;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.stage-card:hover { transform: translateY(-4px); border-color: #2b3757; background: var(--panel-2); }
.stage-card__num {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--accent); opacity: .8; margin-bottom: 14px; letter-spacing: .08em;
}
.stage-card__title { font-size: 21px; margin-bottom: 12px; }
.stage-card__desc { color: var(--text-dim); font-size: 15px; margin: 0 0 18px; }
.stage-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.stage-card__list li {
  font-size: 14.5px; color: var(--text); padding-left: 20px; position: relative;
}
.stage-card__list li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent); opacity: .65;
}
.stage-card__note {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-size: 13.5px; color: var(--text-mute); line-height: 1.55;
}

/* ============ APPROACH ============ */
.approach { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.approach__step {
  display: grid; grid-template-columns: 90px 1fr; gap: 28px;
  padding: 36px 0; border-top: 1px solid var(--line-soft);
}
.approach__step:first-child { border-top: 0; }
.approach__marker span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel);
}
.approach__body h3 { font-size: 24px; margin-bottom: 10px; }
.approach__body > p { color: var(--text-dim); font-size: 16.5px; margin: 0 0 18px; max-width: 68ch; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tags span {
  font-size: 13px; color: var(--text-dim);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  padding: 6px 12px; border-radius: 7px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: -0.01em;
}

/* ============ SERVICE CARDS ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: #2b3757; background: var(--panel-2); }
.card:hover::after { width: 100%; }
.card__title { font-size: 20px; margin-bottom: 12px; }
.card__desc { color: var(--text-dim); font-size: 15px; margin: 0 0 18px; }
.card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.card__list li {
  font-size: 13px; color: var(--text-dim);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  padding: 5px 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace;
}

/* ============ USE CASES ============ */
.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.usecase {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.usecase:hover { transform: translateY(-4px); border-color: #2b3757; }
.usecase h3 { font-size: 19px; margin-bottom: 10px; }
.usecase p { color: var(--text-dim); font-size: 15px; margin: 0; }
.usecase--wide { grid-column: span 3; }
.usecase__q { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.usecase__q li {
  font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--accent-2);
  background: var(--bg-2); border-left: 2px solid var(--accent); padding: 9px 14px; border-radius: 0 7px 7px 0;
}

/* flow diagram */
.flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 20px; padding: 18px; background: var(--bg-2);
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
}
.flow__node {
  font-family: 'JetBrains Mono', monospace; font-size: 13.5px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: 8px; white-space: nowrap;
}
.flow__arrow { color: var(--accent); font-size: 18px; font-weight: 700; }

/* ============ ABOUT / PRINCIPLES ============ */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about__intro { position: sticky; top: 100px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.principles li {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--line-soft);
}
.principles li:first-child { border-top: 0; }
.principles__k { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 14px; }
.principles p { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }

/* outcomes strip */
.outcomes {
  margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.outcome {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.outcome:hover { transform: translateY(-4px); border-color: #2b3757; }
.outcome__k { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 13px; opacity: .8; }
.outcome h3 { font-size: 17px; margin: 12px 0 8px; letter-spacing: -0.01em; }
.outcome p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* who's behind */
.team { margin-top: 44px; max-width: 780px; }
.team .eyebrow { margin-bottom: 14px; }
.team__bio { margin: 0; font-size: 19px; line-height: 1.6; color: var(--text-dim); letter-spacing: -0.01em; }
.team__bio strong { color: var(--text); font-weight: 600; }

/* ============ TECHNOLOGY ============ */
.tech { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tech li {
  font-family: 'JetBrains Mono', monospace; font-size: 14.5px; color: var(--text-dim);
  background: var(--panel); border: 1px solid var(--line);
  padding: 11px 18px; border-radius: 9px;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.tech li:hover { color: var(--text); border-color: var(--accent); background: var(--panel-2); }

/* ============ ENGAGEMENTS ============ */
.engagements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.engagement {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.engagement:hover { transform: translateY(-4px); border-color: #2b3757; }
.engagement h3 { font-size: 20px; margin-bottom: 10px; }
.engagement p { color: var(--text-dim); font-size: 15px; margin: 0; }
.engagement ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.engagement ul li { font-size: 14px; color: var(--text); padding-left: 18px; position: relative; }
.engagement ul li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ============ FINAL CTA ============ */
.cta {
  position: relative; overflow: hidden;
  padding: 110px 0 118px;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 520px at 50% 0%, rgba(43,108,255,.16), transparent 62%),
    var(--bg-alt);
  text-align: center;
}
.cta__inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.cta__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.025em; margin: 0 auto; max-width: 24ch; }
.cta .journey__stages { max-width: 760px; margin: 0 auto; }
.cta .hero__actions { justify-content: center; }

/* ============ FOOTER ============ */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 34px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line-soft); }
.footer__brand p { color: var(--text-mute); font-size: 14px; margin: 12px 0 0; line-height: 1.7; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.footer__nav a { color: var(--text-dim); font-size: 15px; transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--text); }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; color: var(--text-mute); font-size: 13px; font-family: 'JetBrains Mono', monospace; }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .stages, .cards, .usecases, .engagements, .outcomes { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__intro { position: static; }
  .usecase--wide { grid-column: span 2; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 16px 28px 24px;
  }
  .nav__links.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav__links.is-open .nav__cta { text-align: center; margin-top: 8px; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: flex; }
  .stages, .cards, .usecases, .engagements, .outcomes { grid-template-columns: 1fr; }
  .usecase--wide { grid-column: span 1; }
  .journey__stages { grid-template-columns: repeat(3, 1fr); gap: 26px 0; }
  .journey__line { display: none; }
  .approach__step { grid-template-columns: 1fr; gap: 16px; }
  .approach__marker span { width: 52px; height: 52px; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow__arrow { transform: rotate(90deg); align-self: center; }
  .footer__legal { flex-direction: column; gap: 6px; }
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
