/* ===========================
   Share My Goal — Landing Page
   Design System: Coral/Orange, Outfit+Rubik
   =========================== */

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

:root {
  --primary: #FF6B6B;
  --primary-light: #FFCBB4;
  --primary-dark: #E63946;
  --secondary: #F97316;
  --success: #22C55E;
  --bg: #FFF5F5;
  --surface: #FFFFFF;
  --surface-variant: #FEE2E2;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-on-primary: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-on-primary);
  padding: 14px 28px;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.btn-sm {
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 8px 20px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-sm:hover {
  background: var(--primary-dark);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 245, 245, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 107, 0.1);
}

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

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

.nav-icon {
  border-radius: var(--radius-sm);
}

.nav-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
}

/* --- Hero --- */
.hero {
  padding: 120px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero-icon {
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.hero-title {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

/* --- Form --- */
.hero-form {
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  gap: 8px;
  max-width: 480px;
}

.form-group input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--surface-variant);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--primary);
}

.form-group input::placeholder {
  color: #9CA3AF;
}

.form-message {
  margin-top: 8px;
  font-size: 0.875rem;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: #DC2626;
}

.form-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

.waitlist-counter span {
  color: var(--primary);
  font-weight: 700;
}

/* --- Phone Mockup --- */
.phone-frame {
  position: relative;
  width: 280px;
  border-radius: 36px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: var(--surface);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  border-radius: 24px;
  width: 100%;
}

.phone-frame-sm {
  width: 200px;
}

.hero-mockup {
  display: flex;
  justify-content: center;
}

/* --- Features --- */
.features {
  padding: 80px 0;
}

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

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-emoji {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-title {
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

/* --- How It Works --- */
.how-it-works {
  padding: 80px 0;
}

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

.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-title {
  margin-bottom: 8px;
}

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

.step-mockup {
  display: flex;
  justify-content: center;
}

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

.cta-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  color: var(--text-on-primary);
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.3);
}

.cta-title {
  color: var(--text-on-primary);
  margin-bottom: 16px;
}

.cta-subtitle {
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-card .form-group input {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: var(--text-on-primary);
}

.cta-card .form-group input::placeholder {
  color: rgba(255,255,255,0.6);
}

.cta-card .form-group input:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
}

.cta-card .btn-primary {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.cta-card .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-card .form-group {
  max-width: 480px;
  margin: 0 auto 24px;
}

.cta-card .form-message.success {
  color: #BBF7D0;
}

.cta-card .form-message.error {
  color: #FCA5A5;
}

.cta-card .form-hint {
  color: rgba(255,255,255,0.7);
}

/* --- Store Badges --- */
.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
}

.store-badge-placeholder {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
}

.store-badge svg {
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--surface-variant);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}

.footer-brand img {
  border-radius: 6px;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* --- 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);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

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

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

  .form-group {
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-mockup {
    order: -1;
  }

  .phone-frame {
    width: 240px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .step {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .step-mockup {
    display: none;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .phone-frame-sm {
    width: 160px;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }
}
