:root {
  --bg: #091018;
  --bg-deep: #04080d;
  --surface: rgba(11, 19, 27, 0.84);
  --surface-strong: rgba(14, 24, 34, 0.96);
  --surface-soft: rgba(16, 30, 42, 0.78);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.17);
  --line-warm: rgba(255, 137, 81, 0.34);
  --line-cool: rgba(117, 228, 255, 0.34);
  --text: #eff6f8;
  --muted: #a9b7bf;
  --muted-strong: #d5e0e5;
  --warm: #ff8a51;
  --warm-soft: rgba(255, 138, 81, 0.16);
  --cool: #75e4ff;
  --cool-soft: rgba(117, 228, 255, 0.16);
  --gold: #ffd36a;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 138, 81, 0.14), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(117, 228, 255, 0.1), transparent 26%),
    linear-gradient(115deg, #0d0605 0%, #080d13 38%, #040c12 72%, #02070d 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 138, 81, 0.08), transparent 34%, transparent 62%, rgba(117, 228, 255, 0.08)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgba(255, 255, 255, 0.025) 80px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 79px,
      rgba(255, 255, 255, 0.025) 80px
    );
  opacity: 0.34;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 8, 13, 0.24) 0%, rgba(4, 8, 13, 0.58) 54%, rgba(4, 8, 13, 0.9) 100%);
  z-index: -2;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

[id] {
  scroll-margin-top: 96px;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.page-haze {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(92px);
  opacity: 0.72;
  pointer-events: none;
  z-index: -1;
}

.page-haze-left {
  top: -180px;
  left: -110px;
  background: rgba(255, 138, 81, 0.1);
}

.page-haze-right {
  right: -180px;
  bottom: -220px;
  background: rgba(117, 228, 255, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(4, 8, 12, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.header-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.header-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.site-header.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 7rem 0 4.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.hero-copy {
  max-width: 760px;
  padding-right: 0;
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% -6% -8% 18%;
  border-radius: 40px;
  background:
    radial-gradient(circle at 20% 34%, rgba(255, 138, 81, 0.28), transparent 34%),
    radial-gradient(circle at 82% 66%, rgba(117, 228, 255, 0.22), transparent 30%);
  filter: blur(54px);
  opacity: 0.78;
  z-index: 0;
}

.hero-terminal {
  position: relative;
  z-index: 1;
  min-height: 460px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 17, 24, 0.96), rgba(3, 8, 13, 1)),
    linear-gradient(135deg, rgba(255, 138, 81, 0.05), transparent 38%, rgba(117, 228, 255, 0.08));
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.46);
  overflow: hidden;
  isolation: isolate;
}

.hero-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.04), transparent 22%, transparent 74%, rgba(117, 228, 255, 0.06)),
    radial-gradient(circle at 14% 18%, rgba(255, 138, 81, 0.12), transparent 28%),
    radial-gradient(circle at 85% 72%, rgba(117, 228, 255, 0.12), transparent 26%);
  z-index: -2;
}

.hero-terminal::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 4;
}

.hero-terminal-bar {
  min-height: 54px;
  padding: 0 1rem 0 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(18px);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.terminal-dots span:nth-child(1) {
  background: #ff8856;
}

.terminal-dots span:nth-child(2) {
  background: #ffd36a;
}

.terminal-dots span:nth-child(3) {
  background: #75e4ff;
}

.terminal-title,
.terminal-badge,
.terminal-command,
.terminal-side,
.flow-track,
.river-field,
.terminal-status-line {
  font-family: var(--mono);
}

.terminal-title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233, 243, 247, 0.72);
}

.terminal-badge {
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(117, 228, 255, 0.2);
  background: rgba(117, 228, 255, 0.08);
  color: #aef4ff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-terminal-screen {
  position: relative;
  min-height: 406px;
  padding: 1rem 1rem 0.9rem;
  overflow: hidden;
}

.terminal-gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 35px,
      rgba(255, 255, 255, 0.035) 36px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 35px,
      rgba(255, 255, 255, 0.03) 36px
    );
  opacity: 0.24;
}

.terminal-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.72;
  mix-blend-mode: screen;
  pointer-events: none;
}

.terminal-glow-fire {
  top: 74px;
  left: -10px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 138, 81, 0.42), transparent 68%);
}

.terminal-glow-river {
  right: -18px;
  bottom: 36px;
  width: 220px;
  height: 180px;
  background: radial-gradient(circle, rgba(117, 228, 255, 0.28), transparent 70%);
}

