:root {
  color-scheme: light;
  --bg: #0b0a0b;
  --bg-2: #141014;
  --bg-3: #1f1512;
  --card: rgba(19, 17, 18, 0.9);
  --card-2: rgba(28, 19, 16, 0.9);
  --text: #f7f1ed;
  --muted: #c8b8ae;
  --accent: #f36b1c;
  --accent-2: #ff8a2a;
  --accent-3: #ffb55d;
  --stroke: rgba(255, 160, 96, 0.2);
  --shadow: rgba(8, 5, 4, 0.6);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --sans: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background: radial-gradient(circle at top, #2a1a12 0%, #0b0a0b 45%)
    fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 0;
}

main::before {
  content: "";
  position: fixed;
  width: min(56vw, 560px);
  height: min(56vw, 560px);
  right: -6vw;
  top: 12vh;
  background: url("assets/logo.png") no-repeat center / contain;
  opacity: 0.09;
  filter: saturate(1.15) brightness(0.95);
  pointer-events: none;
  z-index: 0;
}

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

main {
  position: relative;
  z-index: 1;
  padding: 0 7vw 6rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(8, 6, 7, 0.7);
  border-bottom: 1px solid rgba(255, 148, 92, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 7vw;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

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

.nav-toggle {
  display: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(18, 13, 11, 0.8);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s ease;
}

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

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

.cta,
.ghost {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cta {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #1d0d04;
  box-shadow: 0 18px 45px rgba(243, 107, 28, 0.3);
}

.ghost {
  border: 1px solid var(--stroke);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  padding: 5.5rem 0 4rem;
  align-items: center;
}

.hero > *,
.grid > *,
.split > *,
.press-links > * {
  min-width: 0;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--accent-2);
  display: block;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--accent-3);
  margin-bottom: 1.2rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}

.hero-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-tags span {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(243, 107, 28, 0.12);
  color: var(--accent-3);
  font-size: 0.82rem;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 30px 60px var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.status {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent-3);
}

.terminal {
  font-family: var(--mono);
  background: #0d0a09;
  border-radius: 16px;
  padding: 1.4rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #f7e4d7;
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid rgba(243, 107, 28, 0.25);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

.stat {
  background: var(--card-2);
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px solid var(--stroke);
}

.stat h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.section {
  padding: 4.5rem 0;
}

.section-header {
  max-width: 52rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: rgba(13, 10, 9, 0.8);
  border: 1px solid rgba(255, 136, 68, 0.2);
  border-radius: 18px;
  padding: 1.4rem;
  transition: transform 0.3s ease, border 0.3s ease;
}

.feature h3 {
  margin-bottom: 0.6rem;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 174, 110, 0.6);
}

.compact {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.compact li::before {
  content: "•";
  color: var(--accent-2);
  margin-right: 0.45rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.code-card {
  background: rgba(15, 11, 11, 0.95);
  border-radius: 20px;
  padding: 1.6rem;
  border: 1px solid rgba(255, 144, 86, 0.2);
  box-shadow: 0 24px 50px rgba(6, 4, 3, 0.6);
}

.code-card h3 {
  margin-bottom: 1rem;
}

.code-card pre {
  font-family: var(--mono);
  background: #080606;
  border-radius: 14px;
  padding: 1rem;
  color: #f7e0d1;
  font-size: 0.78rem;
  overflow-x: auto;
  max-width: 100%;
}

.code-card.wide {
  margin-top: 2rem;
}

.requirements {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--muted);
}

.requirements li::before {
  content: "▸";
  color: var(--accent-2);
  margin-right: 0.6rem;
}

.accent {
  background: linear-gradient(150deg, rgba(31, 18, 12, 0.95), rgba(11, 9, 9, 0.95));
  border-radius: 32px;
  padding: 4rem 3.5vw;
  border: 1px solid rgba(255, 149, 84, 0.2);
}

.footer-callout {
  background: linear-gradient(120deg, rgba(243, 107, 28, 0.15), rgba(32, 18, 12, 0.4));
  border-radius: 28px;
  padding: 3rem;
  border: 1px solid rgba(255, 167, 100, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.press-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.press-card {
  background: rgba(13, 10, 9, 0.92);
  border-radius: 20px;
  padding: 1.6rem;
  border: 1px solid rgba(255, 144, 86, 0.2);
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: transform 0.3s ease, border 0.3s ease;
}

.press-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 174, 110, 0.6);
}

.press-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(243, 107, 28, 0.16);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.press-card p {
  color: var(--muted);
}

.site-footer {
  padding: 2.5rem 7vw 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 148, 92, 0.12);
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1.2rem;
}

.small {
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 6vw;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    gap: 0.8rem;
    padding-top: 0.4rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 0.4rem;
  }

  .nav-links a {
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 142, 79, 0.18);
    background: rgba(22, 17, 15, 0.65);
  }

  .nav-menu .nav-cta {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 4rem;
  }

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

  main::before {
    width: 64vw;
    height: 64vw;
    right: -10vw;
    top: 18vh;
  }
}

@media (max-width: 720px) {
  main {
    padding: 0 5vw 4rem;
  }

  .section {
    padding: 3.2rem 0;
  }

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

  .lead {
    font-size: 1rem;
  }

  .eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .cta,
  .hero-actions .ghost,
  .footer-callout .ghost {
    width: 100%;
  }

  .hero-card {
    padding: 1.2rem;
    border-radius: 20px;
  }

  .terminal {
    font-size: 0.64rem;
    padding: 1rem;
  }

  .code-card {
    padding: 1.2rem;
  }

  .code-card pre {
    font-size: 0.7rem;
    padding: 0.85rem;
  }

  .press-card {
    align-items: flex-start;
  }

  .footer-callout {
    padding: 2rem;
    gap: 1.2rem;
  }

  .accent {
    border-radius: 24px;
    padding: 2.2rem 5vw;
  }

  main::before {
    opacity: 0.05;
    top: 24vh;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 1.05rem;
  }

  .nav {
    padding: 0.95rem 4.5vw;
  }

  .nav-toggle {
    font-size: 0.9rem;
  }

  main {
    padding: 0 4.5vw 3.25rem;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-tags span {
    font-size: 0.75rem;
  }

  .feature,
  .stat,
  .press-card {
    padding: 1.1rem;
    border-radius: 16px;
  }

  .press-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.3rem;
  }

  .site-footer {
    padding: 2rem 4.5vw 2.4rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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