:root {
  color-scheme: dark;
  color: #e7edf8;
  background: #0b0f14;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  background: radial-gradient(circle at top, rgba(86, 122, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #0b0f14 0%, #06080d 100%);
  color: #e7edf8;
}

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

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 24px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

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

.nav-links a:hover {
  color: #74b2ff;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #8da2c7;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 24px 0 0;
  color: #c7d1e8;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 26px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #5b9dff, #7e6bff);
  color: white;
  border-color: transparent;
}

.button-secondary {
  background: rgba(255,255,255,0.05);
  color: #d4e0ff;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.visual-card {
  width: min(100%, 420px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 28px;
  background: rgba(20, 28, 42, 0.95);
  box-shadow: 0 40px 120px rgba(26, 40, 62, 0.22);
}

.visual-tag {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(88, 122, 255, 0.12);
  color: #9bb2d9;
  font-size: 0.82rem;
  margin-bottom: 22px;
}

.visual-panel {
  display: grid;
  gap: 16px;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.section {
  margin-bottom: 56px;
}

.panel {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.section-secondary {
  background: rgba(255,255,255,0.02);
  border-radius: 32px;
  padding: 36px;
}

.section-header {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}

.section-label {
  color: #8da2c7;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.section-copy {
  margin: 0;
  color: #b2bdd7;
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 20px;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 149, 255, 0.35);
  background: rgba(65, 94, 166, 0.12);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: #c3d1eb;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge.active,
.badge.green {
  background: rgba(34, 190, 125, 0.16);
  color: #a6f7c5;
}

.badge.soon {
  background: rgba(255, 212, 92, 0.16);
  color: #ffd97d;
}

.module-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.module-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 95, 255, 0.4);
  background: rgba(113, 95, 255, 0.12);
}

.module-card.soon {
  opacity: 0.88;
}

.demo-section {
  padding-top: 32px;
}

.demo-card,
.process-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 32px;
  padding: 28px;
}

.demo-header p,
.process-card p,
.info-card p,
.step-details p {
  margin: 10px 0 0;
  color: #bcc9e5;
}

.overflow-controls {
  display: grid;
  gap: 18px;
}

.overflow-controls label {
  display: grid;
  gap: 10px;
  color: #cad5ea;
}

.overflow-controls input[type='text'] {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #f3f7ff;
  padding: 14px 16px;
}

.range-row {
  display: grid;
  gap: 10px;
}

.range-row span {
  font-size: 0.95rem;
  color: #a8b4d1;
}

.range-row input[type='range'] {
  width: 100%;
}

.stack-visual {
  display: grid;
  gap: 16px;
}

.stack-label {
  color: #8da2c7;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-box {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.label-row {
  background: rgba(255,255,255,0.05);
  font-weight: 600;
  padding: 18px;
}

.buffer-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  padding: 16px;
}

.buffer-cell {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  color: #6d82b0;
  background: rgba(255,255,255,0.02);
}

.buffer-cell.filled {
  background: radial-gradient(circle at top left, rgba(34, 190, 125, 0.28), rgba(46, 137, 255, 0.18));
  color: #e7f1ff;
  border-color: rgba(97, 196, 255, 0.4);
}

.stack-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 0.95rem;
}

.saved-ebp {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.return-eip {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

.return-eip.overwritten {
  background: rgba(255, 84, 94, 0.16);
  border-color: rgba(255, 84, 94, 0.35);
}

.pointer-bar {
  display: grid;
  gap: 10px;
}

.pointer-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.pointer-item strong {
  color: #eef5ff;
}

.demo-log-panel {
  border-radius: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.log-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.log-entry {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  color: #d7e3ff;
  margin-bottom: 10px;
}

.log-entry.warning {
  color: #ffe3a4;
  background: rgba(255, 189, 74, 0.12);
}

.log-entry.danger {
  color: #ffb7c1;
  background: rgba(255, 79, 88, 0.14);
}

.hidden {
  display: none;
}

.crash-banner {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 49, 75, 0.12);
  border: 1px solid rgba(255, 49, 75, 0.24);
  color: #ffd7dc;
  font-weight: 600;
}

.process-visual {
  display: grid;
  gap: 18px;
}

.process-card {
  border-radius: 24px;
  padding: 24px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

.process-card.active {
  border-color: rgba(88, 122, 255, 0.4);
}

.process-card.injected {
  background: rgba(147, 89, 255, 0.08);
}

.process-label {
  display: inline-flex;
  background: rgba(255,255,255,0.06);
  padding: 8px 12px;
  border-radius: 999px;
  color: #aab8d4;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-card strong {
  display: block;
  margin-top: 14px;
  font-size: 1rem;
}

.process-transition {
  position: relative;
  display: grid;
  place-items: center;
}

.transition-line {
  width: 4px;
  height: 100px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
}

.transition-line.filled {
  background: linear-gradient(180deg, #5b9dff, #8f70ff);
}

.transition-badge {
  position: absolute;
  top: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #aac6ff;
  font-size: 0.8rem;
}

.transition-badge.filled {
  background: rgba(146, 110, 255, 0.15);
  color: #e6ddff;
}

.stepper-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.step-button {
  width: 48px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: #c6d2ee;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.step-button:hover {
  transform: translateY(-1px);
  background: rgba(88, 122, 255, 0.18);
}

.step-button.selected {
  background: linear-gradient(135deg, #7e6bff, #5b9dff);
  color: white;
  border-color: transparent;
}

.step-details h4 {
  margin: 0 0 12px;
}

.step-details p {
  margin: 0;
  color: #c5d3eb;
}

.visual-status {
  display: inline-flex;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(255,128,128,0.08);
  color: #ffd4d8;
  font-weight: 600;
  border: 1px solid rgba(255, 86, 99, 0.18);
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 26px;
}

.info-card h3 {
  margin: 0 0 12px;
}

.info-card p {
  margin: 0;
  color: #c7d4ee;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #a1b0ce;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: #94a8e0;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    justify-content: stretch;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 24px 18px 32px;
  }

  .section-secondary {
    padding: 28px 20px;
  }
}
