:root {
  --color-primary: #7a7df0;
  --color-text-dark: rgb(50, 45, 70);
  --color-text-light: #6e648b;
  --color-text-extra-light: #9894b8;
  --color-white: #ffffff;
  --color-background-light: #f5f5ff;
  --color-background-secondary: #f1f5f9;
  --color-accent-red: #d86f6f;
  --color-accent-green: #15803d;
  --border-color: #e5e2f0;
}

@font-face {
  font-family: 'Dela';
  src: url('/../font/Dela.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--color-white);
  background-image: none;
  color: var(--color-text-dark);
}

body {
  overflow-x: hidden;
  position: relative;
  z-index: 0;
  background: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/../images/landing_bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -1;
  transform: translateZ(0);
}

.container {
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0px;
  padding-right: 0px;
}

section {
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 0;
}


h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

h1 {
  font-family: 'Dela', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 28px;
  border-radius: 34px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: rgb(50, 45, 70);
  color: var(--color-white);
  border: 2px solid rgb(50, 45, 70);
}

.btn-secondary {
  background-color: var(--color-white);
  color: rgb(50, 45, 70);
  border: 2px solid rgb(50, 45, 70);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: rgb(50, 45, 70);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 21px;
    text-align: center;
    color: var(--color-text-light);
    margin-top: 14px;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 32px;
    }
    .section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 26px;
    }
    .section-subtitle {
        font-size: 15px;
    }
}



/* --- Global tweaks & responsive helpers --- */
.header-buttons .btn:hover,
.hero-buttons .btn:hover,
.final-cta-buttons .btn:hover,
.how-it-works-buttons .btn:hover {
  background-color: var(--color-primary);
  border-color: rgb(50, 45, 70);
  color: var(--color-white);
}

@media (max-width: 768px) {
.container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}
/* CSS for section section:Header */
.header-section {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

.logo {
  font-family: 'Dela', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--color-primary);
  position: relative;
  top: -4px;
}

.main-nav {
  display: flex;
  gap: 40px;
  color: #475569;
  font-size: 16px;
}

.header-section .main-nav a {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px dotted transparent;
  transition: border-color 0.2s ease;
}

.header-section .main-nav a:hover {
  border-bottom-color: currentColor;
}

.header-buttons .btn {
  padding: 8px 14px;
  font-size: 12px;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 1024px) {
  .header-container {
    padding: 0 20px;
  }
  .main-nav {
    display: none; /* Simple hide for now, JS needed for toggle */
  }
  .header-buttons {
    display: none; /* Simple hide for now */
  }
  .mobile-nav-toggle {
    display: block;
  }
}



/* --- Header tweaks & mobile nav --- */
/* Mobile nav open state */
.main-nav.is-open { display: flex !important; flex-direction: column; gap: 16px; padding: 12px 0; }

@media (min-width: 769px) and (max-width: 1024px) {
.main-nav.is-open {
    display: grid !important;
    grid-template-columns: repeat(3, max-content);
    gap: 12px 32px;
  }
}

@media (max-width: 768px) {
.header-container { position: relative; }

.main-nav.is-open {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    padding: 14px 20px 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 0 0 18px 18px;
  }

.header-section .main-nav a { padding: 6px 0; }
}

@media (max-width: 768px) {
.header-container {
    padding-left: 5vw;
    padding-right: 5vw;
  }

.main-nav.is-open {
    left: 5vw;
    right: 5vw;
  }
}

@media (max-width: 420px) {
.main-nav.is-open {
    grid-template-columns: 1fr;
  }
}
/* CSS for section section:Hero */
.hero-section {
  text-align: center;
  padding: 80px 0;
  background-image: url('/../images/background.png');
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.hero-section .container {
    padding-top: 60px;
    position: relative;
    z-index: 2;
}

.hero-title {
  font-size: 63px;
  font-weight: 700;
  color: rgb(50, 45, 70);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 21px;
  color: var(--color-text-dark);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

#hero .hero-title,
#hero .hero-subtitle {
  transform: translateY(-140px);
}

#hero .hero-buttons {
  transform: translateY(220px);
}

.hero-bg-image {
  position: absolute;
  top: 249px;
  left: 0;
  width: 100%;
  height: 531px;
  z-index: 1;
}
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
    min-height: auto;
  }
  .hero-title {
    font-size: 48px;
  }
  .hero-subtitle {
    font-size: 20px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-bg-image {
      display: none;
  }
}

/* ---------------- Hero backdrop (ported from trimmed landing) ---------------- */
#hero { position: relative; overflow: hidden; }
#hero #bg-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;          /* under hero content */
  pointer-events: none;
  overflow: hidden;
}
#hero #bg-backdrop > .layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Keep hero content above animation */
#hero .container { position: relative; z-index: 2; }

/* Fallback static image logic */
body.has-backdrop .hero-bg-image { display: none; }
body.no-backdrop  .hero-bg-image { display: block; }
body.reduce-motion .hero-bg-image { display: block; }

/* Make sure the static hero image stays behind text */
.hero-bg-image { z-index: 0; }



/* --- Hero section tweaks --- */
@media (max-width: 768px) {
#hero .hero-title,
  #hero .hero-subtitle,
  #hero .hero-buttons { transform: none; }

#hero .hero-buttons { margin-top: 12px; }
}

@media (max-width: 768px) {
.hero-section {
    min-height: 90svh;
    min-height: 90vh;
  }

#hero .hero-title,
  #hero .hero-subtitle {
    transform: translateY(-100px);
  }

#hero .hero-buttons {
    transform: translateY(200px);
  }
}