.terminal-command {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  max-width: min(100%, 410px);
  padding: 0.7rem 0.82rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 10, 16, 0.72);
  color: rgba(223, 236, 241, 0.9);
  font-size: 0.74rem;
  line-height: 1.5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 36px rgba(0, 0, 0, 0.22);
}

.terminal-prompt {
  color: var(--gold);
  font-weight: 700;
}

.terminal-cursor {
  width: 10px;
  height: 1.05em;
  display: inline-block;
  background: rgba(117, 228, 255, 0.92);
  box-shadow: 0 0 14px rgba(117, 228, 255, 0.4);
  animation: blink 1.05s steps(1, end) infinite;
}

.terminal-side {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 0.42rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.terminal-side span {
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.terminal-side-fire {
  top: 94px;
  left: 1rem;
  justify-items: start;
  color: #ffc4a8;
}

.terminal-side-fire span {
  border: 1px solid rgba(255, 138, 81, 0.18);
  background: rgba(255, 138, 81, 0.08);
}

.terminal-side-river {
  top: 92px;
  right: 1rem;
  justify-items: end;
  color: #acf2ff;
  text-align: right;
}

.terminal-side-river span {
  border: 1px solid rgba(117, 228, 255, 0.18);
  background: rgba(117, 228, 255, 0.08);
}

.flow-track {
  position: absolute;
  left: 20%;
  right: 8%;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(255, 138, 81, 0.08), rgba(255, 255, 255, 0.02) 42%, rgba(117, 228, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
  z-index: 2;
}

.flow-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  animation: scan 7.4s linear infinite;
  opacity: 0.55;
}

.flow-track-a {
  top: 134px;
}

.flow-track-b {
  top: 206px;
}

.flow-track-c {
  top: 278px;
}

.flow-token {
  position: absolute;
  top: 50%;
  left: -24rem;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  -webkit-background-clip: text;
  background: linear-gradient(90deg, #ffb28a 0%, #ffd36a 36%, #8dedff 76%, #dffbff 100%);
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(255, 180, 125, 0.18);
  animation: token-travel 10.5s linear infinite;
}

.flow-token::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  width: 86px;
  height: 1px;
  background: linear-gradient(90deg, rgba(117, 228, 255, 0.6), transparent);
  transform: translateY(-50%);
}

.token-two {
  animation-delay: -5.2s;
}

.token-three {
  animation-duration: 12.8s;
  animation-delay: -1.8s;
}

.token-four {
  animation-duration: 11.6s;
  animation-delay: -7.1s;
}

.token-five {
  animation-duration: 12.2s;
  animation-delay: -3.4s;
}

.token-six {
  animation-duration: 10.8s;
  animation-delay: -8.6s;
}

.ember-field {
  position: absolute;
  top: 116px;
  left: 2%;
  bottom: 78px;
  width: 22%;
  pointer-events: none;
  z-index: 1;
}

.ember-field span {
  position: absolute;
  color: #ffaf83;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 10px rgba(255, 138, 81, 0.34),
    0 0 18px rgba(255, 138, 81, 0.24);
  animation: ember-rise 6.8s ease-in-out infinite;
}

.ember-field span:nth-child(1) {
  left: 22%;
  top: 72%;
  animation-delay: -2.5s;
}

.ember-field span:nth-child(2) {
  left: 54%;
  top: 66%;
  animation-delay: -0.8s;
}

.ember-field span:nth-child(3) {
  left: 18%;
  top: 44%;
  animation-delay: -4.2s;
}

.ember-field span:nth-child(4) {
  left: 58%;
  top: 32%;
  animation-delay: -1.4s;
}

.ember-field span:nth-child(5) {
  left: 36%;
  top: 16%;
  animation-delay: -5.1s;
}

.ember-field span:nth-child(6) {
  left: 64%;
  top: 82%;
  animation-delay: -3.2s;
}

.river-field {
  position: absolute;
  right: 1rem;
  bottom: 62px;
  width: 52%;
  display: grid;
  gap: 0.5rem;
  pointer-events: none;
  z-index: 1;
}

.river-field span {
  justify-self: end;
  color: rgba(152, 239, 255, 0.88);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(117, 228, 255, 0.2);
  animation: river-drift 10.5s ease-in-out infinite;
}

.river-field span:nth-child(2) {
  margin-right: 1.4rem;
  animation-delay: -5.4s;
}

.river-field span:nth-child(3) {
  margin-right: 0.5rem;
  animation-delay: -2.8s;
}

.river-field span:nth-child(4) {
  margin-right: 2.1rem;
  animation-delay: -7.2s;
}

.terminal-status-line {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  z-index: 2;
}

.terminal-status-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.9rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 138, 81, 0.26), rgba(255, 255, 255, 0.06), rgba(117, 228, 255, 0.3));
}

