/* ============================================
   $IM Investment Club — Main Stylesheet
   ============================================ */

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

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #6b7280;
  --color-primary: #4A90D9;
  --color-primary-hover: #3A7BC8;
  --color-gradient-start: #c5f0c0;
  --color-gradient-end: #a8c8f0;
  --color-border: rgba(0,0,0,0.06);
  --color-card-bg: rgba(255,255,255,0.8);
  --gradient: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Cabinet Grotesk', 'General Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

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

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

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

.section {
  padding: 56px 0;
}

.section--white {
  background: var(--color-bg);
}

.section--light {
  background: #f8faf8;
}

.section--gradient {
  background: var(--gradient);
}

.section__header {
  text-align: center;
  margin-bottom: 36px;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 12px;
}

.section__title--left {
  text-align: left;
}

.section__subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  padding: 14px 32px;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

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

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

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

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

.btn--white:hover {
  background: #f0f7ff;
  color: var(--color-primary-hover);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 18px;
  border-radius: var(--radius-lg);
}

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

.btn--full {
  width: 100%;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  background: transparent;
  transition: background 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out),
              padding 300ms var(--ease-out);
}

.header--scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-interactive);
}

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

.header__cta {
  flex-shrink: 0;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 300ms var(--ease-out), opacity 200ms;
}

/* ---------- HERO ---------- */
.hero {
  background: var(--gradient);
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero__title-line {
  white-space: nowrap;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.8;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero__price {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.hero__badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.hero__badges-row {
  display: flex;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.8);
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero__image img {
  max-width: 380px;
  width: 100%;
  border-radius: 0;
  background: transparent;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: 60px;
}

/* ---------- VIDEO PLACEHOLDER ---------- */
.video-placeholder {
  max-width: 800px;
  margin: 0 auto;
}

.video-placeholder__inner {
  aspect-ratio: 16/9;
  background: var(--gradient);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid var(--color-border);
}

.video-placeholder__play {
  cursor: pointer;
  transition: transform var(--transition-interactive);
}

.video-placeholder__play:hover {
  transform: scale(1.1);
}

.video-placeholder__text {
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ---------- PAIN POINTS ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.pain-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

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

.pain-card__icon {
  font-size: 36px;
  display: block;
  margin-bottom: 14px;
}

.pain-card__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
}

.pain-transition {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- SOLUTION (full-width, no grid) ---------- */
.solution-content-full {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.solution-content-full p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.solution-highlight {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--gradient);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

/* ---------- FEATURES ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  border: 1px solid rgba(255,255,255,0.6);
  border-left: 4px solid var(--color-primary);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

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

.feature-card__icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ---------- REVIEWS ---------- */
.review-carousel {
  margin: 0 0 36px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 24px;
}

.review-carousel::-webkit-scrollbar {
  display: none;
}

.review-carousel__track {
  display: flex;
  gap: 16px;
  padding: 8px 0;
}

.review-carousel__slide {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
}

.review-carousel__slide img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  width: 100%;
  height: auto;
}

.review-quotes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  justify-content: center;
}

.review-quote {
  flex: 1 1 200px;
  max-width: 280px;
  background: #f8faf8;
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 3px solid var(--color-primary);
}

.review-quote__text {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
  font-style: italic;
}

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

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo__frame {
  border-radius: var(--radius-xl);
  padding: 4px;
  background: var(--gradient);
  display: inline-block;
}

.about-photo__frame img {
  border-radius: calc(var(--radius-xl) - 4px);
  width: 100%;
  display: block;
}

.about-subtitle {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-bottom: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-gradient-start);
}

.timeline__year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
  min-width: 44px;
}

.timeline__text {
  font-size: 15px;
  color: var(--color-text-muted);
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.credential-badge {
  display: inline-flex;
  padding: 8px 16px;
  background: var(--gradient);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

/* ---------- FOR WHOM ---------- */
.forwho-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.forwho-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

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

.forwho-card__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 36px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
}

.forwho-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.forwho-card__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ---------- PRICING ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 0 auto 24px;
}

.pricing-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition-interactive);
}

.pricing-card--featured {
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--shadow-md);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__header {
  margin-bottom: 16px;
}

.pricing-card__plan {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-text);
}

.pricing-card__savings {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
}

.pricing-card__price {
  margin-bottom: 8px;
}

.pricing-card__amount {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 36px;
  color: var(--color-text);
}

.pricing-card__period {
  font-size: 16px;
  color: var(--color-text-muted);
}

.pricing-card__monthly {
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.pricing-card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}

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

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  gap: 16px;
}

.faq-item__question:hover {
  color: var(--color-primary);
}

.faq-item__icon {
  flex-shrink: 0;
  transition: transform 300ms var(--ease-out);
}

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

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-out), padding 300ms var(--ease-out);
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-item__answer p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---------- CONSULTATION ---------- */
.consultation {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.consultation__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.consultation__btn {
  white-space: normal;
}

.consultation__btn svg {
  flex-shrink: 0;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  background: var(--gradient);
  text-align: center;
}

.final-cta__content {
  max-width: 640px;
  margin: 0 auto;
}

.final-cta__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 12px;
}

.final-cta__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.8;
  margin-bottom: 28px;
}

.final-cta__note {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #f8faf8;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  text-align: center;
}

.footer__copy {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.footer__disclaimer {
  font-size: 12px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 1;
}

.fade-in--hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile Navigation ---------- */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 300ms var(--ease-out);
    box-shadow: -4px 0 32px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .header__nav a {
    font-size: 18px;
  }

  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
    z-index: 101;
  }

  .header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px) translateX(5px);
  }
  .header__burger.active span:nth-child(2) {
    opacity: 0;
  }
  .header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px) translateX(5px);
  }

  .header__inner {
    justify-content: space-between;
  }
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }

  .hero {
    padding: 70px 0 56px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__badges {
    align-items: center;
  }

  .hero__badges-row {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }

  .hero__image img {
    max-width: 240px;
    margin: 0 auto;
  }

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

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

  .review-carousel__slide {
    width: 260px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .about-photo__frame {
    max-width: 260px;
    margin: 0 auto;
  }

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

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

  .timeline {
    text-align: left;
  }

  .about-credentials {
    justify-content: center;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .review-quotes {
    flex-direction: column;
  }

  .review-quote {
    max-width: 100%;
  }

  .consultation {
    padding: 32px 24px;
  }
}

/* ---------- Responsive: Small Mobile ---------- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 32px 0;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__title-line {
    white-space: normal;
  }

  .hero__subtitle {
    font-size: 16px;
  }

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

  .pain-card {
    padding: 20px 18px;
  }

  .btn--lg {
    padding: 16px 32px;
    font-size: 16px;
  }

  .pricing-card {
    padding: 28px 20px;
  }
}

/* ---------- Focus states ---------- */
.btn:focus-visible,
.faq-item__question:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in--hidden {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Mobile nav overlay ---------- */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 98;
}

.nav-overlay.active {
  display: block;
}
