:root {
  color-scheme: dark;
  --bg: #080a0e;
  --bg-soft: #0b0e13;
  --surface: #11161d;
  --surface-strong: #151b24;
  --text: #f5f8fc;
  --muted: #9aa4b3;
  --line: rgba(178, 200, 225, 0.12);
  /* Palette tuned to the FaithDevs cube logo (royal blue, pale blue, navy). */
  --brand: #5c9bd6;
  --brand-strong: #2f6fb5;
  --navy: #13315c;
  --teal: #9cd0f5;
  --amber: #c2ddf2;
  --rose: #4f86c6;
  --green: #7fb8e8;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 40px));
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fbff;
  --bg-soft: #edf4fc;
  --surface: rgba(8, 30, 54, 0.055);
  --surface-strong: rgba(8, 30, 54, 0.105);
  --text: #07101d;
  --muted: #526173;
  --line: rgba(8, 30, 54, 0.14);
  --shadow: 0 24px 70px rgba(39, 72, 101, 0.18);
  /* Vivid mid-blue accents: visible on the light background, still punchy (not navy). */
  --brand: #2f7fcf;
  --teal: #2f7fcf;
  --green: #1f9d63;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 13%, rgba(92, 155, 214, 0.12), transparent 22rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 52%, var(--bg));
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(92, 155, 214, 0.28);
}

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

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 22rem;
  height: 22rem;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(92, 155, 214, 0.12), transparent 64%);
  translate: -50% -50%;
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  width: var(--container);
  margin: 0 auto;
  padding: 0.78rem 0.25rem;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0.45rem -0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  transition: 220ms ease;
  z-index: -1;
}

.site-header.is-elevated::before,
body.nav-open .site-header::before {
  border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand,
.brand-mark,
.site-nav,
.header-actions,
.hero-actions,
.hero-proof,
.panel-header,
.feature-stack,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.62rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.brand-mark img {
  width: 1.42rem;
  height: 1.42rem;
  object-fit: contain;
  transform: scale(1.9);
}

.site-nav {
  justify-content: center;
  gap: 0.28rem;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  padding: 0.48rem 0.62rem;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface);
  color: var(--text);
}

.header-actions {
  justify-content: flex-end;
  gap: 0.62rem;
}

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  transition: 180ms ease;
}

.theme-toggle:hover {
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.theme-icon {
  width: 1.02rem;
  height: 1.02rem;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 0.32rem rgba(92, 155, 214, 0.18);
}

html[data-theme="light"] .theme-icon {
  background: #0b1624;
  box-shadow: inset -0.28rem -0.18rem 0 #f8fbff, 0 0 0 0.32rem rgba(47, 132, 220, 0.14);
}

.nav-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 8px;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-toggle span:not(.sr-only) {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transition: 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 780;
  line-height: 1;
  padding: 0 1rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

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

.button-small {
  min-height: 2rem;
  font-size: 0.74rem;
  background: var(--text);
  color: var(--bg);
  padding-inline: 1rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--teal));
  border-color: transparent;
  color: #06101c;
  box-shadow: 0 18px 48px rgba(92, 155, 214, 0.18);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
}

.section-shell {
  width: var(--container);
  margin-inline: auto;
  padding: 5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
  min-height: 680px;
  padding-top: 1.1rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, currentColor 14%, transparent);
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 1rem;
  font-size: clamp(3.1rem, 5.2vw, 5.1rem);
  line-height: 1.02;
  font-weight: 900;
}

h1 em {
  display: block;
  font-style: italic;
  font-weight: 850;
}

h2 {
  margin-bottom: 0.82rem;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.06;
  font-weight: 880;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  line-height: 1.2;
}

.hero-lede,
.section-intro,
.section-heading p,
.cta-inner > p,
.site-footer p {
  color: var(--muted);
  font-size: clamp(0.92rem, 1.4vw, 1rem);
  line-height: 1.65;
}

