/* VARIABLES: Soft, Organic, Pastel */
:root {
  --bg-main: #fdfbff;
  --bg-soft: #f0f4f8;
  --bg-lavender: #ebeafd;

  --primary: #6c5ce7;
  --primary-hover: #5649c0;
  --text-main: #2d3436;
  --text-light: #636e72;
  --white: #ffffff;

  --font-display: "Playfair Display", serif;
  --font-body: "Lato", sans-serif;

  --radius-l: 30px;
  --radius-m: 15px;
  --radius-s: 8px;

  --shadow-soft: 0 20px 60px rgba(108, 92, 231, 0.08);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-l);
}

/* ABSTRACT BLOBS */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  animation: floatBlob 10s infinite alternate;
}
.blob-1 {
  width: 600px;
  height: 600px;
  background: #d6e4ff;
  top: -200px;
  left: -200px;
}
.blob-2 {
  width: 500px;
  height: 500px;
  background: #f3e5f5;
  bottom: -100px;
  right: -100px;
  animation-delay: 5s;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 30px) scale(1.1);
  }
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-main);
  font-weight: 700;
}

.display-title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 25px;
}
.display-title em {
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}
.subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  font-weight: 300;
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}
.narrow-text {
  max-width: 800px;
  margin: 0 auto;
}

/* UTILS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 120px 0;
}
.bg-soft {
  background: var(--bg-soft);
  border-radius: 50px;
  margin: 0 20px;
  width: calc(100% - 40px);
}
.bg-lavender {
  background: var(--bg-lavender);
}
.shadow-soft {
  box-shadow: var(--shadow-soft);
  background: var(--white);
  border-radius: var(--radius-l);
}
.mb-4 {
  margin-bottom: 1.5rem;
}

/* BUTTONS */
.btn-pill {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: 0.3s;
  background: var(--text-main);
  color: var(--white);
  cursor: pointer;
  border: none;
}
.btn-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background: var(--primary);
}
.btn-pill.primary {
  background: var(--primary);
}
.btn-pill.primary:hover {
  background: var(--primary-hover);
}

.link-underline {
  position: relative;
  font-weight: 700;
  color: var(--text-main);
  margin-right: 20px;
}
.link-underline::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: 0.3s;
}
.link-underline:hover::after {
  transform: scaleX(1);
}
.read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  display: inline-block;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  background: rgba(253, 251, 255, 0.85);
  backdrop-filter: blur(12px);
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.nav-links a {
  margin: 0 15px;
  font-size: 1rem;
  color: var(--text-main);
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-trigger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-main);
}

/* HERO */
.hero {
  padding: 140px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.chip {
  display: inline-block;
  background: var(--bg-lavender);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-btns {
  display: flex;
  align-items: center;
}

.hero-image {
  position: relative;
}
.img-mask {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  overflow: hidden;
  height: 500px;
  box-shadow: var(--shadow-soft);
  animation: morph 8s infinite alternate ease-in-out;
}
.img-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  bottom: 40px;
  left: -30px;
  background: var(--white);
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  animation: float 5s infinite ease-in-out;
}
.floating-card i {
  color: var(--primary);
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* PHILOSOPHY */
.text-block p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 25px;
}
blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-main);
  margin: 40px 0;
}

/* SOLUTIONS */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}
.cards-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.soft-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  border: 1px solid transparent;
}
.soft-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-soft);
  border-color: var(--bg-lavender);
}
.soft-card.highlight {
  background: var(--bg-lavender);
}
.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}
.soft-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}
.soft-card p {
  color: var(--text-light);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}
.blog-post {
  cursor: pointer;
}
.blog-post:hover .post-img img {
  transform: scale(1.05);
}
.blog-post:hover h3 {
  color: var(--primary);
}
.post-img {
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-m);
  margin-bottom: 20px;
}
.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.date {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1px;
}
.post-content h3 {
  font-size: 1.3rem;
  margin: 10px 0;
  transition: 0.3s;
}
.link-text {
  text-decoration: underline;
  font-weight: 700;
  font-size: 0.9rem;
}

/* LAB / CALCULATOR */
.lab-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.check-list {
  margin-top: 30px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
}
.check-list i {
  color: var(--primary);
}

.lab-interface {
  padding: 40px;
  min-height: 350px;
  position: relative;
}
.step {
  display: none;
  animation: fadeIn 0.4s;
}
.step.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 25px;
}
.options-grid button {
  padding: 15px;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: 0.2s;
  font-size: 1rem;
  color: var(--text-main);
}
.options-grid button:hover {
  border-color: var(--primary);
  background: var(--white);
}
.result-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.full-width {
  width: 100%;
  text-align: center;
}

/* FAQ */
.accordion details {
  background: var(--bg-soft);
  margin-bottom: 15px;
  border-radius: var(--radius-m);
  padding: 20px;
  transition: 0.3s;
}
.accordion details[open] {
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.accordion summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  font-size: 1.1rem;
}
.accordion p {
  margin-top: 15px;
  color: var(--text-light);
}

/* CONTACT */
.contact-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}
.contact-card {
  padding: 50px;
}
.clean-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}
.input-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text-main);
}
.input-group input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  background: #fafafa;
  transition: 0.3s;
}
.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.checkbox-group {
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.checkbox-group a {
  text-decoration: underline;
  color: var(--primary);
}

.contact-info {
  padding-top: 50px;
}
.info-list {
  margin-top: 30px;
}
.info-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  align-items: center;
}
.info-list i {
  color: var(--primary);
}

/* FOOTER */
.footer {
  background: var(--white);
  border-top: 1px solid #eee;
  padding: 80px 0 30px;
  margin-top: 100px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.footer h5 {
  margin-bottom: 20px;
  font-size: 1rem;
}
.footer a {
  display: block;
  color: var(--text-light);
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.footer a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: 60px;
  padding-top: 20px;
  color: #aaa;
  font-size: 0.85rem;
}

/* MOBILE DRAWER */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 200;
  padding: 30px;
  transform: translateX(100%);
  transition: 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.active {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
#closeMenu {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.drawer-content a {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  font-family: var(--font-display);
  color: var(--text-main);
}
.drawer-footer {
  margin-top: auto;
  color: var(--text-light);
}

/* COOKIE */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 320px;
  background: var(--white);
  padding: 25px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  z-index: 500;
  display: none;
  border: 1px solid #eee;
}
.cookie-popup p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: var(--text-light);
}
#acceptCookie {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: var(--text-main);
  color: var(--white);
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .desktop-only {
    display: none;
  }

  .btn-pill-none {
    display: none;
  }
  .blob-1,
  .blob-2 {
    width: 400px;
    height: 400px;
  }
  .menu-trigger {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .img-mask {
    height: 350px;
  }
  .floating-card {
    left: 20%;
    transform: translateX(-50%);
    bottom: -20px;
    width: max-content;
  }

  .cards-flow,
  .blog-grid,
  .lab-wrapper,
  .contact-container,
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bg-soft {
    margin: 0;
    width: 100%;
    border-radius: 0;
  }
  .header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  h3 {
    font-size: 18px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    margin: 80px 0 30px;
    font-size: 28px;
  }
}
