/* ============================================================
   Cheddar Bot — styles.css
   Classic Command Prompt (CMD) terminal theme
   ============================================================ */

:root {
  --bg: #0c0c0c;              /* CMD black */
  --bg-alt: #0a0a0a;
  --surface: #101010;
  --surface-2: #161616;
  --border: #2a2a2a;
  --text: #cccccc;           /* CMD light gray */
  --muted: #7a7a7a;
  --accent: #16c60c;         /* CMD terminal green */
  --accent-dim: #13a30a;
  --warn: #f9f1a5;           /* CMD yellow */
  --radius: 4px;
  --radius-sm: 3px;
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 0 1px var(--accent);
  --max: 960px;
  --mono: "JetBrains Mono", "Cascadia Code", "Consolas", "Lucida Console", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg);
}

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 1px 0 var(--border); }

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.brand-name { font-size: 1rem; letter-spacing: 0; }
.brand-name::before { content: "C:\\> "; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--accent); background: var(--surface-2); text-decoration: none; }
.nav-links .nav-cta {
  color: var(--bg);
  background: var(--accent);
  font-weight: 700;
}
.nav-links .nav-cta:hover { background: var(--accent-dim); color: var(--bg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  text-align: left;
  padding: 60px 0 56px;
  overflow: hidden;
}
.hero-glow { display: none; }
.hero-inner {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}
/* Terminal title bar */
.hero-inner::before {
  content: "Command Prompt  —  cheddar_bot.exe";
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  background: #1e1e1e;
  border-bottom: 1px solid var(--border);
  padding: 8px 14px 8px 62px;
  position: relative;
}
/* Traffic-light window dots */
.hero-inner::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 var(--accent);
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.badge::before { content: "> "; }

.hero-title {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 14px;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.hero-subtitle::before { content: "// "; color: var(--accent); }

/* Padded inner content area of the terminal window */
.hero .container.hero-inner { padding: 0; }
.hero-inner .badge,
.hero-inner .hero-title,
.hero-inner .hero-subtitle,
.hero-inner .hero-actions { margin-left: 26px; margin-right: 26px; }
.hero-inner .badge { margin-top: 30px; }
.hero-inner .hero-actions { margin-bottom: 34px; }

/* blinking prompt cursor after the title */
.hero-title::after {
  content: "_";
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 0 12px -2px rgba(22, 198, 12, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  text-wrap: balance;
}
.section-title::before { content: "C:\\> "; color: var(--accent); font-weight: 700; }
.section-lead {
  text-align: left;
  color: var(--muted);
  max-width: 680px;
  margin: 12px 0 36px;
  text-wrap: pretty;
}
.section-lead::before { content: "// "; color: var(--accent); }

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ===== GRID / BENEFITS ===== */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.benefit { text-align: left; }
.benefit-icon { font-size: 1.6rem; margin-bottom: 10px; }
.benefit h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.benefit h3::before { content: "$ "; color: var(--accent); }
.benefit p { color: var(--muted); font-size: 0.88rem; }

/* ===== REQUIREMENTS TABLE ===== */
.table-card { padding: 6px 8px; }
.req-table { width: 100%; border-collapse: collapse; }
.req-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.req-table tr:last-child td { border-bottom: 0; }
.req-icon { width: 44px; font-size: 1.2rem; text-align: center; }
.req-label { color: var(--accent); font-weight: 600; width: 180px; }

/* ===== STEPS ===== */
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 700;
  font-size: 1rem;
}
.step-head h3 { font-size: 1.1rem; letter-spacing: 0; }
.step-body p { margin-bottom: 12px; color: var(--text); }
.step-body p:last-child { margin-bottom: 0; }

/* ===== CODE BLOCKS ===== */
.code-block {
  position: relative;
  background: #000000;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 4px 0 16px;
  overflow: hidden;
}
.code-block pre {
  margin: 0;
  padding: 16px 74px 16px 16px;
  overflow-x: auto;
}
.code-block code {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--accent);
  white-space: pre;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--bg); background: var(--accent); border-color: var(--accent); }

code.inline {
  font-family: var(--mono);
  font-size: 0.85em;
  background: #000000;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  color: var(--accent);
}

/* ===== CALLOUTS ===== */
.callout {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
}
.callout-warn {
  background: rgba(249, 241, 165, 0.06);
  border: 1px solid rgba(249, 241, 165, 0.3);
  color: var(--warn);
}
.callout-ok {
  background: rgba(22, 198, 12, 0.06);
  border: 1px solid rgba(22, 198, 12, 0.3);
  color: var(--accent);
}

/* ===== ACCORDION ===== */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: 0;
  padding: 16px 18px;
  cursor: pointer;
}
.acc-trigger:hover { color: var(--accent); }
.acc-chevron {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.acc-trigger[aria-expanded="true"] .acc-chevron { transform: rotate(45deg); }
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.acc-panel-inner,
.acc-panel > * { padding: 0 18px; }
.acc-panel > *:first-child { padding-top: 4px; }
.acc-panel > *:last-child { padding-bottom: 18px; }

/* ===== EARNNODES CARD ===== */
.earn-card {
  position: relative;
  text-align: left;
  padding: 40px 30px;
  overflow: hidden;
  border-color: var(--accent);
}
.earn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 260px at 0% 0%, rgba(22, 198, 12, 0.08), transparent 70%);
  pointer-events: none;
}
.earn-card > * { position: relative; }
.earn-card h2 {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 700;
  margin: 4px 0 12px;
  text-wrap: balance;
}
.earn-card h2::before { content: "C:\\> "; color: var(--accent); }
.earn-card p { color: var(--muted); margin-bottom: 24px; max-width: 640px; }

/* ===== DOWNLOAD ===== */
.download-card {
  position: relative;
  text-align: center;
  padding: 46px 30px;
  overflow: hidden;
  border-color: var(--accent);
}
.download-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(22, 198, 12, 0.1), transparent 70%);
  pointer-events: none;
}
.download-card h2 {
  position: relative;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.download-card p { position: relative; color: var(--muted); margin-bottom: 24px; }
.download-card .btn { position: relative; }
.download-note {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  font-size: 0.83rem;
  color: var(--muted);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 38px 0;
  margin-top: 20px;
}
.footer-inner { text-align: center; }
.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.footer-tagline { font-weight: 600; margin-bottom: 4px; }
.footer-copy { color: var(--muted); font-size: 0.85rem; }
.footer-copy::before { content: "C:\\> "; color: var(--accent); }

/* ===== BACK TO TOP ===== */
.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.to-top.show { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--surface-2); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }
  .nav-links.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 12px 14px; }
  .nav-links .nav-cta { text-align: center; margin-top: 4px; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .req-label { width: auto; }
  .hero { padding: 44px 0 44px; }
  .section { padding: 48px 0; }
  .btn-lg { width: 100%; }
  .hero-inner .badge,
  .hero-inner .hero-title,
  .hero-inner .hero-subtitle,
  .hero-inner .hero-actions { margin-left: 18px; margin-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title::after { animation: none; }
}