.hero-lede {
  max-width: 545px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero-proof {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.hero-proof span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.58rem 0.82rem;
}

.hero-visual {
  position: relative;
  min-height: min(560px, 76vw);
  isolation: isolate;
  outline: none;
  --hero-x: 0;
  --hero-y: 0;
}

.hero-visual:focus-visible .panel-main,
.hero-visual:hover .panel-main {
  border-color: color-mix(in srgb, var(--teal) 62%, var(--line));
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.neuron-board {
  position: absolute;
  top: 11%;
  left: 13%;
  width: clamp(15rem, 28vw, 21rem);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--brand) 48%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 58%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--line) 58%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 55% 45%, rgba(92, 155, 214, 0.24), transparent 35%),
    color-mix(in srgb, var(--bg) 54%, transparent);
  background-size: 3.3rem 3.3rem, 3.3rem 3.3rem, auto, auto;
  box-shadow: 0 26px 90px rgba(105, 174, 234, 0.18);
  rotate: -7deg;
  translate: calc(var(--hero-x) * 8px) calc(var(--hero-y) * 8px);
  animation: pulseBoard 7s ease-in-out infinite;
  transition: translate 180ms ease, border-color 180ms ease;
}

.neuron-board::before,
.neuron-board::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  pointer-events: none;
}

.neuron-board::before {
  inset: -1.2rem;
  border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  background: linear-gradient(135deg, rgba(105, 174, 234, 0.08), transparent 58%);
  z-index: -1;
}

.neuron-board::after {
  inset: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--amber) 22%, transparent);
}

.processor-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.38rem;
  width: 5.8rem;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--teal) 56%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(105, 174, 234, 0.9), rgba(92, 155, 214, 0.64)),
    var(--surface);
  padding: 0.72rem;
  translate: -50% -50%;
  box-shadow: 0 0 42px rgba(92, 155, 214, 0.26);
  z-index: 3;
  transform: translate(calc(var(--hero-x) * 10px), calc(var(--hero-y) * 10px));
  transition: transform 180ms ease;
}

.processor-core i {
  display: block;
  border-radius: 4px;
  background: rgba(6, 16, 28, 0.42);
  animation: coreBlink 3.4s ease-in-out infinite;
}

.processor-core i:nth-child(2) {
  animation-delay: 0.45s;
}

.processor-core i:nth-child(3) {
  grid-column: 1 / -1;
  animation-delay: 0.9s;
}

.neuron {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 4px;
  background: var(--teal);
  border: 0;
  box-shadow: 0 0 24px currentColor;
  z-index: 2;
}

.n1 {
  top: 14%;
  left: 18%;
}

.n2 {
  top: 18%;
  right: 16%;
  background: var(--amber);
}

.n3 {
  top: 52%;
  left: 9%;
  background: var(--brand);
}

.n4 {
  right: 12%;
  bottom: 28%;
  background: var(--rose);
}

.n5 {
  left: 27%;
  bottom: 13%;
}

.n6 {
  right: 24%;
  bottom: 12%;
  background: var(--amber);
}

.axon {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.72;
  transform-origin: left center;
  animation: axonPulse 2.9s ease-in-out infinite;
}

.a1 {
  top: 24%;
  left: 20%;
  width: 9rem;
  rotate: 24deg;
}

.a2 {
  top: 31%;
  left: 51%;
  width: 7.2rem;
  rotate: -29deg;
  animation-delay: 0.4s;
}

.a3 {
  top: 55%;
  left: 17%;
  width: 8.7rem;
  rotate: -12deg;
  animation-delay: 0.8s;
}

.a4 {
  right: 14%;
  bottom: 29%;
  width: 7.9rem;
  rotate: 154deg;
  animation-delay: 1.2s;
}

.a5 {
  left: 32%;
  bottom: 20%;
  width: 8.8rem;
  rotate: 8deg;
  animation-delay: 1.6s;
}

