/* Nexus Intelligence — shared styles for every page */

@font-face { font-family: 'Syne'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/syne.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap; src: url('fonts/plex-sans.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-mono-500.woff2') format('woff2'); }

:root {
  --bg:    #080C13;
  --bg2:   #0D141F;
  --bg3:   #131C2A;
  --line:  rgba(148, 170, 196, 0.14);
  --line2: rgba(148, 170, 196, 0.26);
  --text:  #E7EDF4;
  --soft:  #A3B0C0;
  --faint: #7C8A9C;
  --cyan:  #22C8EE;
  --cyan-wash: rgba(34, 200, 238, 0.10);
  --error: #FF7A8A;

  --display: 'Syne', 'Segoe UI', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  color: var(--soft); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

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

/* ── Type ── */
h1, h2, h3, h4 { font-family: var(--display); color: var(--text); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; }
h1 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }
.label {
  display: inline-block; font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px;
}
.lede { font-size: clamp(1.08rem, 1.5vw, 1.2rem); line-height: 1.6; max-width: 38em; }
.small { font-size: 0.92rem; color: var(--faint); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: 13px 24px; border-radius: 8px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--cyan); color: #04121A; }
.btn-primary:hover { background: #5AD8F4; }
.btn-quiet { color: var(--text); border-color: var(--line2); background: transparent; }
.btn-quiet:hover { border-color: var(--cyan); }

/* ── Header / nav ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 12, 19, 0.88);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand span b { color: var(--cyan); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.95rem; color: var(--soft); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.btn { padding: 9px 18px; font-size: 0.93rem; color: #04121A; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ── Sections ── */
.section { padding: clamp(80px, 11vw, 128px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 42rem; margin-bottom: clamp(40px, 6vw, 60px); }
.section-head h2 + p { margin-top: 18px; }

/* ── Hero ── */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(72px, 10vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  font-family: var(--mono); font-size: 0.82rem; color: var(--text);
  padding: 7px 14px; border: 1px solid var(--line2); border-radius: 999px;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.hero .lede { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 28px; font-size: 0.88rem; color: var(--faint); max-width: 36em; }

/* Pipeline panel — the one memorable element */
.pipeline {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 28px 22px;
}
.pipeline-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.78rem; color: var(--faint);
  letter-spacing: 0.06em; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.pipeline-head strong { color: var(--text); font-weight: 500; }
.stages { list-style: none; position: relative; }
.stages::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 26px; width: 1px; background: var(--line2); }
.stages::after {
  content: ''; position: absolute; left: 11px; top: 26px; height: calc(100% - 52px); width: 1px;
  background: var(--cyan); transform-origin: top; transform: scaleY(0);
  animation: drawLine 2.4s cubic-bezier(.6,.1,.3,1) .4s forwards;
}
.stages li { position: relative; z-index: 1; display: grid; grid-template-columns: 24px 1fr auto; gap: 16px; align-items: start; padding: 13px 0; opacity: 0; animation: stageIn .5s ease forwards; }
.stages li:nth-child(1) { animation-delay: .3s; } .stages li:nth-child(2) { animation-delay: .7s; }
.stages li:nth-child(3) { animation-delay: 1.1s; } .stages li:nth-child(4) { animation-delay: 1.5s; }
.stages li:nth-child(5) { animation-delay: 1.9s; } .stages li:nth-child(6) { animation-delay: 2.3s; }
.dot { width: 23px; height: 23px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--line2); display: grid; place-items: center; margin-top: 1px; }
.dot::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.stage-title { color: var(--text); font-weight: 600; font-size: 1rem; line-height: 1.35; }
.stage-note { display: block; font-size: 0.9rem; color: var(--faint); line-height: 1.45; margin-top: 2px; }
.stage-tag { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); letter-spacing: 0.08em; padding-top: 3px; }
@keyframes drawLine { to { transform: scaleY(1); } }
@keyframes stageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Capability ── */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.capability-img { width: 100%; max-width: 460px; height: auto; border-radius: 16px; margin: 0 auto; }
.split p + p { margin-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; }
.tags li { font-family: var(--mono); font-size: 0.8rem; color: var(--text); padding: 6px 12px; border: 1px solid var(--line2); border-radius: 6px; }