@media (max-width: 768px) {
#hero .hero-title {
    font-size: 40px;
    line-height: 1.12;
    margin-bottom: 16px;
  }

#hero .hero-subtitle {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

#hero .hero-title,
  #hero .hero-subtitle {
    transform: translateY(-80px);
  }

#hero .hero-buttons {
    transform: translateY(clamp(0px, 14vh, 140px));
    margin-top: 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) and (max-height: 520px) {
.hero-section {
    padding: 56px 0;
    min-height: 90vh;
    min-height: 90svh;
  }

.hero-section .container {
    padding-top: 24px;
  }

.hero-title {
    font-size: 44px;
    margin-bottom: 16px;
  }

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 22px;
  }

#hero .hero-title,
  #hero .hero-subtitle,
  #hero .hero-buttons {
    transform: none;
  }

.hero-buttons {
    flex-wrap: wrap;
  }

.hero-bg-image {
    display: none;
  }
}
/* CSS for section section:Problem */
.problem-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
}
.problem-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/../images/background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: -1;
}

.problem-title {
  font-size: 40px;
  font-weight: 700;
  color: rgb(50, 45, 70);
  margin-bottom: 80px;
}

.problem-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
}

.problem-card {
  background-color: var(--color-white);
  border-radius: 24px;
  padding: 32px;
  text-align: left;
  width: 286px;
  box-shadow: 0 7px 30px rgba(0,0,0,0.1);
  transition: box-shadow 0.85s ease;
}

.problem-card:hover {
  box-shadow: 0 14px 60px rgba(55,55,55,0.35);
}

.problem-card .card-icon {
  width: 38.4px;
  height: 38.4px;
  margin-bottom: 19.2px;
}

.problem-card h3 {
  font-size: 19.2px;
  margin-bottom: 9.6px;
  color: var(--color-text-dark);
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.problem-card:hover h3 {
  text-decoration-line: underline;
  text-decoration-style: dashed;
}

.problem-card p {
  font-size: 14.4px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.problem-note {
  font-size: 20px;
  color: var(--color-text-light);
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .problem-title {
    font-size: 32px;
  }
  .problem-cards {
    flex-direction: column;
    align-items: center;
  }
  .problem-card {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .problem-title {
    font-size: 26px;
  }
}

/* CSS for section section:HowItWorks */
.how-it-works-section {
  padding: 100px 0;
  background-image: url('/../images/background.png');
  background-size: cover;
  background-position: center;
}

.how-it-works-section .section-subtitle {
  margin-bottom: 60px;
}

.how-it-works-content {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.how-it-works-visual {
  flex: 1;
}
.how-it-works-visual img {
  max-width: 100%;
  height: auto;
}
.how-it-works-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}
.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  background-color: var(--color-white);
  border: 2px solid var(--color-text-dark);
  color: var(--color-text-dark);
}

.how-it-works-section .step-number {
  border-color: rgb(50, 45, 70);
  color: rgb(50, 45, 70);
  background-color: #fff;
}

.how-it-works-section .step-number.step-number-dark {
  background-color: rgb(50, 45, 70);
  border-color: rgb(50, 45, 70);
  color: #fff;
}

#how-it-works .step-number {
  cursor: pointer;
}

#how-it-works .step-number:hover {
  background-color: var(--color-primary);
  border-color: rgb(50, 45, 70);
  color: var(--color-white);
}

.how-it-works-section .step-item.is-active .step-text h3 {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px dotted currentColor;
}

.step-number-dark {
    background-color: var(--color-text-dark);
    color: var(--color-white);
}

.step-text h3 {
  font-size: 17px;
  margin-bottom: 6px;
  color: #1e293b;
}

.step-text p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.how-it-works-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.highlight-box {
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.green-box {
  background-color: #e6ffed;
  border: 1.5px solid rgb(191, 255, 231);
  color: var(--color-accent-green);
  font-size: 20px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .how-it-works-content {
    flex-direction: column;
  }
}

@media (min-width: 1025px) {
  #how-it-works .how-it-works-content {
    width: 92vw;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    gap: 1vw;
  }
  
  #how-it-works .how-it-works-visual {
    flex: 0 0 40vw;
  }
  
  #how-it-works .how-it-works-visual img {
    width: 100%;
    display: block;
  }
  
  #how-it-works .how-it-works-steps {
    flex: 0 1 40vw;
  }
}



/* --- How-it-works tweaks --- */
.how-it-works-buttons .btn.btn-secondary {
  background-color: var(--color-white);
}

.how-it-works-buttons .btn.btn-secondary:hover,
.how-it-works-buttons .btn.btn-secondary:focus-visible {
  background-color: var(--color-primary);
  border-color: rgb(50, 45, 70);
  color: var(--color-white);
}

.how-it-works-buttons .btn {
  font-size: 16px;
}

.how-it-works-section .how-it-works-content[data-how-panel] {
  display: none;
}

.how-it-works-section .how-it-works-content[data-how-panel].is-active {
  display: flex;
}

.how-it-works-section .step-text h3 {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.how-it-works-section .step-item.is-active .step-text h3 {
  border-bottom: 0;
  padding-bottom: 0;
  text-decoration-color: currentColor;
}

@media (min-width: 769px) and (max-width: 1024px) {
#how-it-works .how-it-works-content.is-active {
    flex-direction: column;
    align-items: center;
  }

#how-it-works .how-it-works-visual,
  #how-it-works .how-it-works-steps {
    width: 100%;
    max-width: 520px;
  }

#how-it-works .how-it-works-visual img {
    width: 100%;
    display: block;
  }

