/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --cyan: #00d4ff;
  --purple: #8b5cf6;
  --green: #22c55e;
  --yellow: #eab308;
  --gray: #6b7280;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.15);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.15);
}

html { scroll-behavior: smooth; }

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

/* ── Ambient background grid ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Hero ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem 1.5rem;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.hero-inner { max-width: 700px; }

/* Paw */
.paw-pulse {
  font-size: 3.5rem;
  animation: paw-beat 2s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes paw-beat {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Typing title */
.typing-title {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  min-height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor {
  animation: blink 0.7s step-end infinite;
  color: var(--purple);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Subtitle */
.subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.subtitle.visible { opacity: 1; }

/* Status pills */
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.status-row.visible { opacity: 1; }

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-green {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px var(--green); }
  50% { box-shadow: 0 0 12px var(--green), 0 0 20px rgba(34, 197, 94, 0.3); }
}

/* CTA button */
.cta-btn {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-btn.visible { opacity: 1; }

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), 0 0 60px rgba(139, 92, 246, 0.15);
}

.cta-btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.cta-btn:hover .arrow { transform: translateX(4px); }

/* ── Tool Suite ── */
.tools {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .tools-grid { grid-template-columns: 1fr 1fr; }
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.tool-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--glow-cyan), var(--glow-purple);
  transform: translateY(-2px);
}

.tool-icon { font-size: 2rem; margin-bottom: 0.75rem; }

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.tool-header h2 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-soon {
  background: rgba(234, 179, 8, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.badge-planned {
  background: rgba(107, 114, 128, 0.15);
  color: var(--gray);
  border: 1px solid rgba(107, 114, 128, 0.25);
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Boot Log ── */
.bootlog-section {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem 5rem;
  max-width: 700px;
  margin: 0 auto;
}

.terminal {
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--green);
  min-height: 200px;
}

.terminal-body .log-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.terminal-body .log-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.terminal-body .log-line .ok { color: var(--cyan); }
.terminal-body .log-line .paw-end { color: var(--text); }

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Selection ── */
::selection {
  background: rgba(0, 212, 255, 0.25);
  color: #fff;
}
