/* agentignore — terminal-noir style */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Sans:wght@400;500;600&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────── */

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

:root {
  --bg:        #0a0a0b;
  --bg-2:      #111114;
  --bg-3:      #18181d;
  --bg-4:      #1f1f26;
  --border:    rgba(255, 255, 255, 0.07);
  --border-2:  rgba(255, 255, 255, 0.12);
  --accent:    #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.12);
  --accent-glow: rgba(0, 229, 160, 0.25);
  --text:      #e8e8ec;
  --text-2:    #9999aa;
  --text-3:    #55556a;
  --font-sans: 'Instrument Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius:    8px;
  --radius-lg: 14px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}

/* Subtle scanline texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─── Layout ────────────────────────────────────────────────── */

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Hero ──────────────────────────────────────────────────── */

.hero {
  padding: 3em 0 2em;
  position: relative;
  overflow: hidden;
}

/* Radial glow behind hero */
.hero::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 160, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.badge a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-glow);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.badge a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

/* H1 */
.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.gradient {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(0, 229, 160, 0.35);
}

/* Slogan */
.slogan {
  font-size: 18px;
  color: var(--text-2);
  font-family: var(--font-sans);
  max-width: 460px;
  line-height: 1.55;
}

.slogan code, .section-subtitle code {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(0, 229, 160, 0.2);
}

/* ─── Section base ──────────────────────────────────────────── */

section {
  padding: 1em 0;
  border-top: 1px solid var(--border);
}

section:first-of-type {
  border-top: none;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 520px;
}

/* ─── Install Card ──────────────────────────────────────────── */

.install-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 4px;
}

.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 18px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.02em;
  margin-bottom: -1px;
}

.tab:hover {
  color: var(--text-2);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Code container */
.code-container {
  position: relative;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.code-container pre {
  flex: 1;
  overflow-x: auto;
}

.code-container code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}

/* Prompt symbol */
.code-container pre::before {
  content: '$ ';
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
  user-select: none;
}

/* Copy button */
.copy-btn {
  flex-shrink: 0;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.copy-btn:hover {
  background: var(--accent-dim);
  border-color: rgba(0, 229, 160, 0.35);
  color: var(--accent);
}

.copy-btn:active {
  transform: scale(0.97);
}

/* ─── Demo Card ─────────────────────────────────────────────── */

.demo-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  overflow: hidden;
  background: var(--bg-2);
  min-height: 200px;
}

/* Asciinema isolation — override only outer wrapper, not internals */
.demo-card .ap-wrapper {
  border-radius: 0 !important;
}

/* ─── Footer ────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer .container {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.footer a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}

.footer a:hover {
  color: var(--accent);
}

/* ─── Scrollbar ─────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-4);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-3);
}

/* ─── Selection ─────────────────────────────────────────────── */

::selection {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero {
    padding: 72px 0 56px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .slogan {
    font-size: 16px;
  }

  section {
    padding: 48px 0;
  }

  .code-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .copy-btn {
    align-self: flex-end;
  }
}