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

:root {
  --red:   #d00004;
  --bg:    #0a0a0a;
  --bg2:   #111111;
  --bg3:   #181818;
  --brd:   #222222;
  --text:  #e8e8e8;
  --muted: #777777;
  --mono:  'DM Mono', monospace;
  --serif: 'DM Serif Display', serif;
  --sans:  'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

::selection { background: var(--red); color: #fff; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--brd);
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(16px);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 6px var(--red); opacity: 1; }
  50%      { box-shadow: 0 0 20px var(--red); opacity: 0.5; }
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(208,0,4,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 15% 85%, rgba(208,0,4,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 10%, transparent 100%);
  pointer-events: none;
}

.hero-banner {
  max-width: min(680px,90vw);
  width: 100%;
  border-radius: 10px;
  margin-bottom: 28px;
  animation: fadeUp 0.4s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(208,0,4,0.3);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red);
  background: rgba(208,0,4,0.07);
  margin-bottom: 36px;
  letter-spacing: 0.06em;
  animation: fadeUp 0.5s ease both;
}

.hero-badge-dot {
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--red);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(3.8rem, 10vw, 7.5rem);
  line-height: 0.93;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: fadeUp 0.5s 0.08s ease both;
}

h1 em { font-style: italic; color: var(--red); }

.hero-sub {
  max-width: 500px;
  margin: 28px auto 0;
  font-size: 1rem;
  color: var(--muted);
  animation: fadeUp 0.5s 0.16s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 42px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.5s 0.24s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 28px rgba(208,0,4,0.22);
}
.btn-primary:hover {
  background: #e80004;
  box-shadow: 0 0 48px rgba(208,0,4,0.42);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--brd);
}
.btn-ghost:hover { border-color: #444; background: var(--bg3); }

.stats-row {
  display: flex;
  margin-top: 64px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
  animation: fadeUp 0.5s 0.32s ease both;
}

.stat {
  padding: 22px 38px;
  text-align: center;
  border-right: 1px solid var(--brd);
  min-width: 130px;
}
.stat:last-child { border-right: none; }

.stat-val {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--text);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.divider {
  border: none;
  border-top: 1px solid var(--brd);
  max-width: 1100px;
  margin: 0 auto;
}

section {
  padding: 96px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.lbl {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.sec-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  margin-top: 52px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  overflow: hidden;
}

.step {
  background: var(--bg2);
  padding: 40px 34px;
  position: relative;
  transition: background 0.2s;
  opacity: 0;
}
.step:hover { background: var(--bg3); }
.step.visible { animation: fadeUp 0.45s ease forwards; }

.step-n {
  font-family: var(--serif);
  font-size: 3.8rem;
  line-height: 1;
  color: rgba(208,0,4,0.12);
  position: absolute;
  top: 22px; right: 26px;
  font-style: italic;
}

.step-ico {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(208,0,4,0.08);
  border: 1px solid rgba(208,0,4,0.18);
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--red);
}

.step h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.step p { font-size: 0.85rem; color: var(--muted); line-height: 1.75; }

.step code {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: rgba(208,0,4,0.1);
  color: var(--red);
  padding: 1px 6px;
  border-radius: 3px;
}

/* commands */
.cmds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  margin-top: 52px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  overflow: hidden;
}

.cmd {
  background: var(--bg2);
  padding: 28px 30px;
  transition: background 0.2s;
  opacity: 0;
}
.cmd:hover { background: var(--bg3); }
.cmd.visible { animation: fadeUp 0.45s ease forwards; }

.cmd-cat {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cmd-cat::before { content: '▸'; color: var(--red); font-size: 0.65rem; }

.cmd-name {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 500;
}
.cmd-name .arg { color: #555; font-weight: 400; }

.cmd-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.7; }

/* add card */
.add-wrap { padding: 96px 24px; }

.add-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  opacity: 0;
}
.add-card.visible { animation: fadeUp 0.5s ease forwards; }

.add-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 60%);
}

.add-inner {
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: start;
}

.add-info h2 {
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 14px;
}

.add-info p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 400px;
}

.perms { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.perm {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
}
.perm::before { content: '▸'; color: var(--red); font-size: 0.65rem; flex-shrink: 0; }

.add-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 36px 32px;
  background: var(--bg3);
  border-radius: 8px;
  border: 1px solid var(--brd);
  min-width: 220px;
  text-align: center;
}

.bot-avatar {
  width: 66px; height: 66px;
  background: rgba(208,0,4,0.09);
  border: 1px solid rgba(208,0,4,0.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.bot-avatar img { width: 100%; height: 100%; object-fit: cover; }

.add-cta h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--text); }

.add-cta small { font-size: 0.74rem; color: #3a3a3a; font-family: var(--mono); }

footer {
  border-top: 1px solid var(--brd);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foot-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.foot-copy { font-family: var(--mono); font-size: 0.74rem; color: #333; }

/* devtools wall */
#devtools-wall {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
#devtools-wall.show { display: flex; }
#devtools-wall h2 { font-family: var(--serif); font-size: 2.2rem; }
#devtools-wall p  { font-size: 0.85rem; color: var(--muted); max-width: 300px; }
#devtools-wall .dw-icon { font-size: 2.5rem; opacity: 0.15; margin-bottom: 8px; }

@media (max-width: 720px) {
  nav { padding: 16px 20px; }
  .nav-links { gap: 18px; }
  .stats-row { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--brd); }
  .stat:last-child { border-bottom: none; }
  .add-inner { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  footer { flex-direction: column; text-align: center; padding: 28px 20px; gap: 10px; }
  section { padding: 64px 20px; }
}
