:root {
  --font-geist-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-geist-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --background: #08090a;
  --surface: #101113;
  --surface-high: #15171a;
  --foreground: #f4f4f5;
  --muted: #9b9da2;
  --line: rgba(255, 255, 255, 0.09);
  --red: #ff2020;
  --red-bright: #ff4a4a;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
}

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

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    radial-gradient(circle at 72% 14%, rgba(110, 22, 22, 0.14), transparent 30rem),
    var(--background);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

.ambient-glow {
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.08);
  filter: blur(130px);
  pointer-events: none;
}

.ambient-glow-one {
  top: 10rem;
  right: -20rem;
}

.ambient-glow-two {
  top: 72rem;
  left: -24rem;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(calc(100% - 2rem), 78rem);
  min-height: 5.25rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.wordmark img {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 32, 32, 0.25);
  border-radius: 0.42rem;
}

.wordmark-red,
.footer-brand span {
  color: var(--red);
  text-shadow: 0 0 1rem rgba(255, 32, 32, 0.45);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  color: #b7b8bc;
  font-size: 0.84rem;
  font-weight: 550;
}

nav a {
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: white;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-status span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0.7rem rgba(255, 32, 32, 0.9);
}

.hero {
  display: grid;
  width: min(calc(100% - 2rem), 78rem);
  min-height: calc(100svh - 5.25rem);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0;
  grid-template-columns: minmax(0, 0.95fr) minmax(28rem, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-number {
  margin: 0 0 1.2rem;
  color: var(--red-bright);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(3.3rem, 6.6vw, 6.25rem);
  font-weight: 670;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

h1 span {
  color: var(--red);
  text-shadow: 0 0 2.5rem rgba(255, 32, 32, 0.2);
}

.hero-message {
  max-width: 38rem;
  margin: 1.8rem 0 0;
  color: #a9abb0;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  margin-top: 2.2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  padding: 0 1.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font-size: 0.84rem;
  font-weight: 680;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 0.8rem 2.4rem rgba(255, 32, 32, 0.16);
}

.button-primary:hover {
  background: #ff3636;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #d5d6d8;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.hero-note {
  display: flex;
  margin: 1.5rem 0 0;
  align-items: center;
  gap: 0.6rem;
  color: #686b70;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  letter-spacing: 0.035em;
}

.hero-note span {
  color: var(--red);
  font-size: 0.48rem;
}

.hero-visual {
  position: relative;
}

.logo-stage {
  position: relative;
  width: 115%;
  aspect-ratio: 3 / 2;
  margin-left: -12%;
  filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.42));
}

.brand-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.screen-animation {
  position: absolute;
  top: 36.05%;
  left: 15.15%;
  width: 20.45%;
  height: 20.35%;
  border-radius: 3%;
  clip-path: polygon(1% 0, 97% 7%, 100% 100%, 4% 97%);
  mix-blend-mode: screen;
  opacity: 0.9;
  transform: rotate(0.7deg);
  filter: saturate(1.18) contrast(1.08);
  pointer-events: none;
}

.terminal-line {
  display: flex;
  width: min(82%, 30rem);
  margin: -10% 0 0 3%;
  padding: 0.78rem 0.9rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(8, 9, 10, 0.84);
  color: #797c81;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.64rem;
  backdrop-filter: blur(18px);
}

.terminal-line span:first-child {
  color: var(--red-bright);
}

.tool-section,
.approach-section,
.launch-section {
  width: min(calc(100% - 2rem), 78rem);
  margin: 0 auto;
}

.tool-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  margin-bottom: 3rem;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
}

.section-heading .section-number {
  grid-column: 1 / -1;
}

h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.6vw, 4.3rem);
  font-weight: 640;
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-heading > p:last-child,
.approach-copy > p:last-child {
  max-width: 31rem;
  margin: 0;
  align-self: end;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tool-card {
  min-height: 23rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  transition: background 180ms ease;
}

.tool-card:hover {
  background: rgba(255, 255, 255, 0.038);
}

.tool-card-top {
  display: flex;
  margin-bottom: 4.2rem;
  align-items: center;
  justify-content: space-between;
}

.tool-code {
  display: inline-flex;
  min-width: 2.9rem;
  height: 2rem;
  padding: 0 0.55rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 32, 32, 0.22);
  border-radius: 0.35rem;
  background: rgba(255, 32, 32, 0.08);
  color: var(--red-bright);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.tool-state {
  color: #65686d;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-card h3,
.principles h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.tool-card > p {
  max-width: 29rem;
  margin: 0.85rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.tool-card ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.tool-card li {
  padding: 0.4rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: #777a7f;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
}

.approach-section {
  display: grid;
  padding: clamp(5rem, 10vw, 9rem) 0;
  grid-template-columns: minmax(0, 0.8fr) minmax(24rem, 1fr);
  gap: clamp(3rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
}

.approach-copy {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.approach-copy > p:last-child {
  margin-top: 1.8rem;
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: grid;
  padding: 2.2rem 0;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.principles li:first-child {
  border-top: 1px solid var(--line);
}

.principles > li > span {
  color: var(--red-bright);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.66rem;
}

.principles p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.launch-section {
  display: flex;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(255, 32, 32, 0.2);
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 32, 32, 0.12), transparent 18rem),
    #101113;
}

.launch-section h2 {
  max-width: 44rem;
  font-size: clamp(2rem, 4.8vw, 4.5rem);
}

.launch-status {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0.8rem 1rem;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: #adafb3;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0.8rem rgba(255, 32, 32, 0.95);
  animation: pulse 2s ease-in-out infinite;
}

footer {
  display: grid;
  width: min(calc(100% - 2rem), 78rem);
  margin: 0 auto;
  padding: 2rem 0;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #5f6267;
  font-size: 0.72rem;
}

.footer-brand {
  color: #c7c8cb;
  font-weight: 680;
}

footer p {
  margin: 0;
  text-align: center;
}

footer p:last-child {
  text-align: right;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    padding-top: 6rem;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 44rem;
  }

  .hero-visual {
    width: min(100%, 42rem);
    margin: -2rem auto 0;
  }

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

  .section-heading > p:last-child {
    margin-top: 1.4rem;
  }

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

  .approach-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 4.6rem;
  }

  nav > a:not(.nav-status) {
    display: none;
  }

  .wordmark {
    font-size: 0.9rem;
  }

  .wordmark img {
    width: 1.8rem;
    height: 1.8rem;
  }

  .hero {
    padding: 4.5rem 0 5rem;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 4.5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .logo-stage {
    width: 132%;
    margin-left: -24%;
  }

  .terminal-line {
    width: 92%;
    margin-top: -7%;
    margin-left: 0;
  }

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

  .tool-card {
    min-height: auto;
  }

  .tool-card-top {
    margin-bottom: 2.8rem;
  }

  .approach-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .launch-section {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    text-align: center;
  }

  footer p:last-child {
    text-align: center;
  }
}

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

  .status-dot {
    animation: none;
  }

  .button {
    transition: none;
  }
}
