/* ==============================
   Driven Landing Page - Styles
   ============================== */

:root {
  --bg-primary: #010D13;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-inner: rgba(255, 255, 255, 0.04);
  --border-card: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.35);
  --accent-gold: #D4A843;
  --accent-gold-dim: rgba(212, 168, 67, 0.15);
  --accent-green: #34D399;
  --accent-red: #F87171;
  --accent-blue: #3B82F6;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1100px;
  --spacing-section: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.3;
  overflow-x: hidden;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Star background handles the ambient glow */

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography */
.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 33px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-heading.center {
  text-align: center;
}

.section-heading-sm {
  font-size: 25px;
}

.section-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 480px;
}

.section-desc.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-desc-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: 8px;
}

.section-desc-sub.center {
  text-align: center;
}

/* ==============================
   Hero
   ============================== */
.hero {
  text-align: center;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  pointer-events: none;
  z-index: 0;
}

.stars-bg {
  width: 100%;
  height: auto;
}

/* stars-bg styled above with hero-bg */

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

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

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.hero-tagline-bold {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.cta-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: opacity 0.2s;
}

.cta-link:hover {
  opacity: 0.7;
}

.app-store-badge {
  display: inline-block;
  transition: opacity 0.2s;
}

.app-store-badge:hover {
  opacity: 0.8;
}

.app-store-img {
  width: 156px;
  height: auto;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

/* ==============================
   Phone Mockup
   ============================== */
.hero-phone {
  padding: 0 0 var(--spacing-section);
  text-align: center;
}

.hero-phone-img {
  width: 300px;
  height: auto;
}

/* ==============================
   Intro
   ============================== */
.intro {
  text-align: center;
  padding: 0 0 var(--spacing-section);
}

.intro-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.intro-text {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.35;
  max-width: 500px;
  margin: 0 auto;
}

.intro-text em {
  font-style: italic;
  font-weight: 700;
}

/* ==============================
   Two-Column Grid
   ============================== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==============================
   Feature Cards
   ============================== */
.feature-card {
  background: rgba(87, 138, 176, 0.06);
  border: none;
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
}

.card-centered {
  text-align: center;
}

.card-centered .feature-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 85%;
}

.feature-card.no-bg {
  background: none;
  border: none;
}

.feature-img {
  width: 100%;
  height: auto;
  margin-top: 24px;
}

.card-badge {
  display: inline-block;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  color: var(--accent-gold);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.card-badge strong {
  font-weight: 600;
}

/* ==============================
   Dashboard Mockup (Clarity Section)
   ============================== */
.dashboard-mockup {
  margin-top: 28px;
}

.widget-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.widget-row-large {
  grid-template-columns: 1fr 1fr;
}

.widget-small, .widget-large {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.widget-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: white;
}

.red-icon {
  background: #DC2626;
}

.blue-icon {
  background: none;
}

.widget-name {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.widget-value {
  font-size: 0.85rem;
  font-weight: 700;
}

.widget-big-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.trend-up {
  color: var(--accent-green);
  font-size: 0.7rem;
  font-weight: 500;
}

.trend-down {
  color: var(--accent-red);
  font-size: 0.7rem;
  font-weight: 500;
}

.widget-chart-mini {
  height: 30px;
  margin-top: 4px;
}

.widget-chart-mini svg {
  width: 100%;
  height: 100%;
}

/* ==============================
   Testimonials
   ============================== */
.testimonial {
  margin-top: 40px;
  padding-top: 0;
}

.quote-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.quote-icon {
  width: 32px;
  height: auto;
  flex-shrink: 0;
  margin-top: 6px;
}

.testimonial p {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.35;
  color: #578AB0;
  margin-bottom: 20px;
  text-align: left;
}

.testimonial p strong {
  font-style: italic;
  font-weight: 700;
  color: #8ABDE3;
}

.testimonial cite {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: normal;
  margin-left: 44px;
}

.cite-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.green-avatar {
  background: #059669;
}

.purple-avatar {
  background: #7C3AED;
}

.cite-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cite-name {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--text-primary);
}

.cite-handle {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--text-primary);
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 4px;
}

.leaf-icon {
  width: 11px;
  height: auto;
}

/* ==============================
   Chat Mockup (Numbers Section)
   ============================== */
.chat-mockup {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 24px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
}

.chat-close {
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

.chat-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
}

.user-msg {
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.15);
  color: var(--text-primary);
  align-self: flex-end;
}

.bot-msg {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.bot-msg strong {
  color: var(--text-primary);
}

.chat-input {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
}

.chat-input-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.funnel-img {
  display: block;
  width: 315px;
  height: auto;
  margin: 32px auto 0;
}

.prompt-label {
  font-size: 15px;
  font-weight: 300;
  color: #578AB0;
  margin-top: 0;
  margin-bottom: 12px;
}

.prompt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 8px 14px;
  background: var(--bg-card-inner);
  cursor: pointer;
  transition: border-color 0.2s;
}

.pill:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* ==============================
   Sections Spacing
   ============================== */
.features,
.story-section,
.sales-journey,
.analytics-section,
.bottom-testimonial,
.cta-section {
  padding: 0 0 var(--spacing-section);
}

/* ==============================
   Timeline Mockup (Build Your Own Story)
   ============================== */