#how-it-works .how-it-works-steps {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
#how-it-works .how-it-works-visual img {
    width: 90%;
    max-width: 520px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {
#how-it-works .how-it-works-content.is-active {
    flex-direction: column;
    align-items: stretch;
  }

#how-it-works .how-it-works-visual,
  #how-it-works .how-it-works-steps {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* CSS for section section:CoreStyle */
.core-style-section {
  padding: 100px 0;
  background-image: url('/../images/background.png');
  background-size: cover;
  background-position: center;
}

.core-style-section .section-subtitle {
  margin-bottom: 60px;
}

.core-style-content {
  margin-bottom: 60px;
}
.core-style-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
  position: relative;
  height: 550px;
}
.diagram-img {
  position: absolute;
  left: 130px;
  top: 120px;
  width: 524px;
}
.image-carousel {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto;
}

.image-carousel {
  transform: translateX(20vw);
}

@media (max-width: 768px) {
  .image-carousel {
    transform: translateX(20vw) scale(0.8);
  }
}

.side-images img {
  cursor: pointer;
}

.side-images img.is-active {
  outline: 3px solid rgba(55,55,55,0.7);
  outline-offset: 6px;
}

.image-carousel .carousel-dots {
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.image-carousel .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(55,55,55,0.25);
  cursor: pointer;
}

.image-carousel .carousel-dot.is-active {
  background: rgba(55,55,55,0.8);
}

.image-carousel img {
  position: absolute;
  border-radius: 56px;
  box-shadow: 0 7px 30px rgba(0,0,0,0.15);
}

.image-carousel img.img {
  opacity: 1;
  transition: opacity 260ms ease;
}

.image-carousel.is-fading img.img {
  opacity: 0;
}

.image-carousel .img-1 { width: 342px; height: 342px; top: 88px; left: 0; opacity: 0.7; z-index: 1;}
.image-carousel .img-2 { width: 342px; height: 342px; top: 88px; right: 0; opacity: 0.7; z-index: 1;}
.image-carousel .img-3 { width: 424px; height: 424px; top: 45px; left: 42px; opacity: 0.85; z-index: 2;}
.image-carousel .img-4 { width: 424px; height: 424px; top: 45px; right: 42px; opacity: 0.85; z-index: 2;}
.image-carousel .img-5 { width: 500px; height: 500px; top: 0; left: 50%; transform: translateX(-50%); z-index: 3;}
.side-images {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.side-images img {
    width: 150px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 7px 30px rgba(0,0,0,0.15);
}

@media (min-width: 1201px) {
  .diagram-img {
    position: static;
    width: calc(524px * 0.7);
    margin-left: 130px;
    margin-top: 120px;
    flex: 0 0 auto;
  }
  
  .image-carousel {
    width: calc(500px * 0.7);
    height: calc(500px * 0.7);
    transform: translateX(20vw);
  }
  
  .image-carousel .img-1 { width: calc(342px * 0.7); height: calc(342px * 0.7); top: calc(88px * 0.7); left: 0; opacity: 0.7; z-index: 1; }
  .image-carousel .img-2 { width: calc(342px * 0.7); height: calc(342px * 0.7); top: calc(88px * 0.7); right: 0; opacity: 0.7; z-index: 1; }
  .image-carousel .img-3 { width: calc(424px * 0.7); height: calc(424px * 0.7); top: calc(45px * 0.7); left: calc(42px * 0.7); opacity: 0.85; z-index: 2; }
  .image-carousel .img-4 { width: calc(424px * 0.7); height: calc(424px * 0.7); top: calc(45px * 0.7); right: calc(42px * 0.7); opacity: 0.85; z-index: 2; }
  .image-carousel .img-5 { width: calc(500px * 0.7); height: calc(500px * 0.7); top: 0; left: 50%; transform: translateX(-50%); z-index: 3; }
  
  .side-images {
    gap: calc(40px * 0.7);
    transform: translateX(-10vw);
  }
  
  .side-images img {
    width: calc(150px * 0.7);
  }
}

.core-style-steps {
  display: flex;
  justify-content: center;
  gap: 60px;
}

@media (max-width: 1024px) {
  .core-style-visual {
    flex-direction: column;
    height: auto;
  }
  .diagram-img {
    display: none;
  }
}

@media (max-width: 768px) {
  .core-style-steps {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
  }
  .image-carousel {
      transform: scale(0.8);
  }
  .side-images {
      display: none;
  }
}



/* --- Core style / scenarios tweaks --- */
#scenarios .section-subtitle{
  margin-bottom: 36px;
}

#scenarios .core-style-visual{
  --carousel-size: calc(500px * 0.8);
  --scheme-size: 40vw;
  --switch-thumb: calc(100px * 0.8);
  --switch-gap: calc(40px * 0.8);
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0vw 3vw;
  flex-wrap: wrap;
}

#scenarios .diagram-img{
  display: block;
  position: static;
  left: auto;
  top: auto;
  margin: 0;
  width: var(--scheme-size);
  height: auto;
  flex: 0 0 auto;
}

#scenarios .image-carousel{
  width: var(--carousel-size);
  height: var(--carousel-size);
  margin: 0;
  transform: translateX(-5vw);
  flex: 0 0 auto;
}

#scenarios .image-carousel .img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 56px;
  box-shadow: 0 7px 30px rgba(0,0,0,0.15);
  opacity: 1;
  transition: opacity 520ms ease;
  border: 1px solid #fff;
  box-sizing: border-box;
}

#scenarios .image-carousel.is-fading .img{
  opacity: 0;
}

#scenarios .side-images{
  display: flex;
  flex-direction: column;
  gap: var(--switch-gap);
  transform: translateX(-5vw);
  flex: 0 0 auto;
}

