/* PSO Technologies — vendor-agnostic network automation
   Black & white base, signal-green + signal-blue accents. */

:root {
  --ink: #0b0f14;
  --ink-2: #18202a;
  --paper: #ffffff;
  --surface: #f6f8fa;
  --line: #e6eaee;
  --muted: #5b6670;
  --faint: #97a1ab;
  --green: #00c281; /* healthy node / "up" */
  --blue: #2e6bff; /* active link / data  */
  --green-soft: rgba(0, 194, 129, 0.12);
  --blue-soft: rgba(46, 107, 255, 0.1);

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --r: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

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

/* ---------- type ---------- */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}
p {
  color: var(--muted);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  position: relative;
  flex: none;
}
.brand .mark::before,
.brand .mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.brand .mark::before {
  width: 6px;
  height: 6px;
  background: var(--green);
  top: 6px;
  left: 6px;
  box-shadow: 0 0 0 0 var(--green);
}
.brand .mark::after {
  width: 6px;
  height: 6px;
  background: var(--blue);
  bottom: 6px;
  right: 6px;
}
.brand .mark .wire {
  position: absolute;
  inset: 0;
}
.brand .mark .wire::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: #fff;
  opacity: 0.6;
  top: 12.5px;
  left: 6px;
  transform: rotate(45deg);
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}
.menu a.link {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.menu a.link:hover {
  color: var(--ink);
}
.menu a.link.active {
  color: var(--ink);
}
.menu a.link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.72rem 1.25rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s,
    box-shadow 0.25s,
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 15, 20, 0.22);
}
.btn-primary .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-soft);
  animation: pulse 2.4s infinite;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1.02rem;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 194, 129, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(0, 194, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 194, 129, 0);
  }
}

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  margin: 1.1rem 0 1.3rem;
}
.hero h1 .accent {
  color: var(--blue);
}
.hero .lead {
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* monitor / topology console */
.console {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(11, 15, 20, 0.28);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.console-bar .dots {
  display: flex;
  gap: 6px;
}
.console-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}
.console-bar .dots i:nth-child(1) {
  background: #ff5f57;
}
.console-bar .dots i:nth-child(2) {
  background: #febc2e;
}
.console-bar .dots i:nth-child(3) {
  background: #28c840;
}
.console-bar .title {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  margin-left: 0.4rem;
}
.console-bar .live {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.console-bar .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
#net {
  display: block;
  width: 100%;
  height: 340px;
}

/* ---------- stats strip ---------- */
.stats {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 2rem var(--pad);
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: none;
}
.stat .num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}
.stat .num .u {
  color: var(--green);
}
.stat .lbl {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-top: 0.35rem;
}

/* ---------- generic section ---------- */
section.block {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section-head {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 {
  margin: 0.8rem 0 1rem;
}

/* feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.8rem;
  background: #fff;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(11, 15, 20, 0.28);
  border-color: transparent;
}
.card .ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: var(--green-soft);
}
.card:nth-child(2) .ico {
  background: var(--blue-soft);
}
.card .ico svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.98rem;
}

/* who we serve */
.serve {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.serve .vendors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.chip {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  background: #fff;
}
.serve-list {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.serve-list li {
  background: #fff;
  padding: 1.3rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.serve-list li .k {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green);
  flex: none;
  width: 2.2rem;
}
.serve-list li:nth-child(2) .k {
  color: var(--blue);
}
.serve-list li b {
  font-family: var(--display);
  font-weight: 600;
}
.serve-list li p {
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.step {
  padding: 2rem 1.8rem;
  border-left: 1px solid var(--line);
}
.step:first-child {
  border-left: none;
}
.step .no {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.1em;
}
.step h3 {
  margin: 1rem 0 0.5rem;
}
.step p {
  font-size: 0.96rem;
}
.step .line {
  height: 2px;
  background: var(--line);
  margin-top: 1.4rem;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.step .line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: translateX(-110%);
}
.step.in .line::after {
  animation: travel 2.2s ease-in-out infinite;
}
@keyframes travel {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: #aeb7c0;
  max-width: 44ch;
  margin: 1rem auto 2rem;
}
.cta-band .glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.cta-band .glow.g {
  background: var(--green);
  top: -160px;
  left: -80px;
}
.cta-band .glow.b {
  background: var(--blue);
  bottom: -180px;
  right: -60px;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--ink);
  position: relative;
  z-index: 2;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.foot-grid .brand {
  margin-bottom: 0.8rem;
}
.foot-about {
  max-width: 30ch;
}
.foot-about p {
  font-size: 0.92rem;
}
.foot-links {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.9rem;
}
.foot-col a {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--ink);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.foot-bottom p {
  font-size: 0.85rem;
  color: var(--faint);
}
.social {
  display: flex;
  gap: 0.6rem;
}
.social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  transition:
    transform 0.2s,
    border-color 0.2s,
    color 0.2s;
  color: var(--muted);
}
.social a:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  color: var(--ink);
}
.social svg {
  width: 18px;
  height: 18px;
}

/* ---------- page hero (about / contact) ---------- */
.page-hero {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.page-hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}
.prose {
  max-width: 64ch;
}
.prose p {
  margin-bottom: 1.2rem;
  font-size: 1.06rem;
}
.prose p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 0.8;
  float: left;
  padding: 0.1em 0.12em 0 0;
  color: var(--ink);
}

/* values */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.value {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}
.value:nth-child(2) {
  border-color: var(--green);
}
.value:nth-child(3) {
  border-color: var(--blue);
}
.value h3 {
  margin-bottom: 0.5rem;
}
.value p {
  font-size: 0.96rem;
}

/* timeline */
.timeline {
  border-left: 2px solid var(--line);
  margin-top: 1rem;
}
.tl {
  padding: 0 0 2rem 1.8rem;
  position: relative;
}
.tl::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
}
.tl:nth-child(even)::before {
  border-color: var(--blue);
}
.tl .yr {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--faint);
  letter-spacing: 0.08em;
}
.tl h3 {
  margin: 0.3rem 0 0.4rem;
}
.tl p {
  font-size: 0.98rem;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: #fff;
  box-shadow: 0 30px 60px -40px rgba(11, 15, 20, 0.25);
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.45rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.contact-side .row {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-side .row .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  flex: none;
}
.contact-side .row:nth-child(2) .ic {
  background: var(--blue-soft);
}
.contact-side .row b {
  font-family: var(--display);
  font-weight: 600;
  display: block;
}
.contact-side .row span {
  font-size: 0.92rem;
  color: var(--muted);
}

/* legal pages */
.legal {
  max-width: 68ch;
}
.legal h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.8rem;
}
.legal p,
.legal li {
  font-size: 1rem;
}
.legal ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.legal li {
  margin-bottom: 0.4rem;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}
.reveal.d3 {
  transition-delay: 0.24s;
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-grid,
  .serve,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cards,
  .steps,
  .values {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(3) {
    border-left: none;
  }
  .stat {
    border-top: 1px solid var(--line);
  }
  .stat:nth-child(-n + 2) {
    border-top: none;
  }
  .steps .step {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .steps .step:first-child {
    border-top: none;
  }
  .menu .link {
    display: none;
  }
  #net {
    height: 280px;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    border-left: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