.terminal-status-line span {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(219, 231, 236, 0.72);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.terminal-status-line span:nth-child(1) {
  color: #ffbd9f;
  border-color: rgba(255, 138, 81, 0.16);
  background: rgba(255, 138, 81, 0.06);
}

.terminal-status-line span:nth-child(3) {
  color: #acf4ff;
  border-color: rgba(117, 228, 255, 0.16);
  background: rgba(117, 228, 255, 0.06);
}

.kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
  color: var(--text);
}

h1 {
  margin-top: 0.85rem;
  max-width: 10.5ch;
  font-size: clamp(3.15rem, 7vw, 6.2rem);
  letter-spacing: -0.05em;
}

.chaos-word {
  color: #ff9f73;
}

.stability-word {
  color: #9aefff;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 60ch;
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 1.65vw, 1.24rem);
}

.btn {
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 14px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.btn-small {
  min-height: 40px;
  padding: 0 0.95rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ff8a51 0%, #ffd36a 42%, #75e4ff 100%);
  color: #071018;
  box-shadow: 0 14px 34px rgba(255, 186, 115, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px rgba(255, 186, 115, 0.32);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 3.4rem 0 4rem;
}

.section-header {
  max-width: 760px;
}

.section-header h2 {
  margin-top: 0.6rem;
  max-width: 15ch;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.section-copy {
  margin: 1rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.flow-section .section-header h2 {
  max-width: 13ch;
}

.flow-diagram {
  position: relative;
  margin-top: 1.8rem;
  padding: 1.25rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(90deg, rgba(255, 138, 81, 0.06), transparent 36%, transparent 64%, rgba(117, 228, 255, 0.06)),
    linear-gradient(180deg, rgba(9, 16, 24, 0.96), rgba(4, 9, 14, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flow-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 89px,
      rgba(255, 255, 255, 0.022) 90px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 35%);
  opacity: 0.6;
}

.flow-diagram-head,
.flow-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.flow-diagram-head {
  margin-bottom: 0.9rem;
}

.flow-column-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.flow-column-label-chaos {
  grid-column: 1;
  justify-self: start;
  color: #ffc0a2;
}

.flow-column-label-calm {
  grid-column: 3;
  justify-self: start;
  color: #9defff;
}

.flow-row + .flow-row {
  margin-top: 1rem;
}

.flow-card {
  position: relative;
  min-height: 100%;
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flow-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
}

.flow-card-chaos {
  background:
    radial-gradient(circle at top left, rgba(255, 138, 81, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(14, 19, 25, 0.96), rgba(8, 12, 18, 0.98));
  border-color: var(--line-warm);
}

.flow-card-chaos::before {
  background: linear-gradient(90deg, var(--warm), rgba(255, 138, 81, 0));
}

.flow-card-calm {
  background:
    radial-gradient(circle at top right, rgba(117, 228, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(10, 18, 26, 0.96), rgba(5, 11, 17, 0.98));
  border-color: var(--line-cool);
}

.flow-card-calm::before {
  background: linear-gradient(90deg, rgba(117, 228, 255, 0), var(--cool));
}

.flow-card-tag,
.principle-index {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
}

.flow-card-chaos .flow-card-tag {
  color: #ffc0a2;
}

.flow-card-calm .flow-card-tag {
  color: #9defff;
}

.flow-card h3,
.principle-card h3 {
  font-size: 1.2rem;
  line-height: 1.18;
}

.flow-card p:last-child,
.principle-card p:last-child {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.flow-connector {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 0 0.25rem;
}

.flow-connector::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 138, 81, 0.72), rgba(255, 211, 106, 0.8) 48%, rgba(117, 228, 255, 0.74));
}

.flow-connector::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(117, 228, 255, 0.82);
  border-right: 2px solid rgba(117, 228, 255, 0.82);
  transform: translateY(-50%) rotate(45deg);
}

.flow-connector-label {
  position: relative;
  z-index: 1;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 15, 0.95);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.signal-grid,
.stack-grid,
.principle-grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
}

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

.signal-card,
.stack-card,
.principle-card,
.contact-panel {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 18, 26, 0.92), rgba(6, 11, 17, 0.96));
  box-shadow: var(--shadow);
}

.signal-card,
.stack-card,
.principle-card {
  padding: 1.25rem;
}

.signal-card {
  position: relative;
  overflow: hidden;
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--warm), rgba(255, 138, 81, 0));
}

