/* =========================================================
   network2all — Design Tokens
   ========================================================= */
:root {
  /* Color */
  --bg: #F7F8F8;
  --bg-alt: #EFF1F1;
  --surface: #FFFFFF;
  --text: #222325;
  --text-muted: #6C6E70;   /* brand grey, from logo */
  --accent: #FF5000;        /* brand orange-red, from logo */
  --accent-dark: #D9430A;
  --dark: #1C1D1F;
  --dark-text: #F2F3F3;
  --dark-text-muted: #9A9C9D;
  --line: #DEE1E1;
  --line-dark: #313335;

  /* Type */
  --font-display: "Space Grotesk", "Arial", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.section-label-row .eyebrow::before {
  content: "// ";
  color: var(--text-muted);
  opacity: 0.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

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

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

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 248, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo img { height: 26px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  position: relative;
}
.main-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 22px; display: block; }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  color: var(--text);
  max-width: 15ch;
}

.hero h1 .accent-word { color: var(--accent); }

.hero-sub {
  margin-top: 26px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.hero-visual svg { width: 100%; height: 100%; }

/* Network graph nodes */
.node {
  fill: var(--surface);
  stroke: var(--text-muted);
  stroke-width: 1.4;
}
.node-hub {
  fill: var(--accent);
  stroke: var(--accent);
}
.edge {
  stroke: var(--line);
  stroke-width: 1.4;
  fill: none;
}
.edge-active {
  stroke: var(--accent);
  stroke-width: 1.6;
  fill: none;
  stroke-dasharray: 6 8;
  animation: dash 5s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -140; }
}
.pulse {
  fill: var(--accent);
  opacity: 0;
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0% { opacity: 0; r: 3; }
  30% { opacity: 0.9; }
  70% { opacity: 0; r: 7; }
  100% { opacity: 0; r: 7; }
}

/* =========================================================
   Sections (generic)
   ========================================================= */
section { padding: 96px 0; }

.section-alt { background: var(--bg-alt); }

/* About */
.about .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.about h2 {
  font-size: clamp(26px, 3vw, 36px);
  max-width: 12ch;
}

.about-body p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 58ch;
}
.about-body p + p { margin-top: 18px; }

.about-legal {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  opacity: 0.75;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.18s ease;
}
.service-card:hover { background: var(--bg-alt); }

.service-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Why us */
.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.why-item {
  padding: 36px 8px 0 0;
  border-right: 1px solid var(--line);
}
.why-item:last-child { border-right: none; }

.why-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.why-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Contact (dark) */
.contact {
  background: var(--dark);
  color: var(--dark-text);
}

.contact .eyebrow { color: var(--accent); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
}

.contact h2 {
  color: var(--dark-text);
  font-size: clamp(28px, 3.6vw, 44px);
  max-width: 16ch;
}

.contact-sub {
  margin-top: 20px;
  color: var(--dark-text-muted);
  font-size: 16px;
  max-width: 44ch;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
}

.contact-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 17px;
}

.contact-link .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dark-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 78px;
}

.contact-link a,
.contact-link .value {
  color: var(--dark-text);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.contact-link a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--line-dark);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-row img { height: 18px; opacity: 0.9; }

.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dark-text-muted);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 900px) {
  .header-phone { display: block; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; margin: 0 auto; order: -1; }

  .about .container { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }

  .why-list { grid-template-columns: 1fr; }
  .why-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 28px;
    margin-bottom: 28px;
  }
  .why-item:last-child { border-bottom: none; margin-bottom: 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .site-header.nav-open .mobile-nav-panel { display: flex; }
}

.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 12px var(--gutter) 24px;
}
.mobile-nav-panel a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.mobile-nav-panel a:last-child { border-bottom: none; }

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