/* ── Process ── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; }
.steps .num { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); letter-spacing: 0.1em; display: block; margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 0.98rem; }

/* ── Engine ── */
.features { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.features li { padding: 30px 32px 30px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.features li:nth-child(odd) { border-right: 1px solid var(--line); }
.features li:nth-child(even) { padding-left: 32px; padding-right: 0; }
.features .num { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); padding-top: 4px; }
.features h3 { font-size: 1.1rem; margin-bottom: 8px; }
.features p { font-size: 0.98rem; }
.engine-tags { justify-content: flex-start; margin-top: 36px; }

/* ── Licensing ── */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards li { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; }
.cards .label { font-size: 0.74rem; margin-bottom: 14px; }
.cards h3 { margin-bottom: 10px; font-size: 1.12rem; }
.cards p { font-size: 0.98rem; }
.notice {
  margin-top: 28px; padding: 20px 22px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--cyan);
  font-size: 0.95rem;
}
.notice strong { color: var(--text); font-weight: 600; }

/* ── Closing ── */
.closing-box {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(36px, 6vw, 64px); max-width: 760px;
}
.closing-box p { margin-top: 18px; }
.closing-box .btn { margin-top: 30px; }
.closing-box .nda { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--faint); }
.closing-box .nda strong { color: var(--text); font-weight: 600; }

/* ── Disclaimer band ── */
.disclaimer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.88rem; color: var(--faint); }
.disclaimer strong { color: var(--soft); font-weight: 600; }
.disclaimer a { color: var(--text); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 0.9fr 1.5fr; gap: 32px; }
.footer-grid p { margin-top: 14px; color: var(--faint); max-width: 22em; }
.footer-grid h4 { font-family: var(--mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--soft); }
.footer-grid a:hover { color: var(--text); }
.footer-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 16px; color: var(--faint); font-size: 0.86rem; line-height: 1.7; }
.footer-legal a { color: var(--soft); }

/* ── Page head (contact, legal) ── */
.page-head { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 60px); }
.page-head p { margin-top: 18px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; padding-bottom: clamp(80px, 10vw, 120px); }
.details { list-style: none; border-top: 1px solid var(--line); }
.details li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.details .k { display: block; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.details .v { color: var(--text); }
.details a.v { text-decoration: none; border-bottom: 1px solid var(--line2); }
.details a.v:hover { border-bottom-color: var(--cyan); }
.contact-side .notice { font-size: 0.92rem; }
.contact-side .notice + .notice { margin-top: 14px; }

.form-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(26px, 4vw, 44px); }
.form-card h2 { font-size: 1.7rem; }
.form-card .intro { margin: 8px 0 28px; font-size: 0.98rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.93rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.field .optional { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg3); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A3B0C0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer;
}
.field select option { background: var(--bg2); }
.field textarea { min-height: 150px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .error { display: none; color: var(--error); font-size: 0.88rem; margin-top: 6px; }
.field .error.show { display: block; }
.form-card .btn { width: 100%; padding: 15px; margin-top: 4px; }
.form-card .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { display: none; margin-top: 14px; padding: 13px 15px; border-radius: 10px; background: rgba(255, 122, 138, 0.10); border: 1px solid rgba(255, 122, 138, 0.35); color: var(--error); font-size: 0.95rem; }
.form-status.show { display: block; }
.form-note { margin-top: 14px; font-size: 0.88rem; color: var(--faint); text-align: center; }
.form-note a { color: var(--soft); }
.form-done { display: none; padding: 16px 0 6px; }
.form-done.show { display: block; }
.form-done .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--cyan-wash); border: 1px solid var(--cyan); display: grid; place-items: center; margin-bottom: 20px; }
.form-done .tick svg { width: 20px; height: 20px; }
.form-done p { margin-top: 10px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── Legal pages ── */
.legal { max-width: 46rem; padding-bottom: clamp(80px, 10vw, 120px); }
.legal .notice { margin: 0 0 12px; }
.legal h2 { font-size: 1.45rem; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin: 24px 0 8px; }
.legal p { margin-bottom: 14px; }
.legal ul { padding-left: 1.3rem; margin-bottom: 14px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--cyan); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--text); }
.legal .important { border-left-color: var(--cyan); background: var(--cyan-wash); color: var(--text); margin-bottom: 12px; }
.legal address { font-style: normal; line-height: 1.8; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .steps, .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .features li, .features li:nth-child(even) { padding: 26px 0; border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pipeline { max-width: 560px; }
  .capability-img { max-width: 360px; margin: 0; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 18px; }
  .nav-links a { display: block; padding: 15px 0; font-size: 1.05rem; }
  .nav-links a.btn { display: flex; padding: 14px 20px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand img { height: 34px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .status { border-radius: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { grid-template-columns: 1fr; }
  .stages li { grid-template-columns: 24px 1fr; }
  .stage-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stages li { opacity: 1; animation: none; }
  .stages::after { animation: none; transform: scaleY(1); }
}
.contact-side .first-notice { margin-top: 28px; }
.split h2 + .lede { margin-top: 18px; }
