/* ==========================================================================
   Bot One — Design System
   Dieter Rams / Jobs-inspired minimalism.
   No frameworks, no web-font downloads. Pure CSS.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: #1d1d1f;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

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

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6e6e73;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #1d1d1f;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  background: #0071e3;
  padding: 8px 20px;
  border-radius: 980px;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: #0077ed;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1d1d1f;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 120px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
  padding: 8px 20px;
  border-radius: 980px;
  margin-bottom: 32px;
  transition: background 0.2s ease;
}

.hero-badge:hover {
  background: rgba(0, 113, 227, 0.14);
}

.hero-badge svg {
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #1d1d1f;
  margin-bottom: 24px;
}

.hero-subheadline {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  color: #6e6e73;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: #0071e3;
}

.btn-primary:hover {
  background: #0077ed;
}

.btn-secondary {
  color: #0071e3;
  background: transparent;
  border: 1.5px solid #0071e3;
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.06);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: #f5f5f7;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 56px;
  color: #1d1d1f;
}

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

.feature-card {
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  color: #0071e3;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1d1d1f;
}

.feature-desc {
  font-size: 1rem;
  color: #6e6e73;
  line-height: 1.5;
}

/* ---------- Why ---------- */
.why-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.why-text {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: #6e6e73;
  line-height: 1.7;
  margin-top: -16px;
}

/* ---------- Steps ---------- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0071e3;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.step-desc {
  font-size: 0.9375rem;
  color: #6e6e73;
  line-height: 1.5;
}

.step-connector {
  width: 64px;
  height: 2px;
  background: #d2d2d7;
  flex-shrink: 0;
  margin-top: 28px;
}

/* ---------- Walkthrough GIF Grid ---------- */
.walkthrough-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.walkthrough-card {
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.walkthrough-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.walkthrough-media {
  background: #f5f5f7;
  padding: 20px;
  border-bottom: 1px solid #e5e5ea;
}

.walkthrough-media img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 0 auto;
}

.walkthrough-content {
  padding: 24px 24px 28px;
}

.walkthrough-step {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.walkthrough-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 10px;
}

.walkthrough-desc {
  font-size: 1rem;
  color: #6e6e73;
  line-height: 1.55;
}

/* ---------- Guide ---------- */
.guide-list {
  max-width: 640px;
  margin: 0 auto;
  padding-left: 24px;
}

.guide-list li {
  font-size: 1.125rem;
  color: #6e6e73;
  padding: 16px 0;
  border-bottom: 1px solid #d2d2d7;
  line-height: 1.5;
}

.guide-list li:last-child {
  border-bottom: none;
}

/* ---------- Pricing ---------- */
.pricing-subtitle {
  text-align: center;
  font-size: 1.0625rem;
  color: #6e6e73;
  margin-top: -32px;
  margin-bottom: 56px;
}

.pricing-subtitle strong {
  color: #1d1d1f;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.pricing-card-highlight {
  border: 2px solid #0071e3;
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0, 113, 227, 0.1);
}

.pricing-card-highlight:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 40px rgba(0, 113, 227, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #0071e3;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 980px;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.pricing-currency {
  font-size: 1.25rem;
  font-weight: 500;
  color: #6e6e73;
}

.pricing-credits {
  font-size: 1.0625rem;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.pricing-ratio {
  font-size: 0.875rem;
  color: #6e6e73;
  margin-bottom: 16px;
}

.pricing-note {
  font-size: 0.875rem;
  color: #6e6e73;
  margin-bottom: 24px;
  min-height: 20px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0;
  border-top: 1px solid #d2d2d7;
}

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

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #1d1d1f;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: #6e6e73;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #1d1d1f;
}

.footer-copy {
  font-size: 0.8125rem;
  color: #6e6e73;
}

/* ---------- Commands Slide-over ---------- */
.commands-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.commands-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.commands-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.commands-panel.active {
  transform: translateX(0);
}

.commands-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #d2d2d7;
  flex-shrink: 0;
}

.commands-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1d1d1f;
}

.commands-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #6e6e73;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

.commands-close:hover {
  color: #1d1d1f;
}

.commands-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.command-item {
  padding: 16px 0;
  border-bottom: 1px solid #e5e5ea;
}

.command-item:last-child {
  border-bottom: none;
}

.command-name {
  font-size: 1rem;
  font-weight: 600;
  color: #0071e3;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-bottom: 6px;
}

.command-desc {
  font-size: 0.9375rem;
  color: #6e6e73;
  line-height: 1.5;
}

/* ---------- Scroll Animations ---------- */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .walkthrough-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.25rem;
  }

  .nav-cta {
    font-size: 1rem;
    padding: 12px 32px;
  }

  .hero {
    padding: 128px 0 80px;
  }

  .section {
    padding: 72px 0;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step {
    padding: 24px 0;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card-highlight {
    transform: none;
  }

  .pricing-card-highlight:hover {
    transform: scale(1.02);
  }

  .commands-panel {
    width: 100%;
    max-width: 100vw;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
