:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ink: #111316;
  --muted: #5f6875;
  --muted-2: #8a94a3;
  --line: #dce3ee;
  --line-strong: #b8c4d6;
  --blue: #1a56db;
  --blue-dark: #123f9f;
  --blue-soft: #eaf1ff;
  --panel: rgba(255, 255, 255, 0.84);
  --shadow: 0 24px 70px rgba(20, 37, 68, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Aptos", "Suisse Int'l", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 14% 0%, rgba(26, 86, 219, 0.12), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #f8fbff 52%, #fff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(17, 19, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 22, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.site-footer {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(220, 227, 238, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(34, 48, 76, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 172px;
}

.brand img {
  display: block;
  width: 178px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--blue-soft);
  outline: none;
}

main {
  display: grid;
  gap: 26px;
  padding: 54px 0 34px;
}

.hero,
.section,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 34px;
  align-items: stretch;
  min-height: 650px;
  padding: clamp(28px, 5vw, 62px);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.1vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.hero-lede,
.section-lede,
.research-copy p,
.contact-card p {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.55;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 28px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(17, 19, 22, 0.18);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #fff;
}

.logic-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 14%, rgba(26, 86, 219, 0.17), transparent 16rem),
    linear-gradient(180deg, #fff, #f5f8fd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.logic-panel-top,
.logic-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logic-canvas {
  position: relative;
  min-height: 360px;
  margin: 28px 0;
  border: 1px solid rgba(184, 196, 214, 0.7);
  border-radius: 24px;
  background:
    linear-gradient(rgba(26, 86, 219, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 219, 0.045) 1px, transparent 1px),
    rgba(255, 255, 255, 0.72);
  background-size: 28px 28px;
  overflow: hidden;
}

.logic-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.logic-canvas path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-dasharray: 8px 12px;
  vector-effect: non-scaling-stroke;
  animation: pathFlow 6s linear infinite;
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 88px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(34, 48, 76, 0.12);
  font-size: 0.86rem;
  font-weight: 780;
}

.node-a {
  left: 8%;
  top: 32%;
  transform: translateY(-50%);
}

.node-b {
  left: 8%;
  top: 68%;
  transform: translateY(-50%);
}

.node-core {
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-color: rgba(26, 86, 219, 0.36);
  color: #fff;
  background: var(--blue);
}

.node-output {
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
}

.logic-status {
  align-items: center;
  padding-top: 2px;
  text-transform: none;
  letter-spacing: 0;
}

.logic-status span {
  max-width: 30%;
}

.logic-status b {
  display: block;
  color: var(--ink);
}

.section {
  padding: clamp(28px, 5vw, 58px);
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 34px;
}

.split-grid,
.research-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}

.section-lede {
  margin-bottom: 0;
}

.principles,
.product-grid,
.research-list {
  display: grid;
  gap: 14px;
}

.principles article,
.product-card,
.research-list div {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.principles article {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 18px;
  padding: 20px;
}

.principles span,
.card-index,
.research-list span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.principles h3,
.principles p {
  grid-column: 2;
}

.principles p,
.product-card p,
.research-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.product-card {
  min-height: 280px;
  padding: 24px;
  background:
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.card-index {
  margin-bottom: 70px;
}

.research-section {
  background:
    linear-gradient(135deg, rgba(26, 86, 219, 0.08), transparent 42%),
    var(--panel);
}

.research-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  width: fit-content;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.research-list div {
  padding: 22px;
}

.contact-section {
  padding: 18px 0 4px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: end;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at 0% 100%, rgba(26, 86, 219, 0.14), transparent 24rem),
    #111316;
  color: #fff;
}

.contact-card h2 {
  max-width: 720px;
}

.contact-card p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-card .section-kicker {
  color: #8eb1ff;
}

.contact-card .button-primary {
  color: var(--ink);
  background: #fff;
}

.site-footer {
  padding: 22px 0 42px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 26px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-brand img {
  display: block;
  width: 150px;
  height: auto;
  margin-bottom: 10px;
}

.footer-tag,
.footer-contact p,
.footer-legal {
  margin-bottom: 0;
}

.footer-nav,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-nav a,
.footer-contact a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--blue-dark);
  outline: none;
}

.footer-label {
  display: block;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-legal {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.reveal {
  animation: revealUp 700ms ease both;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.reveal:nth-child(3) {
  animation-delay: 160ms;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pathFlow {
  to {
    stroke-dashoffset: -96px;
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 28px;
  }

  .hero,
  .split-grid,
  .research-layout,
  .contact-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .logic-panel {
    min-height: 430px;
  }

  .logic-canvas {
    min-height: 280px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .card-index {
    margin-bottom: 34px;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, var(--container));
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav a {
    text-align: center;
  }

  h1 {
    max-width: none;
    font-size: clamp(2rem, 9.8vw, 2.95rem);
    letter-spacing: -0.045em;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .principles article {
    grid-template-columns: 1fr;
  }

  .principles h3,
  .principles p {
    grid-column: auto;
  }

  .logic-status {
    display: grid;
  }

  .logic-status span {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
