/* ============================================
   CUTE AGENT WEBSITE — capy.ai homage styles
   ============================================ */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--white);
  transition: all 0.2s ease;
}

a:hover {
  background-color: var(--white);
  color: var(--black);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

h1 { font-size: clamp(3rem, 10vw, 8rem); }
h2 { font-size: clamp(2rem, 6vw, 4rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }

p {
  font-size: 1rem;
  max-width: 65ch;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--white);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--white);
}

.btn:hover {
  background-color: var(--white);
  color: var(--black);
}

.btn-primary {
  background-color: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--white);
}

/* --- Speech Bubble --- */
.speech-bubble {
  background-color: var(--white);
  color: var(--black);
  padding: 16px 24px;
  border-radius: 20px;
  position: relative;
  display: inline-block;
  font-size: 0.875rem;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 30px;
  border: 10px solid transparent;
  border-top-color: var(--white);
  border-bottom: 0;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background-color: var(--black);
  border-bottom: 2px solid var(--white);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  border-bottom: none;
}

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  border-bottom: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.navbar-links a:hover {
  background: none;
  opacity: 0.7;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-top: 24px;
  opacity: 0.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

/* Terminal Mockup */
.terminal-mockup {
  background-color: #0a0a0a;
  border: 2px solid var(--white);
  border-radius: 12px;
  padding: 24px;
  font-size: 0.875rem;
  position: relative;
}

.terminal-header {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--white);
  opacity: 0.5;
}

.terminal-body {
  font-family: var(--font-mono);
  white-space: pre;
  line-height: 1.8;
}

.terminal-cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background-color: var(--white);
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Speed lines */
.speed-lines::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -50px;
  width: 200px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--white));
  opacity: 0.3;
}

/* --- Marquee --- */
.marquee-section {
  border-top: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  padding: 24px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  white-space: nowrap;
  opacity: 0.6;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Features Section --- */
.features {
  padding: 120px 0;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.6;
  margin-bottom: 16px;
}

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

.feature-card {
  border: 2px solid var(--white);
  padding: 32px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* --- How It Works --- */
.how-it-works {
  padding: 120px 0;
  border-top: 2px solid var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}

.step {
  text-align: center;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 6rem;
  opacity: 0.2;
  line-height: 1;
}

.step-title {
  font-size: 1.25rem;
  margin-top: 16px;
  margin-bottom: 8px;
}

.step-code {
  background-color: #111;
  padding: 16px;
  border-radius: 8px;
  font-size: 0.75rem;
  margin-top: 16px;
  text-align: left;
  border: 1px solid #333;
}

/* --- Pricing --- */
.pricing {
  padding: 120px 0;
  border-top: 2px solid var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 64px auto 0;
}

.pricing-card {
  border: 2px solid var(--white);
  padding: 48px 32px;
  text-align: center;
  border-radius: 8px;
}

.pricing-card.featured {
  border-color: var(--white);
  background-color: #111;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 4rem;
  margin: 24px 0;
}

.pricing-desc {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  font-size: 0.875rem;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.pricing-features li::before {
  content: '→ ';
}

/* --- Footer --- */
.footer {
  border-top: 2px solid var(--white);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.1em;
}

.footer-desc {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-top: 16px;
}

.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.6;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  border-bottom: none;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-links a:hover {
  background: none;
  opacity: 1;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* --- Docs Page --- */
.docs-hero {
  padding: 160px 0 80px;
  border-bottom: 2px solid var(--white);
}

.docs-nav {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  padding: 48px 0;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.docs-sidebar-section {
  margin-bottom: 24px;
}

.docs-sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.6;
  margin-bottom: 12px;
}

.docs-sidebar-links {
  list-style: none;
}

.docs-sidebar-links li {
  margin-bottom: 8px;
}

.docs-sidebar-links a {
  border-bottom: none;
  font-size: 0.875rem;
  opacity: 0.7;
}

.docs-sidebar-links a:hover,
.docs-sidebar-links a.active {
  background: none;
  opacity: 1;
}

.docs-content h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #333;
}

.docs-content h3 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 16px;
}

.docs-content p {
  margin-bottom: 16px;
  opacity: 0.9;
}

.docs-content ul {
  margin-left: 24px;
  margin-bottom: 24px;
}

.docs-content li {
  margin-bottom: 8px;
}

.docs-content pre {
  background-color: #111;
  border: 1px solid #333;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 0.875rem;
}

.docs-content code {
  background-color: #111;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
}

.docs-content pre code {
  background: none;
  padding: 0;
}

/* --- Mascot Decorations --- */
.mascot {
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.4));
}

/* Float positioning */
.mascot-left { float: left; margin: 0 20px 0 -10px; }
.mascot-right { float: right; margin: 0 -10px 0 20px; }
.mascot-inline { display: inline-block; vertical-align: middle; margin: 0 10px; }

/* Section-relative positioning */
.hero, .features, .how-it-works, .pricing, .marquee-section { position: relative; }

/* Big centered break */
.mascot-break {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  clear: both;
}
.mascot-big { width: 150px; }

/* Sizes */
.mascot-sm { width: 50px; }
.mascot-md { width: 70px; }

/* Mobile - hide mascots */
@media (max-width: 768px) {
  .mascot { display: none; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

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

  .docs-nav {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

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

  .navbar-links {
    display: none;
  }
}
