:root {
  --bg: #03101e;
  --bg-deep: #02101c;
  --bg-card: #0b1528;
  --bg-card-2: #0e1a30;
  --line: rgba(80, 140, 255, 0.18);
  --line-strong: rgba(100, 160, 255, 0.35);
  --text: #eaf0fb;
  --text-muted: #c2cfdd;
  --text-dim: #6f84a3;
  --sapphire: #008efa;
  --sapphire-2: #25a9ff;
  --sapphire-deep: #1a56d6;
  --glow: rgba(47, 123, 255, 0.45);
  --light: #f3f7fc;
  --light-ink: #132038;
  --light-muted: #4d607c;
  --light-card: #ffffff;
  --radius: 14px;
  --header-h: 4.25rem;
  --max: 1168px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sapphire-2);
  text-underline-offset: 0.15em;
}

a:hover {
  color: #9ec4ff;
}

:focus-visible {
  outline: 2px solid #8eb6ff;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--sapphire);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(80, 140, 255, 0.12);
  background: rgba(5, 11, 24, 0.82);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 3.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-block: 0.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  height: 38px;
  width: auto;
  max-width: 100px;
  filter: brightness(1.4);
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(120, 160, 220, 0.35);
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--sapphire-2);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.1rem;
}

.site-nav a {
  color: #e7edf5;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0.1rem;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .nav-cta {
  margin-left: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  background: var(--sapphire);
  color: #fff;
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: var(--sapphire-2);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.3rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--sapphire);
  color: #fff;
  box-shadow: 0 8px 28px var(--glow);
}

.btn-primary:hover {
  background: var(--sapphire-2);
  color: #fff;
}

.btn-ghost {
  background: rgba(10, 20, 40, 0.55);
  color: var(--text);
  border-color: rgba(120, 160, 220, 0.28);
}

.btn-ghost:hover {
  border-color: rgba(140, 180, 255, 0.5);
  color: #fff;
  background: rgba(20, 35, 60, 0.7);
}

/* Hero */
.hero {
  position: relative;
  padding: 2rem 0 2.1rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 35% 75% at -4% 65%, rgba(0, 145, 255, 0.3), transparent 70%),
    radial-gradient(ellipse 45% 55% at 74% 96%, rgba(0, 119, 242, 0.22), transparent 70%),
    linear-gradient(180deg, #031321 0%, #020d19 100%);
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    radial-gradient(circle, rgba(10, 153, 255, 0.52) 0 1px, transparent 1.5px),
    linear-gradient(rgba(25, 126, 230, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 126, 230, 0.08) 1px, transparent 1px);
  background-size: 28px 28px, 42px 42px, 42px 42px;
  mask-image: radial-gradient(ellipse 58% 100% at 72% 64%, #000 4%, transparent 79%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 74% 136%, transparent 0 37px, rgba(0, 145, 255, 0.15) 38px, transparent 39px);
  mask-image: linear-gradient(90deg, transparent 28%, #000 62%, transparent 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 1rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 2.8vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--sapphire-2);
}

.hero-body {
  margin: 0 0 0.9rem;
  color: #e3ebf5;
  max-width: 36rem;
  font-size: 0.94rem;
}

.principle {
  margin: 0;
  color: #d6e6f7;
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* System diagram */
.system-diagram {
  margin: 0;
  position: relative;
}

.diagram-stage {
  position: relative;
  min-height: 320px;
  padding: 0.5rem;
  isolation: isolate;
}

.diagram-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 14%;
  right: 14%;
  bottom: 4%;
  height: 29%;
  border: 1px solid rgba(0, 164, 255, 0.35);
  transform: perspective(320px) rotateX(66deg);
  background: radial-gradient(ellipse, rgba(0, 139, 255, 0.25), transparent 70%);
  box-shadow: 0 0 36px rgba(0, 133, 255, 0.2);
}

.diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.95;
  stroke-width: 1.2;
}

.component-cluster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 3.6rem;
  padding: 0.4rem 0.35rem;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(9, 31, 52, 0.95), rgba(4, 20, 37, 0.96));
  box-shadow: 0 0 0 1px rgba(47, 123, 255, 0.05), 0 10px 28px rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.chip-existing,
.chip-rules {
  white-space: nowrap;
}

.chip-icon {
  color: var(--sapphire-2);
  display: inline-flex;
}

.system-node,
.outcome-node {
  position: relative;
  z-index: 1;
  margin: 0.7rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
}

