/* palette: lavender-gold */
:root {
  --primary-color: #4A0080;
  --secondary-color: #7B1FA2;
  --accent-color: #C9A017;
  --background-color: #F6F0FF;
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(255,255,255,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --radius-sm: 6px; 
  --radius-md: 12px; 
  --radius-lg: 20px; 
  --radius-xl: 32px;
  --main-font: 'DM Serif Display', serif;
  --alt-font: 'Noto Sans', sans-serif;
}

/* Base reset & DARK-PRO Preset Rules */
body, html {
  background: var(--secondary-color);
  color: #F0F0F0;
  font-family: var(--alt-font);
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.bg-gray-100,
.bg-white,
.bg-yellow-100,
.bg-blue-100,
.bg-red-100,
.bg-green-100,
.bg-gray-100 p,
.bg-white p,
.bg-yellow-100 p,
.bg-blue-100 p,
.bg-red-100 p,
.bg-green-100 p {
  color: #111A13;
}

section {
  background: #62486c;
  padding: 56px 16px;
  margin: 0;
}

@media(min-width:1024px) {
  section {
    padding: 96px 24px;
  }
}

section + section {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.card {
  background: rgba(255,255,255,0.06);
  border-top: 3px solid var(--accent-color);
  border-radius: var(--radius-md);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

p, .subtitle {
  color: rgba(240,240,240,0.75);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
}

/* Typography scale */
h1, h2, h3, h4 {
  font-family: var(--main-font);
  font-weight: 700;
  color: #FFFFFF;
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.2;
}

h3 {
  font-size: clamp(18px, 2.8vw, 28px);
  line-height: 1.3;
}

h4 {
  font-size: clamp(16px, 2vw, 22px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header & Menu */
.site-header {
  background: var(--primary-color);
  padding: 16px 0;
  position: relative;
  z-index: 1000;
}

.header-inner {
  position: relative;
}

.logo img {
  max-height: 40px;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.burger-btn .bar {
  height: 3px;
  width: 100%;
  background-color: #FFFFFF;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary-color);
  padding: 24px 16px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-nav a {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--accent-color);
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

#menu-toggle:checked ~ .burger-btn .bar:first-child {
  transform: translateY(9px) rotate(45deg);
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .burger-btn .bar:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

@media(min-width:1024px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    padding: 0;
    box-shadow: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 32px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #E2B419;
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--accent-color);
}

.btn-outline {
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
}

.btn-outline:hover, .btn-outline:focus {
  background-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* HERO: Bento Grid Styling */
.hero-section {
  min-height: 83vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, rgba(74, 0, 128, 0.4) 0%, rgba(123, 31, 162, 0.1) 90%);
}

.bento-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.bento-cell {
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-main-cell {
  background: var(--primary-color);
}

.bento-main-cell h1 {
  margin-bottom: 20px;
}

.bento-main-cell p {
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.bento-image-cell {
  background-size: cover;
  background-position: center;
  min-height: 280px;
}

.bento-stat-cell {
  padding: 24px;
}

.bento-stat-num {
  font-family: var(--main-font);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 12px;
}

.bento-stat-label {
  font-size: 14px;
  margin: 0;
}

@media(min-width:768px) {
  .bento-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-main-cell {
    grid-column: span 2;
  }
}

@media(min-width:1024px) {
  .bento-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-main-cell {
    grid-column: span 2;
  }
  .bento-image-cell {
    grid-column: span 1;
    min-height: auto;
  }
  .bento-stat-cell {
    grid-column: span 1;
  }
}

/* SECTION 1: Key Questions (Journal Q&A Style) */
.journal-qa {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.qa-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 32px;
}

.qa-item:last-child {
  border-bottom: none;
}

.qa-item h3 {
  margin-bottom: 16px;
}

/* SECTION 2: Before/After Text */
.state-card {
  border-left: 4px solid transparent;
}

.state-before {
  border-left-color: #EF4444;
}

.state-after {
  border-left-color: #22C55E;
}

.state-title {
  margin-bottom: 24px;
}

.state-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.state-list li {
  display: flex;
  gap: 12px;
  line-height: 1.6;
}

.state-list span {
  font-weight: 700;
  flex-shrink: 0;
}

/* SECTION 3: Stats Counter with CSS @property */
@property --count {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

.stat-num {
  --target: 80;
  font-family: var(--main-font);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--accent-color);
  animation: count-up 2s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
  counter-reset: n var(--count);
}

.stat-num::after {
  content: counter(n);
}

.stat-suffix {
  font-family: var(--main-font);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-color);
}

@keyframes count-up {
  from { --count: 0; }
  to { --count: var(--target); }
}

.stat-label {
  font-size: 15px;
}

/* SECTION 4: Dense Icon Grid */
.dense-grid {
  grid-auto-rows: 1fr;
}

.dense-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
}

.dense-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.dense-card h3 {
  font-size: 16px;
  font-family: var(--alt-font);
  font-weight: 600;
  margin: 0;
  text-align: center;
}

/* SECTION 5: Split Testimonial */
.testimonial-left {
  position: relative;
}

.quote-mark {
  font-family: var(--main-font);
  font-size: 8rem;
  color: var(--accent-color);
  opacity: 0.15;
  line-height: 0.8;
  position: absolute;
  top: -40px;
  left: -20px;
}

.testimonial-quote {
  font-family: var(--main-font);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.testimonial-author-meta {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 18px;
}

.author-title {
  color: rgba(240, 240, 240, 0.6);
  font-size: 14px;
}

.testimonial-image-container img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* SECTION 6: Contact & FAQ (Combined) */
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: #FFFFFF;
  font-family: var(--alt-font);
  transition: border-color 0.15s, background-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.12);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media(min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item-open {
  border-left: 3px solid var(--accent-color);
}

.faq-item-open h4 {
  margin-bottom: 12px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--dark-color);
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.site-footer img {
  max-height: 35px;
  filter: brightness(0) invert(1);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
}

/* Scroll Reveal Animation */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: reveal-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}