#scenarios .side-images img{
  width: var(--switch-thumb);
  height: auto;
  border-radius: 20px;
  box-shadow: 0 7px 30px rgba(0,0,0,0.15);
  border: 1px solid #fff;
  box-sizing: border-box;
}

@media (max-width: 768px){
  #scenarios .core-style-visual{
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 24px;
  }

  #scenarios .image-carousel{
    width: min(var(--carousel-size), 92vw);
    height: min(var(--carousel-size), 92vw);
    transform: none;
  }

  #scenarios .diagram-img{
    width: min(var(--scheme-size), 92vw);
  }

  #scenarios .side-images{
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    transform: none;
  }
}

#scenarios .diagram-img{
  margin-right: 0px;
  transform: translateX(0vw);
}

@media (max-width: 768px){
  #scenarios .diagram-img{
    margin-right: 0;
    transform: none;
  }
}

#scenarios .side-images img.is-active{
  outline: 1px solid rgba(55,55,55,0.5);
  outline-offset: 6px;
}

#scenarios .core-style-steps{
  width: 90%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 36px;
  padding-top: 20px;
}

@media (max-width: 1024px){
  #scenarios .core-style-steps{
    width: fit-content;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    position: static;
    left: auto;
    transform: none;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    padding-left: 0;
    padding-right: 0;
  }
}

#scenarios .core-style-steps .step-item{
  cursor: pointer;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 17px;
  row-gap: 6px;
  align-items: start;
}

#scenarios .core-style-steps .step-text{
  display: contents;
}

#scenarios .core-style-steps .step-number{
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  transform: translateY(-7px);
}

#scenarios .core-style-steps .step-text h3{
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

#scenarios .core-style-steps .step-text p{
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

#scenarios .step-number{
  border-color: rgb(50, 45, 70);
  color: rgb(50, 45, 70);
  background-color: #fff;
}

#scenarios .step-number.step-number-dark{
  background-color: rgb(50, 45, 70);
  border-color: rgb(50, 45, 70);
  color: #fff;
}

#scenarios .step-item:hover .step-number{
  background-color: var(--color-primary);
  border-color: rgb(50, 45, 70);
  color: var(--color-white);
}

#scenarios .step-text h3{
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

#scenarios .step-item.is-active .step-text h3{
  text-decoration-color: currentColor;
}

@media (min-width: 769px) and (max-width: 1024px) {
#scenarios .core-style-visual {
    display: grid;
    grid-template-columns: var(--carousel-size) var(--switch-thumb);
    grid-template-rows: auto auto;
    justify-content: center;
    align-items: start;
    gap: 24px;
  }

#scenarios .diagram-img {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

#scenarios .image-carousel {
    grid-column: 1;
    grid-row: 2;
    transform: none;
  }

#scenarios .side-images {
    grid-column: 2;
    grid-row: 2;
    transform: none;
    align-self: center;
  }
}

@media (max-width: 768px) {
#scenarios .diagram-img {
    width: 90%;
    max-width: 520px;
  }

#scenarios .side-images { margin-top: 10px; }
}

@media (max-width: 768px) {
#scenarios .side-images {
    margin-top: 30px;
  }
}

.image-carousel .img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
.core-style-section .image-carousel {
    width: min(500px, 90vw);
    aspect-ratio: 1 / 1;
    height: auto;
    transform: none;
  }

#scenarios .core-style-visual {
    --carousel-size: min(calc(500px * 0.8), 90vw);
  }

#scenarios .image-carousel,
  #scenarios .side-images {
    transform: none;
  }
}

/* CSS for section section:Stability */
.stability-section {
  padding: 100px 0;
  position: relative;
}
.stability-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/../images/background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: -1;
}

.stability-title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  color: rgb(50, 45, 70);
  margin-bottom: 100px;
  line-height: 1.3;
}

.comparison-container {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.comparison-column {
  width: 470px;
}

.comparison-column h3 {
  font-size: 21px;
  color: var(--color-text-light);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
}

.comparison-column:not(.sigra-column) h3 {
  border-bottom-color: rgba(50, 45, 70, 0.35);
}

.comparison-column.sigra-column h3 {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-family: 'Dela', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.comparison-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.comparison-column ul li {
  font-size: 18px;
  line-height: 1.5;
  padding-left: 32px;
  position: relative;
}
.comparison-column ul li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent-red);
  font-weight: bold;
}
.comparison-column.sigra-column ul li {
  color: var(--color-text-dark);
  font-weight: 700;
}
.comparison-column.sigra-column ul li::before {
  content: '✓';
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .comparison-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .comparison-column {
    width: 100%;
    max-width: 480px;
  }
  .comparison-column h3 {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .stability-title {
    font-size: 26px;
  }
  .comparison-column h3 {
    font-size: 15px;
  }
}

/* CSS for section section:Audience */
.audience-section {
  padding: 100px 0;
  background-image: url('/../images/background.png');
  background-size: cover;
  background-position: center;
}

.audience-section .section-title {
  margin-bottom: 60px;
}

.audience-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
}

.audience-card {
  background-color: var(--color-white);
  border: none;
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  width: 320px;
  box-shadow: 0 7px 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.85s ease;
}

.audience-card:hover {
  box-shadow: 0 14px 60px rgba(180,165,255,0.65);
}

.audience-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 19.2px;
  object-fit: contain;
  display: block;
}

