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

:root {
  --bg-dark: #0d0d1a;
  --text-main: #f5edfb;
  --text-accent: #e4c9fb;
  --btn-text: #f5df5c;
  --btn-hover: #7b5ea7;
  --desktop-px: 160px;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
.navbar {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px var(--desktop-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.navbar-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.navbar-links a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  color: var(--text-main);
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--text-accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 85px;
  left: 20px;
  right: 20px;
  flex-direction: column;
  z-index: 999;
  background: #0d0d1a;
  padding: 24px 0;
  border-radius: 16px;
}
.mobile-nav a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-main);
  padding: 14px 32px;
  text-align: center;
  transition: color 0.2s;
}
.mobile-nav a:hover {
  color: var(--text-accent);
}
.mobile-nav.open {
  display: flex;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  display: flex;
  overflow: hidden;
  background-image: url("assets/UniversalUpscaler_Ultra_Realistic_2_2932954b-7d55-4968-b5ce-d633d2b8db4e.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 542px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 700;
  line-height: 120%;
  color: var(--text-accent);
  margin-bottom: 20px;
}

.hero .subheadline {
  font-size: 28px;
  font-weight: 500;
  line-height: 130%;
  color: var(--text-main);
  margin-bottom: 120px;
}

.hero .body-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  color: var(--text-main);
  margin-bottom: 40px;
  max-width: 448px;
}

.btn-cta {
  display: inline-block;
  width: 256px;
  height: 59px;
  border-radius: 24px;
  padding: 16px 24px;
  background: var(--btn-text);
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  color: var(--bg-dark);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}
.btn-cta:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: var(--text-main);
}

/* ─── SECTION COMMONS ─── */
section {
  padding: 100px var(--desktop-px);
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 120%;
  color: var(--text-accent);
  margin-bottom: 56px;
  letter-spacing: 0;
}

.section-title-hiw {
  font-size: 48px;
  font-weight: 700;
  line-height: 120%;
  color: #7b5ea7;
  margin-bottom: 56px;
  letter-spacing: 0;
}

.para-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 150%;
  color: var(--text-accent);
  margin-bottom: 8px;
}

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

/* ─── HOW IT WORKS ─── */
#how-it-works {
  background: var(--bg-dark);
}

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

.step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-accent);
  margin-bottom: 8px;
}

.step-label {
  font-size: 28px;
  font-weight: 500;
  color: var(--text-accent);
  margin-bottom: 20px;
}

.step-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #2e2e4a;
  object-fit: cover;
  margin-bottom: 20px;
}

/* ─── FEATURES ─── */
#features {
  background: var(--bg-dark);
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.feature-item .para-title {
  margin-bottom: 6px;
}

/* ─── ABOUT ─── */
#about {
  background: var(--bg-dark);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* About image */
.about-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #2e2e4a;
}

/* ─── PRE-FOOTER CTA BANNER ─── */
.cta-banner {
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--desktop-px);
  overflow: hidden;

  background-image: url("assets/Image_rl1ppvrl1ppvrl1p.jpg");
  background-size: cover;
  background-position: center;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 120%;
  color: var(--text-accent);
  margin-bottom: 20px;
}

.cta-banner p {
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  color: var(--text-main);
  max-width: 574px;
  margin: 0 auto;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg-dark);
  padding: 40px var(--desktop-px);
  text-align: center;
  border-top: 1px solid #e4c9fb1a;
}

footer a {
  display: block;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  color: var(--text-accent);
  text-decoration: none;
  margin-bottom: 12px;
  transition: opacity 0.2s;
}
footer a:hover {
  opacity: 0.7;
}

footer .copyright {
  font-size: 14px;
  color: #e4c9fb88;
  margin-top: 20px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  :root {
    --desktop-px: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --desktop-px: 24px;
  }

  /* Navbar */
  .navbar {
    padding: 16px 24px;
  }
  .navbar-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    height: 812px;
    background-image: url("assets/Image_h8et48h8et48h8et\ 1.jpg");
    display: flex; /* Переконайтеся, що флекс увімкнено */
    justify-content: center;
    align-items: flex-start; /* Притискаємо вміст до верху, якщо потрібно */
    text-align: left;
  }
  .hero-content {
    padding: 0px 0px 280px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    width: 100%;
    font-size: 48px;
  }
  .hero .subheadline {
    font-size: 24px;
    margin-bottom: 40px;
  }
  .hero .body-text {
    font-size: 16px;
    max-width: 343px;
    margin-bottom: 270px;
  }
  .btn-cta {
    align-self: center; /* Цей рядок ігнорує flex-start батька і ставить лише кнопку по центру */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  /* Features */
  .features-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* About */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-layout .about-text {
    order: 1;
  }
  .about-layout .about-img-wrap {
    order: 2;
  }

  /* Section titles */
  .section-title {
    font-size: 32px;
    margin-bottom: 36px;
  }

  /* CTA Banner */
  .cta-banner h2 {
    font-size: 32px;
  }
  .cta-banner {
    padding: 60px 24px;
  }

  /* Section padding */
  section {
    padding: 60px 24px;
  }
}
