/* ========== Base ========== */
:root {
  --paper: #f8f5ee;
  --paper-deep: #efe9dd;
  --white: #fffdf9;
  --ink: #0a1728;
  --ink-soft: #16283d;
  --text: #28394b;
  --muted: #697786;
  --line: rgba(10, 23, 40, 0.12);
  --line-light: rgba(255, 255, 255, 0.12);
  --orange: #f36b3d;
  --orange-deep: #df5428;
  --orange-soft: #ffe0d4;
  --teal: #3bc6aa;
  --teal-soft: #d7f6ee;
  --blue: #6da7ff;
  --blue-soft: #dce9ff;
  --violet: #bca3ff;
  --shadow-sm: 0 8px 24px rgba(10, 23, 40, 0.07);
  --shadow-md: 0 24px 70px rgba(10, 23, 40, 0.12);
  --shadow-lg: 0 32px 100px rgba(10, 23, 40, 0.2);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --font-sans: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --container: 1280px;
  --header-h: 78px;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  color: var(--ink);
  background: #ffd2be;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.035em;
}

ul,
ol {
  padding: 0;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

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

.section-kicker {
  margin-bottom: 24px;
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker.light {
  color: #ff9e78;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.6fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 64px;
}

.section-heading.compact {
  align-items: start;
}

.section-heading h2,
.method-copy h2,
.principles-banner h2,
.closing-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  font-weight: 750;
  line-height: 1.06;
}

.section-intro {
  max-width: 470px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

:focus-visible {
  outline: 3px solid rgba(243, 107, 61, 0.48);
  outline-offset: 4px;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(10, 23, 40, 0.08);
  background: rgba(248, 245, 238, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--container));
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(10, 23, 40, 0.22);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: 0.08em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: 100px;
  color: #425164;
  font-size: 14px;
  font-weight: 600;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.primary-nav a:not(.nav-contact):hover,
.primary-nav a:not(.nav-contact).is-active {
  color: var(--ink);
  background: rgba(10, 23, 40, 0.055);
}

.primary-nav .nav-contact {
  margin-left: 10px;
  padding: 10px 19px;
  color: #fff;
  background: var(--ink);
}

.primary-nav .nav-contact:hover {
  background: var(--orange-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(10, 23, 40, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ========== Buttons ========== */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  transition:
    color 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover svg {
  transform: translateX(3px);
}

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(10, 23, 40, 0.18);
}

.button-primary:hover {
  background: var(--orange-deep);
  box-shadow: 0 15px 34px rgba(223, 84, 40, 0.25);
}

.button-ghost {
  border-color: rgba(10, 23, 40, 0.15);
  color: var(--ink);
  background: rgba(255, 253, 249, 0.42);
}

.button-ghost:hover {
  border-color: rgba(10, 23, 40, 0.28);
  background: var(--white);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 84px) 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 25%, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(180deg, #f7f3eb 0%, #f3eee3 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(10, 23, 40, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 23, 40, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 66%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 66%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 14%;
  right: -8%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 107, 61, 0.16), rgba(243, 107, 61, 0) 68%);
  filter: blur(4px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  gap: 72px;
  align-items: center;
}

.hero-copy {
  padding-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: #657383;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.eyebrow-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(243, 107, 61, 0.13);
}

.eyebrow-dot::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(243, 107, 61, 0.35);
  border-radius: inherit;
  content: "";
  animation: pulse-dot 2.6s ease-out infinite;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 30px;
  font-size: clamp(3.6rem, 6.8vw, 7.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero h1 span {
  position: relative;
  color: var(--orange-deep);
}

.hero h1 span::after {
  position: absolute;
  right: 0.03em;
  bottom: 0.02em;
  left: 0.04em;
  z-index: -1;
  height: 0.13em;
  border-radius: 100px;
  background: rgba(243, 107, 61, 0.16);
  content: "";
  transform: rotate(-1.2deg);
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: #526273;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.9;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.hero-tags span {
  padding: 7px 13px;
  border: 1px solid rgba(10, 23, 40, 0.1);
  border-radius: 100px;
  color: #445467;
  background: rgba(255, 253, 249, 0.65);
  font-size: 12px;
  font-weight: 650;
}

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

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 0;
  color: #788594;
  font-size: 12px;
}

.hero-note span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* ========== Hero visual ========== */
.hero-stage-wrap {
  display: flex;
  justify-content: flex-end;
}

.hero-stage {
  position: relative;
  display: grid;
  width: min(100%, 610px);
  min-height: 610px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 38px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 70% 25%, rgba(109, 167, 255, 0.2), transparent 32%),
    linear-gradient(145deg, #0f2137 0%, #071321 72%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hero-stage::before {
  position: absolute;
  top: -160px;
  right: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(109, 167, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.hero-stage::after {
  position: absolute;
  bottom: -220px;
  left: -170px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 107, 61, 0.16), transparent 66%);
  content: "";
}

.stage-orbit {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: 44%;
  left: 48%;
  width: 440px;
  height: 440px;
  transform: translate(-50%, -50%);
}

.orbit-two {
  top: 44%;
  left: 48%;
  width: 330px;
  height: 330px;
  transform: translate(-50%, -50%);
}

.tech-console {
  position: relative;
  z-index: 4;
  width: calc(100% - 76px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(7, 16, 28, 0.88);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-stage:hover .tech-console {
  transform: rotate(0deg) translateY(-3px);
}

.console-bar {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 14px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.console-dots i:first-child {
  background: var(--orange);
}

.console-dots i:nth-child(2) {
  background: #e7bc57;
}

.console-dots i:nth-child(3) {
  background: var(--teal);
}

.console-path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #7de4cf;
  white-space: nowrap;
}

.console-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.console-body {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(165px, 0.82fr);
  gap: 12px;
  padding: 16px;
}

.code-panel {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.code-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 9px;
}

.code-title span {
  color: var(--orange);
}

.code-title strong {
  font-weight: 500;
}

.code-lines {
  padding: 13px 0 16px;
  color: #c7d2df;
  font-family: var(--font-mono);
  font-size: clamp(8px, 0.83vw, 10px);
  line-height: 1.72;
}

.code-lines p {
  margin: 0;
  padding-right: 10px;
  white-space: nowrap;
}

.code-lines .ln {
  display: inline-block;
  width: 31px;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.2);
  text-align: right;
  user-select: none;
}

.c-violet { color: var(--violet); }
.c-orange { color: #ff9b77; }
.c-teal { color: #6fdec9; }

.cursor {
  display: inline-block;
  width: 5px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--orange);
  animation: blink 1.05s step-end infinite;
}

.diagnostic-card {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(109, 167, 255, 0.09), rgba(255, 255, 255, 0.025));
}

.diagnostic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.diagnostic-head div {
  display: flex;
  flex-direction: column;
}

.diagnostic-head small {
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.diagnostic-head strong {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 600;
}

.status-badge {
  padding: 2px 6px;
  border: 1px solid rgba(59, 198, 170, 0.22);
  border-radius: 100px;
  color: #77e2cb;
  background: rgba(59, 198, 170, 0.08);
  font-size: 7px;
}

.device-visual {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  margin: 16px auto;
  place-items: center;
  border: 1px solid rgba(109, 167, 255, 0.14);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 167, 255, 0.12), transparent 66%);
}

.device-visual::before,
.device-visual::after {
  position: absolute;
  border: 1px dashed rgba(109, 167, 255, 0.2);
  border-radius: inherit;
  content: "";
}

.device-visual::before {
  inset: 10px;
}

.device-visual::after {
  inset: 23px;
  border-style: solid;
  border-color: rgba(109, 167, 255, 0.1);
}

.device-core {
  position: relative;
  z-index: 2;
  display: flex;
  width: 52px;
  height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(109, 167, 255, 0.38);
  border-radius: 12px;
  color: #d9e8ff;
  background: rgba(109, 167, 255, 0.12);
  box-shadow: 0 0 32px rgba(109, 167, 255, 0.12);
}

.device-core span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.device-core small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
  font-size: 5px;
  letter-spacing: 0.12em;
}

.node {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(59, 198, 170, 0.65);
}

.node-a { top: 8px; left: 52px; }
.node-b { top: 51px; right: 8px; background: var(--blue); }
.node-c { bottom: 8px; left: 51px; background: var(--orange); }
.node-d { top: 51px; left: 8px; background: var(--violet); }

.metric-list {
  display: grid;
  gap: 8px;
}

.metric {
  display: grid;
  grid-template-columns: 58px 1fr 18px;
  gap: 6px;
  align-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 7px;
}

.metric > div {
  height: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.metric i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform-origin: left;
  animation: grow-bar 1.4s 0.7s both cubic-bezier(0.2, 0.8, 0.2, 1);
}

.metric b {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  text-align: right;
}

.console-footer {
  display: flex;
  gap: 17px;
  padding: 13px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.018);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.console-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.tag-dot.orange { background: var(--orange); }
.tag-dot.teal { background: var(--teal); }
.tag-dot.blue { background: var(--blue); }

.floating-label {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(13, 28, 46, 0.82);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.floating-label span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
}

.label-software {
  top: 12%;
  right: 3%;
  animation: float 6s ease-in-out infinite;
}

.label-software span {
  color: #ffba9f;
  background: rgba(243, 107, 61, 0.14);
}

.label-hardware {
  bottom: 10%;
  left: 2%;
  animation: float 6.8s 1.1s ease-in-out infinite reverse;
}

.label-hardware span {
  color: #9fc5ff;
  background: rgba(109, 167, 255, 0.15);
}

.hero-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 82px;
  border-top: 1px solid var(--line);
}

.meta-item {
  display: flex;
  min-height: 94px;
  align-items: center;
  gap: 19px;
  padding: 20px 32px;
  border-right: 1px solid var(--line);
}

.meta-item:first-child {
  padding-left: 0;
}

.meta-item:last-child {
  border-right: 0;
}

.meta-item strong {
  font-size: 14px;
  white-space: nowrap;
}

.meta-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* ========== Capabilities ========== */
.capabilities {
  background: var(--white);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.capability-card {
  position: relative;
  display: flex;
  min-height: 510px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.capability-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--card-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms ease;
}

.capability-card:hover {
  border-color: rgba(10, 23, 40, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.capability-card:hover::before {
  transform: scaleX(1);
}

.card-software { --card-accent: var(--orange); }
.card-appliance { --card-accent: var(--teal); }
.card-hardware { --card-accent: var(--blue); }

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
}

.card-index {
  color: #9aa4ae;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  color: var(--ink);
  background: color-mix(in srgb, var(--card-accent) 14%, white);
}

.card-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--card-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.capability-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 2.25vw, 2.25rem);
  font-weight: 750;
  line-height: 1.15;
}

.card-lead {
  min-height: 56px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #394a5d;
  font-size: 13px;
  line-height: 1.6;
}

.feature-list li span {
  width: 6px;
  height: 6px;
  margin-top: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--card-accent) 12%, transparent);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.card-tags span {
  padding: 5px 9px;
  border-radius: 6px;
  color: #627080;
  background: #f5f3ee;
  font-size: 10px;
  font-weight: 650;
}

