/*——————————————————————————————————————————————
  Enhanced Thoughts Landing Page Styles
——————————————————————————————————————————————*/

/* 1. CSS Variables & Reset */
:root {
  /* Colors - Light Mode */
  --bg-primary: #FAF6F5;
  --bg-secondary: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --accent: #8B7E74;
  --accent-hover: #6B5E54;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Typography */
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: Georgia, 'Times New Roman', serif;  /* Using Georgia for everything */
}

/* Dark Mode Variables */
body.dark-mode {
  --bg-primary: #0A0A0A;
  --bg-secondary: #1A1A1A;
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --accent: #B5A69C;
  --accent-hover: #D5C6BC;
  --border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-serif);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

/* 2. Layout & Typography */
main {
  min-height: 100vh;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* 3. Dark Mode Toggle */
#dark-mode-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

#dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* 4. Beta Badge */
.beta-badge {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pulse {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* 5. Hero Section */
.hero {
  padding: var(--space-2xl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.logo-wrapper {
  margin: var(--space-lg) auto;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.thought-logo {
  width: min(180px, 40vw);
  height: auto;
}

.hero-title {
  margin: var(--space-lg) 0;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Thought Counter */
.thought-counter {
  display: inline-flex;
  flex-direction: column;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border-radius: 16px;
  margin: var(--space-lg) 0;
  border: 1px solid var(--border);
}

.counter-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.counter-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-lg) 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--border);
  font-weight: 600;
  transition: all 0.3s ease;
}

.ghost-link:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.trust-item i {
  color: var(--accent);
}

/* 6. Philosophy Section */
.philosophy {
  padding: var(--space-2xl) var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.philosophy-card {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border-radius: 24px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  opacity: 0.1;
  font-family: var(--font-serif);
}

.philosophy-card blockquote {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* 7. Story Section (Scrollytelling) */
.story {
  padding: var(--space-2xl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.story-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.story-phone {
  position: sticky;
  top: 100px;
}

.phone-notch {
  width: 120px;
  height: 30px;
  background: var(--bg-primary);
  margin: 0 auto -15px;
  border-radius: 0 0 20px 20px;
  position: relative;
  z-index: 10;
}

.story-phone-frame {
  background: var(--bg-secondary);
  border-radius: 40px;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 2px solid var(--border);
}

.story-phone-frame img {
  width: 100%;
  border-radius: 30px;
  display: block;
}

.swipe-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInOut 3s infinite;
  animation-delay: 2s;
}

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

.story-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.story-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: var(--space-sm);
}

.story-step {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border-radius: 20px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.story-step:hover {
  transform: translateX(10px);
  border-color: var(--accent);
}

.story-step.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  opacity: 0.7;
}

.step-meta i {
  color: var(--accent);
}

/* 8. Features Grid */
.features {
  padding: var(--space-2xl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

/* 9. Testimonials */
.testimonials {
  padding: var(--space-2xl) var(--space-md);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonials-slider {
  position: relative;
  min-height: 150px;
}

.testimonial {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial.active {
  opacity: 1;
  position: relative;
}

.testimonial p {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: var(--space-md);
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* 10. Beta CTA */
.beta-cta {
  padding: var(--space-2xl) var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

.cta-card {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border-radius: 24px;
  border: 2px solid var(--accent);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.beta-form {
  margin-top: var(--space-lg);
}

.form-group {
  display: flex;
  gap: var(--space-sm);
  max-width: 400px;
  margin: 0 auto;
}

.form-group input {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-sans);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  display: block;
  margin-top: var(--space-sm);
  opacity: 0.7;
  font-size: 0.875rem;
}

.form-success {
  text-align: center;
  color: green;
}

.form-success i {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

/* 11. FAQ */
.faq {
  padding: var(--space-2xl) var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-lg);
}

.faq-item {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* 12. Footer */
footer {
  background: var(--bg-secondary);
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* 13. Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 14. Responsive Design */
@media (max-width: 768px) {
  .beta-badge {
    display: none;
  }
  
  .story-layout {
    grid-template-columns: 1fr;
  }
  
  .story-phone {
    position: relative;
    max-width: 320px;
    margin: 0 auto var(--space-lg);
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  h1 {
    font-size: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .story-layout {
    grid-template-columns: 350px 1fr;
  }
}