/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg:         #0d0d17;
  --bg-card:    #13131f;
  --bg-card-alt:#0f0f1c;
  --border:     #22223a;
  --accent:     #7c6aff;
  --accent-dim: #5b4fd4;
  --text:       #e2e2e8;
  --text-muted: #6e6e8a;
  --text-faint: #3a3a55;
  --radius:     14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

img, svg { display: block; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 13, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-logo:hover { text-decoration: none; opacity: 0.8; }

.nav-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
#hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(124, 106, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.6;
}

/* ── Section headings ────────────────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 32px;
}

/* ── Tools ───────────────────────────────────────────────────────────────── */
#tools { border-top: 1px solid var(--border); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.tool-card:hover {
  border-color: rgba(124, 106, 255, 0.4);
  background: var(--bg-card-alt);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.tool-icon img { width: 100%; height: 100%; object-fit: cover; }

.tool-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.tool-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(124, 106, 255, 0.15);
  color: var(--accent);
  margin-top: 2px;
}

.tool-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 4px;
}
.tool-cta:hover { text-decoration: none; opacity: 0.8; }
.tool-cta::after { content: "↗"; }

.tool-card-placeholder {
  background: transparent;
  border: 1px dashed var(--text-faint);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 170px;
  color: var(--text-faint);
  font-size: 13px;
}

/* ── About ───────────────────────────────────────────────────────────────── */
#about { border-top: 1px solid var(--border); }

.about-body {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
#contact { border-top: 1px solid var(--border); }

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-email {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
.contact-email:hover { text-decoration: underline; opacity: 0.85; }

.social-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.social-links a {
  font-size: 13px;
  color: var(--text-muted);
}
.social-links a:hover { color: var(--text); text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-faint);
}
.footer-links a:hover { color: var(--text-muted); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links { gap: 18px; }
  section { padding: 60px 0; }
  #hero { padding: 72px 0 60px; }
  .hero-subtitle { font-size: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero glow breathing ─────────────────────────────────────────────────── */
.hero-glow {
  animation: glowPulse 7s ease-in-out infinite;
}

/* ── Scroll fade-up ──────────────────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}
[data-animate][data-delay="1"] { transition-delay: 0.08s; }
[data-animate][data-delay="2"] { transition-delay: 0.18s; }
[data-animate][data-delay="3"] { transition-delay: 0.28s; }

/* ── Bot scene inside placeholder card ──────────────────────────────────── */
.bot-scene {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 70px;
}

/* Mini bot */
.mini-bot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation: bob 2.3s ease-in-out infinite;
}
.mini-bot--b { animation-delay: 0.5s; animation-duration: 2.8s; }

.mini-antenna {
  width: 2px;
  height: 9px;
  background: var(--accent);
  position: relative;
}
.mini-antenna::after {
  content: '';
  position: absolute;
  top: -5px; left: -2px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #F97316;
  animation: antPulse 2s ease-in-out infinite;
}
.mini-bot--b .mini-antenna::after { animation-delay: 0.6s; }

.mini-head {
  width: 24px; height: 16px;
  background: #818CF8;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.mini-eyes {
  width: 4px; height: 4px;
  background: #F97316;
  border-radius: 1px;
  box-shadow: 8px 0 0 #F97316;
}

.mini-body {
  width: 20px; height: 18px;
  background: #7c6aff;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}

/* Coder bot: mini laptop screen */
.mini-screen {
  width: 14px; height: 9px;
  background: #0d0d17;
  border: 1px solid rgba(124,106,255,0.55);
  border-radius: 1px;
  display: flex; align-items: center;
  padding-left: 2px;
}
.mini-cursor {
  display: block;
  width: 4px; height: 2px;
  background: #7c6aff;
  animation: cursorBlink 0.85s step-end infinite;
}

/* Builder bot: spinning gear */
.mini-gear {
  font-size: 11px;
  color: #F97316;
  display: block;
  animation: spin 4s linear infinite;
}

/* Floating sparks between bots */
.scene-sparks {
  position: relative;
  width: 28px; height: 60px;
  align-self: center;
}
.spark {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #F97316;
  left: 4px; bottom: 8px;
  animation: floatUp 2.6s ease-out infinite;
  opacity: 0;
}
.spark:nth-child(2) {
  animation-delay: 1.3s;
  left: 16px;
  background: var(--accent);
}

/* "More tools brewing..." label */
.brew-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.brew-dots span { opacity: 0; animation: dotBlink 1.6s infinite; }
.brew-dots span:nth-child(1) { animation-delay: 0s; }
.brew-dots span:nth-child(2) { animation-delay: 0.3s; }
.brew-dots span:nth-child(3) { animation-delay: 0.6s; }

/* Progress bar */
.brew-bar {
  width: 68%;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.brew-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #F97316);
  border-radius: 99px;
  animation: growBar 5s ease-in-out infinite alternate;
}

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes glowPulse {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 1; }
  50%       { transform: translateX(-50%) scale(1.3); opacity: 0.65; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
@keyframes antPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.8); }
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes floatUp {
  0%   { transform: translateY(0)     scale(1);   opacity: 0.9; }
  100% { transform: translateY(-28px) scale(0.3); opacity: 0; }
}
@keyframes dotBlink {
  0%, 75%, 100% { opacity: 0; }
  38%            { opacity: 1; }
}
@keyframes growBar {
  from { width: 10%; }
  to   { width: 80%; }
}