.signal-tag,
.stack-eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
}

.signal-tag {
  color: #ffc0a2;
}

.stack-eyebrow {
  color: #9defff;
}

.signal-card h3,
.stack-card h3 {
  font-size: 1.2rem;
  line-height: 1.18;
}

.signal-card p:last-child,
.stack-card p:last-child {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

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

.stack-card {
  background:
    radial-gradient(circle at top right, rgba(117, 228, 255, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(10, 18, 26, 0.94), rgba(6, 11, 17, 0.98));
}

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

.principle-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(10, 18, 26, 0.94), rgba(6, 11, 17, 0.98));
}

.principle-index {
  color: var(--gold);
}

.contact-section {
  margin-bottom: 2.4rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(135deg, rgba(255, 138, 81, 0.08), transparent 24%, transparent 55%, rgba(117, 228, 255, 0.08)),
    linear-gradient(180deg, rgba(7, 13, 19, 0.98), rgba(4, 8, 13, 1));
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.4rem;
  box-shadow: var(--shadow);
}

.contact-intro h2 {
  margin-top: 0.55rem;
  max-width: 12ch;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.contact-intro p {
  margin: 0.9rem 0 0;
  max-width: 50ch;
  color: var(--muted);
}

.contact-list {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.72rem;
}

.contact-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted-strong);
  font-weight: 700;
}

.contact-list li::before {
  content: "";
  position: absolute;
  top: 0.67rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--warm), var(--cool));
}

