/* ==========================================================================
   Soji! Landing Page Stylesheet
   Design Tokens: Teal (#3ECFA3), Coral (#FF5C6A), Slate/Dark Navy (#0F172A)
   ========================================================================== */

:root {
  /* Color Palette */
  --color-bg: #0b0f19;
  --color-bg-alt: #131b2e;
  --color-surface: rgba(30, 41, 59, 0.65);
  --color-surface-hover: rgba(45, 60, 85, 0.8);
  --color-border: rgba(255, 255, 255, 0.12);
  
  --color-primary-teal: #3ECFA3;
  --color-primary-teal-glow: rgba(62, 207, 163, 0.4);
  --color-coral-red: #FF5C6A;
  --color-coral-glow: rgba(255, 92, 106, 0.4);
  --color-amber: #E8950A;
  --color-sky-blue: #4DA8F5;

  --color-text: #F1F5F9;
  --color-text-muted: #94A3B8;
  --color-text-dim: #64748B;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout & Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Background Glows */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.glow-teal {
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--color-primary-teal) 0%, transparent 70%);
}

.glow-coral {
  top: 600px;
  left: -150px;
  background: radial-gradient(circle, var(--color-coral-red) 0%, transparent 70%);
}

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

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

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

.text-gradient-green {
  background: linear-gradient(135deg, #43E8B2 0%, #3ECFA3 50%, #00FFF0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges & Buttons */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(62, 207, 163, 0.1);
  border: 1px solid rgba(62, 207, 163, 0.25);
  border-radius: var(--radius-full);
  color: var(--color-primary-teal);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary-teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary-teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-teal) 0%, #2CB88F 100%);
  color: #0B0F19;
  box-shadow: 0 8px 24px var(--color-primary-teal-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--color-primary-teal-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.btn-appstore {
  background: #ffffff;
  color: #000000;
  padding: 12px 26px;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.btn-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.25);
}

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

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.btn-sub {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.8;
}

.btn-main {
  font-size: 1.1rem;
  font-weight: 700;
}

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

.btn-outline:hover {
  border-color: var(--color-primary-teal);
  color: var(--color-primary-teal);
}

.btn-full { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* Glass Panel Styling */
.glass-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(20px);
  background: rgba(11, 15, 25, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text);
}

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

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-teal);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background-color: var(--color-border);
}

/* Phone Frame Mockup */
.phone-frame {
  width: 320px;
  height: 640px;
  background: #000000;
  border: 10px solid #222736;
  border-radius: 48px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(62, 207, 163, 0.15);
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  padding: 16px;
  position: relative;
}

.phone-notch {
  width: 110px;
  height: 24px;
  background: #000000;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 16px;
}

.phone-app-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
}

.phone-streak-badge {
  background: rgba(232, 149, 10, 0.15);
  color: #FFB347;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Stack Visual */
.hero-card-stack {
  position: relative;
  flex: 1;
  width: 100%;
}

.hero-card {
  position: absolute;
  width: 100%;
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-1 {
  top: 0;
  z-index: 3;
  transform: rotate(3deg) scale(1);
}

.hero-card-2 {
  top: 10px;
  z-index: 2;
  transform: rotate(-3deg) scale(0.96);
  opacity: 0.8;
}

.hero-card-3 {
  top: 20px;
  z-index: 1;
  transform: scale(0.92);
  opacity: 0.6;
}

.card-tag {
  position: absolute;
  top: 24px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tag-keep {
  left: 20px;
  color: var(--color-primary-teal);
  border: 3.5px solid var(--color-primary-teal);
  transform: rotate(-15deg);
}

.tag-delete {
  right: 20px;
  color: var(--color-coral-red);
  border: 3.5px solid var(--color-coral-red);
  transform: rotate(15deg);
}

/* Section Header Base */
.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Interactive Demo Section */
.demo-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.interactive-demo-wrapper {
  max-width: 480px;
  margin: 0 auto;
}

.demo-stats-bar {
  display: flex;
  justify-content: space-between;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.demo-stat.highlight {
  color: var(--color-primary-teal);
}

.demo-phone {
  width: 340px;
  height: 600px;
  background: #0B0F19;
  border: 8px solid #222736;
  border-radius: 40px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 60px 16px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.card-deck {
  position: relative;
  width: 100%;
  height: 410px;
}

.swipe-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #1e293b;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  user-select: none;
  touch-action: none;
  cursor: grab;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.swipe-card:active {
  cursor: grabbing;
}

.swipe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.card-badge-overlay {
  position: absolute;
  top: 24px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.overlay-keep {
  left: 20px;
  color: var(--color-primary-teal);
  border: 3.5px solid var(--color-primary-teal);
  transform: rotate(-15deg);
}

.overlay-delete {
  right: 20px;
  color: var(--color-coral-red);
  border: 3.5px solid var(--color-coral-red);
  transform: rotate(15deg);
}

.deck-complete-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.complete-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.demo-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: auto;
}

.control-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.control-btn:hover {
  transform: scale(1.1);
}

.control-btn:active {
  transform: scale(0.95);
}

.btn-delete {
  background: rgba(255, 92, 106, 0.15);
  color: var(--color-coral-red);
  border: 1px solid rgba(255, 92, 106, 0.3);
}

.btn-delete:hover {
  background: var(--color-coral-red);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--color-coral-glow);
}

.btn-keep {
  background: rgba(62, 207, 163, 0.15);
  color: var(--color-primary-teal);
  border: 1px solid rgba(62, 207, 163, 0.3);
}

.btn-keep:hover {
  background: var(--color-primary-teal);
  color: #0B0F19;
  box-shadow: 0 6px 20px var(--color-primary-teal-glow);
}

.btn-undo {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn-undo:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
}

/* Features Grid */
.features-section {
  padding: 120px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  position: relative;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.icon-teal { background: rgba(62, 207, 163, 0.15); }
.icon-coral { background: rgba(255, 92, 106, 0.15); }
.icon-amber { background: rgba(232, 149, 10, 0.15); }
.icon-blue { background: rgba(77, 168, 245, 0.15); }

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

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* Pricing Grid */
.pricing-section {
  padding: 100px 0;
  background: rgba(19, 27, 46, 0.4);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
  justify-content: center;
  gap: 32px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.featured-plan {
  border-color: var(--color-primary-teal);
  box-shadow: 0 12px 40px rgba(62, 207, 163, 0.15);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--color-primary-teal);
  color: #0B0F19;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.plan-header h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.plan-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.plan-price {
  margin: 24px 0;
  display: flex;
  align-items: baseline;
}

.plan-price .currency {
  font-size: 1.5rem;
  font-weight: 700;
}

.plan-price .amount {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

.plan-price .period {
  color: var(--color-text-muted);
  margin-left: 8px;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-features li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.plan-features li strong {
  color: var(--color-text);
}

/* FAQ Accordion */
.faq-section {
  padding: 100px 0;
}

.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--color-primary-teal);
  transition: transform var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 28px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 28px 24px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* CTA Section */
.cta-section {
  padding: 80px 0 120px;
}

.cta-card {
  padding: 72px 32px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px;
  background: var(--color-bg);
}

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

.footer-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-primary-teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .nav-menu {
    display: none;
  }
}
