/* ══════════════════════════════════════════
   MINDSETIC — Landing Page Styles
   Design system matching the React Native app
   ══════════════════════════════════════════ */

/* ── CSS Variables (Design Tokens) ── */
:root {
  --bg: #1a1a1e;
  --bg-elevated: #242428;
  --bg-card: #2a2a2f;
  --accent: #06B6D4;
  --accent-glow: rgba(6, 182, 212, 0.35);
  --accent-soft: rgba(6, 182, 212, 0.12);
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #767676;
  --text-dim: #555555;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(6, 182, 212, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.2);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --container: 1120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

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

/* Subtle dot grid background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Subtle grain texture for premium depth */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

body > * {
  position: relative;
  z-index: 1;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section spacing ── */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

/* ══════════════════════
   BUTTONS
   ══════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-sm {
  font-size: 13px;
  padding: 8px 20px;
}

.btn-lg {
  font-size: 16px;
  padding: 16px 36px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #0ea5c0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-glow {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 60px rgba(6, 182, 212, 0.1);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 60px rgba(6, 182, 212, 0.1); }
  50% { box-shadow: 0 0 30px rgba(6, 182, 212, 0.45), 0 0 80px rgba(6, 182, 212, 0.15); }
}

/* ══════════════════════
   NAVBAR
   ══════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(26, 26, 30, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(26, 26, 30, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  color: var(--text-primary);
}

.navbar-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

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

.navbar-links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.navbar-links a:not(.btn):hover {
  color: var(--text-primary);
}

.lang-switcher {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-accent);
  background: var(--accent-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle:hover {
  background: rgba(6, 182, 212, 0.2);
}

.globe-icon { flex-shrink: 0; }
.chevron-icon { transition: transform 0.2s; }
.lang-switcher.open .chevron-icon { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-option:hover {
  background: var(--accent-soft);
}

.lang-check {
  color: var(--accent);
  font-size: 14px;
  display: none;
}

.lang-option.active .lang-check {
  display: inline;
}

.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.navbar-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(26, 26, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:not(.btn) {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color 0.2s;
}

.mobile-menu a:not(.btn):hover {
  color: var(--text-primary);
}

.mobile-menu .btn {
  margin-top: 8px;
}

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

/* ══════════════════════
   HERO
   ══════════════════════ */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-trial {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-gradient {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

/* ── iPhone Mockup ── */
.hero-mockup {
  display: flex;
  justify-content: center;
}

.iphone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: #0a0a0c;
  border-radius: 44px;
  padding: 7px;
  box-shadow:
    0 0 0 1.5px #444,
    0 0 0 3px #1a1a1e,
    var(--shadow-lg),
    0 0 80px rgba(6, 182, 212, 0.08);
}

.iphone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #0a0a0c;
  border-radius: 20px;
  z-index: 3;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg, #1e1e24 0%, #15151a 50%, #0f1922 100%);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

/* ── App screenshot inside iPhone ── */
.mockup-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ══════════════════════
   FEATURES
   ══════════════════════ */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: rgba(36, 36, 40, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(36, 36, 40, 0.8);
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-stat {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.18;
  letter-spacing: -0.02em;
}

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

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ══════════════════════
   HOW IT WORKS
   ══════════════════════ */
.how-it-works {
  padding: 100px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 2px solid var(--border-accent);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 20px;
}

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

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--border-accent), transparent);
  margin-top: 28px;
  flex-shrink: 0;
}

/* ══════════════════════
   PRICING
   ══════════════════════ */
.pricing {
  padding: 100px 0;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 40px;
}

.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}

.pricing-card:hover {
  transform: translateY(-2px);
}

.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(165deg, var(--bg-elevated) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
}