.system-panel,
.system-chip {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-main {
  top: 5%;
  left: 50%;
  width: min(560px, 90vw);
  padding: 1rem 1rem 1.55rem;
  border: 2px solid color-mix(in srgb, var(--brand) 54%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(105, 174, 234, 0.14), rgba(92, 155, 214, 0.04)),
    color-mix(in srgb, var(--bg) 72%, transparent);
  box-shadow:
    0 30px 110px rgba(0, 0, 0, 0.34),
    0 0 80px rgba(105, 174, 234, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translate(calc(-50% + var(--hero-x) * -6px), calc(var(--hero-y) * -6px));
  transition: transform 180ms ease, border-color 180ms ease;
}

.panel-main::before {
  content: "";
  position: absolute;
  left: 37%;
  right: 37%;
  bottom: 0.48rem;
  height: 0.28rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 42%, transparent);
  z-index: 2;
}

.panel-main::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.95rem;
  height: 1px;
  background: var(--line);
}

.monitor-stand {
  position: absolute;
  top: calc(5% + 22rem);
  left: 50%;
  width: 9rem;
  height: 5.3rem;
  pointer-events: none;
  transform: translate(calc(-50% + var(--hero-x) * -3px), calc(var(--hero-y) * -2px));
  transition: transform 180ms ease;
}

.monitor-stand::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2.1rem;
  height: 4.1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(105, 174, 234, 0.12), transparent),
    color-mix(in srgb, var(--bg) 68%, transparent);
  translate: -50% 0;
}

.monitor-stand span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent), var(--surface);
}

.panel-header {
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.panel-header strong {
  color: var(--green);
}

.signal {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 4px;
  background: var(--green);
  box-shadow: 0 0 0 0.38rem rgba(92, 155, 214, 0.14);
}

.code-window {
  display: grid;
  gap: 0.62rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(105, 174, 234, 0.08), transparent 34%),
    #07101a;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.22);
}

.code-window span {
  display: block;
  /* Editor stays dark in both themes, so pin text to fixed light tones. */
  color: #aab8c9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.code-window b {
  color: #6cb6f0;
  font-weight: 800;
}

.ai-suggestion {
  position: relative;
  margin-top: 0.4rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
  border-radius: 8px;
  background: rgba(92, 155, 214, 0.08);
  color: #eef3f9;
  font-size: 0.86rem;
  font-weight: 760;
  padding: 0.72rem 0.82rem;
}

.ai-suggestion::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: scanLine 3.8s ease-in-out infinite;
}

.keyboard-panel {
  left: 2%;
  bottom: 2%;
  width: min(430px, 68vw);
  padding: 0.72rem;
  rotate: 3deg;
  transform: translate(calc(var(--hero-x) * 7px), calc(var(--hero-y) * -4px));
  transition: transform 180ms ease;
}

.key-row {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr 1.15fr;
  gap: 0.38rem;
}

.key-row + .key-row {
  margin-top: 0.38rem;
}