.capability-footnote {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 880px;
  margin: 28px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #faf8f3;
}

.footnote-mark {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--orange-deep);
  background: var(--orange-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.capability-footnote p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

/* ========== Method ========== */
.method {
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.method-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(circle at 24% 48%, #000, transparent 68%);
  mask-image: radial-gradient(circle at 24% 48%, #000, transparent 68%);
  pointer-events: none;
}

.method::before {
  position: absolute;
  top: -280px;
  right: -160px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 167, 255, 0.12), transparent 65%);
  content: "";
}

.method-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(480px, 1fr);
  gap: 96px;
  align-items: start;
}

.method-copy {
  position: sticky;
  top: 130px;
}

.method-copy h2 {
  margin-bottom: 30px;
}

.method-copy > p {
  max-width: 420px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 16px;
  line-height: 1.9;
}

.method-quote {
  display: flex;
  max-width: 420px;
  gap: 14px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-light);
}

.method-quote span {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

.method-quote p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.8;
}

.process-list {
  list-style: none;
}

.process-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 28px;
  min-height: 146px;
  padding: 0 0 38px;
}

.process-item:last-child {
  padding-bottom: 0;
}

.process-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #ff9e78;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.process-item h3 {
  margin: 6px 0 10px;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 650;
}

.process-item p {
  max-width: 500px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.8;
}

