:root {
  --bg: #050608;
  --bg-alt: #0b0d12;
  --fg: #f5f5f7;
  --muted: #8b8f9a;
  --accent: #f47853; /* #4ade80; */
  --accent-soft: rgba(74, 222, 128, 0.12);
  --danger: #f97373;
  --border: #1b1f2a;
  --card-bg: #0d1017;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #101320 0, #050608 55%);
  color: var(--fg);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 7vw;
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.96), rgba(5, 6, 8, 0.85), transparent);
  border-bottom: 1px solid rgba(27, 31, 42, 0.7);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.4);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.85rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

.nav a:hover {
  color: var(--fg);
}

.nav a:hover::after {
  width: 100%;
}

main {
  flex: 1;
  padding: 2.5rem 7vw 3.5rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 3rem;
  align-items: center;
  padding: 3rem 0 2.5rem;
}

.hero-content h1 {
  font-size: 3.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.hero-content h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
  color: var(--muted);
}

.tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0.4rem 0 1.2rem;
}

.hero-text {
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.btn.primary {
  background: var(--accent);
  color: #020617;
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(244, 120, 83, 0.45);
}

.btn.primary:hover {
  box-shadow: 0 0 30px rgba(244, 120, 83, 0.45);
}

.btn.secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn.secondary:hover {
  border-color: var(--accent);
  background: rgba(74, 222, 128, 0.06);
}

/* Hero visual */

.hero-visual {
  display: flex;
  justify-content: center;
}

@keyframes pulse { 0%, 100% { box-shadow: 0 0 12px rgba(244, 120, 83, 0.6), 0 0 24px rgba(244, 120, 83, 0.3); } 50% { box-shadow: 0 0 20px rgba(244, 120, 83, 0.9), 0 0 32px rgba(244, 120, 83, 0.5); } }

@keyframes flow { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

@keyframes float { 0% { transform: translate(0, 0); } 25% { transform: translate(6px, -4px); } 50% { transform: translate(-4px, 6px); } 75% { transform: translate(5px, 3px); } 100% { transform: translate(0, 0); } }

@keyframes edgeFloat { 0% { transform: translate(0, 0) rotate(var(--angle)); } 50% { transform: translate(4px, -3px) rotate(var(--angle)); } 100% { transform: translate(0, 0) rotate(var(--angle)); } }

@keyframes stretch { 0%, 200% { width: 100%; } 50% { width: 103%; } }


.graph {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 24px;
  background: radial-gradient(circle at top, #151827 0, #050608 70%);
  border: 1px solid var(--accent);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(244, 120, 83, 0.9);
  animation: pulse 2.8s ease-in-out infinite, float 6s ease-in-out infinite;
  will-change: box-shadow;
}

.node-entry {
  top: 26%;
  left: 18%;
  animation-delay: 0s, 0s;
}

.node-stage {
  top: 46%;
  left: 44%;
  animation-delay: 0s, 1.2s;
}

.node-payload {
  top: 70%;
  left: 70%;
  animation-delay: 0s, 2.4s;
}

.node-evasion {
  top: 26%;
  left: 72%;
  animation-delay: 0s, 3.6s;
}

.edge {
  position: absolute;
  height: 2px;
  background: linear-gradient(to right, rgba(244, 120, 83, 0.1), rgba(244, 120, 83, 0.9));
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: flow 3.5s linear infinite, edgeFloat 7s ease-in-out infinite, stretch 5s ease-in-out infinite;
  transform-origin: left center;
  opacity: 0.9;
  will-change: background-position;
}


.edge-1 {
  top: 30%;
  left: 19%;
  width: 120px;
  transform: rotate(12deg);
  --angle: 12deg;
}

.edge-2 {
  top: 52%;
  left: 26%;
  width: 130px;
  transform: rotate(32deg);
  --angle: 32deg;
}

.edge-3 {
  top: 54%;
  left: 52%;
  width: 90px;
  transform: rotate(-28deg);
  --angle: -28deg;
}

/* Sections */

.section {
  padding: 2.5rem 0;
  max-width: 54rem;
}

.section h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
}

.section p {
  color: var(--muted);
  line-height: 1.7;
}

.section-intro {
  margin-bottom: 1.4rem;
}

blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--fg);
  font-style: italic;
}

/* Grid sections */

.section-grid {
  max-width: 64rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.card {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.55);
}

.card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Lists */

.bullets {
  list-style: none;
  padding-left: 0;
  margin: 0.8rem 0 1.2rem;
}

.bullets li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.bullets li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  color: var(--accent);
}

/* Warning */

.warning {
  border-radius: 14px;
  border: 1px solid rgba(249, 115, 115, 0.5);
  background: radial-gradient(circle at top left, rgba(249, 115, 115, 0.12), transparent 55%);
  padding: 2rem 1.6rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(27, 31, 42, 0.7);
  padding: 1.2rem 7vw 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  background: #050608;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-brand {
  font-weight: 500;
}

.footer-tagline {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
    margin-bottom: 1.6rem;
  }

  .nav {
    display: none;
  }

  .site-header {
    padding-inline: 5vw;
  }

  main {
    padding-inline: 5vw;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.6rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .section {
    padding: 2rem 0;
  }
}