.timeline-mockup {
  margin-top: 28px;
  position: relative;
  padding-left: 80px;
}

.timeline-mockup::before {
  content: '';
  position: absolute;
  left: 74px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-card);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  position: absolute;
  left: -80px;
  top: 0;
  width: 60px;
  text-align: right;
  display: flex;
  flex-direction: column;
}

.tl-month {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tl-day {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid var(--bg-primary);
}

.timeline-content {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tl-badge {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.apple-badge {
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent-green);
}

.release-badge {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.campaign-badge {
  background: rgba(168, 85, 247, 0.1);
  color: #A855F7;
}

.price-badge {
  background: rgba(212, 168, 67, 0.1);
  color: var(--accent-gold);
}

.tl-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tl-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tl-tags {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.tl-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==============================
   Connect The Dots
   ============================== */
.connect-mockup {
  margin-top: 28px;
}

.connect-metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.big-number {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.connect-chart {
  position: relative;
  margin-bottom: 8px;
}

.area-chart {
  width: 100%;
  height: 100px;
}

.chart-annotation {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-20%);
}

.annotation-flag {
  font-size: 0.6rem;
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ==============================
   Conversion Funnel
   ============================== */
.funnel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  margin: 40px auto 0;
}

.funnel-header {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.funnel-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.funnel-step-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.funnel-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.funnel-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
}

.funnel-pct {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.funnel-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.funnel-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--accent-gold), rgba(212, 168, 67, 0.3));
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* ==============================
   Live Analytics Mockup
   ============================== */
.live-mockup {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
}

.live-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.tab {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: rgba(212, 168, 67, 0.15);
  color: var(--accent-gold);
}

.tab:hover {
  color: var(--text-secondary);
}

.live-period {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.live-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.live-value-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

.live-value {
  font-size: 2rem;
  font-weight: 700;
}

.live-chart {
  margin-top: 16px;
  height: 60px;
}

.live-chart svg {
  width: 100%;
  height: 100%;
}

/* ==============================
   Notifications Mockup
   ============================== */
.notifications-mockup {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-icon {
  flex-shrink: 0;
}

.notif-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-app {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.notif-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notif-text strong {
  color: var(--text-primary);
}

.notif-app-icon {
  flex-shrink: 0;
}

.notif-grouped {
  flex-direction: column;
  align-items: flex-start;
}

.notif-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  width: 100%;
}

.notif-grouped .notif-content {
  padding-left: 28px;
}

.notif-grouped .notif-app-icon {
  display: none;
}

/* ==============================
   Bottom Testimonial
   ============================== */
.bottom-testimonial .testimonial {
  max-width: 600px;
  margin: 0 auto;
}

/* ==============================
   CTA Section
   ============================== */
.cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.cta-section .cta-group {
  margin-top: 32px;
  margin-bottom: 0;
}

/* ==============================
   Responsive - Tablet (768px+)
   ============================== */
@media (min-width: 768px) {
  :root {
    --spacing-section: 80px;
  }

  /* section-heading stays 33px */

  /* tagline stays 19px across breakpoints */

  /* phone image scales via hero-phone-img */

  /* bottom testimonial inherits base styles */

  .funnel-card {
    max-width: 700px;
  }
}

/* ==============================
   Responsive - Desktop (1024px+)
   ============================== */
@media (min-width: 1024px) {
  :root {
    --spacing-section: 80px;
    --max-width: 1100px;
  }

  .container {
    padding: 0 40px;
  }

  /* section-heading stays 33px */

  .hero {
    padding: 100px 0 40px;
  }

  .hero-tagline,
  .hero-tagline-bold {
    font-size: 1.35rem;
  }

  .hero-phone-img {
    width: 340px;
  }

  .feature-card {
    padding: 48px 40px;
  }

  .funnel-card {
    max-width: 800px;
    padding: 40px 48px;
  }

  /* bottom testimonial inherits base styles */
}

/* ==============================
   Footer
   ============================== */
.site-footer {
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ==============================
   Legal Pages
   ============================== */
.legal-header {
  padding: 40px 0;
  text-align: center;
}

.legal-header .logo {
  display: inline-flex;
}

.legal-content {
  padding: 0 0 80px;
}

.legal-content .container {
  max-width: 680px;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 33px;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  text-align: center;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 12px;
}

.legal-content a {
  color: #578AB0;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ==============================
   Small mobile adjustments
   ============================== */
@media (max-width: 480px) {
  .widget-row {
    grid-template-columns: 1fr 1fr;
  }

  .widget-row .widget-small:last-child {
    grid-column: span 2;
  }

  .feature-card {
    padding: 28px 20px;
  }

  /* section-heading stays 33px */

  .timeline-mockup {
    padding-left: 60px;
  }

  .timeline-mockup::before {
    left: 54px;
  }

  .timeline-date {
    left: -60px;
    width: 44px;
  }

  .tl-month {
    font-size: 0.6rem;
  }

  .tl-day {
    font-size: 0.95rem;
  }

  .hero-phone-img {
    width: 250px;
  }

  .big-number {
    font-size: 2rem;
  }

  .funnel-card {
    padding: 24px 20px;
  }

  .hero-tagline,
  .hero-tagline-bold {
    font-size: 1rem;
    padding: 0 8px;
  }

}
