/* landing.css — KRILL landing page */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&display=swap');

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

:root {
  --bg: #050505;
  --bg2: #0a0a0a;
  --bg3: #0f0f0f;
  --green: #4ade80;
  --green2: #22c55e;
  --cyan: #22d3ee;
  --dim: #71717a;
  --dim2: #52525b;
  --text: #e4e4e7;
  --text2: #a1a1aa;
  --white: #fafafa;
  --border: #1a1a1a;
  --border2: #27272a;
}

::selection {
  background: rgba(74, 222, 128, 0.2);
  color: var(--green);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}

.nav-logo img { border-radius: 4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dim);
  font-size: 12px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--green) !important;
  color: var(--bg) !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 500;
}

.nav-cta:hover { opacity: 0.85; }

/* ── HERO ── */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

#hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-ascii {
  display: block;
  font-size: clamp(8px, 1.8vw, 16px);
  color: var(--green);
  text-shadow: 0 0 30px rgba(74, 222, 128, 0.2), 0 0 60px rgba(74, 222, 128, 0.05);
  line-height: 1.1;
  white-space: pre;
  margin-bottom: 20px;
}

h1 { font-weight: 700; }

.hero-tagline {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero-desc {
  font-size: 13px;
  color: var(--dim);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--green2);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.btn-outline {
  border: 1px solid var(--border2);
  color: var(--text2);
}

.btn-outline:hover {
  border-color: var(--dim);
  color: var(--text);
}

.hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 11px;
  color: var(--dim2);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── STATS BAR ── */

#stats {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.15);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── SECTIONS ── */

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  text-align: center;
}

.section-sub {
  font-size: 13px;
  color: var(--dim);
  text-align: center;
  margin-bottom: 48px;
}

/* ── FEATURES GRID ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: var(--border2);
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.03);
}

.feature-icon {
  font-size: 24px;
  color: var(--green);
  margin-bottom: 16px;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.7;
}

/* ── STEPS ── */

.steps {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-size: 28px;
  font-weight: 700;
  color: rgba(74, 222, 128, 0.15);
  flex-shrink: 0;
  width: 50px;
  text-align: right;
}

.step-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.7;
}

/* ── TERMINAL PREVIEW ── */

.terminal-frame {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.terminal-chrome {
  background: var(--bg3);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border2);
}

.chrome-dots span:first-child { background: #fb7185; }
.chrome-dots span:nth-child(2) { background: #fbbf24; }
.chrome-dots span:nth-child(3) { background: var(--green); }

.chrome-title {
  font-size: 11px;
  color: var(--dim2);
  flex: 1;
}

.chrome-link {
  font-size: 11px;
  color: var(--green);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chrome-link:hover { opacity: 1; }

.terminal-embed {
  width: 100%;
  height: 500px;
  border: none;
  background: var(--bg);
}

/* ── TOKEN GRID ── */

.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.token-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

.token-label {
  font-size: 10px;
  color: var(--dim2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.token-val {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

/* ── CTA ── */

#cta {
  text-align: center;
}

#cta p {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 28px;
}

/* ── FOOTER ── */

footer {
  border-top: 1px solid var(--border);
  padding: 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--dim2);
}

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

.footer-links a {
  font-size: 11px;
  color: var(--dim2);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .token-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-ascii { font-size: 7px; }
  .hero-meta { flex-direction: column; align-items: center; gap: 8px; }
  .terminal-embed { height: 350px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-val { font-size: 22px; }
  .token-grid { grid-template-columns: 1fr; }
}
