/* ============================================
   Dopame — dopameapp.com
   Static site stylesheet matching app theme
   ============================================ */

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

:root {
  --primary: #F59E0B;
  --primary-light: #FCD34D;
  --primary-dark: #D97706;
  --secondary: #14B8A6;
  --secondary-light: #5EEAD4;
  --secondary-dark: #0D9488;
  --accent: #FB7185;
  --accent-light: #FDA4AF;
  --bg: #FFF8F0;
  --surface: #FFFFFF;
  --surface-secondary: #FEF3E2;
  --text: #1C1917;
  --text-secondary: #78716C;
  --text-muted: #A8A29E;
  --border: #E7E5E4;
  --border-light: #F5F5F4;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --mood-energetic: #F59E0B;
  --mood-happy: #22C55E;
  --mood-neutral: #60A5FA;
  --mood-tired: #A78BFA;
  --mood-sad: #94A3B8;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--surface);
}

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

/* --- Typography --- */
h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

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

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 16px auto 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  background: var(--surface-secondary);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  text-decoration: none;
}

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

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

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

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

.btn--small {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

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

.nav__logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo span {
  color: var(--primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav__links a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero__tagline {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 20px auto 0;
  line-height: 1.5;
}

.hero__phones {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 24px;
  perspective: 800px;
}

/* --- Phone Mockup --- */
.phone-mockup {
  width: 260px;
  height: 520px;
  background: var(--surface);
  border-radius: 36px;
  border: 3px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

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

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 20px 20px;
}

/* Screen 1: Brain/Spin */
.screen-brain {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-secondary) 100%);
  justify-content: center;
  text-align: center;
}

.screen-brain__emoji {
  font-size: 80px;
  margin-bottom: 16px;
  animation: pulse 2s ease-in-out infinite;
}

.screen-brain__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.screen-brain__sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.screen-brain__btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
}

/* Screen 2: Mood select */
.screen-mood {
  background: var(--bg);
  text-align: center;
}

.screen-mood__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.mood-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  font-size: 12px;
  color: var(--text-secondary);
}

.mood-chip--active {
  border-color: var(--primary);
  background: var(--surface-secondary);
}

.mood-chip__emoji { font-size: 28px; }

/* Screen 3: Insights */
.screen-insights {
  background: var(--bg);
}

.screen-insights__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  align-self: flex-start;
}

.insight-card {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}

.insight-card__label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.insight-card__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.insight-card__value span {
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
}

.insight-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  width: 100%;
  margin-top: 8px;
}

.insight-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  min-height: 8px;
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

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

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

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

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- How it works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step__emoji {
  font-size: 2rem;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.9rem;
}

/* --- Categories --- */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.category-tag:hover {
  border-color: var(--primary);
  background: var(--surface-secondary);
}

/* --- Moods showcase --- */
.moods-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.mood-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  min-width: 100px;
}

.mood-badge__emoji { font-size: 2rem; }
.mood-badge__label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }

/* --- Stats bar --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto;
}

.cta-banner .btn--outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.cta-banner .btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* --- Privacy / Terms list --- */
.legal-section {
  margin-bottom: 32px;
}

.legal-section h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.legal-section p {
  line-height: 1.7;
}

.legal-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* --- Support page --- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.support-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
}

.support-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.support-card p {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
}

.faq-item h3 {
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__brand p {
  font-size: 0.9rem;
  margin-top: 8px;
  max-width: 280px;
}

.footer__links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer__links ul {
  list-style: none;
}

.footer__links li { margin-bottom: 8px; }

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__links a:hover {
  color: var(--primary-dark);
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

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

.float { animation: float 3s ease-in-out infinite; }

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

  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .support-grid { grid-template-columns: 1fr; }

  .hero__phones { gap: 16px; }
  .phone-mockup { width: 220px; height: 440px; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 56px; }
  h1 { font-size: 1.9rem; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }
  .nav__hamburger { display: block; }

  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-bar { gap: 24px; }

  .hero__phones { flex-direction: column; align-items: center; }
  .phone-mockup { width: 240px; height: 480px; }

  .cta-banner { margin: 0; border-radius: 0; padding: 48px 24px; }

  .footer__inner { flex-direction: column; }
}