.system-node {
  margin-top: 1rem;
  background: linear-gradient(180deg, #075396, #031b36);
  border: 1px solid #009aff;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(140, 180, 255, 0.35), 0 12px 40px rgba(47, 123, 255, 0.45);
}

.system-node-icon {
  display: inline-flex;
  opacity: 0.95;
}

.outcome-node {
  margin-top: 0.8rem;
  border: 1px solid var(--line-strong);
  background: rgba(10, 22, 44, 0.92);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.outcome-icon {
  color: var(--sapphire-2);
  display: inline-flex;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sapphire-2);
}

.section-kicker.light {
  color: var(--sapphire-2);
}

.section h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section h2 em {
  font-style: normal;
  color: var(--sapphire-2);
}

/* Approach — light band like the comp */
.approach {
  background: var(--light);
  color: var(--light-ink);
}

.approach .section-kicker {
  color: var(--sapphire-deep);
}

.approach h2 em {
  color: var(--sapphire);
}

.approach-intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.approach-lead {
  margin: 0;
  color: var(--light-muted);
  font-size: 0.92rem;
}

.discovery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.discovery-card {
  background: linear-gradient(145deg, #e5eef8, #f3f7fc);
  border: 1px solid rgba(30, 50, 90, 0.08);
  border-radius: 6px;
  padding: 0.9rem 0.85rem;
  box-shadow: 0 10px 30px rgba(20, 40, 80, 0.05);
}

.discovery-card-final {
  background: linear-gradient(160deg, #1a4bb8, #0f2a6b);
  color: #fff;
  border-color: transparent;
}

.discovery-card-final p {
  color: rgba(240, 247, 255, 0.94);
}

.discovery-icon {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  background: rgba(47, 123, 255, 0.1);
  color: var(--sapphire);
}

.discovery-card-final .discovery-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.discovery-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  line-height: 1.3;
}

.discovery-card p {
  margin: 0;
  color: var(--light-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.discovery-card-final p {
  color: rgba(240, 247, 255, 0.94);
}

/* Lifecycle */
.lifecycle-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(30, 80, 200, 0.15), transparent 60%),
    var(--bg-deep);
  border-top: 1px solid rgba(80, 140, 255, 0.1);
  border-bottom: 1px solid rgba(80, 140, 255, 0.1);
}

.lifecycle-intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.lifecycle-intro p:last-child {
  margin: 0;
  color: var(--text-muted);
}

.lifecycle {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.lifecycle li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.9rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(12, 22, 42, 0.85);
}

.life-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(47, 123, 255, 0.12);
  color: var(--sapphire-2);
}

.life-num {
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}

.lifecycle li p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.32;
}

/* About + Contact */
.about {
  background: var(--light);
  color: var(--light-ink);
}

.about .section-kicker {
  color: var(--sapphire-deep);
}

.about-grid {
  display: grid;
  gap: 1.5rem;
}

