/* ============================================
   ClawSetup Landing Page — Dark Forge Design
   ============================================ */

:root {
  --bg-primary: #0F0F0F;
  --bg-secondary: #1A1A1A;
  --surface: #242424;
  --amber: #E8A020;
  --amber-light: #F5C563;
  --amber-glow: rgba(232, 160, 32, 0.15);
  --text-primary: #F0EDE6;
  --text-secondary: #8A8780;
  --border: #2E2E2E;
  --success: #4ADE80;
}

/* ============================================
   Base
   ============================================ */

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: "DM Sans", sans-serif;
}

.font-outfit { font-family: "Outfit", sans-serif; }
.font-mono-accent { font-family: "JetBrains Mono", monospace; }
.font-dm { font-family: "DM Sans", sans-serif; }

/* ============================================
   Navigation
   ============================================ */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

#main-nav.scrolled {
  background-color: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dot-grid overlay */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Grain noise overlay */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Ambient amber glow */
.hero-ambient-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 500px at 50% 50%, rgba(232, 160, 32, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: ambientDrift 30s ease-in-out infinite;
}

@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(2%, -3%) scale(1.02); }
  50% { transform: translate(-2%, 2%) scale(0.98); }
  75% { transform: translate(1%, -1%) scale(1.01); }
}

/* Rotating grid element */
.hero-grid-element {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background-image:
    repeating-linear-gradient(0deg, rgba(232, 160, 32, 0.03) 0px, transparent 1px, transparent 80px, rgba(232, 160, 32, 0.03) 80px),
    repeating-linear-gradient(90deg, rgba(232, 160, 32, 0.03) 0px, transparent 1px, transparent 80px, rgba(232, 160, 32, 0.03) 80px);
  pointer-events: none;
  z-index: 0;
  animation: gridRotate 120s linear infinite, gridPulse 20s ease-in-out infinite;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 100%);
}

@keyframes gridRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 0 1.5rem;
}

/* ============================================
   Hero Animations — Staggered Reveal
   ============================================ */

@keyframes forgeReveal {
  0% {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes dashDraw {
  0% { width: 0; opacity: 0; }
  100% { width: 20px; opacity: 1; }
}

.hero-eyebrow {
  animation: forgeReveal 700ms cubic-bezier(0.16, 1, 0.3, 1) 0ms both;
}

.hero-eyebrow-dash {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--amber);
  margin-right: 10px;
  vertical-align: middle;
  animation: dashDraw 400ms ease-out 0ms both;
}

.hero-headline {
  animation: forgeReveal 700ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.hero-subhead {
  animation: forgeReveal 700ms cubic-bezier(0.16, 1, 0.3, 1) 240ms both;
}

.hero-cta-primary {
  animation: forgeReveal 600ms cubic-bezier(0.16, 1, 0.3, 1) 400ms both;
}

.hero-cta-secondary {
  animation: forgeReveal 600ms cubic-bezier(0.16, 1, 0.3, 1) 480ms both;
}

.hero-trust-nudge {
  animation: forgeReveal 500ms cubic-bezier(0.16, 1, 0.3, 1) 580ms both;
}

.hero-trust-bar {
  animation: forgeReveal 500ms cubic-bezier(0.16, 1, 0.3, 1) 700ms both;
}

/* ============================================
   CTA Buttons
   ============================================ */

.btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--amber);
  color: #0F0F0F;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-amber:hover {
  background-color: var(--amber-light);
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(232, 160, 32, 0.25);
  color: #0F0F0F;
}

.btn-amber:active {
  transform: scale(0.98);
  background-color: #D4901A;
}

.btn-amber-sm {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--amber);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--amber);
  text-decoration: none;
  transition: all 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--amber-light);
  color: var(--amber-light);
  background-color: rgba(232, 160, 32, 0.05);
}

.btn-outline:active {
  border-color: #D4901A;
  color: #D4901A;
}

