/* ==========================================================
   Current — Mindful Breathing & Nervous System Regulation
   Clean, Modern, Calming CSS Stylesheet
   ========================================================== */

:root {
  --brand-primary: #6342E8;
  --brand-primary-dark: #382B8F;
  --brand-accent: #2DD4BF;
  --brand-mint-light: #D1FAE5;
  
  --bg-canvas: #F8FAFC;
  --surface: #FFFFFF;
  --surface-secondary: #F1F5F9;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(99, 66, 232, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --shadow-orb: 0 0 50px 10px rgba(99, 66, 232, 0.25), 0 0 80px 20px rgba(45, 212, 191, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #8B5CF6 50%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-white {
  color: #FFFFFF !important;
}

.text-slate-300 {
  color: #CBD5E1 !important;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 800px;
}

.section {
  padding: 96px 0;
}

.section-dark {
  background: linear-gradient(180deg, #0F172A 0%, #1E1B4B 100%);
  color: #FFFFFF;
}

.section-light {
  background-color: var(--surface-secondary);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.sub-heading {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.sub-light {
  color: var(--brand-accent) !important;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand-primary);
}

.brand-wave {
  width: 32px;
  height: 20px;
  color: var(--brand-primary);
}

.brand-text {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--brand-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(99, 66, 232, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 66, 232, 0.4);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

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

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* App Store Badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #0F172A;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid #334155;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  background-color: #1E293B;
}

.store-icon {
  width: 24px;
  height: 24px;
}

.badge-texts {
  display: flex;
  flex-direction: column;
}

.badge-small {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: #94A3B8;
  text-transform: uppercase;
}

.badge-large {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatars {
  display: flex;
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg-canvas);
  background-color: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-left: -8px;
}

.avatar-circle:first-child {
  margin-left: 0;
}

.proof-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Live Breathing Orb Visualizer */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 330px;
  height: 640px;
  background-color: #0F172A;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px #334155;
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 24px;
  background-color: #0F172A;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-screen {
  background: radial-gradient(circle at center 35%, #1E1B4B 0%, #0F172A 80%);
  height: 100%;
  border-radius: 36px;
  padding: 40px 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.screen-header {
  text-align: center;
  width: 100%;
  margin-top: 12px;
}

.screen-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
}

.screen-time {
  font-size: 0.85rem;
  color: #94A3B8;
}

.orb-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-aura {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 66, 232, 0.4) 0%, rgba(45, 212, 191, 0.2) 60%, transparent 80%);
  filter: blur(20px);
}

.breathing-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 66, 232, 0.85) 0%, rgba(45, 212, 191, 0.85) 100%);
  box-shadow: var(--shadow-orb);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
}

.orb-inner {
  text-align: center;
  color: #FFFFFF;
}

.orb-instruction {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.orb-timer {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-mint-light);
}

.phone-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
}

.card-icon {
  font-size: 1.5rem;
}

.card-info strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
}

.card-info p {
  font-size: 0.75rem;
  color: #CBD5E1;
  margin: 0;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Feature Cards */
.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

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

.feature-icon-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.feature-icon {
  font-size: 2rem;
}

.pill-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pill-tag.calm { background: #D2F7DC; color: #15803D; }
.pill-tag.focus { background: #FFDFCE; color: #C2410C; }
.pill-tag.rescue { background: #CEEAFF; color: #0369A1; }
.pill-tag.awareness { background: #EED4FC; color: #7E22CE; }
.pill-tag.coherence { background: #D1FAE5; color: #047857; }
.pill-tag.custom { background: #E5DCFF; color: #6342E8; }

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.rhythm-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* Split Layout (Presence Anchors) */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.check-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #E2E8F0;
  font-size: 1.05rem;
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--brand-accent);
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Notification Preview */
.notification-preview {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.notif-header {
  margin-bottom: 12px;
}

.notif-app {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94A3B8;
  font-weight: 500;
}

.notif-logo {
  font-size: 1.1rem;
}

.notif-body h4 {
  color: #FFFFFF;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.notif-body p {
  color: #CBD5E1;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.notif-actions {
  display: flex;
  gap: 12px;
}

.notif-action-btn {
  background-color: var(--brand-primary);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.notif-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
}

/* Benefit Boxes */
.benefit-box {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.benefit-box h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all 0.2s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand-primary);
  font-weight: 400;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding: 80px 0 40px;
}

.footer-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.footer-cta h2 {
  color: #FFFFFF;
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.footer-cta p {
  color: #94A3B8;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1E293B;
  padding-top: 32px;
  font-size: 0.9rem;
}

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

.footer-links a:hover {
  color: #FFFFFF;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .badge-pill, .hero-cta-group, .social-proof {
    justify-content: center;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