.contact-links {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.contact-link {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  padding: 0 0.95rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.contact-link-whatsapp {
  gap: 0.75rem;
  border-color: rgba(37, 211, 102, 0.34);
  background:
    linear-gradient(135deg, rgba(37, 211, 102, 0.18), rgba(8, 14, 19, 0.95) 46%, rgba(4, 8, 13, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 30px rgba(0, 0, 0, 0.22);
}

.contact-link-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.58);
  background:
    linear-gradient(135deg, rgba(37, 211, 102, 0.26), rgba(10, 18, 24, 0.98) 48%, rgba(4, 8, 13, 1));
}

.contact-link-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(37, 211, 102, 0.14);
  color: #25d366;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-link-icon svg {
  width: 1.08rem;
  height: 1.08rem;
  display: block;
  fill: currentColor;
}

.contact-panel {
  position: relative;
  padding: 1.05rem;
  background: rgba(5, 9, 14, 0.96);
}

.form-message {
  margin: 0.95rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.82rem 0.92rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.form-message.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.form-success {
  background: rgba(38, 178, 96, 0.24);
  color: #c6ffe8;
  border-color: rgba(86, 235, 149, 0.8);
}

.form-error {
  background: rgba(183, 62, 62, 0.2);
  color: #ffd2d2;
  border-color: rgba(255, 132, 132, 0.4);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

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

.form-field {
  display: grid;
  gap: 0.36rem;
}

.form-field label {
  font-weight: 700;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  padding: 0.72rem 0.8rem;
}

.form-field textarea {
  min-height: 124px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(117, 228, 255, 0.34);
  outline-offset: 1px;
  border-color: rgba(117, 228, 255, 0.52);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.form-note a {
  color: var(--cool);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0 1.5rem;
  background: rgba(4, 8, 13, 0.52);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: grid;
  gap: 0.18rem;
}

.footer-name {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-meaning,
.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-meta {
  white-space: nowrap;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes token-travel {
  0% {
    left: -24rem;
    opacity: 0;
    filter: blur(4px);
  }

  10% {
    opacity: 1;
    filter: blur(0);
  }

  72% {
    opacity: 0.98;
  }

  100% {
    left: calc(100% + 1rem);
    opacity: 0;
    filter: blur(2px);
  }
}

@keyframes ember-rise {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: 0.3;
  }

  25% {
    opacity: 0.92;
  }

  55% {
    transform: translate3d(10px, -24px, 0) scale(1.08);
    opacity: 0.95;
  }

  78% {
    transform: translate3d(-6px, -52px, 0) scale(0.94);
    opacity: 0.44;
  }
}

@keyframes river-drift {
  0%,
  100% {
    transform: translateX(18px);
    opacity: 0.6;
  }

  50% {
    transform: translateX(-18px);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    max-width: 720px;
  }

  .flow-diagram-head,
  .flow-row {
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  }

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

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 10% 10%, rgba(255, 138, 81, 0.09), transparent 24%),
      radial-gradient(circle at 92% 14%, rgba(117, 228, 255, 0.07), transparent 22%),
      linear-gradient(180deg, #0a0504 0%, #050a10 34%, #03080f 68%, #010408 100%);
  }

  body::before {
    opacity: 0.18;
  }

  body::after {
    background: linear-gradient(180deg, rgba(2, 6, 11, 0.4) 0%, rgba(2, 6, 11, 0.66) 46%, rgba(2, 6, 11, 0.94) 100%);
  }

  .page-haze {
    width: 320px;
    height: 320px;
    filter: blur(106px);
    opacity: 0.34;
  }

  .page-haze-left {
    top: -220px;
    left: -150px;
    background: rgba(255, 138, 81, 0.07);
  }

  .page-haze-right {
    right: -170px;
    bottom: -240px;
    background: rgba(117, 228, 255, 0.06);
  }

  .site-header {
    position: sticky;
    top: 0;
    background: rgba(3, 7, 11, 0.96);
  }

  .header-inner {
    min-height: 68px;
    padding: 0.6rem 0;
    position: relative;
  }

  .header-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    margin-left: 0;
    padding: 0.95rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
      linear-gradient(135deg, rgba(255, 138, 81, 0.08), transparent 30%, rgba(117, 228, 255, 0.08)),
      linear-gradient(180deg, rgba(8, 14, 20, 0.99), rgba(3, 7, 11, 0.99));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
    display: grid;
    gap: 0.85rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .site-header.menu-open .header-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 0.72rem 0.2rem;
    color: var(--muted-strong);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .header-cta {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-visual {
    min-height: 396px;
  }

  .hero-visual::before {
    inset: 12% -8% -10% 12%;
    filter: blur(44px);
  }

  .hero-terminal {
    min-height: 396px;
    border-radius: 24px;
  }

  .hero-terminal::after {
    border-radius: 23px;
  }

  .hero-terminal-bar {
    padding-inline: 0.82rem;
  }

  .terminal-title {
    font-size: 0.64rem;
  }

  .terminal-badge {
    font-size: 0.58rem;
    padding: 0.34rem 0.54rem;
  }

  .hero-terminal-screen {
    min-height: 342px;
    padding: 0.86rem 0.8rem 0.82rem;
  }

  .flow-diagram {
    padding: 1rem;
  }

  .terminal-command {
    max-width: calc(100% - 1.2rem);
    font-size: 0.66rem;
  }

  .terminal-side {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .terminal-side-fire,
  .terminal-side-river {
    top: 84px;
  }

  .flow-track {
    left: 11%;
    right: 4%;
    height: 50px;
  }

  .flow-track-a {
    top: 124px;
  }

  .flow-track-b {
    top: 188px;
  }

  .flow-track-c {
    top: 252px;
  }

  .flow-token {
    font-size: 0.61rem;
  }

  .ember-field {
    top: 110px;
    width: 20%;
  }

  .ember-field span {
    font-size: 0.72rem;
  }

  .river-field {
    right: 0.8rem;
    bottom: 56px;
    width: 58%;
    gap: 0.34rem;
  }

  .river-field span {
    font-size: 0.62rem;
  }

  .terminal-status-line {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    gap: 0.45rem;
  }

  .terminal-status-line span {
    padding: 0.44rem 0.48rem;
    font-size: 0.53rem;
    letter-spacing: 0.1em;
  }

  .signal-card,
  .stack-card,
  .flow-card,
  .principle-card,
  .contact-section,
  .contact-panel {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
  }

  .signal-grid,
  .stack-grid,
  .principle-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .flow-diagram-head {
    display: none;
  }

  .flow-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .flow-connector {
    min-height: 56px;
  }

  .flow-connector::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 138, 81, 0.72), rgba(255, 211, 106, 0.8) 48%, rgba(117, 228, 255, 0.74));
  }

  .flow-connector::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0;
    transform: translateX(-50%) rotate(135deg);
  }

  .section {
    padding: 2.8rem 0 3.2rem;
  }

  .contact-section {
    padding: 1.25rem;
    background:
      linear-gradient(135deg, rgba(255, 138, 81, 0.06), transparent 24%, transparent 55%, rgba(117, 228, 255, 0.06)),
      linear-gradient(180deg, rgba(5, 10, 15, 0.99), rgba(2, 5, 9, 1));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }

}

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

  .reveal,
  .btn,
  .contact-link,
  .flow-track::before,
  .flow-token,
  .ember-field span,
  .river-field span,
  .terminal-cursor {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }

  .flow-track .flow-token {
    left: 1rem;
    filter: none;
  }

  .flow-track .flow-token:nth-of-type(2) {
    display: none;
  }
}