.process-line {
  position: absolute;
  top: 48px;
  bottom: 7px;
  left: 23px;
  width: 1px;
  background: linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.025));
}

.process-item:last-child .process-line {
  display: none;
}

/* ========== Skills ========== */
.skills {
  background: var(--paper);
}

.skill-map {
  border-top: 1px solid var(--line);
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr) 40px;
  gap: 40px;
  align-items: center;
  padding: 34px 20px;
  border-bottom: 1px solid var(--line);
  transition:
    background-color 220ms ease,
    padding 220ms ease;
}

.skill-row:hover {
  padding-inline: 30px;
  background: rgba(255, 253, 249, 0.65);
}

.skill-row-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.skill-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.skill-row-head p {
  margin-bottom: 3px;
  color: #9aa4ae;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.skill-row-head h3 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: #526273;
  background: rgba(255, 253, 249, 0.58);
  font-size: 11px;
  font-weight: 600;
}

.skill-arrow {
  color: #9aa4ae;
  font-family: var(--font-mono);
  font-size: 18px;
  text-align: right;
  transition:
    color 200ms ease,
    transform 200ms ease;
}

.skill-row:hover .skill-arrow {
  color: var(--orange-deep);
  transform: translate(3px, -3px);
}

/* ========== Principles ========== */
.principles {
  padding-top: 0;
  background: var(--paper);
}

