/* ============================================================
   ADIUSSOFT — design tokens
   ============================================================ */
:root {
  --bg: #0E1720;
  --bg-raise: #14202B;
  --panel: #172431;
  --line: #24333F;
  --text: #E9EFF3;
  --text-dim: #94A7B6;
  --teal: #35BFA9;
  --teal-dim: #1F8C7C;
  --gold: #D6A653;
  --radius-sm: 6px;
  --radius-md: 12px;
  --wrap: 1180px;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

/* ============================================================
   Reset
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

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;
  }
}

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

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

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

ul { list-style: none; }

button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

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

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: #062421;
}
.btn-primary:hover { background: #46d1ba; }

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

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(14, 23, 32, 0.4);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(14, 23, 32, 0.92);
  border-bottom-color: var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 32px; height: 32px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(214, 166, 83, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.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 {
  padding: 168px 0 100px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(53, 191, 169, 0.08), transparent 60%),
    var(--bg);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}

.hero h1 {
  font-size: 46px;
  max-width: 15ch;
  margin-bottom: 22px;
}

.hero p.lede {
  font-size: 17.5px;
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 34px;
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats .num {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--text);
}
.hero-stats .label { font-size: 12.5px; color: var(--text-dim); }

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

.graph-edge {
  stroke: var(--teal-dim);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-edge 1.8s ease forwards;
}
.graph-node { animation: pop-node 0.5s ease backwards; }
.graph-node circle { fill: var(--panel); stroke: var(--teal); stroke-width: 1.6; }
.graph-node.node-core circle { fill: var(--teal); stroke: var(--teal); }
.graph-node.node-gold circle { fill: var(--gold); stroke: var(--gold); }
.graph-node text {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--text-dim);
}

.graph-pulse {
  fill: var(--teal);
  opacity: 0;
  animation: pulse-travel 3.2s ease-in-out infinite;
}

@keyframes draw-edge { to { stroke-dashoffset: 0; } }
@keyframes pop-node {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse-travel {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============================================================
   Section scaffolding
   ============================================================ */
section { padding: 96px 0; }
.section-head {
  max-width: 62ch;
  margin-bottom: 56px;
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 32px;
}
.section-head p {
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 16px;
}

/* ============================================================
   Solutions
   ============================================================ */
.solutions { border-bottom: 1px solid var(--line); background: var(--bg-raise); }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.solution-item {
  padding: 30px 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.solution-item:nth-child(3n+1) { border-left: none; }
.solution-item:nth-child(-n+3) { border-top: none; }

.solution-icon {
  width: 38px; height: 38px;
  margin-bottom: 18px;
  color: var(--teal);
}
.solution-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.solution-item p {
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 34ch;
}

/* ============================================================
   About
   ============================================================ */
.about .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
}
.about-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  position: sticky;
  top: 110px;
  align-self: start;
}
.about-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  font-weight: 600;
  margin-top: 10px;
}

.about-copy p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 18px;
  max-width: 62ch;
}
.about-copy p:first-child {
  color: var(--text);
  font-size: 18px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.about-stats .stat-num {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--teal);
  display: block;
  margin-bottom: 6px;
}
.about-stats .stat-label {
  font-size: 13px;
  color: var(--text-dim);
}

/* ============================================================
   How we work
   ============================================================ */
.how { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raise); }

.how-list { display: flex; flex-direction: column; }
.how-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.how-item:first-child { border-top: none; }
.how-item::before {
  content: "";
  position: absolute;
  left: 0; top: 28px; bottom: 28px;
  width: 2px;
  background: var(--line);
}
.how-item:hover::before { background: var(--teal); }

.how-item h3 {
  font-size: 18px;
  padding-left: 20px;
}
.how-item p {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 58ch;
}

/* ============================================================
   Contact
   ============================================================ */
.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 64px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--text-dim); }
.field input, .field textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--teal);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--teal);
  display: none;
}
.form-note.is-visible { display: block; }

.contact-info {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}
.contact-info .brand {
  margin-bottom: 20px;
}
.contact-info h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.contact-info address {
  font-style: normal;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-dim);
}
.contact-meta a:hover { color: var(--teal); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { padding: 44px 0; }
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { font-size: 13.5px; color: var(--text-dim); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-graphic { max-width: 420px; margin: 0 auto; order: -1; }
  .hero h1 { font-size: 36px; }
  .about .wrap { grid-template-columns: 1fr; }
  .about-label { position: static; margin-bottom: 24px; }
  .about-label strong { display: inline; margin-left: 8px; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-item:nth-child(3n+1) { border-left: 1px solid var(--line); }
  .solution-item:nth-child(2n+1) { border-left: none; }
  .solution-item:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .solution-item:nth-child(-n+2) { border-top: none; }
  .contact .wrap { grid-template-columns: 1fr; }
  .how-item { grid-template-columns: 1fr; gap: 10px; }
  .how-item::before { display: none; }
  .how-item h3 { padding-left: 0; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .main-nav {
    display: flex;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 24px 32px 32px;
    gap: 20px;
  }
  .hero { padding: 140px 0 72px; }
  .hero h1 { font-size: 30px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-item { border-left: none !important; }
  .solution-item:nth-child(n) { border-top: 1px solid var(--line); }
  .solution-item:first-child { border-top: none; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
}
