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

:root {
  --color-bg: #0d0f12;
  --color-header-bg: #0f1115;
  --color-footer-bg: #1a1d23;
  --color-accent: #b892ff;
  --color-teal: #4fd1c5;
  --color-text: #e2e8f0;
  --color-btn: #4fd1c5;
  --color-btn-hover: #b892ff;
  --desktop-pad: 160px;
  --font-title: "Dela Gothic One", sans-serif;
  --font-body: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* =============================================
       HEADER / NAV
    ============================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-header-bg);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 var(--desktop-pad);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — replace <img> src with your actual logo file */
.logo img {
  height: 44px;
  width: 44px;
  display: block;
}

/* Desktop nav links */
nav.desktop-nav {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav.desktop-nav a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

nav.desktop-nav a:hover {
  color: var(--color-teal);
}

/* Hamburger (mobile only) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-header-bg);
  padding: 24px 0;
  position: absolute;
  top: 76px;
  left: 20px;
  right: 20px;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: var(--color-text);
  text-decoration: none;
  text-align: center;
  padding: 14px 0;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--color-teal);
}

/* =============================================
       HERO SECTION
    ============================================= */
.hero {
  position: relative;
  /* min-height: 680px; */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/Gemini_Generated_Image_q6ninuq6ninuq6ni.jpg");
  background-size: cover;
  background-position: center right;
  /* background-color: #0d0f12; */
}

/* Dark overlay on the left so text stays readable */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13, 15, 18, 0.95) 0%,
    rgba(13, 15, 18, 0.8) 50%,
    rgba(13, 15, 18, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 72px;
  line-height: 120%;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 28px;
  line-height: 130%;
  color: var(--color-text);
  margin-bottom: 24px;
}

.hero-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: var(--color-text);
  margin-bottom: 40px;
  padding-top: 40px;
  padding-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 256px;
  height: 59px;
  gap: 8px;
  border-radius: 24px;
  padding: 16px 24px;
  background-color: var(--color-btn);
  color: #0d0f12;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

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

/* =============================================
       SHARED SECTION STYLES
    ============================================= */
section {
  padding: 80px var(--desktop-pad);
}

.section-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 48px;
  line-height: 120%;
  color: var(--color-accent);
  margin-bottom: 48px;
}

.item-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 150%;
  color: var(--color-text);
  margin-bottom: 8px;
}

.item-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: var(--color-teal);
}

/* =============================================
       FEATURES SECTION
    ============================================= */
#features {
  background-color: var(--color-bg);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.feature-thumb {
  flex-shrink: 0;
  overflow: hidden;
}

.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-body {
  flex: 1;
  padding-top: 8px;
}

/* =============================================
       HOW IT WORKS SECTION
    ============================================= */
#how-it-works {
  background-color: #0a0c0f;
}

.hiw-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.hiw-image {
  flex-shrink: 0;

  border-radius: 12px;
  overflow: hidden;
  background: #1a1d23;
}

.hiw-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hiw-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* .hiw-step {
} */

/* =============================================
       REVIEWS SECTION
    ============================================= */
#reviews {
  position: relative;
  overflow: hidden;
}

.reviews-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/e918b74978df741eb2a61d32e3c6e1023c8c7f96.png");
  background-size: cover;
  background-position: center;
  background-color: #0a0c0f;
  opacity: 0.35;
}

#reviews .section-title,
#reviews .reviews-grid {
  position: relative;
  z-index: 1;
}

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

.review-card {
  background: rgba(15, 17, 21, 0.85);
  border: 1px solid var(--color-btn);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: var(--color-teal);
  flex: 1;
}

.review-author {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  text-align: right;
}

/* =============================================
       FAQ SECTION
    ============================================= */
#faq {
  background-color: var(--color-bg);
}

.faq-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.faq-image {
  flex-shrink: 0;

  overflow: hidden;
  background: #1a1d23;
}

.faq-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.faq-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-teal);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: #1a1d23;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.faq-question span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
  line-height: 150%;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 20px;
  transition: transform 0.25s;
}

.faq-icon::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}

.faq-icon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 16px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}
.faq-item.open .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.25s;
  background: #1a1d23;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 16px 24px 20px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: var(--color-teal);
}

/* =============================================
       FOOTER
    ============================================= */
footer {
  background-color: var(--color-footer-bg);
  padding: 40px var(--desktop-pad);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 16px;
  flex-direction: column;
  padding-bottom: 40px;
}

.footer-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-teal);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-copy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-teal);
  opacity: 0.7;
}

/* =============================================
       RESPONSIVE — MOBILE (≤ 768px)
    ============================================= */
@media (max-width: 768px) {
  :root {
    --desktop-pad: 20px;
  }

  /* Header */
  nav.desktop-nav {
    display: none;
  }
  .burger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 812px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .hero-bg {
    background-image: url("assets/BG\ Mob\ 1.jpg");
  }
  .hero-content {
    padding: 0px 20px 48px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .hero-title {
    font-size: 56px;
  }
  .hero-subtitle {
    font-size: 24px;
  }
  .hero-text {
    font-size: 16px;
    padding-top: 0;
    margin-bottom: 200px;
  }
  .btn-primary {
    width: 100%;
    max-width: 256px;
    margin: 0 auto; /* Гарантоване центрування кнопки */
    display: block;
    text-align: center;
  }

  /* Sections */
  section {
    padding: 56px 20px;
  }
  .section-title {
    font-size: 36px;
    margin-bottom: 32px;
  }

  /* Features */
  .feature-item {
    flex-direction: column;
  }
  .feature-thumb {
    width: 100%;
    height: 200px;
  }

  /* How It Works */
  .hiw-layout {
    flex-direction: column;
  }
  .hiw-image {
    width: 100%;
    min-height: 220px;
    order: 2;
  }
  .hiw-steps {
    order: 1;
  }

  .reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: calc(100% + 40px);
    margin-left: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .reviews-grid::-webkit-scrollbar {
    display: none;
  }

  .review-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    min-height: 250px;
  }

  /* FAQ */
  .faq-layout {
    flex-direction: column;
  }
  .faq-image img {
    display: none;
  }

  /* Footer */
  footer {
    padding: 32px 20px;
  }
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