.principles-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.53fr);
  gap: 80px;
  align-items: end;
  padding: 84px 0 64px;
  border-top: 1px solid var(--line);
}

.principles-banner h2 {
  margin-bottom: 0;
}

.principles-banner > p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-grid article {
  min-height: 234px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.principle-grid article:first-child {
  padding-left: 0;
}

.principle-grid article:last-child {
  border-right: 0;
}

.principle-grid article > span {
  display: block;
  margin-bottom: 43px;
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.principle-grid h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
}

.principle-grid p {
  max-width: 300px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.closing-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 440px;
  margin-top: 90px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 85% 50%, rgba(109, 167, 255, 0.18), transparent 28%),
    radial-gradient(circle at 5% 100%, rgba(243, 107, 61, 0.15), transparent 34%),
    linear-gradient(135deg, #10243b, #071321);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.closing-panel::before {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
  mask-image: linear-gradient(90deg, #000, transparent);
}

.closing-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 66px;
}

.closing-copy h2 {
  margin-bottom: 20px;
}

.closing-copy > p:last-child {
  max-width: 460px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
}

.closing-visual {
  position: relative;
  display: grid;
  min-height: 440px;
  place-items: center;
}

.pulse-ring {
  position: absolute;
  border: 1px solid rgba(109, 167, 255, 0.13);
  border-radius: 50%;
}

.ring-a {
  width: 360px;
  height: 360px;
  animation: pulse-ring 5s ease-in-out infinite;
}

.ring-b {
  width: 270px;
  height: 270px;
  border-style: dashed;
  animation: pulse-ring 5s 0.6s ease-in-out infinite;
}

.ring-c {
  width: 190px;
  height: 190px;
  border-color: rgba(243, 107, 61, 0.17);
  animation: pulse-ring 5s 1.2s ease-in-out infinite;
}

.closing-core {
  position: relative;
  z-index: 2;
  display: flex;
  width: 130px;
  height: 130px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    0 0 70px rgba(109, 167, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.closing-core span {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.closing-core small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.36);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.12em;
}

/* ========== Footer ========== */
.site-footer {
  padding: 70px 0 38px;
  color: #fff;
  background: #050d17;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand .brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.footer-brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.footer-brand p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  transition: color 180ms ease;
}

.back-to-top:hover {
  color: #fff;
}

.back-to-top svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 180ms ease;
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 34px;
  text-align: center;
}

.copyright {
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.record-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.8;
}

.record-links a {
  color: inherit;
  transition: color 180ms ease;
}

.record-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.record-separator {
  color: rgba(255, 255, 255, 0.2);
}

.footer-note {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 10px;
}

/* ========== Motion ========== */
@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@keyframes pulse-dot {
  0% { opacity: 0.7; transform: scale(0.6); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes grow-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.03); }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal][data-delay="1"] { transition-delay: 90ms; }