.audience-card h3 {
  font-size: 19.2px;
  margin-bottom: 9.6px;
  color: var(--color-text-dark);
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.audience-card:hover h3 {
  text-decoration-line: underline;
  text-decoration-style: dashed;
}

.audience-card p {
  font-size: 14.4px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.audience-section .problem-note {
  margin: -38px auto 60px;
  font-size: 15px;
  line-height: 1.45;
  max-width: 980px;
}

.not-for-section {
  text-align: center;
  margin-top: -18px;
}

.not-for-title {
  font-size: 26px;
  color: var(--color-accent-red);
  margin-bottom: 21px;
}

.not-for-lists {
  display: flex;
  justify-content: center;
  gap: 0px;
  text-align: left;
  width: 80vw;
  max-width: 980px;
  margin: 0 auto;
}

.not-for-lists ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 0 480px;
  max-width: 480px;
}

.not-for-lists ul li {
  font-size: 18px;
  color: var(--color-text-dark);
  padding-left: 26px;
  position: relative;
}

.not-for-lists ul li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: var(--color-accent-red);
}

@media (max-width: 1024px) {
  .audience-cards {
    flex-direction: column;
    align-items: center;
  }

  .audience-card {
    width: 100%;
    max-width: 360px;
  }

  .not-for-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .not-for-lists {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .not-for-title {
    font-size: 24px;
  }
}



/* --- Audience section tweaks --- */
@media (min-width: 769px) and (max-width: 1024px) {
#audience .not-for-lists {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

#audience .not-for-lists ul {
    flex: 0 0 auto;
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
#audience .problem-note {
    width: 88%;
    max-width: 420px;
  }

.not-for-lists { gap: 10px; }
}

@media (max-width: 768px) {
#audience .not-for-lists {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

#audience .not-for-lists ul {
    flex: 0 0 auto;
    width: 100%;
    max-width: 520px;
  }
}
/* CSS for section section:Features */
.features-section {
  padding: 100px 0;
  position: relative;
}
.features-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/../images/background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: -1;
}

.features-section .section-title {
  color: rgb(50, 45, 70);
  margin-bottom: 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 286px));
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
}

.feature-card {
  background-color: var(--color-white);
  border: 0;
  border-radius: 24px;
  padding: 32px;
  text-align: left;
  box-shadow: 0 7px 30px rgba(255,255,255,0.1);
  transition: box-shadow 0.85s ease;
}

.feature-card:hover {
  box-shadow: 0 18px 90px rgba(255,255,255,0.85), 0 8px 28px rgba(255,255,255,0.55);
}

.feature-icon {
  width: 38.4px;
  height: 38.4px;
  margin-bottom: 19.2px;
}

.feature-card h3 {
  font-size: 19.2px;
  margin-bottom: 9.6px;
  color: var(--color-text-dark);
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.feature-card:hover h3 {
  text-decoration-line: underline;
  text-decoration-style: dashed;
}

.feature-card p {
  font-size: 14.4px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.features-note {
  text-align: center;
  font-size: 20px;
  color: var(--color-text-light);
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 360px));
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: minmax(0, 360px);
  }
}

/* CSS for section section:Elements */
.elements-section {
  padding: 100px 0;
  background-image: url('/../images/background.png');
  background-size: cover;
  background-position: center;
  overflow: visible;
}

.elements-section .section-title {
  color: rgb(50, 45, 70);
}

.elements-cards {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 80px;
  margin-bottom: 100px;
  overflow: visible;
}

.element-card {
  width: 220px;
  text-align: center;
  --shadow-alpha: 1.85;
}

.element-card .card-title {
  width: 210px;
  height: 86px;
  margin: 0 auto 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  border-radius: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.element-card.card-1 .card-title { background-image: url('/../images/major.png'); }
.element-card.card-2 .card-title { background-image: url('/../images/semantics.png'); }
.element-card.card-3 .card-title { background-image: url('/../images/sintactics.png'); }
.element-card.card-4 .card-title { background-image: url('/../images/pragmatics.png'); }

.element-card .card-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-light);
  line-height: 1.55;
  padding-bottom: 12px;
  margin-bottom: 0;
}

.element-card .card-items {
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text-light);
  line-height: 1.55;
  padding-top: 12px;
}

#elements .element-card.card-1 { --shadow-rgb: 180,165,255; --shadow-delay: 0s; }
#elements .element-card.card-2 { --shadow-rgb: 255,220,120; --shadow-delay: 6s; }
#elements .element-card.card-3 { --shadow-rgb: 90,230,220;  --shadow-delay: 12s; }
#elements .element-card.card-4 { --shadow-rgb: 255,140,217; --shadow-delay: 18s; }

#elements .element-card .card-title,
#elements .element-card .card-question,
#elements .element-card .card-items {
  filter: drop-shadow(0 18px 90px rgba(var(--shadow-rgb), 0.22)) drop-shadow(0 6px 24px rgba(var(--shadow-rgb), 0.16));
  will-change: filter;
  animation: elementsShadowPulse 24s ease-in-out infinite;
  animation-delay: var(--_shadow-delay);
  transform: translateZ(0);
}

#elements .element-card .card-title   { --_shadow-delay: calc(var(--shadow-delay) + 0s); }
#elements .element-card .card-question{ --_shadow-delay: calc(var(--shadow-delay) + 0.6s); }
#elements .element-card .card-items   { --_shadow-delay: calc(var(--shadow-delay) + 1.2s); }

.connections-section {
  text-align: center;
}

#connections-visual {
  position: relative;
  width: min(900px, 92vw);
  height: 240px;
  margin: 50px auto 28px;
}

#connections-visual #bg-backdrop-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

#connections-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

@media (max-width: 768px) {
  #connections-visual {
    height: 200px;
    margin: 26px auto 22px;
  }
}

