:root {
  --paper: #f4f0e8;
  --ink: #171714;
  --orange: #ff5c35;
  --lime: #d9ff57;
  --line: rgba(23, 23, 20, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header, footer {
  height: 92px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header { border-bottom: 1px solid var(--line); }

.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-mark { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.brand-mark i { display: block; width: 5px; background: var(--ink); border-radius: 2px; }
.brand-mark i:nth-child(1) { height: 10px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 22px; background: var(--orange); }

.status, .eyebrow, .machine-topline, .machine-footer, footer {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
}

.status { display: flex; align-items: center; gap: 9px; text-transform: uppercase; }
.status span, .footer-dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; animation: blink 1.8s ease-in-out infinite; }

.hero {
  min-height: calc(100vh - 214px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, .92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  padding: clamp(62px, 8vh, 110px) clamp(24px, 5vw, 76px);
}

.hero-copy { max-width: 780px; }
.eyebrow { display: flex; gap: 15px; margin: 0 0 32px; }
.eyebrow span { color: var(--orange); }

h1 {
  margin: 0;
  font-size: clamp(60px, 7.2vw, 122px);
  line-height: .87;
  letter-spacing: -.075em;
  font-weight: 700;
}

h1 em { color: var(--orange); font-style: normal; }

.intro {
  max-width: 590px;
  margin: 38px 0 0;
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.65;
  color: rgba(23, 23, 20, .7);
}

.actions { display: flex; align-items: center; gap: 30px; margin-top: 42px; }
.actions p { font-family: "DM Mono", monospace; font-size: 11px; line-height: 1.6; color: rgba(23, 23, 20, .58); }

.primary-button {
  background: var(--ink);
  color: white;
  min-width: 240px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform .25s, background .25s;
}
.primary-button:hover { transform: translateY(-3px); background: var(--orange); }
.primary-button span { font-size: 19px; }

.machine {
  position: relative;
  border: 1px solid var(--ink);
  background: rgba(255,255,255,.16);
  min-height: 610px;
  box-shadow: 14px 14px 0 var(--ink);
  transform: rotate(1deg);
}

.machine-topline, .machine-footer {
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.machine-topline { border-bottom: 1px solid var(--ink); }
.machine-topline span:last-child { color: var(--orange); }

.workflow { position: relative; height: 512px; overflow: hidden; background-image: radial-gradient(rgba(23,23,20,.18) 1px, transparent 1px); background-size: 22px 22px; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wire { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 5; }
.pulse { fill: var(--orange); filter: drop-shadow(0 0 5px var(--orange)); }
.pulse-a { offset-path: path("M105 145 C210 145 155 255 310 255"); animation: travel 3s linear infinite; }
.pulse-b { offset-path: path("M310 255 C470 255 405 370 525 370"); animation: travel 3s 1.5s linear infinite; }

.node {
  position: absolute;
  width: 180px;
  min-height: 105px;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 18px;
  box-shadow: 6px 6px 0 rgba(23,23,20,.15);
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  column-gap: 10px;
}
.node-icon { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; }
.node small { font: 9px "DM Mono", monospace; opacity: .56; }
.node strong { font-size: 14px; }
.node-trigger { left: 7%; top: 17%; }
.node-process { left: 38%; top: 39%; background: var(--orange); color: var(--ink); transform: rotate(-2deg); }
.node-process .node-icon { background: var(--lime); color: var(--ink); }
.node-result { right: 5%; bottom: 16%; }
.port { position: absolute; width: 10px; height: 10px; border: 2px solid var(--paper); outline: 1px solid var(--ink); background: var(--ink); border-radius: 50%; right: -5px; top: 47%; }
.port-in { left: -5px; right: auto; }

.floating-tag { position: absolute; font-family: "DM Mono", monospace; border: 1px solid var(--ink); background: var(--lime); transform: rotate(3deg); }
.tag-time { top: 9%; right: 5%; padding: 12px 16px; display: flex; flex-direction: column; }
.tag-time b { font: 500 23px "Manrope", sans-serif; }
.tag-time span { font-size: 9px; }
.tag-status { bottom: 8%; left: 8%; padding: 10px 13px; font-size: 9px; background: var(--paper); }
.tag-status i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #21b66f; }
.spark { position: absolute; color: var(--orange); font-size: 28px; animation: spin 7s linear infinite; }
.spark-one { right: 13%; top: 32%; }
.spark-two { left: 23%; bottom: 19%; color: var(--ink); }

.machine-footer { justify-content: center; gap: 11px; border-top: 1px solid var(--ink); }
.machine-footer b { width: 38px; height: 1px; background: var(--ink); position: relative; }
.machine-footer b::after { content: ">"; position: absolute; right: -2px; top: -7px; }

.ticker { overflow: hidden; background: var(--orange); border-block: 1px solid var(--ink); padding: 13px 0; transform: rotate(-.5deg) scale(1.01); }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 34px; animation: marquee 26s linear infinite; font: 700 12px "Manrope", sans-serif; letter-spacing: .06em; }
.ticker-track i { font-style: normal; }

footer { height: 84px; }
footer p { display: flex; align-items: center; gap: 9px; }
footer a { color: inherit; text-underline-offset: 4px; }

@keyframes travel { to { offset-distance: 100%; } }
@keyframes blink { 50% { opacity: .28; transform: scale(.75); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .machine { min-height: 550px; max-width: 680px; width: 100%; justify-self: center; }
  .workflow { height: 452px; }
}

@media (max-width: 600px) {
  .site-header { height: 72px; }
  .status { font-size: 0; }
  .hero { padding-top: 48px; gap: 60px; }
  h1 { font-size: clamp(51px, 16vw, 74px); }
  .intro { margin-top: 27px; }
  .actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .actions p { margin: 0; }
  .machine { min-height: 485px; box-shadow: 8px 8px 0 var(--ink); }
  .workflow { height: 387px; }
  .node { width: 150px; min-height: 88px; padding: 12px; grid-template-columns: 28px 1fr; }
  .node-icon { width: 28px; height: 28px; }
  .node strong { font-size: 12px; }
  .node-trigger { left: 4%; top: 16%; }
  .node-process { left: 30%; top: 41%; }
  .node-result { right: 3%; bottom: 10%; }
  .tag-time { right: 3%; padding: 9px 11px; }
  .spark-one { display: none; }
  footer { height: auto; min-height: 120px; flex-wrap: wrap; gap: 10px; padding-block: 25px; }
  footer p:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
