:root {
  color-scheme: dark;
  --bg: #07070a;
  --bg-2: #101117;
  --bg-3: #181923;
  --ink: #f6f2ea;
  --muted: #b8bac5;
  --soft: #7d8191;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --amber: #f4a62a;
  --coral: #ff5a3d;
  --cyan: #55d4df;
  --green: #9ccc65;
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
  --max: 1180px;
  --pad: clamp(18px, 4vw, 48px);
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, ui-monospace, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.86), rgba(7, 7, 10, 0.98)),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--amber);
  color: #16110a;
}

#system-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(244, 166, 42, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(85, 212, 223, 0.06) 1px, transparent 1px),
    #07070a;
  background-size: 42px 42px;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__frame {
  width: min(360px, calc(100vw - 40px));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 28px;
  background: rgba(16, 17, 23, 0.74);
  box-shadow: var(--shadow);
}

.loader__label,
.loader__status {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loader__title {
  display: block;
  margin: 10px 0 20px;
  font-family: var(--mono);
  font-size: clamp(32px, 8vw, 48px);
  letter-spacing: 0.08em;
}

.loader__bar {
  height: 4px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.loader__bar span {
  display: block;
  width: 12%;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--coral), var(--cyan));
  transition: width 160ms ease;
}

.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  pointer-events: none;
  translate: -50% -50%;
}

.cursor {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244, 166, 42, 0.48);
  border-radius: 50%;
  opacity: 0;
  transition: width 160ms ease, height 160ms ease, border-color 160ms ease;
}

.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  border-color: rgba(85, 212, 223, 0.7);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(244, 166, 42, 0.58);
  border-radius: 6px;
  color: var(--amber);
  background: rgba(244, 166, 42, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
}

.nav a {
  position: relative;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  transition: width 180ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  min-height: 90svh;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  padding: 112px var(--pad) clamp(34px, 6vw, 68px);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -4;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
  filter: saturate(0.92) contrast(1.04);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(7, 7, 10, 0.9) 0%, rgba(7, 7, 10, 0.68) 48%, rgba(7, 7, 10, 0.3) 100%),
    linear-gradient(0deg, #07070a 0%, rgba(7, 7, 10, 0.26) 44%, rgba(7, 7, 10, 0.64) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 82%);
  opacity: 0.36;
}

.hero__content {
  width: min(820px, 100%);
}

.eyebrow,
.section__label {
  margin: 0 0 18px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(48px, 9vw, 116px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--ink), var(--cyan) 38%, var(--amber) 78%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__copy {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: translate 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  translate: 0 -2px;
}

.button--primary {
  border-color: rgba(244, 166, 42, 0.82);
  color: #17100a;
  background: linear-gradient(135deg, var(--amber), var(--coral));
}

.button--ghost:hover {
  border-color: var(--cyan);
  background: rgba(85, 212, 223, 0.08);
}

.signal-panel {
  display: grid;
  gap: 12px;
  align-self: center;
  width: min(430px, 100%);
}

.signal-panel div {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(12, 13, 18, 0.58);
  backdrop-filter: blur(14px);
}

.signal-panel div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(244, 166, 42, 0.64);
  opacity: 0;
  transition: opacity 180ms ease;
}

.signal-panel div:hover::before {
  opacity: 1;
}

.signal-panel span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.signal-panel strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
}

.signal-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 23, 0.92);
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 18px 0;
  animation: ticker 28s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker span::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 18px;
  border-radius: 50%;
  background: var(--green);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(80px, 11vw, 148px) var(--pad);
  background: rgba(7, 7, 10, 0.88);
}

.section--intro {
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.96), rgba(16, 17, 23, 0.94)),
    var(--bg-2);
}

.section--flow {
  background: #11131a;
}

.section--stack {
  background: #080b0d;
}

.section--contact {
  background:
    linear-gradient(135deg, rgba(244, 166, 42, 0.12), rgba(85, 212, 223, 0.06)),
    #08080c;
}

.section__intro {
  max-width: var(--max);
  margin: 0 auto 42px;
}

.section__intro h2,
.flow__copy h2,
.contact-copy h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section__intro p:not(.section__label),
.contact-copy p:not(.section__label) {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.76;
}

.systems-grid {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.system-card {
  min-height: 310px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: background 180ms ease, translate 180ms ease;
}

.system-card:last-child {
  border-right: 0;
}

.system-card:hover {
  background: rgba(244, 166, 42, 0.09);
}

.system-card__code {
  display: inline-flex;
  margin-bottom: 50px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
}

.system-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.12;
}

.system-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.flow {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(34px, 6vw, 74px);
  align-items: start;
}

.flow__copy {
  position: sticky;
  top: 110px;
}

.flow__steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow__steps li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.flow__steps span {
  color: var(--amber);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow__steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.timeline__date {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline__body h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 34px);
}

.timeline__body p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.74;
}

.stack-cloud {
  display: flex;
  max-width: var(--max);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-cloud span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.stack-cloud span:hover {
  border-color: var(--amber);
  color: var(--ink);
  background: rgba(244, 166, 42, 0.08);
}

.contact-shell {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(7, 7, 10, 0.54);
  text-decoration: none;
  transition: border-color 180ms ease, translate 180ms ease, background 180ms ease;
}

.contact-links a:hover {
  border-color: var(--cyan);
  translate: 0 -2px;
  background: rgba(85, 212, 223, 0.08);
}

.contact-links span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-links strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line);
  color: var(--soft);
  background: #07070a;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer a {
  color: var(--ink);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: end;
  }

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

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

  .system-card {
    border-bottom: 1px solid var(--line);
  }

  .system-card:nth-child(2n) {
    border-right: 0;
  }

  .system-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .flow,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .flow__copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav {
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .nav a {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .hero {
    min-height: 92svh;
    padding-top: 96px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(7, 7, 10, 0.72), rgba(7, 7, 10, 0.9) 64%, #07070a 100%),
      linear-gradient(90deg, rgba(7, 7, 10, 0.85), rgba(7, 7, 10, 0.26));
  }

  .hero__media img {
    object-position: 50% 36%;
  }

  .hero__copy {
    font-size: 16px;
  }

  .signal-panel,
  .systems-grid,
  .timeline__item,
  .flow__steps li {
    grid-template-columns: 1fr;
  }

  .signal-panel {
    display: none;
  }

  .system-card,
  .system-card:nth-child(2n),
  .system-card:nth-last-child(-n + 2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .system-card:last-child {
    border-bottom: 0;
  }

  .system-card__code {
    margin-bottom: 28px;
  }

  .timeline__item {
    gap: 10px;
  }

  .footer {
    flex-direction: column;
  }
}

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

  #system-canvas,
  .cursor,
  .cursor-ring {
    display: none;
  }
}