.connection-visual {
  position: relative;
  width: min(900px, 100%);
  height: 260px;
  margin: 28px auto 32px;
  pointer-events: none;
  overflow: hidden;
}

.connection-visual .layer {
  position: absolute;
  inset: 0;
}

.connection-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.connections-text {
  font-size: 20px;
  color: var(--color-text-light);
  line-height: 1.6;
}

@keyframes elementsShadowPulse {
  0%   { filter: drop-shadow(0 18px 90px rgba(var(--shadow-rgb), 0.22)) drop-shadow(0 6px 24px rgba(var(--shadow-rgb), 0.16)); }
  6%   { filter: drop-shadow(0 24px 120px rgba(var(--shadow-rgb), 0.95)) drop-shadow(0 10px 44px rgba(var(--shadow-rgb), 0.85)); }
  10%  { filter: drop-shadow(0 24px 120px rgba(var(--shadow-rgb), 0.95)) drop-shadow(0 10px 44px rgba(var(--shadow-rgb), 0.85)); }
  16%  { filter: drop-shadow(0 18px 90px rgba(var(--shadow-rgb), 0.22)) drop-shadow(0 6px 24px rgba(var(--shadow-rgb), 0.16)); }
  100% { filter: drop-shadow(0 18px 90px rgba(var(--shadow-rgb), 0.22)) drop-shadow(0 6px 24px rgba(var(--shadow-rgb), 0.16)); }
}

@media (max-width: 1024px) {
  .elements-cards {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .connection-visual {
    width: 90%;
    height: 220px;
    margin: 22px auto 28px;
  }
}

/* CSS for section section:Pricing */
.pricing-section {
  padding: 100px 0;
  background-color: transparent;
  position: relative;
}
.pricing-bg {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/../images/background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: -1;
}

.pricing-section .section-title {
  margin-bottom: 60px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: max-content repeat(3, minmax(200px, 240px));
  gap: 18px;
  margin: 0 auto 24px;
  align-items: stretch;
  padding-top: 24px;
  width: 80vw;
  max-width: 1120px;
  justify-content: center;
}

.pricing-card {
  background-color: #fff;
  border: 2px solid transparent;
  padding: 28px;
  border-radius: 24px;
  transition: box-shadow 0.85s ease, border-color 0.2s ease;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: rgb(50, 45, 70);
  box-shadow: 0 18px 90px rgba(180,165,255,0.85), 0 8px 28px rgba(0,0,0,0.10);
}

.pricing-card.popular {
  box-shadow: 0 10px 40px rgba(180,165,255,0.32), 0 4px 14px rgba(0,0,0,0.08);
}

.pricing-card.popular:hover {
  box-shadow: 0 18px 90px rgba(180,165,255,0.50), 0 8px 28px rgba(0,0,0,0.10);
}

.popular-tag {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 56px);
  background: rgb(50, 45, 70);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 0;
  border-radius: 999px;
  border: 2px solid rgb(50, 45, 70);
  z-index: 2;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 32px;
  margin-top: 18px;
  margin-bottom: 24px;
  display: block;
  width: 100%;
  text-align: center;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: currentColor;
  text-underline-offset: 5px;
  text-decoration-thickness: 3px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card ul li {
  font-size: 16px;
  font-weight: 700;
  min-height: 28px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#pricing .pricing-card h3 {
  margin-top: 6px;
  margin-bottom: 12px;
}

#pricing .pricing-card ul li {
  line-height: 1.25;
}

#pricing .pricing-card ul li.is-multiline {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

#pricing .pricing-card ul li.is-2l {
  min-height: 44px;
}

#pricing .pricing-card ul li.is-3l {
  min-height: 64px;
}

#pricing .pricing-card:not(.is-labels) ul li.is-yes {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 18px;
}

#pricing .pricing-card:not(.is-labels) ul li.is-no {
  color: var(--color-accent-red);
  font-weight: 800;
  font-size: 14px;
}

.pricing-card ul li strong {
  font-weight: 400;
}

#pricing .pricing-card ul li.pricing-group {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(50, 45, 70, 0.18);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  font-weight: 700;
}

#pricing .pricing-card ul li.pricing-group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#pricing .pricing-card:not(.is-labels) ul li {
  justify-content: center;
  text-align: center;
  font-weight: 400;
}

#pricing .pricing-card.is-labels {
  align-self: start;
  padding-bottom: 24px;
}

#pricing .pricing-card.is-labels h3 {
  visibility: hidden;
}

#pricing .pricing-card.is-labels ul li {
  justify-content: flex-start;
  text-align: left;
}

#pricing .pricing-card.is-labels {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

#pricing .pricing-card.is-labels::before {
  content: none;
}

#pricing .pricing-card.is-labels:hover {
  border-color: transparent;
  box-shadow: none;
}

#pricing .pricing-card.is-labels > * {
  position: relative;
  z-index: 1;
}

#pricing .pricing-card.is-labels ul {
  gap: 10px;
}

#pricing .pricing-card.is-labels ul li.pricing-group {
  margin-top: 12px;
  padding-top: 14px;
}

#pricing .pricing-card.is-labels ul li.pricing-group:not(:first-child) {
  padding-top: 6px;
  padding-bottom: 8px;
}

#pricing .pricing-card.is-labels ul li.pricing-group:first-child {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0;
}

#pricing .pricing-card:not(.is-labels) ul li.pricing-group {
  color: transparent;
  border-top-color: rgba(50, 45, 70, 0.18);
}

.pricing-card .price {
  font-family: 'Dela', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-primary);
  margin-top: auto;
  margin-bottom: 24px;
  text-align: center;
  width: 100%;
}

