/* ===== VARIABLES ===== */
:root {
  --blue: #0098E3;
  --blue-hover: #0088D0;
  --coral: #E8384F;
  --pink-bg: #FEF0F1;
  --gray: #6B6B6B;
  --black: #1A1A1A;
  --white: #FFFFFF;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: disc; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 152, 227, 0.3);
}
.tg-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1000;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 64px;
  width: auto;
}

/* Desktop Nav */
.nav {
  display: none;
  align-items: center;
  gap: 40px;
}
.nav-link {
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  transition: color 0.2s;
  padding: 4px 0;
}
.nav-link:hover {
  color: var(--blue);
}
.nav-link.active {
  color: var(--coral);
}

/* Header CTA */
.btn-header {
  display: inline-flex;
  padding: 10px 16px;
  font-size: 12px;
  order: 1;
}
.btn-header .tg-icon {
  width: 18px;
  height: 18px;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  order: 2;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: 0.3s;
  border-radius: 2px;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  gap: 24px;
  z-index: 999;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.mobile-nav.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-link {
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s;
}
.mobile-nav-link:hover {
  color: var(--blue);
}
.btn-mobile-cta {
  margin-top: 12px;
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  padding: 40px 0 48px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-text-block {
  order: 2;
}
.hero-image {
  order: 1;
  text-align: center;
}
.hero-image img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--black);
}
.hero-list {
  padding-left: 20px;
  margin-bottom: 28px;
}
.hero-list li {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ===== HOW IT WORKS ===== */
.how {
  padding: 56px 0;
}
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
}
.how-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.how-card {
  background: var(--pink-bg);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
}
.how-card-img {
  margin-bottom: 20px;
}
.how-card-img img {
  width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
}
.how-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.how-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== YOU DECIDE WHO CHATS ===== */
.decide {
  padding: 56px 0;
}
.decide-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.decide-image {
  width: 100%;
  max-width: 400px;
}
.decide-image img {
  width: 100%;
  border-radius: 24px;
}
.decide-content {
  text-align: center;
}
.decide-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}
.decide-content p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 24px;
}
.decide-content .btn-primary {
  margin: 0 auto;
}

/* ===== FAQ ===== */
.faq {
  padding: 56px 0 64px;
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 24px;
}
.faq-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.faq-item p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 4px;
}
.faq-item ul {
  padding-left: 20px;
  margin-top: 4px;
}
.faq-item ul li {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0 32px;
  border-top: 1px solid #eee;
}
.footer-inner {
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-links a {
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--blue);
}
.footer-copy {
  font-size: 13px;
  color: var(--gray);
}