.key-row span {
  display: grid;
  place-items: center;
  min-height: 2.15rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    color-mix(in srgb, var(--bg) 68%, transparent);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.key-row .ai-key {
  border-color: color-mix(in srgb, var(--teal) 60%, var(--line));
  background: linear-gradient(135deg, var(--brand), var(--teal));
  color: #06101c;
  animation: keyGlow 2.8s ease-in-out infinite;
}

/* Light theme: the primary gradient is mid-blue, so dark text fails — use white. */
html[data-theme="light"] .button-primary,
html[data-theme="light"] .button-primary span,
html[data-theme="light"] .key-row .ai-key {
  color: #fff;
}

.mouse-panel {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: 7.4rem;
  height: 9rem;
  transform: translate(calc(var(--hero-x) * -10px), calc(var(--hero-y) * 8px));
  transition: transform 180ms ease;
}

.mouse-body {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 4.4rem;
  height: 6.3rem;
  border: 1px solid color-mix(in srgb, var(--brand) 48%, var(--line));
  border-radius: 34px 34px 24px 24px;
  background:
    linear-gradient(180deg, rgba(105, 174, 234, 0.2), transparent),
    color-mix(in srgb, var(--bg) 58%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mouse-body i {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  width: 0.34rem;
  height: 1.05rem;
  border-radius: 999px;
  background: var(--teal);
  translate: -50% 0;
  animation: mouseWheel 2.4s ease-in-out infinite;
}

.cursor-trail {
  position: absolute;
  top: 0.15rem;
  left: 0.2rem;
  width: 3.2rem;
  height: 3.2rem;
  clip-path: polygon(0 0, 0 78%, 21% 58%, 35% 96%, 50% 90%, 36% 53%, 66% 53%);
  background: linear-gradient(135deg, var(--teal), var(--brand));
  filter: drop-shadow(0 0 22px rgba(92, 155, 214, 0.42));
  animation: cursorDrift 4s ease-in-out infinite;
}

.system-chip {
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.chip-one {
  top: 42%;
  right: 2%;
}

.chip-two {
  top: 58%;
  left: 2%;
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
}

.chip-three {
  top: 49%;
  right: 12%;
  border-color: color-mix(in srgb, var(--rose) 45%, var(--line));
}

.trust-band {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: var(--container);
  margin: -1rem auto 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-band div {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  padding: 1.25rem;
}

.trust-band strong {
  display: block;
  margin-bottom: 0.42rem;
}

.trust-band span {
  color: var(--muted);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.split-section .section-intro {
  max-width: 60ch;
  margin-top: 0.6rem;
}

.service-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.service-card,
.solution-panel,
.principle-card,
.cycle-node,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.service-card {
  min-height: 11.4rem;
  padding: 1rem;
}

/* Subtle depth: soft corner glow behind content */
.service-card,
.solution-panel,
.principle-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.service-card::after,
.solution-panel::after,
.principle-card::after {
  content: "";
  position: absolute;
  top: -45%;
  right: -30%;
  width: 70%;
  height: 85%;
  background: radial-gradient(circle, rgba(92, 155, 214, 0.18), transparent 70%);
  opacity: 0.45;
  transition: opacity 220ms ease;
  pointer-events: none;
  z-index: -1;
}

.service-card > *,
.solution-panel > *,
.principle-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover,
.solution-panel:hover,
.principle-card:hover,
.faq-list details:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: var(--surface-strong);
  box-shadow: 0 16px 40px rgba(92, 155, 214, 0.12);
}

.service-card:hover::after,
.solution-panel:hover::after,
.principle-card:hover::after {
  opacity: 1;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1.15rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(105, 174, 234, 0.24), rgba(92, 155, 214, 0.14));
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(92, 155, 214, 0.18);
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.service-card:hover .card-icon {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(92, 155, 214, 0.4),
    0 0 18px rgba(92, 155, 214, 0.35);
}

.service-card p,
.solution-panel p,
.principle-card p,
.cycle-node p,
.faq-list p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.center {
  max-width: 790px;
  margin-inline: auto;
  text-align: center;
}

.center .eyebrow {
  justify-content: center;
}

.solution-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  align-items: stretch;
  margin-top: 2rem;
}

.solution-panel {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.solution-panel.featured {
  background:
    linear-gradient(135deg, rgba(105, 174, 234, 0.18), rgba(92, 155, 214, 0.1)),
    var(--surface);
}

.panel-kicker {
  display: inline-block;
  margin-bottom: 2.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 900;
}

.feature-stack {
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.feature-stack span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 720;
  padding: 0.38rem 0.55rem;
}

/* "How AI fits" cards: per-panel animated diagrams */
.panel-graph {
  width: 100%;
  max-width: 16rem;
  height: auto;
  margin-top: auto;
  align-self: center;
  overflow: visible;
}

/* Map: scan a grid to find the right use case */
.mg-cells rect {
  fill: color-mix(in srgb, var(--bg) 82%, transparent);
  stroke: var(--line);
  stroke-width: 1;
}

.mg-target {
  fill: color-mix(in srgb, var(--teal) 28%, var(--bg)) !important;
  stroke: var(--teal) !important;
  stroke-width: 1.6 !important;
}

.mg-scan {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.6;
  transform-origin: 119px 69px;
  animation: mgScan 2.6s ease-out infinite;
}

@keyframes mgScan {
  0% { transform: scale(0.45); opacity: 0; }
  35% { opacity: 0.9; }
  100% { transform: scale(1.15); opacity: 0; }
}

.mg-cross path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.75;
}

/* Refine: metrics trending up from real usage */
.tg-axis {
  stroke: var(--line);
  stroke-width: 1.2;
}

.tg-bars rect {
  fill: color-mix(in srgb, var(--teal) 22%, transparent);
  stroke: color-mix(in srgb, var(--teal) 40%, var(--line));
  stroke-width: 1;
}

.tg-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: tgDraw 3.6s ease-in-out infinite;
}

@keyframes tgDraw {
  0% { stroke-dashoffset: 240; }
  55%, 100% { stroke-dashoffset: 0; }
}

.tg-dot {
  fill: var(--teal);
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--teal) 80%, transparent));
}

