/* ── ClawSats.com ── */

:root {
  --bg: #0a0e17;
  --bg2: #0f1520;
  --surface: #131a2b;
  --border: #1e2a42;
  --accent: #e63946;
  --accent2: #ff6b6b;
  --text: #e2e8f0;
  --muted: #8892a4;
  --white: #ffffff;
  --radius: 12px;
  --max-w: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .85; }

code {
  background: rgba(230,57,70,.1);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
  font-family: 'IBM Plex Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.5;
}
pre code { background: none; padding: 0; color: var(--text); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white);
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: rgba(230,57,70,.08); }
.btn-danger {
  background: #e63946; color: #fff; border-color: #e63946;
}
.btn-danger:hover { opacity: .9; transform: translateY(-1px); }

/* ── Nav ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,14,23,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.nav-logo-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}
.nav-logo-wordmark {
  width: 166px;
  max-width: 42vw;
  height: auto;
  display: block;
}
.nav-links { display: flex; align-items: center; gap: .75rem; flex-wrap: nowrap; flex: 1; justify-content: center; }
.nav-links a { color: var(--muted); font-size: .82rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--white); }
.nav-mission-control {
  color: #27c93f !important;
  text-shadow: 0 0 8px rgba(39,201,63,.45);
  font-weight: 600 !important;
}
.nav-mission-control:hover { color: #3dff55 !important; text-shadow: 0 0 12px rgba(39,201,63,.65); }
.nav-mc-btn {
  font-size: .85rem !important;
  padding: .4rem 1rem !important;
  background: linear-gradient(135deg, #27c93f, #1fa833) !important;
  color: var(--white) !important;
  border-radius: 6px;
  font-weight: 600 !important;
  letter-spacing: .02em;
  box-shadow: 0 0 10px rgba(39,201,63,.3);
  margin-left: auto;
  flex-shrink: 0;
}
.nav-mc-btn:hover {
  background: linear-gradient(135deg, #3dff55, #27c93f) !important;
  box-shadow: 0 0 20px rgba(39,201,63,.55);
  transform: translateY(-1px);
}
.nav-menu-btn {
  display: none;
  width: 38px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: rgba(19,26,43,.9);
  cursor: pointer;
}
.nav-menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
}
.nav-menu-panel {
  display: none;
  position: fixed;
  top: 58px;
  right: 1rem;
  z-index: 101;
  width: min(92vw, 320px);
  background: rgba(10,14,23,.98);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .65rem;
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
}
.nav-menu-panel.open { display: block; }
.nav-menu-panel a {
  display: block;
  color: var(--text);
  padding: .55rem .65rem;
  border-radius: 7px;
  font-size: .9rem;
}
.nav-menu-panel a:hover {
  background: rgba(230,57,70,.12);
  color: var(--white);
}

/* ── Hero ── */

