/* root css */

:root {
  --purple: #7d5ba6;
  --purple-dark: #65428f;
  --bg: #f8f5fc;
  --text: #181818;
  --muted: #666;
  --white: #fff;
}


/* glabal css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);

  overflow-x: hidden;
  user-select: none;
  caret-color: transparent;
}


/* allow text selection in inputs */
input,
textarea {
  user-select: text;
  caret-color: auto;
}


/* remove focus outlines */
a,
button,
input,
textarea {
  outline: none;
  box-shadow: none;
}


/* header section */

header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  padding: 22px 8%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: linear-gradient(135deg, #7d5ba6, #8b6cb6);

  transition: background .35s ease,
              padding .35s ease,
              box-shadow .35s ease,
              backdrop-filter .35s ease;
}

header.scrolled {
  background: rgba(125, 91, 166, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 10px 30px rgba(0,0,0,0.12);

  padding: 12px 8%;
}

.logo img {
  height: 100px;
  transition: height .35s ease;
}

header.scrolled .logo img {
  height: 75px;
}


/* top navigation */

.top-bubble {
  display: flex;
  align-items: center;
  gap: 18px;

  background: rgba(255,255,255,0.15);
  padding: 12px 18px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.header-menu {
  display: flex;
  gap: 22px;
  align-items: center;
}

.header-menu a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;

  opacity: 0.95;
  transition: 0.3s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.header-menu a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.lang-switch {
  display: flex;
  gap: 10px;
}

.lang {
  cursor: pointer;
  color: #fff;
  opacity: 0.85;
  transition: 0.3s;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.lang.active {
  opacity: 1;
  font-weight: 600;
}

.lang:hover,
.header-menu a:hover,
.top-bubble a:hover {
  opacity: 1;
}

.divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.4);
}

.top-bubble a {
  color: white;
  font-size: 18px;
}


/* hero */

.hero {
  min-height:70vh;
  display: flex;
  align-items: center;
  padding: 40px 4%;
  position: relative;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 580px;
}

.tag {
  display: inline-block;
  padding: 10px 18px;
  background: #ece3f7;
  color: var(--purple);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero ul {
  padding-left: 20px;
  margin-bottom: 35px;
}

.hero ul li {
  margin-bottom: 14px;
  color: #444;
  font-size: 17px;
}


/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 18px 34px;
  border-radius: 16px;

  text-decoration: none;
  font-weight: 600;

  transition: 0.3s;
}

.primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 10px 25px rgba(125,91,166,0.3);
}

.primary:hover {
  transform: translateY(-4px);
  background: var(--purple-dark);
}


/* hero image */

.hero-image {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 600px;
}

.hero-image img {
  position: absolute;
  right: -180px;
  bottom: 50px;
  width: 1000px;
  max-width: none;
  z-index: 3;
}


/* intro section */

.intro {
  padding: 0px 8%;
}

.intro-card {
  background: white;
  padding: 60px;
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  text-align: center;
}

.intro-card h2 {
  font-size: 42px;
  margin-bottom: 30px;
}

.intro-card p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}


/* features section */

.features {
  padding: 50px 8% 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-box {
  background: white;
  padding: 40px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.feature-box:hover {
  transform: translateY(-8px);
}

.icon {
  width: 70px;
  height: 70px;
  background: #f4edfc;
  border-radius: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 25px;
}

.icon i {
  font-size: 28px;
  color: var(--purple);
}

.feature-box h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

.feature-box p {
  color: var(--muted);
  line-height: 1.7;
}


/* reviews sections */

.reviews {
  padding: 100px 8%;
}

.reviews h2 {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: white;
  padding: 40px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stars {
  color: #ffb400;
  margin-bottom: 20px;
  font-size: 20px;
}

.review-card p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.review-card h4 {
  color: var(--purple);
}


/* cta section */

.cta {
  padding: 120px 8%;
  text-align: center;
}

.cta h2 {
  font-size: 52px;
  margin-bottom: 40px;
}


/* contact section */

.contact {
  padding: 0 8% 100px;
}

form {
  background: white;
  padding: 50px;
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

form h2 {
  margin-bottom: 30px;
  font-size: 38px;
}

form input,
form textarea {
  width: 100%;
  padding: 18px;
  margin-bottom: 20px;

  border: none;
  background: #f4f4f4;
  border-radius: 14px;

  font-family: inherit;
}

form textarea {
  height: 140px;
  resize: none;
}

form button {
  border: none;
  cursor: pointer;

  padding: 18px 34px;
  background: var(--purple);
  color: white;

  border-radius: 16px;
  font-weight: 600;
}


/* privacy policy */

.policy {
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
}

.policy h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
}

.accordion-item {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;

  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.accordion-header {
  width: 100%;
  padding: 18px 20px;

  text-align: left;
  font-size: 16px;
  font-weight: 600;

  background: white;
  border: none;
  cursor: pointer;

  transition: 0.3s ease;
}

.accordion-header:hover {
  background: #f7f7f7;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;

  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 10px 20px 20px;
}


/* footer */

footer {
  padding: 40px;
  text-align: center;
  color: #777;
}


/* animations */

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* MOBILE VERSION */
@media (max-width: 950px) {

  /* HEADER */
  header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .logo img {
    height: 70px;
    width: auto;
    max-width: 100%;
  }

  .top-bubble {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
  }

  .divider {
    display: none;
  }

  .header-menu {
    width: 100%;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .header-menu a {
    font-size: 12px;
  }

  /* HERO */
  .hero {
    padding: 20px 5%;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.15;
  }

  .hero p {
    font-size: 18px;
  }

  /* BULLET LIST */
  .hero-text ul {
    display: inline-block;
    text-align: left;
    margin: 20px auto 30px;
    padding-left: 20px;
  }

  .hero-text li {
    margin-bottom: 12px;
    font-size: 16px;
  }

  /* BUTTON */
  .btn {
    width: 90%;
    max-width: 320px;
  }

  /* HERO IMAGE */
  .hero-image {
    height: auto;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }

  .hero-image img {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 450px;
    height: auto;
  }

  /* INTRO */
  .intro {
    padding: 0 5%;
  }

  .intro-card {
    padding: 35px 20px;
  }

  .intro-card h2 {
    font-size: 30px;
  }

  /* FEATURES */
  .features {
    padding: 40px 5% 80px;
  }

  .feature-box {
    padding: 30px;
  }

  /* REVIEWS */
.reviews {
  padding: 60px 5%;
  position: relative;
}

.reviews h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.review-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  gap: 20px;
  padding: 10px 0;

  -ms-overflow-style: none;
  scrollbar-width: none;
}

.review-grid::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 90%;
  min-width: 90%;

  padding: 25px;
  border-radius: 24px;

  scroll-snap-align: center;

  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.review-card p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 18px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card h4 {
  font-size: 18px;
}

.stars {
  font-size: 18px;
  margin-bottom: 15px;
}

.carousel-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;

  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);

  cursor: pointer;
  z-index: 10;
}

.carousel-btn.left {
  left: -5px;
}

.carousel-btn.right {
  right: -5px;
}

  /* CTA */
  .cta {
    padding: 80px 5%;
  }

  .cta h2 {
    font-size: 32px;
  }

  /* CONTACT */
  .contact {
    padding: 0 5% 80px;
  }

  form {
    padding: 30px 20px;
  }

  form h2 {
    font-size: 30px;
  }

  /* FOOTER */
  footer {
    padding: 30px 20px;
  }
}