@media (prefers-reduced-motion: reduce) {
  .mg-scan,
  .tg-line {
    animation: none;
  }
  .tg-line {
    stroke-dashoffset: 0;
  }
  .tg-dot {
    display: none;
  }
}

/* "How AI fits" featured card: AI system node graph */
.aif-stop-a {
  stop-color: var(--teal);
  stop-opacity: 0.9;
}

.aif-stop-b {
  stop-color: var(--teal);
  stop-opacity: 0.2;
}

.aif-links path {
  fill: none;
  stroke: url(#aiFitLine);
  stroke-width: 1.4;
  stroke-dasharray: 3 5;
  animation: aifFlow 1s linear infinite;
}

@keyframes aifFlow {
  to {
    stroke-dashoffset: -8;
  }
}

.aif-pulses circle {
  fill: var(--teal);
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--teal) 80%, transparent));
}

.aif-node rect {
  fill: color-mix(in srgb, var(--bg) 82%, transparent);
  stroke: var(--line);
  stroke-width: 1;
}

.aif-node text {
  fill: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
}

.aif-hub circle {
  fill: color-mix(in srgb, var(--teal) 24%, var(--bg));
  stroke: var(--teal);
  stroke-width: 1.6;
}

.aif-hub text {
  fill: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-anchor: middle;
  dominant-baseline: central;
}

@media (prefers-reduced-motion: reduce) {
  .aif-links path {
    animation: none;
  }
  .aif-pulses {
    display: none;
  }
}

.principles-section {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.principle-card {
  min-height: 9.5rem;
  padding: 1rem;
}

.principle-icon {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.9rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--teal) 46%, var(--line));
  background:
    linear-gradient(135deg, rgba(102, 234, 219, 0.14), rgba(92, 155, 214, 0.08)),
    color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--teal);
  box-shadow: 0 0 22px rgba(102, 234, 219, 0.08);
}

.principle-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* Product thinking: vertical timeline diagram */
.product-thinking {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 42rem;
  display: grid;
  gap: 0.85rem;
}

.pt-spine {
  position: absolute;
  left: 1.25rem;
  top: 1.6rem;
  bottom: 1.6rem;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--teal) 20%, var(--line));
  overflow: visible;
}

.pt-spine-flow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(180deg, var(--teal) 0 5px, transparent 5px 13px);
  opacity: 0.85;
  animation: ptFlow 1.1s linear infinite;
}

@keyframes ptFlow {
  to {
    background-position-y: 13px;
  }
}

.pt-pulse {
  position: absolute;
  left: 50%;
  top: 0;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--teal) 70%, transparent);
  animation: ptPulse 4.8s ease-in-out infinite;
}

@keyframes ptPulse {
  0% { top: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-spine-flow,
  .pt-pulse {
    animation: none;
  }
  .pt-pulse {
    display: none;
  }
}

.pt-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: start;
  gap: 0.35rem;
}

.pt-node {
  grid-column: 1;
  justify-self: center;
  margin-top: 1.2rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 70%, transparent);
  z-index: 1;
}

.pt-node-final {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.85rem;
  background: var(--teal);
  border: none;
}

