/* ============================================================
   FirstHabit Landing — Style
   Dark theme, modern, mobile-first
============================================================ */

:root {
  --bg: #0F1019;
  --bg-2: #16182A;
  --surface: #1A1B2E;
  --surface-2: #232542;
  --surface-3: #2A2C45;
  --primary: #8B5CF6;
  --primary-light: #A78BFA;
  --primary-dark: #6D28D9;
  --accent: #6366F1;
  --gradient: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
  --gradient-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  --text: #FFFFFF;
  --text-secondary: #B0B0BF;
  --text-muted: #74748A;
  --border: #2A2C3F;
  --success: #10B981;
  --shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--primary-light); }

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

/* ============================================================
   Utility — Gradient text
============================================================ */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 50px rgba(139, 92, 246, 0.35);
  color: white;
}

.btn--google {
  background: white;
  color: #1F1F1F;
  padding: 14px 32px;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn--google:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  color: #1F1F1F;
}

.btn--small {
  padding: 10px 20px;
  font-size: 14px;
}

.btn--large {
  padding: 18px 40px;
  font-size: 17px;
}

/* ============================================================
   Logo
============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
}

.logo__icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

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

/* ============================================================
   Header
============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 16, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

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

.nav__link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
}

.lang-switch__link {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.lang-switch__link--active {
  background: var(--gradient);
  color: white;
}

.lang-switch__link:hover:not(.lang-switch__link--active) {
  color: var(--text);
}

@media (max-width: 768px) {
  .nav__link { display: none; }
  .lang-switch { display: none; }
}

/* ============================================================
   Hero
============================================================ */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--gradient-soft);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

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

.hero__stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat__value {
  font-size: 32px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__stats { justify-content: space-around; gap: 16px; }
}

/* ============================================================
   Phone mockup
============================================================ */
.hero__visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 580px;
  background: linear-gradient(145deg, #2A2C45 0%, #1A1B2E 100%);
  border-radius: 36px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 30px 80px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotate(-5deg);
  transition: transform 0.4s ease;
}

.phone-mockup:hover {
  transform: rotate(-2deg) translateY(-5px);
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 28px;
  padding: 36px 20px 20px;
  position: relative;
  overflow: hidden;
}

.phone-mockup__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #000;
  border-radius: 100px;
}

.phone-mockup__content {
  margin-top: 20px;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.mockup-badge {
  background: var(--gradient);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.mockup-habit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.mockup-habit--done {
  background: var(--gradient-soft);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--primary-light);
}

.mockup-check {
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.mockup-circle {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
}

/* ============================================================
   Sections
============================================================ */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gradient-soft);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

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

/* ============================================================
   Features Grid
============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card__desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   Coach section
============================================================ */
.coach {
  background: linear-gradient(180deg, transparent 0%, var(--bg-2) 50%, transparent 100%);
}

.coach__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .coach__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.coach__desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.coach__features {
  list-style: none;
  margin-bottom: 36px;
}

.coach__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 16px;
}

.coach__check {
  width: 24px;
  height: 24px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  flex-shrink: 0;
}

.coach__visual {
  display: flex;
  justify-content: center;
}

.coach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.coach-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.coach-card__avatar {
  width: 52px;
  height: 52px;
  background: var(--gradient-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.coach-card__name {
  font-weight: 700;
  font-size: 16px;
}

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

.coach-card__status {
  margin-left: auto;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.coach-card__habits {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coach-card__habit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.streak {
  color: var(--primary-light);
  font-weight: 600;
}

/* ============================================================
   Audience
============================================================ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
}

.audience-card__emoji {
  font-size: 40px;
  margin-bottom: 12px;
}

.audience-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

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

/* ============================================================
   FAQ
============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.faq-item[open] {
  border-color: rgba(139, 92, 246, 0.3);
}

.faq-item__question {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item__question::after {
  content: '+';
  font-size: 24px;
  color: var(--primary-light);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

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

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

.faq-item__answer a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ============================================================
   Final CTA
============================================================ */
.cta-final {
  background: var(--gradient-soft);
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-final__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-final__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ============================================================
   Footer
============================================================ */
.footer {
  background: var(--bg-2);
  padding: 60px 0 30px;
}

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

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.logo--footer { margin-bottom: 16px; }

.footer__tagline {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 6px 0;
}

.footer__col a:hover { color: var(--primary-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Mobile
============================================================ */
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .hero { padding: 40px 0 60px; }
  .hero__stats { gap: 12px; }
  .stat__value { font-size: 24px; }
  .stat__label { font-size: 11px; }
  .features-grid { gap: 16px; }
  .feature-card { padding: 24px 20px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
