/* =====================================================
   HOTLOOP.AI COMPONENT LIBRARY
   Reusable UI components - uses design-tokens.css
   ===================================================== */

/* ===================
   RESET & BASE
   =================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ===================
   BACKGROUND ANIMATION CONTAINER
   =================== */
#hotloop-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-background);
  pointer-events: none;
}

/* Content overlay */
.content-overlay {
  position: relative;
  z-index: var(--z-content);
}

/* ===================
   NAVIGATION
   =================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-8);
  background: var(--bg-glass-light);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-pink);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-pink);
  border-radius: 1px;
}

.nav-cta {
  padding: var(--space-2) var(--space-5) !important;
  background: var(--bg-glass);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
}

.nav-cta:hover {
  background: var(--accent-pink-20);
  border-color: var(--border-glow);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-2);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-base);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .main-nav {
    padding: var(--space-4) var(--space-5);
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-6);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(var(--blur-lg));
    border-bottom: 1px solid var(--border-subtle);
    gap: var(--space-4);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ===================
   SECTIONS
   =================== */
.section {
  padding: var(--section-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--accent-coral);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-section-title);
  font-weight: var(--weight-semibold);
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: var(--container-md);
}

/* ===================
   HERO SECTION
   =================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px var(--section-padding-x) var(--space-16);
  position: relative;
}

.hero-compact {
  min-height: auto;
  padding-top: 160px;
  padding-bottom: var(--space-16);
}

.hero-centered {
  min-height: 100vh;
  justify-content: center;
}

.hero-content {
  background: var(--bg-glass-light);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-16);
  max-width: 850px;
  box-shadow: 
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .hero-content {
    padding: var(--space-8) var(--space-6);
    margin: 0 var(--space-4);
  }
}

.hero-tagline {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--accent-coral);
  margin-bottom: var(--space-5);
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

.hero-title .highlight {
  background: linear-gradient(
    135deg,
    var(--accent-pink) 0%,
    var(--accent-coral) 50%,
    var(--accent-warm) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-body-lg);
  font-weight: var(--weight-book);
  color: var(--text-secondary);
  max-width: var(--container-sm);
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

/* ===================
   BUTTONS
   =================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-10);
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-warm));
  border: none;
  border-radius: var(--radius-full);
  color: white;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-glow);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-hover);
}

.cta-button svg {
  width: 20px;
  height: 20px;
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--border-accent);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--accent-pink-20);
  border-color: var(--border-glow);
  box-shadow: none;
  transform: translateY(-2px);
}

/* ===================
   GLASS CARD
   =================== */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  transition: all var(--transition-slow);
}

.glass-card:hover {
  border-color: var(--border-accent-hover);
}

/* ===================
   PROCESS STEPS
   =================== */
.process-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  max-width: var(--container-xl);
  width: 100%;
}

.process-step {
  flex: 1;
  min-width: 180px;
  max-width: 200px;
  padding: var(--space-8) var(--space-5);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(var(--blur-sm));
  transition: all var(--transition-slow);
}

.process-step:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  margin: 0 auto var(--space-4);
  box-shadow: 0 5px 20px var(--accent-warm-30);
}

.step-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-3);
  color: var(--accent-pink);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.process-connector {
  display: none;
  align-items: center;
  color: var(--accent-coral);
  font-size: var(--text-2xl);
  opacity: 0.5;
}

@media (min-width: 1100px) {
  .process-connector {
    display: flex;
  }
}

/* ===================
   VALUE CARDS
   =================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  max-width: var(--container-lg);
  width: 100%;
  padding: 0 var(--space-4);
}

.value-card {
  padding: var(--space-10) var(--space-8);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--blur-lg));
  transition: all var(--transition-slow);
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent-hover);
}

.value-icon {
  width: 50px;
  height: 50px;
  margin-bottom: var(--space-5);
  color: var(--accent-coral);
}

.value-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-3);
}

.value-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ===================
   LOOP COMPARISON (Human vs AI)
   =================== */
.loop-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  margin-top: var(--space-12);
  max-width: var(--container-lg);
  padding: 0 var(--space-4);
}

.loop-side {
  flex: 1;
  min-width: 260px;
  max-width: 320px;
  padding: var(--space-10) var(--space-8);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--blur-sm));
}

.loop-side.human {
  border-color: var(--border-glow);
}

.loop-side.ai {
  border-color: rgba(255, 165, 0, 0.3);
}

.loop-side-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-5);
}

.loop-side.human .loop-side-title {
  color: var(--accent-pink);
}

.loop-side.ai .loop-side-title {
  color: #ffa500;
}

.loop-list {
  list-style: none;
  text-align: left;
}

.loop-list li {
  padding: var(--space-2) 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.loop-list li::before {
  content: '→';
  color: var(--accent-coral);
  font-weight: var(--weight-bold);
}

.loop-center {
  font-size: var(--text-4xl);
  color: var(--accent-pink);
  opacity: 0.6;
}

/* ===================
   CTA SECTION
   =================== */
.cta-section {
  padding: var(--section-padding-y) var(--section-padding-x) 150px;
  text-align: center;
}

.cta-box {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: var(--space-16) var(--space-10);
  background: linear-gradient(
    145deg,
    var(--accent-pink-20) 0%,
    rgba(201, 106, 90, 0.05) 100%
  );
  border: 1px solid var(--border-accent-hover);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(var(--blur-lg));
}

.cta-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
}

.cta-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

/* ===================
   FOOTER
   =================== */
.main-footer {
  padding: var(--space-16) var(--section-padding-x);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  max-width: var(--container-xl);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-location {
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

.footer-links-group {
  display: flex;
  gap: var(--space-16);
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links-column h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.footer-links-column a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links-column a:hover {
  color: var(--accent-pink);
}

.footer-bottom {
  max-width: var(--container-xl);
  margin: var(--space-8) auto 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--accent-pink);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links-group {
    flex-direction: column;
    gap: var(--space-8);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================
   SCROLL INDICATOR
   =================== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.scroll-indicator span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(8px); }
}

/* ===================
   ANIMATIONS
   =================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===================
   UTILITY CLASSES
   =================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-16 { margin-top: var(--space-16); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-16 { margin-bottom: var(--space-16); }

.max-w-sm { max-width: var(--container-sm); }
.max-w-md { max-width: var(--container-md); }
.max-w-lg { max-width: var(--container-lg); }
