/* ===== Omnyra · Cobalt Lab ===== */

:root {
  --bg: #f7f7f5;
  --bg-2: #ffffff;
  --bg-tint: #eef0f6;
  --line: #e3e5ec;
  --line-2: #cdd3df;
  --ink: #0a0e1a;
  --ink-2: #2a2f40;
  --ink-dim: #5d6378;
  --ink-faint: #9aa1b3;
  --accent: #1f3fb8;
  --accent-bright: #3a5ee0;
  --accent-soft: #e6ebfb;
  --warn: #e85a3a;
  --warn-soft: #fde6df;
  --serif: "Fraunces", "Tiempos Headline", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
ul { list-style: none; }
em { font-style: italic; }
code {
  font-family: var(--mono); font-size: .88em;
  background: var(--accent-soft); color: var(--accent);
  padding: 1px 6px; border-radius: 3px;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(247,247,245,.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.005em;
}
.brand-mark { width: 22px; height: 22px; color: var(--accent); }

.nav-links { display: flex; gap: 32px; align-items: center; font-size: 13px; }
.nav-links a { color: var(--ink-dim); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 8px 16px; border-radius: 999px;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }

@media (max-width: 600px) {
  .nav-links { gap: 16px; font-size: 12px; }
  .nav-links a:nth-child(3) { display: none; }
}

/* ===== shared kicker ===== */
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

/* ===== TYPE ===== */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.04;
  color: var(--ink);
}
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px clamp(24px, 6vw, 72px) 60px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}

/* scrolling sequence stream behind hero */
.seq-stream {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .08;
  display: flex; flex-direction: column;
  justify-content: center; gap: 32px;
  z-index: 0;
}
.seq-row {
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
  color: var(--ink);
  letter-spacing: .14em;
  animation: seqScroll 60s linear infinite;
}
.seq-row:nth-child(2) { animation-duration: 80s; animation-direction: reverse; opacity: .8; }
.seq-row:nth-child(3) { animation-duration: 70s; }
.seq-row:nth-child(4) { animation-duration: 90s; animation-direction: reverse; opacity: .6; }
.seq-row:nth-child(5) { animation-duration: 65s; }
@keyframes seqScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  flex: 1;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero-copy h1 {
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: .98;
  letter-spacing: -.035em;
  margin-bottom: 32px;
  max-width: 14ch;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-bright); transform: translateY(-1px); color: #fff; }
.btn.ghost { color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.big { padding: 18px 32px; font-size: 16px; }

.hero-foot {
  position: relative; z-index: 2;
  display: flex; gap: 36px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-top: 24px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.hero-foot strong { color: var(--ink); font-weight: 500; margin-right: 4px; }

/* ===== AMBIENT NETWORK GRAPH ===== */
.lab-vis {
  position: relative;
  width: 100%;
  display: flex; justify-content: center; align-items: center;
  /* faint dot-grid backdrop */
  background-image: radial-gradient(circle, rgba(31,63,184,.07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 0 0;
  border-radius: 12px;
}
.lab-svg { width: 100%; max-width: 480px; height: auto; }

/* edges */
.net-edge {
  stroke: #1f3fb8;
  stroke-opacity: .18;
  stroke-width: 0.8;
  fill: none;
}

/* nodes */
.net-dot {
  fill: #1f3fb8;
  transition: fill .3s ease;
}
.net-node.sentinel .net-dot {
  fill: #1f3fb8;
}

/* sentinel halo */
.net-halo {
  fill: none;
  stroke: #1f3fb8;
  stroke-width: 1;
  stroke-opacity: .35;
}

/* pulse ring (only on sentinels, animated when .pulsing) */
.net-ring {
  fill: none;
  stroke: #e85a3a;
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.net-node.pulsing .net-ring {
  animation: netPing 1.6s ease-out;
}
.net-node.pulsing .net-dot {
  fill: #e85a3a;
}
@keyframes netPing {
  0%   { opacity: .9; transform: scale(.5); }
  100% { opacity: 0;  transform: scale(4); }
}

/* labels */
.net-label {
  font-family: var(--mono);
  font-size: 10px;
  fill: #5d6378;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 940px) {
  .lab-svg { max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .net-ring { animation: none !important; }
}

/* (legacy console styles removed) */

/* ===== BLOCKS ===== */
.block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px clamp(24px, 6vw, 80px);
  border-top: 1px solid var(--line);
  position: relative;
}
.block-head { margin-bottom: 64px; max-width: 880px; }
.block-head h2 {
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 1;
}

/* ===== MISSION ===== */
.mission { padding-top: 100px; padding-bottom: 100px; }
.statement {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
  font-weight: 400;
  max-width: 24ch;
}
.statement em { color: var(--accent); }

/* ===== VERTICALS ===== */
.verticals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.vertical {
  padding: 56px 48px 56px 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, transparent);
  transition: background .3s ease;
}
.vertical:last-child {
  border-right: 0;
  padding-left: 48px;
  padding-right: 0;
}
.vertical:hover {
  background: linear-gradient(180deg, var(--accent-soft), transparent 60%);
}
.v-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.vertical h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  margin-bottom: 18px;
}
.v-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 36ch;
}
.vertical p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.65;
  max-width: 42ch;
  margin-bottom: 24px;
}
.vertical ul { display: grid; gap: 10px; }
.vertical li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.vertical li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 1.5px;
  background: var(--accent);
}
.v-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--accent);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: border-color .25s ease, color .25s ease, padding .25s ease;
}
.v-link:hover {
  color: var(--accent-bright);
  border-color: var(--accent);
  padding-right: 6px;
}
@media (max-width: 820px) {
  .verticals { grid-template-columns: 1fr; }
  .vertical { padding: 40px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .vertical:last-child { padding-left: 0; padding-bottom: 0; border-bottom: 0; }
}

/* ===== PRESS ===== */
.press { border-top: 1px solid var(--line); }
.press li { border-bottom: 1px solid var(--line); }
.press a {
  display: grid;
  grid-template-columns: 280px 1fr 24px;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  transition: padding .25s ease, background .25s ease;
}
.press a:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
}
.p-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.1;
}
.press a:hover .p-name { color: var(--accent); }
.p-desc { color: var(--ink-dim); font-size: 14px; line-height: 1.5; }
.p-arrow {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 22px;
  text-align: right;
  transition: transform .25s ease;
}
.press a:hover .p-arrow { transform: translateX(6px); }

@media (max-width: 720px) {
  .press a {
    grid-template-columns: 1fr 24px;
    gap: 6px 12px;
    padding: 22px 0;
  }
  .p-name { grid-column: 1; font-size: 22px; }
  .p-desc { grid-column: 1 / -1; }
  .p-arrow { grid-column: 2; grid-row: 1; }
}

/* ===== CONTACT ===== */
.contact { padding-bottom: 140px; text-align: left; }
.contact h2 {
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1;
  margin-bottom: 48px;
}
.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(24px, 6vw, 80px);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.footer-brand .brand-mark { width: 18px; height: 18px; color: var(--accent); }
.footer-meta { display: flex; gap: 12px; align-items: center; }
.footer-meta a:hover { color: var(--accent); }

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .seq-stream { display: none; }
}