.pricing-card:not(.popular) .price {
  font-weight: 400;
}

.pricing-card .btn {
  padding: 14px;
}

.pricing-note {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 80px;
}

#pricing .btn-primary,
#pricing .btn-secondary {
  border-color: rgb(50, 45, 70);
}

#pricing .btn-primary:hover,
#pricing .btn-primary:focus-visible,
#pricing .btn-secondary:hover,
#pricing .btn-secondary:focus-visible {
  border-color: rgb(50, 45, 70);
}

@media (max-width: 1024px) {
  .pricing-cards {
    width: 80vw;
    max-width: none;
    grid-auto-flow: column;
    grid-template-columns: max-content 1fr;
    grid-auto-columns: minmax(240px, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 24px 12px 4px;
    justify-content: start;
  }

  .pricing-card {
    scroll-snap-align: start;
  }

  #pricing .pricing-card.is-labels {
    position: sticky;
    left: 0;
    z-index: 3;
    scroll-snap-align: none;
  }
}

.credits-section { text-align: center; }

.credits-section .section-title { margin-bottom: 64px; }

.credit-packs { display: flex; justify-content: center; gap: 50px; margin-bottom: 20px; }

.credit-pack {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 7px 30px rgba(0,0,0,0.1);
  transition: box-shadow 0.85s ease, border-color 0.2s ease;
  position: relative;
}

.credit-pack:hover {
  border-color: rgb(50, 45, 70);
  box-shadow: 0 18px 90px rgba(180,165,255,0.85), 0 8px 28px rgba(0,0,0,0.10);
}

.credits-section .credit-packs > .credit-pack:nth-child(2){
  transform: scale(1.2);
  box-shadow: 0 10px 40px rgba(180,165,255,0.32), 0 4px 14px rgba(0,0,0,0.08);
  z-index: 1;
}

.credits-section .credit-packs > .credit-pack:nth-child(2) .popular-tag {
  top: -18.333px;
  transform: translateX(-50%) scale(0.833333);
  transform-origin: top center;
}

.credits-section .credit-packs > .credit-pack:nth-child(2):hover{
  box-shadow: 0 18px 90px rgba(180,165,255,0.50), 0 8px 28px rgba(0,0,0,0.10);
}

.credit-pack h4{
  font-size: 24px;
  margin-bottom: 8px;
  display: inline-block;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: currentColor;
  text-underline-offset: 5px;
  text-decoration-thickness: 3px;
}

.credit-pack .credit-feature {
  font-size: 16px;
  font-weight: 700;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  margin: 8px 0 14px;
}

.credit-pack .credit-price {
  font-family: 'Dela', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-primary);
  text-align: center;
  width: 100%;
}

.credits-note {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 40px auto 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
    .credit-packs { flex-direction: column; align-items: center; }
}



/* --- Pricing section tweaks --- */
@media (min-width: 769px) and (max-width: 1024px) {
#pricing .container {
    width: 90vw;
  }

#pricing .pricing-cards {
    width: 90vw;
    grid-template-columns: 180px 192px;
    grid-auto-columns: 192px;
  }

#pricing .pricing-card.is-labels {
    width: 160px;
    min-width: 160px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

.pricing-tabs { display: none; }

@media (max-width: 768px) {
.credits-section .credit-pack:first-child { margin-bottom: 18px; }
}

@media (max-width: 768px) {
#pricing .pricing-cards {
    width: 94vw;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: minmax(132px, 42vw) minmax(0, 1fr);
    overflow: visible;
    scroll-snap-type: none;
    padding: 18px 10px 4px;
    gap: 12px;
    justify-content: center;
  }

#pricing .pricing-card { scroll-snap-align: none; }

#pricing .pricing-card.is-labels {
    position: static !important;
    left: auto;
    grid-column: 1;
    grid-row: 1 / span 2;
    padding: 18px 10px 18px 0;
    transform: translateX(-6px);
  }

#pricing .pricing-card[data-pricing-plan] {
    display: none;
    grid-column: 2;
    grid-row: 1;
  }

#pricing .pricing-card[data-pricing-plan].is-active { display: flex; }

#pricing .pricing-tabs {
    display: flex;
    grid-column: 2;
    grid-row: 2;
    justify-content: center;
    gap: 10px;
    padding-top: 4px;
  }

#pricing .pricing-tab {
    appearance: none;
    border: 2px solid rgba(50, 45, 70, 0.32);
    background: rgba(255, 255, 255, 0.85);
    color: rgb(50, 45, 70);
    padding: 8px 14px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1;
  }

#pricing .pricing-tab.is-active {
    border-color: rgb(50, 45, 70);
    background: rgb(50, 45, 70);
    color: #fff;
  }
}

@media (max-width: 768px) {
#pricing .pricing-cards {
    grid-template-columns: minmax(96px, 28vw) minmax(0, 1fr);
    column-gap: 10px;
  }

#pricing .pricing-card.is-labels {
    padding: 18px 6px 18px 0;
    transform: translateX(0);
  }

.credits-section .credit-pack:first-child {
    margin-bottom: 38px;
  }
}

@media (max-width: 768px) {
#pricing .pricing-cards {
    width: 90vw;
  }
}
/* CSS for section section:FAQ */
.faq-section {
  padding: 100px 0;
  position: relative;
  background-image: url('/../images/background.png');
  background-size: cover;
  background-position: center;
}

.hero-section::before,
.how-it-works-section::before,
.core-style-section::before,
.audience-section::before,
.elements-section::before,
.faq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  pointer-events: none;
  z-index: 0;
}

