/* Cipherlynx — marketing site
   Brand name is a single token "Cipherlynx" for easy find/replace. */

:root {
  --bg: #070b14;
  --bg-alt: #0b1220;
  --bg-card: #10192a;
  --bg-card-hover: #141e32;
  --line: rgba(168, 190, 214, 0.12);
  --line-strong: rgba(168, 190, 214, 0.26);
  --text: #e8eef6;
  --text-muted: #8b97a8;
  --text-dim: #6a7687;
  --accent: #7a9bb8;
  --accent-strong: #9bb6cc;
  --accent-soft: rgba(122, 155, 184, 0.14);
  --cyan: #3ee8ff;
  --white: #f4f7fb;
  --navy-deep: #050814;
  --danger-note: #9aa7b8;
  --header-h: 72px;
  --max: 1120px;
  --pad: clamp(20px, 4vw, 40px);
  --radius: 6px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

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

img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font-family: inherit; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 100;
  border-radius: 4px;
}
.skip:focus { top: 12px; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: calc(var(--max) + 16px);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.logo .wordmark {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  padding-top: 1px;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--white) !important;
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  font-weight: 600 !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section {
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; color: var(--white); }

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
}

h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.lede {
  margin: 16px 0 0;
  max-width: 36em;
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.65;
}

.section-head {
  margin-bottom: 48px;
  max-width: 40em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--white);
  color: #0b1220;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 88px;
  overflow: hidden;
  isolation: isolate;
}

.hero-fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 18% 42%, rgba(50, 86, 130, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 82% 80%, rgba(30, 50, 80, 0.18), transparent 60%),
    var(--bg);
}

.hero-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, rgba(122, 155, 184, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(122, 155, 184, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 45%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 40% 45%, #000 15%, transparent 75%);
  animation: grid-shift 48s linear infinite;
}

@keyframes grid-shift {
  from { background-position: 0 0; }
  to { background-position: 56px 56px; }
}

.hero-signals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sig {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 18;
  animation: sig-flow 22s linear infinite;
}
.sig-1 { stroke: rgba(122, 155, 184, 0.16); stroke-width: 1.25; }
.sig-2 { stroke: rgba(122, 155, 184, 0.28); stroke-width: 1.5; animation-duration: 18s; animation-direction: reverse; }
.sig-3 { stroke: rgba(155, 182, 204, 0.12); stroke-width: 1.25; animation-duration: 26s; }

@keyframes sig-flow {
  to { stroke-dashoffset: -320; }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,11,20,0.2) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
}

.hero-copy { max-width: 820px; position: relative; }

.hero h1 {
  font-size: clamp(36px, 6.2vw, 72px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hero h1 .line2 {
  display: block;
  color: var(--accent-strong);
  font-weight: 500;
}

.hero-sub {
  margin: 28px 0 0;
  max-width: 38em;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-kicker {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

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

.class-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}
.class-pills li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid var(--line-strong);
  padding: 6px 10px;
  border-radius: 2px;
  background: rgba(16, 25, 42, 0.6);
}

/* ---------- Mission ---------- */
.mission {
  padding: 32px 0 112px;
}
.mission-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.mission-statement {
  margin: 0;
  max-width: 20em;
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--white);
}
.mission-statement span {
  color: var(--accent-strong);
}

/* ---------- Problem / Solution ---------- */
.split-section { padding: 112px 0; }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  border-top: 1px solid var(--line);
  padding-top: 56px;
}
.split-col h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.split-col p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}
.split-col p + p { margin-top: 16px; }

/* ---------- Platform ---------- */
.platform { padding: 112px 0; }

.diagram {
  margin-top: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(122,155,184,0.04), transparent 40%),
    var(--bg-alt);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
}