/* ============================================
   Scroll Reveal (IntersectionObserver)
   ============================================ */

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-from-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.reveal-from-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-from-right {
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.reveal-from-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   Section Styles
   ============================================ */

.section-bg-secondary {
  background-color: var(--bg-secondary);
}

.section-divider {
  height: 1px;
  background: var(--border);
}

/* ============================================
   Pain Points Section
   ============================================ */

.pain-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: background-color 250ms ease, border-left-color 250ms ease;
}

.pain-card:hover {
  background-color: var(--surface);
  border-left-color: var(--amber-light);
}

/* ============================================
   How It Works
   ============================================ */

.step-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  display: block;
}

.step-connector {
  position: absolute;
  top: 1.5rem;
  left: calc(50% + 3rem);
  right: calc(-50% + 3rem);
  height: 1px;
  border-top: 2px dashed rgba(232, 160, 32, 0.35);
  animation: connectorPulse 3s ease-in-out infinite;
}

@keyframes connectorPulse {
  0%, 100% { border-color: rgba(232, 160, 32, 0.35); }
  50% { border-color: rgba(232, 160, 32, 0.6); }
}

/* ============================================
   Feature Cards (What's Included)
   ============================================ */

.feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 2px solid var(--amber);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: background-color 250ms ease, border-left-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background-color: var(--surface);
  border-left-color: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(232, 160, 32, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  transition: background-color 250ms ease;
  flex-shrink: 0;
}

.feature-card:hover .feature-icon {
  background-color: rgba(232, 160, 32, 0.2);
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 0.75rem;
  box-shadow: 0 0 60px rgba(232, 160, 32, 0.08);
  transition: transform 300ms ease, box-shadow 300ms ease;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 80px rgba(232, 160, 32, 0.12);
}

.price-amount {
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

@keyframes priceGlow {
  0% { text-shadow: 0 0 20px rgba(232, 160, 32, 0.4); }
  100% { text-shadow: 0 0 0px rgba(232, 160, 32, 0); }
}

.price-amount.glow-in {
  animation: priceGlow 1.5s ease-out forwards;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.checklist-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

.checklist-check {
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   Testimonials
   ============================================ */

.testimonial-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.75rem;
  transition: border-color 250ms ease;
}

.testimonial-card:hover {
  border-color: rgba(232, 160, 32, 0.3);
}

/* ============================================
   FAQ Accordion
   ============================================ */

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}

.faq-question {
  font-family: "DM Sans", sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 200ms ease;
}

.faq-question.text-amber {
  color: var(--amber);
}

.faq-icon {
  color: var(--amber);
  font-size: 1.25rem;
  font-weight: 300;
  transition: transform 200ms ease;
  flex-shrink: 0;
  margin-left: 1rem;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms ease, opacity 300ms ease;
}

.faq-answer-inner {
  font-family: "DM Sans", sans-serif;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding-bottom: 1.25rem;
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================
   Trust Bar
   ============================================ */

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.trust-badge-dot {
  width: 4px;
  height: 4px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   Colors
   ============================================ */

.text-amber { color: var(--amber); }
.text-amber-light { color: var(--amber-light); }
.text-primary { color: var(--text-primary); }
.text-secondary-custom { color: var(--text-secondary); }
.text-success { color: var(--success); }
.bg-surface { background-color: var(--surface); }
.bg-secondary-custom { background-color: var(--bg-secondary); }
.border-custom { border-color: var(--border); }

/* ============================================
   Mobile Nav
   ============================================ */

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

/* ============================================
   Accessibility: Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-eyebrow,
  .hero-headline,
  .hero-subhead,
  .hero-cta-primary,
  .hero-cta-secondary,
  .hero-trust-nudge,
  .hero-trust-bar,
  .reveal-item,
  .reveal-from-left,
  .reveal-from-right,
  .reveal-scale,
  .checklist-item {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}