.about-copy .lead {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.about-copy p {
  color: var(--light-muted);
}

.about-copy .lead {
  color: var(--light-ink);
}

.about-panel {
  padding: 1.75rem 1.4rem;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(47, 123, 255, 0.2), transparent 55%),
    linear-gradient(160deg, #0c1a33, #0a1428);
  color: var(--text);
  border: 1px solid var(--line);
}

.contact-heading {
  margin: 0 0 0.85rem !important;
  font-size: 1.45rem !important;
  color: #fff;
}

.about-panel p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.email-visible {
  margin: 1rem 0 0 !important;
  font-size: 0.95rem;
}

.email-visible a {
  color: #b8cce2;
  text-decoration: none;
}

.email-visible a:hover {
  color: var(--sapphire-2);
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(80, 140, 255, 0.1);
  padding: 1.75rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.15rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.footer-nav a {
  color: #aec2d7;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: #aec2d7;
  font-size: 0.88rem;
}

.footer-meta p {
  margin: 0;
}

.footer-meta a {
  color: #aec2d7;
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--sapphire-2);
}

/* Responsive */
@media (min-width: 720px) {
  .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lifecycle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 2rem;
    align-items: stretch;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: center;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 4.5rem 0 5.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2rem 2.5rem;
  }

  .brand-logo {
    height: 42px;
    max-width: 110px;
  }

  .discovery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .lifecycle {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .lifecycle li {
    align-items: center;
    text-align: center;
    position: relative;
  }

  .lifecycle li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.1rem;
    right: -0.45rem;
    width: 0.55rem;
    height: 2px;
    background: rgba(80, 140, 255, 0.45);
  }

  .component-cluster {
    gap: 0.65rem;
  }

  .chip {
    min-height: 4.8rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 0.58rem;
  }

  .brand-divider {
    display: none;
  }

  .component-cluster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagram-stage {
    min-height: 0;
  }

  .diagram-lines {
    display: none;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 1.25rem 0 1.1rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 2rem;
  }

  .hero h1 {
    max-width: 32rem;
  }

  .diagram-stage {
    height: 268px;
    min-height: 0;
    padding: 0;
  }

  .component-cluster {
    display: block;
  }

  .chip {
    position: absolute;
    width: 17%;
    min-height: 48px;
    padding: 0.3rem;
    z-index: 2;
  }

  .chip-people { left: 8%; top: 0; }
  .chip-data { left: 30%; top: 0; }
  .chip-ai { left: 52%; top: 0; }
  .chip-auto { left: 74%; top: 0; }
  .chip-rules { left: 1%; top: 65px; width: 24%; }
  .chip-existing { left: 75%; top: 65px; width: 24%; }
  .chip-int { left: 4%; top: 135px; }
  .chip-software { left: 79%; top: 135px; }

  .system-node,
  .outcome-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
  }

  .system-node { top: 157px; }
  .outcome-node { top: 222px; }

  .approach .container,
  .lifecycle-section .container {
    display: grid;
    grid-template-columns: minmax(0, 0.28fr) minmax(0, 0.72fr);
    gap: 1.5rem;
    align-items: center;
  }

  .approach-intro,
  .lifecycle-intro {
    margin: 0;
  }

  .discovery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .discovery-card {
    min-height: 178px;
    position: relative;
  }

  .discovery-card:not(:last-child)::after {
    content: "→";
    position: absolute;
    z-index: 3;
    right: -0.72rem;
    top: 45%;
    color: var(--sapphire);
    font-size: 1.35rem;
    font-weight: 400;
  }

  .lifecycle {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .lifecycle li {
    align-items: flex-start;
    text-align: left;
    padding: 0;
    border: 0;
    background: transparent;
    position: relative;
  }

  .lifecycle li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 47px;
    width: calc(100% - 41px);
    height: 1px;
    background: var(--sapphire);
  }

  .life-icon {
    width: 42px;
    height: 42px;
    background: #031b30;
  }

  .lifecycle li p {
    font-size: 0.68rem;
  }
}

@media (min-width: 980px) {
  .hero { padding: 1.3rem 0 1.1rem; }
  .hero-grid { gap: 2.2rem; }
  .brand-logo { height: 42px; max-width: 110px; }
  .about-grid { grid-template-columns: 1.25fr 0.75fr; }
}

@media (max-width: 899px) {
  .hero-grid { gap: 1.2rem; }
  .hero-copy { max-width: 42rem; }
  .diagram-stage { min-height: 0; }
  .diagram-lines,
  .diagram-stage::after { display: none; }
  .component-cluster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .system-node { margin-top: 0.9rem; }
  .outcome-node { margin-top: 0.7rem; }
  .principle { margin-top: 0.8rem; }
}

@media (max-width: 599px) {
  :root { --header-h: 6.7rem; }
  .container { width: min(100% - 2rem, var(--max)); }
  .header-inner { justify-content: center; gap: 0.15rem; padding-block: 0.45rem; }
  .brand { width: 100%; justify-content: center; }
  .brand-logo { height: 30px; }
  .brand-name { font-size: 0.6rem; }
  .site-nav { justify-content: center; gap: 0.7rem; }
  .site-nav a { padding: 0.25rem; font-size: 0.82rem; }
  .site-nav .nav-cta { padding: 0.36rem 0.7rem; }
  .hero { padding: 2rem 0 2.25rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.65rem); }
  .hero-body { font-size: 0.92rem; }
  .hero-actions { gap: 0.5rem; }
  .btn { min-height: 2.55rem; padding: 0.6rem 0.85rem; font-size: 0.84rem; }
  .component-cluster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip { min-height: 3.2rem; }
  .chip-icon { display: none; }
  .system-node,
  .outcome-node { white-space: normal; }
  .section { padding: 2.7rem 0; }
  .discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-card { min-height: 0; }
  .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lifecycle li { min-height: 154px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 370px) {
  .discovery-grid,
  .lifecycle { grid-template-columns: 1fr; }
  .lifecycle li { min-height: 0; }
  .brand-name { font-size: 0.54rem; }
}