.satcom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--accent-strong);
}
.satcom svg { display: block; }
.satcom-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bus {
  display: none;
  width: 100%;
  height: 64px;
  margin: 2px 0 0;
  stroke: rgba(168, 190, 214, 0.32);
  stroke-width: 1;
  fill: none;
}
.bus line {
  vector-effect: non-scaling-stroke;
}
.bus-4 { display: block; }
.bus-1 {
  width: 1px;
  height: 28px;
  margin: 4px auto 0;
  background: var(--line-strong);
  stroke: none;
}

.nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.node {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 18px 20px;
  min-height: 168px;
}
.node svg {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
}
.node h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.node p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.diagram-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.diagram-meta p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.interop {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}
.interop strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Capabilities ---------- */
.capabilities {
  padding: 112px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
}
.card-index {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- MLS ---------- */
.mls { padding: 112px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.step {
  padding: 32px 28px 28px;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; }
.step-num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- Use cases ---------- */
.use-cases {
  padding: 112px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.use {
  grid-column: span 2;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  transition: border-color 0.15s ease;
}
.use:hover { border-color: var(--line-strong); }
.use:nth-child(4),
.use:nth-child(5) {
  grid-column: span 3;
}
.use h3 { margin-bottom: 10px; }
.use p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- Roadmap ---------- */
.roadmap { padding: 112px 0; }

.status-callout {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 0 0 48px;
  max-width: 44em;
}
.status-callout p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-muted);
}
.status-callout strong {
  color: var(--text);
  font-weight: 500;
}

.path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 48px;
  counter-reset: path;
  position: relative;
}
.path::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: calc(33.333% - 15px);
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.path-item { position: relative; z-index: 1; }
.path-item h3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 16px;
}
.path-item h3::before {
  counter-increment: path;
  content: counter(path, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
  flex-shrink: 0;
}
.path-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact {
  padding: 112px 0 96px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 72px;
  align-items: start;
}

.contact-copy .lede { margin-top: 16px; }

.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
}
.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.form-head h3 { font-size: 16px; letter-spacing: -0.01em; }
.demo-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  border-radius: 2px;
}
.demo-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.field input,
.field textarea {
  width: 100%;
  background: var(--navy-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}
.field textarea { min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
  opacity: 1;
}
.form-panel .btn { width: 100%; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.logo .tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1;
}
.site-header .logo .tagline { display: none; }
.footer-inner .logo img { height: 40px; }
.footer-inner .wordmark { font-size: 13px; letter-spacing: 0.14em; }
.footer-inner p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .use-grid { grid-template-columns: 1fr 1fr; }
  .use,
  .use:nth-child(4),
  .use:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 840px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 20px;
    background: #070b14;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .nav-links a {
    padding: 14px var(--pad);
    font-size: 15px;
    color: var(--text);
  }
  .nav-cta {
    margin: 8px var(--pad) 4px;
    text-align: center;
    align-self: stretch;
  }

  .split-grid,
  .contact-grid,
  .steps,
  .path {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .step:last-child { border-bottom: 0; }
  .path::before { display: none; }
  .nodes { grid-template-columns: 1fr 1fr; }
  .bus-4 { display: none; }
  .bus-2 { display: block; }
}

@media (max-width: 560px) {
  .hero { padding: calc(var(--header-h) + 40px) 0 64px; }
  .mission { padding-bottom: 72px; }
  .mission-panel { padding: 40px 0; }
  .split-section,
  .platform,
  .capabilities,
  .mls,
  .use-cases,
  .roadmap,
  .contact { padding: 72px 0; }

  .card-grid,
  .use-grid,
  .nodes { grid-template-columns: 1fr; }
  .bus-4, .bus-2 { display: none; }
  .bus-1 { display: block; }
  .node { min-height: 0; }
  .section-head { margin-bottom: 32px; }
  .form-panel { padding: 22px 18px 18px; }
  .logo img { height: 38px; }
  .logo { gap: 10px; }
  .logo .wordmark { font-size: 13px; letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-grid, .sig { animation: none; }
}
