:root {
  --bg: #0a0a0c;
  --bg-dim: #111114;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --border: #1e1e24;
  --font-mono: "JetBrains Mono", monospace;
  --font-sans: "Inter", sans-serif;
  --container: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

div h2 {
  margin-bottom: 40px;
}

div h3 {
  margin-bottom: 20px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow {
  max-width: 800px;
}
.container.max-500 {
  max-width: 500px;
}

.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.bg-dim {
  background-color: var(--bg-dim);
}
.center {
  text-align: center;
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
}
h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: -2px;
}
h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -1px;
}
.accent {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}
.mono-tag {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: block;
  text-transform: uppercase;
}
.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}
p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Header */
.header {
  height: 80px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

.logo img {
  width: 50px;
  height: 50px;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  transition: 0.3s;
}
.nav-link:hover {
  color: var(--accent);
}
.btn-terminal {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  transition: 0.3s;
  border-radius: 4px;
}
.btn-terminal:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 25px;
  height: 2px;
  background: #fff;
}

/* Hero Node */
.hero-node {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  text-align: center;
}
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./images/liquid-marbling-paint-texture-background-fluid-painting-abstract-texture-intensive-color-mix-wallpaper.jpg");
  background-size: cover;
  opacity: 0.8;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-footer-text {
  max-width: 700px;
  margin: 40px auto 0;
}

.node-visual {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.core-circle {
  width: 80px;
  height: 80px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  z-index: 5;
}
.core-circle i {
  color: var(--accent);
  width: 32px;
  height: 32px;
}
.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.node-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  width: 150px;
  opacity: 0.4;
}
.node-line.l1 {
  transform: rotate(30deg) translateX(80px);
}
.node-line.l2 {
  transform: rotate(150deg) translateX(80px);
}
.node-line.l3 {
  transform: rotate(270deg) translateX(80px);
}

/* Anatomy */
.section-title {
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-title .num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
}

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.anatomy-card {
  padding: 40px;
  border: 1px solid var(--border);
  background: var(--bg-dim);
  border-radius: 4px;
  transition: 0.3s;
}
.anatomy-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}
.anatomy-card i {
  color: var(--accent);
  width: 40px;
  height: 40px;
  margin-bottom: 25px;
}

/* Evolution */
.split-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.evolution-box {
  display: flex;
  align-items: center;
  gap: 20px;
}
.evo-step {
  padding: 15px 30px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  border-radius: 4px;
  color: var(--text-muted);
}
.evo-step.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 20px var(--accent-glow);
}
.evo-arrow {
  color: var(--accent);
}

/* Stack */
.stack-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.stack-item {
  padding: 30px;
  border-left: 2px solid var(--accent);
  background: var(--bg-dim);
}
.stack-cat {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 10px;
}

/* Case Study */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.case-image img {
  width: 100%;
  border-radius: 8px;
  filter: grayscale(0.5);
  border: 1px solid var(--border);
}

/* Privacy */
.privacy-box {
  text-align: center;
  padding: 60px;
  border: 1px solid var(--accent);
  border-style: dashed;
}
.huge-icon {
  width: 64px;
  height: 64px;
  color: var(--accent);
  margin-bottom: 30px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
}
.faq-q {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #fff;
}

.faq-title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 64px;
}

/* Form */
.terminal-form-card {
  background: #1a1a1e;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
}
.terminal-header {
  padding: 12px 20px;
  background: #252529;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #999;
  margin-left: 10px;
}

.column-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.form-group input {
  padding: 14px;
  background: #0a0a0c;
  border: 1px solid #333;
  color: #fff;
  font-family: var(--font-mono);
  border-radius: 4px;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.form-check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
}
.form-check label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-check a {
  text-decoration: underline;
  color: var(--accent);
}

.btn-submit {
  padding: 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 4px;
}
.btn-submit:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: #050507;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr;
  gap: 60px;
}
.footer-col .logo {
  margin-bottom: 20px;
}
.footer-col p {
  font-size: 0.9rem;
}
.footer-col i {
  color: var(--accent);
  width: 16px;
  margin-right: 10px;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}
.legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
}
.legal-links a:hover {
  color: #fff;
}
.copy {
  font-size: 0.75rem;
  color: #444;
}

/* Cookie & Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.mobile-menu.active {
  display: flex;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}
.mobile-nav a {
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
}
.close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 3rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.cookie-modal {
  position: fixed;
  bottom: 30px;
  left: 30px;
  right: 30px;
  max-width: 450px;
  background: var(--bg-dim);
  border: 1px solid var(--accent);
  padding: 30px;
  display: none;
  z-index: 5000;
}
.cookie-content h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
  .anatomy-grid,
  .split-info,
  .stack-layout,
  .case-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero-node {
    padding: 120px 0 60px;
  }
  .node-line {
    display: none;
  }
  .evolution-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    margin: 80px 0 30px;
    font-size: 28px;
  }
}
