/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  padding: 8rem 0 6rem;
  margin-top: -72px;
  padding-top: calc(8rem + 72px);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(249, 115, 22, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(249, 115, 22, 0.04), transparent);
  pointer-events: none;
}

[data-theme='dark'] .hero::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(251, 146, 60, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(251, 146, 60, 0.06), transparent);
}

.heroInner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.heroTitle {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--ifm-font-color-base) 0%, var(--pa-stone-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme='dark'] .heroTitle {
  background: linear-gradient(135deg, #fafaf9 0%, #a8a29e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.heroSubtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--pa-stone-700);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

[data-theme='dark'] .heroSubtitle {
  color: var(--pa-stone-300);
}

.heroDescription {
  font-size: 1.125rem;
  color: var(--pa-stone-500);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.heroButtons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.primaryButton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--pa-orange-600) 0%, var(--pa-orange-700) 100%);
  border-radius: 10px;
  text-decoration: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(234, 88, 12, 0.25);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.primaryButton:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(234, 88, 12, 0.35);
  color: white;
  text-decoration: none;
}

.primaryButton:active {
  transform: translateY(0);
}

.secondaryButton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pa-stone-700);
  background: white;
  border: 1px solid var(--pa-stone-300);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

[data-theme='dark'] .secondaryButton {
  background: var(--pa-stone-800);
  border-color: var(--pa-stone-700);
  color: var(--pa-stone-200);
}

.secondaryButton:hover {
  border-color: var(--pa-stone-400);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: var(--pa-stone-900);
  text-decoration: none;
}

[data-theme='dark'] .secondaryButton:hover {
  background: var(--pa-stone-700);
  border-color: var(--pa-stone-600);
  color: white;
}

.installCommand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: var(--pa-stone-100);
  border: 1px solid var(--pa-stone-200);
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pa-stone-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme='dark'] .installCommand {
  background: var(--pa-stone-800);
  border-color: var(--pa-stone-700);
  color: var(--pa-stone-300);
}

.installCommand:hover {
  border-color: var(--pa-orange-300);
  background: var(--pa-orange-50);
}

[data-theme='dark'] .installCommand:hover {
  border-color: var(--pa-orange-600);
  background: rgba(251, 146, 60, 0.1);
}

.installPrefix {
  color: var(--pa-stone-400);
  user-select: none;
}

/* ============================================
   CODE EXAMPLE SECTION
   ============================================ */

.codeSection {
  padding: 6rem 0;
  background: var(--pa-stone-100);
  position: relative;
}

[data-theme='dark'] .codeSection {
  background: var(--pa-stone-900);
}

.codeSection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pa-stone-300), transparent);
}

[data-theme='dark'] .codeSection::before {
  background: linear-gradient(90deg, transparent, var(--pa-stone-700), transparent);
}

.codeGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 996px) {
  .codeGrid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.codeDescription h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.codeDescription p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--pa-stone-600);
  margin-bottom: 1.25rem;
}

[data-theme='dark'] .codeDescription p {
  color: var(--pa-stone-400);
}

.codeDescription strong {
  color: var(--ifm-font-color-base);
  font-weight: 600;
}

.featureList {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.featureList li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  font-size: 1rem;
  color: var(--pa-stone-600);
}

[data-theme='dark'] .featureList li {
  color: var(--pa-stone-400);
}

.featureList li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--pa-orange-500), var(--pa-orange-600));
  border-radius: 2px;
  transform: rotate(45deg);
}

.codeBlock {
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 20px 40px -10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--pa-stone-200);
  transition: all 0.3s ease;
}

[data-theme='dark'] .codeBlock {
  border-color: var(--pa-stone-700);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.codeBlock:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 12px -2px rgba(0, 0, 0, 0.12),
    0 30px 50px -15px rgba(0, 0, 0, 0.2);
}

[data-theme='dark'] .codeBlock:hover {
  box-shadow:
    0 8px 12px -2px rgba(0, 0, 0, 0.4),
    0 30px 50px -15px rgba(0, 0, 0, 0.6);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
  padding: 6rem 0;
  position: relative;
}

.featuresHeader {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.featuresHeader h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.featuresHeader p {
  font-size: 1.1rem;
  color: var(--pa-stone-500);
}

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

@media (max-width: 996px) {
  .featuresGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .featuresGrid {
    grid-template-columns: 1fr;
  }
}

.featureCard {
  position: relative;
  padding: 1.75rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--pa-stone-200);
  transition: all 0.25s ease;
  overflow: hidden;
}

[data-theme='dark'] .featureCard {
  background: var(--pa-stone-800);
  border-color: var(--pa-stone-700);
}

.featureCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pa-orange-500), var(--pa-orange-400));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.featureCard:hover {
  transform: translateY(-4px);
  border-color: var(--pa-stone-300);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] .featureCard:hover {
  border-color: var(--pa-stone-600);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}

.featureCard:hover::before {
  opacity: 1;
}

.featureIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--pa-orange-600);
  background: var(--pa-orange-50);
  border-radius: 12px;
  transition: all 0.25s ease;
}

[data-theme='dark'] .featureIcon {
  background: rgba(251, 146, 60, 0.15);
  color: var(--pa-orange-400);
}

.featureCard:hover .featureIcon {
  background: var(--pa-orange-100);
  transform: scale(1.05);
}

[data-theme='dark'] .featureCard:hover .featureIcon {
  background: rgba(251, 146, 60, 0.2);
}

.featureTitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.featureDescription {
  font-size: 0.9rem;
  color: var(--pa-stone-500);
  line-height: 1.6;
  margin: 0;
}

[data-theme='dark'] .featureDescription {
  color: var(--pa-stone-400);
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */

.philosophy {
  padding: 6rem 0;
  background: var(--pa-stone-900);
  color: white;
  position: relative;
  overflow: hidden;
}

.philosophy::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.philosophyInner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 996px) {
  .philosophyInner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
}

.philosophyContent h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.philosophyContent p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--pa-stone-400);
  margin-bottom: 1.25rem;
}

.philosophyContent strong {
  color: var(--pa-orange-400);
}

.principlesList {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.principle {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (max-width: 996px) {
  .principle {
    text-align: left;
  }
}

.principleNumber {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pa-orange-600);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
}

.principleContent h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: white;
}

.principleContent p {
  font-size: 0.95rem;
  color: var(--pa-stone-400);
  margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pa-stone-300), transparent);
}

[data-theme='dark'] .cta::before {
  background: linear-gradient(90deg, transparent, var(--pa-stone-700), transparent);
}

.ctaInner {
  max-width: 600px;
  margin: 0 auto;
}

.ctaInner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.ctaInner p {
  font-size: 1.1rem;
  color: var(--pa-stone-500);
  margin-bottom: 2rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
  .featureCard {
    animation: fadeInUp 0.6s ease-out backwards;
  }

  .featureCard:nth-child(1) { animation-delay: 0.1s; }
  .featureCard:nth-child(2) { animation-delay: 0.15s; }
  .featureCard:nth-child(3) { animation-delay: 0.2s; }
  .featureCard:nth-child(4) { animation-delay: 0.25s; }
  .featureCard:nth-child(5) { animation-delay: 0.3s; }
  .featureCard:nth-child(6) { animation-delay: 0.35s; }
  .featureCard:nth-child(7) { animation-delay: 0.4s; }
  .featureCard:nth-child(8) { animation-delay: 0.45s; }
  .featureCard:nth-child(9) { animation-delay: 0.5s; }
}