.pt-node-final svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: var(--bg);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pt-body {
  grid-column: 2;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.pt-step:hover .pt-body {
  border-color: color-mix(in srgb, var(--teal) 50%, var(--line));
  transform: translateX(4px);
}

.pt-body .principle-icon {
  flex: none;
  margin-bottom: 0;
}

.pt-text h3 {
  margin: 0 0 0.2rem;
  color: var(--text);
}

.pt-text p {
  margin: 0;
}

.pt-outcome .pt-body {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  background:
    linear-gradient(135deg, rgba(92, 155, 214, 0.14), transparent 70%),
    color-mix(in srgb, var(--surface) 70%, transparent);
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(0, 0.86fr);
  gap: 3rem;
  align-items: center;
}

.engineering-cycle {
  position: relative;
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}

.cycle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cycle-stop-a {
  stop-color: var(--teal);
  stop-opacity: 0.95;
}

.cycle-stop-b {
  stop-color: var(--teal);
  stop-opacity: 0.15;
}

.cycle-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 0.8;
}

.cycle-flow {
  fill: none;
  stroke: url(#cycleFlow);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 2 6;
  animation: cycleFlow 1.4s linear infinite;
}

@keyframes cycleFlow {
  to {
    stroke-dashoffset: -8;
  }
}

.cycle-stops circle {
  fill: var(--teal);
  opacity: 0.85;
}

.cycle-traveler {
  fill: var(--teal);
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--teal) 80%, transparent));
}

@media (prefers-reduced-motion: reduce) {
  .cycle-flow {
    animation: none;
  }
  .cycle-traveler animateMotion {
    display: none;
  }
}

.cycle-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(13rem, 38%);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.cycle-core-label {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 1.15rem 1rem;
  border: 1px solid color-mix(in srgb, var(--teal) 42%, var(--line));
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle, rgba(92, 155, 214, 0.18), transparent 65%),
    color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
}

.cycle-core strong {
  max-width: 9rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.cycle-core span {
  max-width: 11rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.cycle-node {
  position: absolute;
  width: min(12.5rem, 30%);
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, border-color 0.25s ease;
  z-index: 1;
}

.cycle-node:hover {
  transform: translate(-50%, -50%) scale(1.04);
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
}

.node-step {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 22%, transparent);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
}

.cycle-node h3 {
  margin: 0 0 0.25rem;
  color: var(--text);
}

.node-discover { top: 12%; left: 50%; }
.node-model { top: 38.3%; left: 86.1%; }
.node-build { top: 80.7%; left: 72.3%; }
.node-ship { top: 80.7%; left: 27.7%; }
.node-learn { top: 38.3%; left: 13.9%; }

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.75fr);
  gap: 3rem;
}

.faq-list {
  display: grid;
  gap: 0.62rem;
}

.faq-list details {
  padding: 0.9rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.4;
}

.faq-list summary::marker {
  color: var(--brand);
}

.faq-list p {
  margin: 0.85rem 0 0;
}

.cta-section {
  width: var(--container);
  margin: 1rem auto 0;
  padding: 0 0 3.5rem;
}

.cta-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: clamp(1.4rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: start;
}

.cta-inner::after {
  display: none;
}

.cta-inner h2,
.cta-inner > p,
.lead-form {
  position: relative;
  z-index: 1;
}

.cta-inner .eyebrow,
.cta-inner h2,
.cta-inner > p {
  grid-column: 1;
}

.lead-form {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.cta-inner h2 {
  max-width: 520px;
}

.cta-inner > p {
  max-width: 360px;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 860px;
  margin-top: 0;
}

.lead-form label {
  display: grid;
  gap: 0.45rem;
}

.lead-form span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--text);
  outline: none;
  padding: 0.82rem 0.9rem;
  transition: 180ms ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.22rem rgba(105, 174, 234, 0.16);
}

.lead-form textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.site-footer {
  display: block;
  width: var(--container);
  margin: 0 auto;
  margin-top: 1.5rem;
  padding: 2.6rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 0%, rgba(92, 155, 214, 0.08), transparent 60%),
    var(--surface);
  color: var(--muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 30rem;
}

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

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.8rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.footer-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 180ms ease;
}

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