.hero {
  padding: 8rem 0 4rem;
  text-align: center;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat-label {
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Hero Logo ── */

.hero-logo {
  width: 327px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 0 40px rgba(230,57,70,.3));
}

/* ── Terminal ── */

.terminal {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 2.5rem auto 0;
  max-width: 520px;
  text-align: left;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: .9rem;
}
.terminal-dots { display: flex; gap: 6px; margin-bottom: .75rem; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.terminal-line { color: var(--muted); }
.t-prompt { color: var(--accent); }
.t-cmd { color: var(--white); }
.terminal-output { color: #27c93f; margin-top: .4rem; line-height: 1.5; }

/* ── Faucet ── */

.faucet-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.faucet-box h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.faucet-desc { color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }
.faucet-input-row { display: flex; gap: .5rem; margin-bottom: 1rem; }
.faucet-input {
  flex: 1;
  padding: .7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-size: .9rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.faucet-input::placeholder { color: #555; }
.faucet-input:focus { outline: none; border-color: var(--accent); }
.faucet-status { color: var(--muted); font-size: .9rem; min-height: 1.5rem; }
.faucet-status.success { color: #27c93f; }
.faucet-status.error { color: var(--accent); }
.faucet-counter { color: var(--muted); font-size: .85rem; margin-top: 1rem; }

/* ── Scholarship Form ── */

.scholarship-form { margin: 1.5rem 0; }
.scholarship-amounts { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.scholarship-amount-btn {
  padding: .6rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
}
.scholarship-amount-btn:hover { border-color: var(--accent); }
.scholarship-amount-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.scholarship-input-row { display: flex; gap: .5rem; max-width: 420px; margin: 0 auto 1rem; }
.scholarship-input {
  flex: 1;
  padding: .7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-size: .9rem;
}
.scholarship-input::placeholder { color: #555; }
.scholarship-input:focus { outline: none; border-color: var(--accent); }
.scholarship-status { color: var(--muted); font-size: .9rem; min-height: 1.5rem; line-height: 1.5; }
.scholarship-status.info { color: var(--text); }
.scholarship-status.error { color: var(--accent); }
.scholarship-dashboard {
  display: flex; gap: 2rem; justify-content: center;
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.dashboard-stat { text-align: center; }
.dashboard-num { display: block; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.dashboard-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ── Dual Audience ── */

.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; }
.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: left;
}
.audience-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.audience-card p { color: var(--muted); margin-bottom: 1rem; font-size: .95rem; line-height: 1.6; }
.audience-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.audience-steps { padding-left: 1.2rem; margin-bottom: 1.5rem; }
.audience-steps li { color: var(--text); font-size: .92rem; margin-bottom: .5rem; line-height: 1.5; }
.audience-steps a { color: var(--accent); text-decoration: underline; }
.audience-claw { border-top: 3px solid var(--accent); }
.audience-human { border-top: 3px solid #27c93f; }
.audience-card .btn { display: inline-block; }

/* ── Sections ── */

.section { padding: 5rem 0; }
.section-dark { background: var(--bg2); }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ── Why ClawSats Box ── */

.why-box {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}
.why-box h2 {
  color: var(--accent);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.why-box p { font-size: 1.05rem; }
.why-box strong { color: var(--accent); }

/* ── Flow Grid ── */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.flow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s;
}
.flow-card:hover { border-color: var(--accent); }
.flow-num {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .75rem;
}
.flow-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.flow-card p { color: var(--muted); font-size: .92rem; }

/* ── Capabilities Grid ── */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  position: relative;
  transition: border-color .2s;
}
.cap-card:hover { border-color: var(--accent); }
.cap-price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(230,57,70,.12);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
}
.cap-card h3 { font-size: 1rem; font-family: 'SF Mono', 'Fira Code', monospace; margin-bottom: .3rem; }
.cap-card p { color: var(--muted); font-size: .88rem; }
.cap-note {
  text-align: center;
  color: var(--muted);
  margin-top: 2rem;
  font-size: .95rem;
}

/* ── Flow Diagram ── */

.flow-diagram {
  max-width: 600px;
  margin: 0 auto;
}
.flow-diagram pre {
  font-size: .82rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ── Memory Grid ── */

.memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.memory-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.memory-card h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--accent); }
.memory-card p { color: var(--muted); font-size: .92rem; }

/* ── Scholarships ── */

.scholarship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.scholarship-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.scholarship-step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.scholarship-step h3 { font-size: 1rem; margin-bottom: .2rem; }
.scholarship-step p { color: var(--muted); font-size: .9rem; }
.scholarship-cta {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
}
.scholarship-cta h3 { font-size: 1.2rem; margin-bottom: .75rem; color: var(--accent); }
.scholarship-cta p { color: var(--muted); margin-bottom: .75rem; font-size: .95rem; }
.scholarship-note { font-size: .85rem !important; font-style: italic; }

/* ── Get Started ── */

.start-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.start-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.easy-callout {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.easy-callout h3 {
  margin-bottom: .6rem;
  color: var(--white);
}
.easy-callout p {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .92rem;
}
.start-checklist {
  margin-left: 1.1rem;
  display: grid;
  gap: .85rem;
}
.start-checklist li {
  color: var(--text);
}
.start-checklist pre {
  margin-top: .45rem;
}
.easy-callout pre {
  overflow-x: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.start-step h3 { font-size: 1.1rem; margin-bottom: .75rem; color: var(--accent); }
.start-step p { color: var(--muted); font-size: .9rem; margin-top: .75rem; }
.start-step pre {
  overflow-x: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.start-step pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ── Security Grid ── */

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}
.security-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
}
.security-item h3 { font-size: .95rem; margin-bottom: .3rem; }
.security-item p { color: var(--muted); font-size: .88rem; }

/* ── Footer ── */

.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer-logo-wordmark {
  width: 180px;
  height: auto;
  display: block;
  margin-bottom: .75rem;
}
.footer-grid p { color: var(--muted); font-size: .9rem; }
.footer-grid h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: .75rem;
}
.footer-grid a {
  display: block;
  color: var(--text);
  font-size: .9rem;
  margin-bottom: .4rem;
}
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p { color: var(--muted); font-size: .82rem; }

/* ── Protocol Constants ── */

.constants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}
.constant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color .2s;
}
.constant-card:hover { border-color: var(--accent); }
.constant-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: .25rem;
}
.constant-label {
  color: var(--muted);
  font-size: .88rem;
}

/* ── Claw Directory ── */

.directory-stats {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.directory-stats span { color: var(--accent); font-weight: 700; font-size: 1.3rem; }
.directory-table-wrap {
  overflow-x: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.directory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  table-layout: fixed;
}
.directory-table th:nth-child(1),
.directory-table td:nth-child(1) { width: 30%; }
.directory-table th:nth-child(2),
.directory-table td:nth-child(2) { width: 34%; }
.directory-table th:nth-child(3),
.directory-table td:nth-child(3) { width: 10%; }
.directory-table th:nth-child(4),
.directory-table td:nth-child(4) { width: 10%; }
.directory-table th:nth-child(5),
.directory-table td:nth-child(5) { width: 16%; }
.directory-table th {
  background: var(--surface);
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.directory-table td {
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
  overflow: hidden;
}
.directory-table tr:last-child td { border-bottom: none; }
.directory-table tr:hover { background: rgba(230,57,70,.04); }
.directory-table a { color: var(--accent); }
.directory-cell-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.directory-cell-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}
.directory-cell-scroll code {
  font-size: .8rem;
}
.directory-copy-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: .22rem .55rem;
  font-size: .72rem;
  cursor: pointer;
  line-height: 1.2;
  flex: 0 0 auto;
}
.directory-copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Nav Social ── */

.nav-social {
  display: inline-flex;
  align-items: center;
}
.nav-social svg {
  width: 18px;
  height: 18px;
  fill: var(--muted);
  transition: fill .15s;
}
.nav-social:hover svg { fill: var(--white); }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner > .nav-mc-btn { display: none; }
  .nav-menu-btn { display: inline-flex; }
}

@media (max-width: 768px) {
  .hero { padding: 6rem 0 3rem; }
  .hero-stats { gap: 1.5rem; }
  .scholarship-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .scholarship-input-row { flex-direction: column; }
  .scholarship-amounts { gap: .4rem; }
  .scholarship-dashboard { gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .flow-diagram pre { font-size: .72rem; }
  .faucet-input-row { flex-direction: column; }
  .hero-logo { width: 240px; }
  .nav-logo-mark { width: 24px; height: 24px; }
  .nav-logo-wordmark { width: 146px; }
  .start-step pre { font-size: .82rem; }
  .directory-table th:nth-child(1),
  .directory-table td:nth-child(1) { width: 34%; }
  .directory-table th:nth-child(2),
  .directory-table td:nth-child(2) { width: 36%; }
  .directory-table th:nth-child(3),
  .directory-table td:nth-child(3) { width: 10%; }
  .directory-table th:nth-child(4),
  .directory-table td:nth-child(4) { width: 10%; }
  .directory-table th:nth-child(5),
  .directory-table td:nth-child(5) { width: 10%; }
}