.js [data-reveal][data-delay="2"] { transition-delay: 180ms; }
.js [data-reveal][data-delay="3"] { transition-delay: 270ms; }

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
    gap: 40px;
  }

  .hero-stage {
    min-height: 570px;
  }

  .tech-console {
    width: calc(100% - 50px);
  }

  .floating-label {
    display: none;
  }

  .section-heading {
    gap: 48px;
  }

  .method-layout {
    gap: 64px;
  }

  .closing-copy {
    padding: 52px;
  }
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: 24px;
    left: 24px;
    display: flex;
    max-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.97);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateY(-8px);
    transition:
      max-height 280ms ease,
      padding 280ms ease,
      opacity 200ms ease,
      visibility 200ms ease,
      transform 280ms ease,
      border-color 200ms ease;
  }

  .primary-nav.is-open {
    max-height: 430px;
    padding: 12px;
    border-color: var(--line);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .primary-nav .nav-contact {
    margin: 6px 0 0;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 64px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-copy {
    max-width: 760px;
    padding-bottom: 0;
  }

  .hero-stage-wrap {
    justify-content: flex-start;
  }

  .hero-stage {
    width: min(100%, 690px);
  }

  .hero h1 {
    font-size: clamp(3.5rem, 10vw, 6.3rem);
  }

  .hero-meta {
    margin-top: 64px;
  }

  .meta-item {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding-inline: 22px;
  }

  .section {
    padding: 104px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-heading h2,
  .method-copy h2,
  .principles-banner h2,
  .closing-copy h2 {
    font-size: clamp(2.6rem, 8vw, 4.6rem);
  }

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

  .capability-card {
    min-height: 0;
  }

  .card-topline {
    margin-bottom: 30px;
  }

  .card-lead {
    min-height: 0;
  }

  .method-layout {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .method-copy {
    position: static;
  }

  .method-copy > p {
    max-width: 620px;
  }

  .process-item {
    min-height: 132px;
  }

  .skill-row {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: 30px;
  }

  .skill-arrow {
    display: none;
  }

  .principles-banner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 74px;
  }

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

  .principle-grid article {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle-grid article:last-child {
    border-bottom: 0;
  }

  .principle-grid article > span {
    margin-bottom: 22px;
  }

  .closing-panel {
    grid-template-columns: 1fr;
  }

  .closing-copy {
    padding: 56px 44px 0;
  }

  .closing-visual {
    min-height: 340px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 70px;
  }

  .container,
  .nav-shell {
    width: min(calc(100% - 32px), var(--container));
  }

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 11px;
  }

  .primary-nav {
    right: 16px;
    left: 16px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 48px);
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 9px;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 14vw, 5rem);
    letter-spacing: -0.075em;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-actions .button {
    min-height: 48px;
    padding-inline: 19px;
    font-size: 13px;
  }

  .hero-stage {
    min-height: 505px;
    padding: 34px 12px;
    border-radius: 27px;
  }

  .tech-console {
    width: calc(100% - 14px);
  }

  .console-body {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .diagnostic-card {
    display: grid;
    grid-template-columns: 1fr 92px;
    gap: 12px;
    align-items: center;
  }

  .diagnostic-head {
    grid-column: 1;
  }

  .device-visual {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 88px;
    height: 88px;
    margin: 0;
  }

  .device-core {
    width: 44px;
    height: 44px;
  }

  .metric-list {
    grid-column: 1;
  }

  .metric {
    grid-template-columns: 48px 1fr 16px;
    font-size: 6px;
  }

  .console-footer {
    justify-content: space-between;
    gap: 8px;
    padding-inline: 12px;
    font-size: 6px;
  }

  .code-lines {
    font-size: 8px;
  }

  .code-lines .ln {
    width: 25px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }

  .meta-item {
    min-height: 78px;
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .meta-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-kicker {
    margin-bottom: 17px;
    font-size: 10px;
  }

  .section-heading h2,
  .method-copy h2,
  .principles-banner h2,
  .closing-copy h2 {
    font-size: clamp(2.35rem, 12vw, 3.75rem);
  }

  .section-intro {
    font-size: 14px;
  }

  .capability-card {
    padding: 24px;
  }

  .card-icon {
    width: 46px;
    height: 46px;
  }

  .feature-list li {
    font-size: 12px;
  }

  .method-layout {
    gap: 50px;
  }

  .method-copy > p {
    font-size: 14px;
  }

  .process-item {
    grid-template-columns: 45px 1fr;
    gap: 18px;
    min-height: 0;
    padding-bottom: 34px;
  }

  .process-number {
    width: 38px;
    height: 38px;
    font-size: 9px;
  }

  .process-line {
    top: 40px;
    left: 19px;
    bottom: 4px;
  }

  .process-item h3 {
    margin-top: 3px;
    font-size: 1.5rem;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 0;
  }

  .skill-row:hover {
    padding-inline: 0;
    background: transparent;
  }

  .skill-tags span {
    padding: 6px 10px;
    font-size: 10px;
  }

  .principles {
    padding-top: 0;
  }

  .principles-banner {
    padding-top: 58px;
    padding-bottom: 46px;
  }

  .closing-panel {
    margin-top: 60px;
    border-radius: 24px;
  }

  .closing-copy {
    padding: 40px 28px 0;
  }

  .closing-visual {
    min-height: 290px;
    transform: scale(0.88);
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding-bottom: 30px;
  }

  .site-footer {
    padding: 50px 0 30px;
  }

  .record-links {
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
  }

  .record-separator {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-tags span {
    padding: 6px 9px;
    font-size: 10px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .console-bar {
    gap: 8px;
    padding-inline: 12px;
  }

  .console-path {
    max-width: 120px;
  }

  .diagnostic-card {
    grid-template-columns: 1fr 78px;
  }

  .device-visual {
    width: 78px;
    height: 78px;
  }

  .code-lines {
    font-size: 7px;
  }

  .footer-brand p {
    max-width: 230px;
    line-height: 1.6;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