/* ===== MODALS ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s;
}
.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-content {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s;
}
.modal-content h2 {
  margin: 0 0 20px 0;
  font-size: 24px;
  font-weight: 800;
  padding-right: 32px;
}
.modal-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 12px 0;
  color: var(--black);
}
.modal-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 16px;
}
.modal-content p strong {
  color: var(--black);
  font-weight: 700;
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 28px;
  font-weight: 300;
  color: #999;
  cursor: pointer;
  transition: 0.15s;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.modal-close:hover {
  color: #000;
  background: #f5f5f5;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===================================================
   TABLET — min-width: 768px
   =================================================== */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  /* Header */
  .header-inner {
    height: 88px;
  }
  .hamburger {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
  .nav {
    display: flex;
  }
  .btn-header {
    display: inline-flex;
    padding: 12px 24px;
    font-size: 14px;
    order: unset;
  }
  .btn-header .tg-icon {
    width: 22px;
    height: 22px;
  }

  /* Hero */
  .hero {
    padding: 48px 0 64px;
  }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .hero-text-block {
    order: 1;
    flex: 1;
    min-width: 0;
  }
  .hero-image {
    order: 2;
    flex: 1;
    min-width: 0;
  }
  .hero-image img {
    max-width: 100%;
    margin: 0;
  }
  .hero-title {
    font-size: 36px;
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .hero-list li {
    font-size: 15px;
  }

  /* How it works */
  .how {
    padding: 72px 0;
  }
  .section-title {
    font-size: 36px;
    margin-bottom: 48px;
  }
  .how-grid {
    flex-direction: row;
    gap: 24px;
  }
  .how-card {
    flex: 1;
    padding: 28px 20px;
  }
  .how-card-img img {
    width: 260px;
  }
  .how-card h3 {
    font-size: 18px;
  }
  .how-card p {
    font-size: 14px;
  }

  /* Decide */
  .decide {
    padding: 72px 0;
  }
  .decide-inner {
    flex-direction: row;
    gap: 56px;
  }
  .decide-image {
    flex: 1;
    max-width: none;
  }
  .decide-content {
    flex: 1;
    text-align: left;
  }
  .decide-content .btn-primary {
    margin: 0;
  }

  /* FAQ */
  .faq {
    padding: 72px 0 80px;
  }
  .faq-item h3 {
    font-size: 17px;
  }
  .faq-item p,
  .faq-item ul li {
    font-size: 15px;
  }

  /* Footer */
  .footer-links {
    gap: 32px;
  }
  .footer-links a {
    font-size: 15px;
  }
  .footer-copy {
    font-size: 14px;
  }

  /* Modals */
  .modal-content {
    padding: 40px;
    border-radius: 24px;
  }
  .modal-content h2 {
    font-size: 28px;
  }
}

/* ===================================================
   DESKTOP — min-width: 1024px
   =================================================== */
@media (min-width: 1024px) {
  .container {
    padding: 0 60px;
    max-width: 1260px;
  }

  /* Header */
  .header-inner {
    height: 80px;
  }
  .logo-img {
    height: 72px;
  }
  .nav {
    gap: 48px;
  }
  .nav-link {
    font-size: 17px;
  }
  .btn-header {
    padding: 14px 28px;
    font-size: 16px;
  }

  /* Hero */
  .hero {
    padding: 40px 0 80px;
  }
  .hero-inner {
    gap: 64px;
  }
  .hero-title {
    font-size: 48px;
    margin-bottom: 20px;
  }
  .hero-subtitle {
    font-size: 20px;
    margin-bottom: 24px;
  }
  .hero-list {
    margin-bottom: 36px;
  }
  .hero-list li {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .btn-primary {
    padding: 16px 32px;
    font-size: 18px;
  }
  .tg-icon {
    width: 24px;
    height: 24px;
  }

  /* How it works */
  .how {
    padding: 80px 0;
  }
  .section-title {
    font-size: 44px;
    margin-bottom: 56px;
  }
  .how-grid {
    gap: 32px;
  }
  .how-card {
    padding: 36px 28px;
    border-radius: 28px;
  }
  .how-card-img img {
    width: 300px;
  }
  .how-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .how-card p {
    font-size: 15px;
  }

  /* Decide */
  .decide {
    padding: 80px 0;
  }
  .decide-inner {
    gap: 80px;
  }
  .decide-image img {
    border-radius: 32px;
  }
  .decide-title {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .decide-content p {
    font-size: 17px;
    margin-bottom: 28px;
  }

  /* FAQ */
  .faq {
    padding: 80px 0 96px;
  }
  .faq-item {
    margin-bottom: 28px;
  }
  .faq-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .faq-item p,
  .faq-item ul li {
    font-size: 16px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 36px;
  }
  .footer-links {
    gap: 40px;
    margin-bottom: 28px;
  }
  .footer-links a {
    font-size: 16px;
  }
  .footer-copy {
    font-size: 15px;
  }

  /* Modals */
  .modal-content {
    padding: 48px;
  }
  .modal-content h2 {
    font-size: 32px;
  }
  .modal-content h3 {
    font-size: 22px;
  }
}

/* ===================================================
   LARGE DESKTOP — min-width: 1280px
   =================================================== */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 52px;
  }
  .hero-image img {
    max-width: 600px;
  }
  .how-card-img img {
    width: 340px;
  }
}