.pricing-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.pricing-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-value {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-card-featured .pricing-value {
  color: var(--accent);
}

.pricing-period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-daily {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

.trust-signals {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.trust-check {
  color: #34D399;
  font-weight: 700;
  font-size: 16px;
}

/* ══════════════════════
   TESTIMONIALS
   ══════════════════════ */
.testimonials {
  padding: 100px 0;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ══════════════════════
   FAQ
   ══════════════════════ */
.faq {
  padding: 100px 0;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.open {
  border-color: var(--border-accent);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s, color 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question::after {
  content: '−';
  color: var(--accent);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ══════════════════════
   FINAL CTA
   ══════════════════════ */
.final-cta {
  padding: 100px 0;
}

.final-cta-inner {
  text-align: center;
  background: linear-gradient(165deg, var(--bg-elevated) 0%, rgba(6, 182, 212, 0.06) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.final-cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
}

.final-cta-inner p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
}

.final-cta-inner .btn {
  position: relative;
}

/* ══════════════════════
   FOOTER
   ══════════════════════ */
.footer {
  padding: 48px 0 80px;
  border-top: 1px solid var(--border);
}

.footer-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 20px;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 15px;
}

.footer-logo {
  color: var(--text-primary);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ══════════════════════
   SCROLL REVEAL ANIMATION
   ══════════════════════ */
/* Only hide elements when JS is ready to animate them */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid children */
.features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.3s; }

.testimonial-cards .testimonial-card:nth-child(1) { transition-delay: 0s; }
.testimonial-cards .testimonial-card:nth-child(2) { transition-delay: 0.12s; }
.testimonial-cards .testimonial-card:nth-child(3) { transition-delay: 0.24s; }

.steps .step:nth-child(1) { transition-delay: 0s; }
.steps .step:nth-child(3) { transition-delay: 0.15s; }
.steps .step:nth-child(5) { transition-delay: 0.3s; }

/* ══════════════════════
   GRADIENT TEXT
   ══════════════════════ */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════
   HERO STATS BAR
   ══════════════════════ */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stat-number {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.star-inline {
  color: #FBBF24;
  font-size: 18px;
}

.hero-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ══════════════════════
   IPHONE FLOAT + GLOW
   ══════════════════════ */
.hero-mockup {
  position: relative;
}

.hero-mockup::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.10) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.iphone-frame {
  animation: floatPhone 6s ease-in-out infinite;
}

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


/* ══════════════════════
   TESTIMONIAL STARS + AVATARS
   ══════════════════════ */
.testimonial-stars {
  color: #FBBF24;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--border-accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ══════════════════════
   PRICING FEATURE LIST
   ══════════════════════ */
.pricing-features {
  list-style: none;
  text-align: left;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-check {
  color: #34D399;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.pf-gold {
  color: var(--gold);
}

/* ══════════════════════
   STICKY MOBILE CTA
   ══════════════════════ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 26, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

/* ══════════════════════
   GRADIENT SECTION DIVIDERS
   ══════════════════════ */
.features::before,
.pricing::before,
.testimonials::before,
.faq::before {
  content: '';
  display: block;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 80px;
  opacity: 0.4;
}

/* ══════════════════════
   AGGREGATE RATING SUMMARY
   ══════════════════════ */
.rating-summary {
  text-align: center;
  margin-bottom: 48px;
}

.rating-big {
  font-size: 72px;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-stars-large {
  font-size: 28px;
  color: #FBBF24;
  letter-spacing: 4px;
  margin: 8px 0;
}

.rating-count {
  font-size: 14px;
  color: var(--text-muted);
}

/* ══════════════════════
   VERIFIED BADGE
   ══════════════════════ */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #fff;
  color: var(--accent);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}

/* ══════════════════════
   PRICING VALUE ANCHOR
   ══════════════════════ */
.pricing-anchor {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
  padding: 16px 24px;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-secondary);
}

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

/* ══════════════════════
   FREE vs PRO COMPARISON
   ══════════════════════ */
.comparison-table {
  max-width: 600px;
  margin: 40px auto 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  color: var(--text-secondary);
}

.comparison-table th {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-bottom: 16px;
}

.comparison-pro {
  color: var(--accent) !important;
  font-weight: 700;
}

.comparison-table td:nth-child(2) {
  color: var(--text-muted);
}

/* ══════════════════════
   SCIENCE-BACKED SECTION
   ══════════════════════ */
.science-section {
  padding: 100px 0;
}

.science-inner {
  text-align: center;
}

.science-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #34D399;
  margin-bottom: 24px;
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}

.science-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.science-card h4 {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 10px;
  color: var(--text-primary);
}

.science-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.science-card strong {
  color: var(--accent);
}

/* ══════════════════════
   ANDROID WAITLIST
   ══════════════════════ */
.android-waitlist {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.waitlist-link {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.2s;
}

.waitlist-link:hover {
  opacity: 0.8;
}

/* ══════════════════════
   MUSCLE HEAT MAP SHOWCASE
   ══════════════════════ */
.heatmap-showcase {
  padding: 100px 0;
  overflow: hidden;
}

.phones-duo-wrapper {
  margin-top: 56px;
  margin-bottom: 56px;
}

.phones-duo {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 620px;
}

.phone-front {
  text-align: center;
  rotate: -14deg;
  z-index: 1;
  margin-right: -30px;
  margin-top: 60px;
}

.phone-front .iphone-frame {
  box-shadow:
    0 0 0 2px #333,
    0 0 0 4px #1a1a1e,
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(6, 182, 212, 0.06);
  animation: floatGentle 6s ease-in-out infinite;
}

.phone-angled {
  text-align: center;
  rotate: 10deg;
  z-index: 2;
  margin-left: -30px;
  margin-bottom: 60px;
}

.phone-angled .iphone-frame {
  box-shadow:
    0 0 0 2px #333,
    0 0 0 4px #1a1a1e,
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(6, 182, 212, 0.1);
  animation: floatGentle 6s ease-in-out infinite 1s;
}

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

.phone-label {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Heat map feature pills */
.heatmap-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.heatmap-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 280px;
}

.heatmap-feat-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.heatmap-feat strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.heatmap-feat p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ══════════════════════
   MOCKUP CAROUSEL
   ══════════════════════ */
.mockup-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.mockup-carousel .mockup-screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.mockup-carousel .mockup-screenshot.active {
  opacity: 1;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transform: scale(1.25);
}

/* ══════════════════════
   RESPONSIVE — Tablet
   ══════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    align-items: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .testimonial-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    margin: 0;
    background: linear-gradient(180deg, var(--border-accent), transparent);
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .science-grid {
    grid-template-columns: 1fr;
  }

  .phones-duo {
    gap: 32px;
  }

  .iphone-frame {
    width: 240px;
    height: 500px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ══════════════════════
   RESPONSIVE — Mobile
   ══════════════════════ */
@media (max-width: 640px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .navbar-links {
    display: none;
  }

  .navbar-hamburger {
    display: flex;
  }

  .hero {
    padding: calc(var(--nav-height) + 48px) 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stat-number {
    font-size: 20px;
  }

  /* Show sticky CTA on mobile */
  .sticky-cta {
    display: block;
  }

  .iphone-frame {
    width: 240px;
    height: 500px;
    border-radius: 38px;
    padding: 10px;
  }

  .iphone-notch {
    width: 72px;
    height: 18px;
    top: 17px;
  }

  .iphone-screen {
    border-radius: 30px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    font-size: 1.65rem;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-value {
    font-size: 40px;
  }

  .trust-signals {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .final-cta-inner {
    padding: 56px 24px;
    border-radius: 18px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-lg {
    font-size: 15px;
    padding: 14px 28px;
  }

  .faq-question {
    font-size: 14px;
    padding: 16px 20px;
  }

  .faq-answer p {
    padding: 0 20px 16px;
    font-size: 13px;
  }

  /* ── New sections: mobile fixes ── */
  .rating-big {
    font-size: 52px;
  }

  .rating-stars-large {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .rating-count {
    font-size: 13px;
  }

  .pricing-anchor {
    font-size: 14px;
    padding: 14px 18px;
    margin-bottom: 28px;
  }

  .comparison-table {
    margin-top: 28px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .science-section {
    padding: 60px 0;
  }

  .science-card {
    padding: 22px 18px;
  }

  .science-card h4 {
    font-size: 15px;
  }

  .science-card p {
    font-size: 13px;
  }

  .science-grid {
    margin-top: 32px;
    gap: 14px;
  }

  .heatmap-showcase {
    padding: 60px 0;
  }

  .phones-duo-wrapper {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .phones-duo {
    min-height: auto;
  }

  .phone-front {
    rotate: -10deg;
    margin-right: -20px;
    margin-top: 40px;
  }

  .phone-angled {
    rotate: 8deg;
    margin-left: -20px;
    margin-bottom: 40px;
  }

  .iphone-frame {
    width: 220px;
    height: 460px;
  }

  .heatmap-features {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .heatmap-feat {
    max-width: 100%;
  }

  .phone-label {
    font-size: 13px;
  }

  /* Reduce section divider spacing on mobile */
  .features::before,
  .pricing::before,
  .testimonials::before,
  .faq::before {
    margin-bottom: 48px;
  }

  .features,
  .how-it-works,
  .pricing,
  .testimonials,
  .faq {
    padding: 60px 0;
  }

  .final-cta {
    padding: 60px 0;
  }

  .section-subtitle {
    margin-bottom: 36px;
  }

  .android-waitlist {
    font-size: 12px;
  }
}

/* ── Small phones ── */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .iphone-frame {
    width: 210px;
    height: 440px;
  }

  .rating-big {
    font-size: 44px;
  }

  .rating-stars-large {
    font-size: 18px;
  }

  .pricing-anchor {
    font-size: 13px;
    padding: 12px 14px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 7px 6px;
    font-size: 11px;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stat-number {
    font-size: 18px;
  }

  .hero-stat-label {
    font-size: 10px;
  }

  .phones-duo {
    gap: 18px;
  }

  .iphone-frame {
    width: 190px;
    height: 400px;
  }

  .heatmap-feat-icon {
    font-size: 20px;
  }

  .heatmap-feat strong {
    font-size: 13px;
  }

  .heatmap-feat p {
    font-size: 12px;
  }
}
