/* ============================================================
   Ziyavaya Technologies — design tokens
   ============================================================ */
:root {
  --ink:        #0F1A2B;
  --ink-deep:   #0A1420;
  --ink-line:   rgba(247, 245, 239, 0.12);
  --paper:      #F7F5EF;
  --paper-dim:  #ECE9DF;
  --teal:       #1F6F6B;
  --teal-bright:#2C8C82;
  --amber:      #E8A33D;
  --amber-dim:  #C98726;
  --slate:      #4B5768;
  --slate-soft: #6B7688;
  --text-light: #F2F1EC;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --max-width: 1120px;
  --radius: 4px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--slate); max-width: 62ch; }

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

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

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--text-light);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { background: var(--teal-bright); border-color: var(--teal-bright); transform: translateY(-1px); }

.btn-small { padding: 10px 20px; font-size: 0.85rem; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--text-light); }

.btn-large { padding: 18px 32px; font-size: 1.05rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 26, 43, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-mark { flex-shrink: 0; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--slate-soft);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 140ms ease;
}
.site-nav a:hover { color: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px 28px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid rgba(15,26,43,0.08);
}
.mobile-nav .btn { margin-top: 12px; align-self: flex-start; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-inner .btn-small { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--ink);
  color: var(--text-light);
  overflow: hidden;
}

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

.eyebrow-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  color: var(--text-light);
  max-width: 16ch;
}

.hero-lede {
  color: rgba(242, 241, 236, 0.72);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero .btn-ghost {
  color: var(--text-light);
  border-color: rgba(242, 241, 236, 0.35);
}
.hero .btn-ghost:hover { background: var(--text-light); color: var(--ink); border-color: var(--text-light); }

.hero-visual { position: relative; }

.network-svg { width: 100%; height: auto; }

.net-line {
  stroke: rgba(247, 245, 239, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-line 900ms ease forwards;
}
.net-node {
  transform-origin: center;
  opacity: 0;
  animation: pop-node 500ms ease forwards;
}
.node-teal { fill: var(--teal-bright); }
.node-amber { fill: var(--amber); }
.node-core { filter: drop-shadow(0 0 6px rgba(232, 163, 61, 0.35)); }

.net-line:nth-of-type(1) { animation-delay: 60ms; }
.net-line:nth-of-type(2) { animation-delay: 140ms; }
.net-line:nth-of-type(3) { animation-delay: 220ms; }
.net-line:nth-of-type(4) { animation-delay: 300ms; }
.net-line:nth-of-type(5) { animation-delay: 380ms; }
.net-line:nth-of-type(6) { animation-delay: 460ms; }
.net-line:nth-of-type(7) { animation-delay: 540ms; }
.net-line:nth-of-type(8) { animation-delay: 620ms; }
.net-line:nth-of-type(9) { animation-delay: 700ms; }
.net-line:nth-of-type(10) { animation-delay: 780ms; }

.net-node:nth-of-type(11) { animation-delay: 800ms; }
.net-node:nth-of-type(12) { animation-delay: 850ms; }
.net-node:nth-of-type(13) { animation-delay: 900ms; }
.net-node:nth-of-type(14) { animation-delay: 950ms; }
.net-node:nth-of-type(15) { animation-delay: 1000ms; }
.net-node:nth-of-type(16) { animation-delay: 1050ms; }
.net-node:nth-of-type(17) { animation-delay: 1100ms; }
.net-node:nth-of-type(18) { animation-delay: 1150ms; }

@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes pop-node { to { opacity: 1; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 40px; }
  .hero-visual { max-width: 320px; margin: 0 auto; }
}

/* ============================================================
   Stats band
   ============================================================ */
.stats-band {
  background: var(--paper-dim);
  border-bottom: 1px solid rgba(15,26,43,0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px 28px;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
  border-left: 2px solid var(--teal);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--ink);
}
.stat-unit { color: var(--amber-dim); }

.stat-label {
  font-size: 0.85rem;
  color: var(--slate-soft);
  max-width: 22ch;
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 96px 0; }

.section-head { max-width: 56ch; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { font-size: 1.05rem; }

.section-dark {
  background: var(--ink-deep);
  color: var(--text-light);
}
.section-head-light h2 { color: var(--text-light); }
.section-head-light p { color: rgba(242, 241, 236, 0.66); }

/* Services list */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(15,26,43,0.12);
}

.service-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(15,26,43,0.12);
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal);
  padding-top: 4px;
}

.service-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-body p { max-width: 58ch; }

@media (max-width: 700px) {
  .service-row { grid-template-columns: 1fr; gap: 10px; }
}

/* Process list */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-list li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  border-top: 2px solid var(--amber);
}

.process-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber);
}

.process-list h3 { color: var(--text-light); font-size: 1.15rem; }
.process-list p { color: rgba(242, 241, 236, 0.66); font-size: 0.95rem; }

@media (max-width: 860px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .process-list { grid-template-columns: 1fr; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.about-text { font-size: 1.02rem; }
.about-mark {
  justify-self: center;
  padding: 32px;
  background: var(--paper-dim);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(240px, 100%);
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-mark { order: -1; width: 140px; }
}

/* Contact */
.section-contact { background: var(--paper-dim); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15,26,43,0.12);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-soft);
}

.contact-item a { font-weight: 600; color: var(--ink); }
.contact-item a:hover { color: var(--teal); }

.contact-note {
  font-size: 0.82rem;
  color: var(--slate-soft);
  margin-top: 4px;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(242, 241, 236, 0.7);
  padding: 40px 0;
}

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

.brand-footer .brand-name { color: var(--text-light); }

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a { font-size: 0.88rem; color: rgba(242, 241, 236, 0.7); }
.footer-nav a:hover { color: var(--amber); }

.footer-copy { font-size: 0.82rem; margin: 0; color: rgba(242, 241, 236, 0.5); }
