/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* Brand Colors */
:root {
  --haiti: #20163A;
  --plantation: #294A48;
  --black-cow: #4F4C44;
  --dust-storm: #DDCFC3;
  --white: #FFFFFF;
  --dust-storm-light: rgba(221, 207, 195, 0.25);
  --dust-storm-medium: rgba(221, 207, 195, 0.5);
}

/* Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--black-cow);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dust-storm-light);
}

::-webkit-scrollbar-thumb {
  background: var(--dust-storm);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c4b5a8;
}

/* Scroll Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 100ms; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 200ms; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 300ms; }

/* Sticky Header */
.site-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 12px rgba(32, 22, 58, 0.08);
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Nav links */
.nav-link {
  position: relative;
  color: var(--black-cow);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--plantation);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--haiti);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--haiti);
  font-weight: 600;
}

/* Hero gradient background */
.hero-bg {
  background: linear-gradient(
    160deg,
    var(--white) 0%,
    rgba(221, 207, 195, 0.2) 40%,
    rgba(221, 207, 195, 0.35) 70%,
    rgba(41, 74, 72, 0.06) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(32, 22, 58, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

/* Cards */
.tool-card {
  background: var(--white);
  border: 1px solid var(--dust-storm);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(32, 22, 58, 0.1);
}

.prompt-card {
  background: var(--white);
  border: 1px solid var(--dust-storm);
  border-radius: 16px;
  transition: box-shadow 0.3s ease;
}

.prompt-card:hover {
  box-shadow: 0 8px 30px rgba(32, 22, 58, 0.08);
}

/* Badge pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-gpt {
  background-color: rgba(32, 22, 58, 0.08);
  color: var(--haiti);
}

.badge-chatgpt {
  background-color: rgba(41, 74, 72, 0.1);
  color: var(--plantation);
}

.badge-claude {
  background-color: rgba(221, 207, 195, 0.5);
  color: var(--black-cow);
}

/* Prompt block */
.prompt-block {
  position: relative;
  background: rgba(221, 207, 195, 0.15);
  border: 1px solid var(--dust-storm);
  border-radius: 12px;
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--black-cow);
  max-height: 500px;
  overflow-y: auto;
}

.prompt-block pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Copy button */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--plantation);
  background: rgba(41, 74, 72, 0.08);
  border: 1px solid rgba(41, 74, 72, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(41, 74, 72, 0.15);
  border-color: rgba(41, 74, 72, 0.25);
}

.copy-btn.is-copied {
  color: var(--white);
  background: var(--plantation);
  border-color: var(--plantation);
}

.copy-btn .icon-check {
  display: none;
}

.copy-btn.is-copied .icon-copy {
  display: none;
}

.copy-btn.is-copied .icon-check {
  display: inline;
}

/* Expand toggle */
.expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plantation);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease;
}

.expand-toggle:hover {
  color: var(--haiti);
}

.expand-toggle .chevron {
  transition: transform 0.3s ease;
  display: inline-block;
}

.expand-toggle.is-expanded .chevron {
  transform: rotate(180deg);
}

/* Collapsible content */
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, opacity 0.3s ease;
  opacity: 0;
}

.collapsible-content.is-open {
  opacity: 1;
  max-height: 3000px;
  transition: max-height 0.7s ease-in, opacity 0.3s ease;
}

/* Steps list */
.steps-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
}

.steps-list li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.steps-list li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dust-storm-light);
  color: var(--haiti);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 1px;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--dust-storm), transparent);
}

/* Number label for prompt cards */
.prompt-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--haiti);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Tool card number */
.tool-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--plantation);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* CTA button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--haiti);
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-btn:hover {
  background: #2e2050;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(32, 22, 58, 0.25);
}

/* Mobile nav scroll */
@media (max-width: 640px) {
  .nav-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-scroll::-webkit-scrollbar {
    display: none;
  }
}

/* Subtle pattern on sections */
.section-alt {
  background: linear-gradient(180deg, rgba(221, 207, 195, 0.1) 0%, var(--white) 100%);
}

/* Footer */
.site-footer {
  background: var(--haiti);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
  color: var(--dust-storm);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--white);
}
