/* ============================================
   MOZZIE LANDING PAGE
   Aesthetic: Terminal Noir — amber on dark
   ============================================ */

:root {
  --bg: #1a1e24;
  --bg-raised: #232830;
  --bg-card: #2a3038;
  --border: #2d3340;
  --border-hover: #3d4450;
  --text: #d4d4d8;
  --text-muted: #7a8190;
  --text-dim: #4a5060;
  --accent: #10B981;
  --accent-dim: rgba(16, 185, 129, 0.12);
  --accent-glow: rgba(16, 185, 129, 0.25);
  --green: #10B981;
  --red: #EF4444;
  --blue: #38BDF8;
  --coral: #e85d75;
  --amber: #F59E0B;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(16, 185, 129, 0.25);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Canvas swarm background ---- */
#swarm {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ---- Animations ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(10, 10, 11, 0.7);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.logo-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.2s;
}

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

.nav-gh {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10rem 2rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1.2rem;
  margin-bottom: 2rem;
  background: var(--bg-raised);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-title em {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 0 0 0 var(--accent-glow), 0 1px 3px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  background: #34d399;
  box-shadow: 0 0 30px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-raised);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-raised);
}

.btn-download {
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.85rem 1.8rem;
  min-width: 180px;
}

.btn-download svg {
  flex-shrink: 0;
  margin-bottom: 0.1rem;
}

.btn-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  opacity: 0.55;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mac-download-group {
  display: flex;
  gap: 0.75rem;
}

/* ---- Hero links (GitHub + Demo) ---- */
.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.hero-link:hover {
  color: var(--accent);
}

.hero-link-sep {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.hero-ph {
  margin-top: 1.8rem;
}

/* ---- Agents bar ---- */
.agents-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.agents-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.agents-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 500;
}

.agents-list {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.agent-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  transition: all 0.2s;
}

.agent-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Features ---- */
.features {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 2.2rem;
  transition: background 0.3s;
}

.feature-card:hover {
  background: var(--bg-raised);
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 1.2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-dim);
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- How it works ---- */
.how-section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 3.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color 0.3s;
}

.step:hover {
  border-color: var(--border-hover);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
  font-weight: 400;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Tech section ---- */
.tech-section {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 5rem 2rem;
}

.tech-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color 0.3s;
}

.tech-item:hover {
  border-color: var(--border-hover);
}

.tech-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.tech-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-cta {
  text-align: center;
  padding: 5rem 0 4rem;
}

.footer-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: var(--accent);
}

.footer-gh {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links a:not(.nav-gh) {
    display: none;
  }

  .hero {
    padding: 8rem 1.5rem 3rem;
  }

  .hero-sub br {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-terminal {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .terminal-body {
    font-size: 0.7rem;
    padding: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .mac-download-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-download {
    width: 100%;
    min-width: unset;
  }
}
