/* =============================================
   Make Your Tale — Landing Page Styles
   ============================================= */

/* ===== CSS Reset & Variables ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --navy: #0F1B2D;
  --navy-light: #1A2D4A;
  --orange: #F97316;
  --orange-light: #FB923C;
  --orange-dark: #EA580C;
  --white: #FFFFFF;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;

  /* Functional */
  --success: #22C55E;
  --bg-dark: var(--navy);
  --bg-light: var(--white);
  --bg-alt: var(--gray-50);
  --text-primary: var(--navy);
  --text-secondary: var(--slate);
  --text-light: var(--white);
  --accent: var(--orange);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --gutter: 24px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Text Utilities ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.badge-white {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
}
.btn-ghost:hover {
  color: var(--navy);
  background: var(--gray-100);
}

.btn-full { width: 100%; justify-content: center; }

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:not(.btn):hover {
  color: var(--navy);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-bg-shape {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

/* Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 4px;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-graphic {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}

.graphic-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.graphic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.graphic-dot.orange { background: var(--orange); }
.graphic-dot.green { background: var(--success); }
.graphic-dot.blue { background: #3B82F6; }
.graphic-dot.purple { background: #A855F7; }

.graphic-card-1 { top: 5%; left: 5%; animation-delay: 0s; }
.graphic-card-2 { top: 25%; right: 5%; animation-delay: -1.5s; }
.graphic-card-3 { bottom: 25%; left: 5%; animation-delay: -3s; }
.graphic-card-4 { bottom: 5%; right: 5%; animation-delay: -4.5s; }

.graphic-connector {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 2px dashed var(--gray-200);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.graphic-result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  text-align: center;
}

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

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== PROBLEM SECTION ===== */
.problem {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

.problem-card {
  padding: 32px 24px;
  background: var(--gray-50);
  border-radius: 16px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: var(--section-padding);
  background: var(--bg-dark);
  color: var(--text-light);
}

.how-it-works .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

.steps {
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  font-size: 0.95rem;
}

.step-connector {
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  margin: 8px 0 8px 23px;
}

/* ===== FEATURES ===== */
.features {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.feature-card {
  padding: 36px 28px;
  border-radius: 16px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(249, 115, 22, 0.2);
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.testimonial-card-featured {
  grid-column: 1 / -1;
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 8px 30px rgba(249, 115, 22, 0.08);
}

.testimonial-plan {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.plan-starter {
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange);
}

.plan-growth {
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
}

.plan-pro {
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
}

.testimonial-content p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

.testimonial-author div {
  flex: 1;
  min-width: 120px;
}

.testimonial-author strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.testimonial-author span {
  display: block;
  font-size: 0.75rem;
  color: var(--slate);
}

.testimonial-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
}

.testimonial-link:hover {
  text-decoration: underline;
}

/* ===== PRICING ===== */
.pricing {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px 32px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.pricing-card-featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 20px 60px rgba(249, 115, 22, 0.1);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}

.price {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--navy);
}

.period {
  font-size: 1rem;
  color: var(--slate);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-note {
  text-align: center;
  color: var(--slate);
  font-size: 0.85rem;
  margin-top: 24px;
}

/* ===== EARLY ACCESS ===== */
.early-access {
  padding: var(--section-padding);
  background: var(--bg-dark);
}

.early-access-card {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 48px;
}

.early-access .section-header h2 {
  color: var(--white);
}

.early-access .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

.early-access .section-header p strong {
  color: var(--orange-light);
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px;
}

/* Success */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  margin-bottom: 20px;
}

.form-success h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
}

.form-success p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 30px;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .hero-metrics { gap: 16px; flex-wrap: wrap; }
  .metric-divider { display: none; }

  .hero-graphic { max-width: 320px; }
  .graphic-card { padding: 10px 14px; font-size: 0.8rem; }
  .graphic-connector { width: 80px; height: 80px; }

  .section-header h2 { font-size: 1.8rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card-featured { grid-column: 1; }
  .early-access-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-content { grid-template-columns: 1fr; gap: 32px; }

  .pricing-card-featured { margin: 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero { padding: 120px 0 60px; }
  .section-header h2 { font-size: 1.5rem; }
}