.footer-nav a:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.footer-bottom p {
  font-size: 0.78rem;
}

.footer-back-top {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.footer-back-top:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

@keyframes pulseBoard {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 1.025;
  }
}

@keyframes coreBlink {
  0%,
  100% {
    opacity: 0.48;
  }
  50% {
    opacity: 1;
  }
}

@keyframes axonPulse {
  0%,
  100% {
    transform: scaleX(0.34);
    opacity: 0.34;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.9;
  }
}

@keyframes keyGlow {
  0%,
  100% {
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 0 0 rgba(92, 155, 214, 0);
  }
  50% {
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 0 24px rgba(92, 155, 214, 0.35);
  }
}

@keyframes mouseWheel {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.58;
  }
  50% {
    transform: translateY(0.55rem);
    opacity: 1;
  }
}

@keyframes cursorDrift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(0.8rem, 0.45rem);
  }
}

@keyframes rotateRing {
  to {
    rotate: 360deg;
  }
}

@keyframes scanLine {
  0%,
  100% {
    transform: scaleX(0.22);
    opacity: 0.55;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 0.98fr) minmax(380px, 0.82fr);
  }

  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 880px) {
  :root {
    --container: min(100vw - 28px, 720px);
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 4.9rem;
    display: grid;
    justify-content: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    box-shadow: var(--shadow);
    padding: 0.65rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 180ms ease;
    backdrop-filter: blur(20px);
  }

  .site-nav a {
    padding: 0.9rem;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .header-actions .button-small {
    display: none;
  }

  .hero,
  .section-shell {
    padding: 3.8rem 0;
  }

  .hero {
    min-height: auto;
    gap: 2.6rem;
    padding-top: 2.4rem;
  }

  h1 {
    max-width: 620px;
    font-size: clamp(2.6rem, 8vw, 3.8rem);
    line-height: 1.03;
  }

  .trust-band,
  .split-section,
  .service-grid,
  .solution-layout,
  .principles-section,
  .principle-grid,
  .process,
  .faq-section,
  .cta-inner,
  .lead-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .cta-inner .eyebrow,
  .cta-inner h2,
  .cta-inner > p,
  .lead-form {
    grid-column: 1;
    grid-row: auto;
  }

  .trust-band {
    margin-top: 0;
  }

  .hero-visual {
    min-height: 31rem;
  }

  .keyboard-panel {
    left: 0;
    width: min(340px, 64vw);
  }

  .monitor-stand {
    left: min(14rem, 42%);
  }

  .mouse-panel {
    top: 14%;
    right: 0;
  }

  .engineering-cycle {
    aspect-ratio: auto;
    max-width: none;
    display: grid;
    gap: 0.7rem;
  }

  .cycle-canvas {
    display: none;
  }

  .cycle-core,
  .cycle-node {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    transform: none;
  }

  .cycle-node:hover {
    transform: none;
  }

  .cycle-core {
    order: -1;
  }

  .cycle-core-label {
    aspect-ratio: auto;
    border-radius: 12px;
    justify-items: start;
    text-align: left;
  }

  .cycle-core strong,
  .cycle-core span {
    max-width: none;
  }

  .site-footer {
    padding: 2.2rem 1.5rem;
  }

  .footer-top {
    gap: 2rem;
  }
}

/* Tablet: 2-column card grids instead of single column */
@media (min-width: 561px) and (max-width: 880px) {
  .service-grid,
  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 24px, 520px);
  }

  .site-header::before {
    inset-inline: -0.3rem;
  }

  .brand {
    font-size: 0.86rem;
  }

  .brand-mark {
    width: 1.62rem;
    height: 1.62rem;
  }

  .brand-mark img {
    width: 1.34rem;
    height: 1.34rem;
  }

  .theme-toggle,
  .nav-toggle {
    width: 2.2rem;
    height: 2.2rem;
  }

  h1 {
    max-width: 22rem;
    margin-bottom: 0.8rem;
    font-size: clamp(2.18rem, 10.5vw, 3.05rem);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .eyebrow {
    margin-bottom: 0.58rem;
    font-size: 0.62rem;
  }

  .hero-lede,
  .section-intro,
  .section-heading p,
  .cta-inner > p,
  .site-footer p {
    font-size: 0.88rem;
    line-height: 1.56;
  }

  .button {
    width: 100%;
    min-height: 2.7rem;
  }

  .hero-actions {
    align-items: stretch;
    gap: 0.62rem;
    margin-top: 1.25rem;
  }

  .hero-visual {
    min-height: 28.5rem;
  }

  .keyboard-panel {
    top: 13.7rem;
    left: 0;
    right: 0;
    width: auto;
    bottom: auto;
    padding: 0.5rem;
    rotate: 0deg;
  }

  .mouse-panel {
    display: none;
  }

  .monitor-stand {
    display: none;
  }

  .panel-main {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    padding: 0.72rem 0.72rem 1.05rem;
    border-width: 1px;
    transform: translate(calc(var(--hero-x) * -6px), calc(var(--hero-y) * -6px));
  }

  .panel-main::before {
    bottom: 0.38rem;
    height: 0.22rem;
  }

  .panel-main::after {
    left: 0.72rem;
    right: 0.72rem;
    bottom: 0.76rem;
  }

  .panel-header {
    gap: 0.55rem;
    font-size: 0.66rem;
  }

  .signal {
    width: 0.5rem;
    height: 0.5rem;
    box-shadow: 0 0 0 0.24rem rgba(92, 155, 214, 0.12);
  }

  .code-window {
    gap: 0.38rem;
    margin-top: 0.68rem;
    padding: 0.62rem;
  }

  .code-window span,
  .ai-suggestion {
    font-size: 0.64rem;
    line-height: 1.42;
  }

  .ai-suggestion {
    margin-top: 0.24rem;
    padding: 0.55rem 0.62rem;
  }

  .key-row {
    gap: 0.28rem;
  }

  .key-row + .key-row {
    margin-top: 0.28rem;
  }

  .key-row span {
    min-height: 1.62rem;
    border-radius: 5px;
    font-size: 0.55rem;
  }

  .service-card,
  .solution-panel.featured {
    min-height: auto;
  }

  .section-shell {
    padding: 3.4rem 0;
  }

  .service-grid,
  .solution-layout,
  .principle-grid,
  .faq-list {
    gap: 0.7rem;
  }

  .product-thinking {
    gap: 0.65rem;
  }

  .pt-step {
    grid-template-columns: 1.9rem 1fr;
  }

  .pt-spine {
    left: 0.95rem;
  }

  .pt-body {
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem;
  }

  .service-card,
  .solution-panel,
  .principle-card,
  .faq-list details {
    padding: 0.9rem;
  }

  .cta-inner {
    gap: 1.2rem;
    padding: 1.1rem;
  }

  .site-footer {
    padding: 1.8rem 1.3rem;
    border-radius: 14px;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.8rem;
  }

  .site-footer .brand {
    font-size: 1rem;
  }

  .footer-contact {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

@media (max-width: 390px) {
  .hero {
    gap: 2rem;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .hero-visual {
    min-height: 27rem;
  }

  .keyboard-panel {
    top: 13.2rem;
  }

  .code-window span,
  .ai-suggestion {
    font-size: 0.6rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Contact icons */
.button {
  gap: 0.5rem;
}

.btn-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.lead-form .button-primary,
.lead-form .button-primary span {
  color: #fff;
  font-size: inherit;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.contact-link[hidden] {
  display: none;
}

.contact-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  color: var(--brand);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-link {
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  gap: 0;
}

.social-link .contact-icon {
  width: 1.15rem;
  height: 1.15rem;
}

#contact-whatsapp .contact-icon {
  color: #25d366;
}

#contact-facebook .contact-icon {
  color: #1877f2;
}

#contact-linkedin .contact-icon {
  color: #0a66c2;
}