.how-it-works-section .container,
.core-style-section .container,
.audience-section .container,
.elements-section .container,
.faq-section .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .faq-section .container {
    width: 92vw;
    padding: 32px 20px;
  }
}

.faq-section .section-title {
  color: rgb(50, 45, 70);
  margin-bottom: 80px;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 24px;
  font-weight: 700;
}
.faq-answer {
  padding-bottom: 32px;
  display: none;
}

.faq-answer p {
  font-size: 18px;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 90%;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-question img {
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question img {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 20px;
    }
}

/* CSS for section section:FinalCTA */
.final-cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
}
.final-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/../images/background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: -1;
}

.cta-image-overlay {
  max-width: 55%;
  height: auto;
  margin-top: -60px;
  margin-bottom: 0px;
  transform-origin: 50% 50%;
  animation: ctaImagePulse 10s ease-in-out infinite;
}

@keyframes ctaImagePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.final-cta-section .section-title {
  margin-bottom: 24px;
}
.final-cta-section .section-subtitle {
  color: var(--color-text-dark);
  margin-bottom: 40px;
}
.final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
@media (max-width: 768px) {
  .final-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}



/* --- Final CTA tweaks --- */
@media (min-width: 769px) and (max-width: 1024px) {
#final-cta .cta-image-overlay {
    max-width: 71.5%;
  }
}

@media (max-width: 768px) {
.cta-image-overlay { max-width: 72%; }
}

@media (max-width: 768px) {
#final-cta .cta-image-overlay {
    max-width: 94%;
  }
}

@media (max-width: 768px) {
#final-cta .cta-image-overlay {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
#final-cta .cta-image-overlay {
    width: 75vw;
    max-width: 75vw;
    transform: scale(1.2);
    animation: none;
    margin-top: -40px;
    margin-bottom: 28px;
  }

#final-cta .final-cta-buttons {
    margin-top: 16px;
  }
}
.footer-section {
  padding: 0;
  position: relative;
  z-index: 0;
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-top: 1px solid rgba(226, 232, 240, 0.7);
}

.footer-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/../images/background.png');
  background-size: cover;
  background-position: center bottom;
  opacity: 0.5;
  z-index: -1;
}

.footer-section .container {
  width: 90vw;
  max-width: 1920px;
  margin: 0 auto;
  padding: 64px 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.footer-brand h4 {
  font-family: 'Dela', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  font-size: 18px;
  line-height: 1.2;
}

.footer-email {
  display: inline-block;
  margin-top: 26px;
  font-size: 16px;
  color: var(--color-text-dark);
  border-bottom: 2px dashed currentColor;
  padding-bottom: 4px;
}

.footer-year {
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-text-light);
}

.footer-nav {
  columns: 2;
  column-gap: 56px;
}

.footer-nav a {
  display: block;
  margin: 0 0 14px;
  break-inside: avoid;
  font-size: 16px;
  color: var(--color-text-dark);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
  align-items: flex-end;
}

.footer-legal a {
  font-size: 16px;
  color: var(--color-text-extra-light);
}

.footer-nav a,
.footer-legal a {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.footer-nav a:hover,
.footer-legal a:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 1024px) {
  .footer-section .container {
    padding: 44px 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-nav {
    columns: 1;
  }

  .footer-legal {
    align-items: center;
    text-align: center;
  }
}

/* ---------------- Auth modal (for auth.js compatibility) ---------------- */
#authModal.hidden {
  display: none !important;
}

#authModal .hidden {
  display: none !important;
}

#authModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  font-family: inherit;
}

#authModal .modal-dialog {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 15px 30px rgb(150, 150, 150);
  padding: 30px;
  position: relative;
  width: 380px;
  max-width: calc(100vw - 40px);
  overflow-y: auto;
}

#authModal .modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  color: rgb(50, 45, 70);
}

#authModal .modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
}

#authModal .modal-tabs .tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: rgb(235, 235, 235);
  cursor: pointer;
  font-size: 15px;
}

#authModal .modal-tabs .tab.active {
  background: rgb(50, 45, 70);
  color: #fff;
}

#authModal .tab-content {
  display: none;
}

#authModal .tab-content.active {
  display: block;
}

#authModal input[type="email"],
#authModal input[type="password"],
#authModal input[type="text"] {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  border: 2px solid rgb(220, 220, 220);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease;
  margin-bottom: 12px;
  box-shadow: none !important;
}

#authModal input[type="email"]:focus,
#authModal input[type="password"]:focus,
#authModal input[type="text"]:focus {
  outline: none;
  border: 2px solid rgb(150, 150, 150);
  box-shadow: none !important;
}

#authModal .modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

#authModal .modal-actions button {
  padding: 8px 27px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  color: rgb(50, 45, 70);
  border: 2px solid rgb(50, 45, 70);
  border-radius: 17px;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: auto;
  white-space: nowrap;
}

#authModal .modal-actions button:hover {
  background: rgb(50, 45, 70);
  color: #fff;
}

#authModal .modal-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

#authModal #showForgot {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: inherit;
  text-decoration: underline;
}

#authModal label {
  display: none;
}

#authModal .legal-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px 10px;
  align-items: start;
  margin: 8px 0 4px;
}

#authModal .legal-consent label {
  display: inline;
  font-size: 12px;
  line-height: 1.35;
  color: rgb(50, 45, 70);
}

#authModal .legal-consent a {
  color: rgb(50, 45, 70);
  text-decoration: underline;
}

@media (max-width: 768px) {
  #scenarios .core-style-steps {
    padding-left: 0;
    padding-right: 0;
  }
}