/* =============================================================================
   AIGen.my — custom.css
   Theme: White / Light — Clean, Professional, Official
   Stack: Vanilla CSS, BEM naming, CSS custom properties
   Mode: SEO (no hidden content, no GSAP artifacts, no CLS triggers)
   ============================================================================= */

/* =============================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================= */

:root {
  /* — Backgrounds — */
  --bg-base:        #FFFFFF;          /* Page background */
  --bg-subtle:      #F8F9FC;          /* Alternate section bg */
  --bg-muted:       #F1F4F9;          /* Cards, inputs */
  --bg-dark:        #0D1117;          /* Footer, dark contrast sections */
  --bg-dark-card:   #161B27;          /* Cards on dark sections */

  /* — Brand — */
  --color-brand:        #1A6BFF;      /* Primary blue */
  --color-brand-dark:   #1050CC;      /* Hover on brand */
  --color-brand-light:  #EBF2FF;      /* Brand tint for tags/badges */
  --color-brand-glow:   rgba(26, 107, 255, 0.12);

  /* — Text — */
  --color-text-primary:   #0D1117;    /* Headlines */
  --color-text-body:      #374151;    /* Body text */
  --color-text-muted:     #6B7280;    /* Captions, meta */
  --color-text-faint:     #9CA3AF;    /* Placeholders, disabled */
  --color-text-inverse:   #FFFFFF;    /* Text on dark bg */
  --color-text-inverse-muted: rgba(255,255,255,0.6);

  /* — Borders — */
  --color-border:         #E5E7EB;    /* Light borders */
  --color-border-strong:  #D1D5DB;    /* Inputs, focused */
  --color-border-dark:    rgba(255,255,255,0.08); /* Borders on dark bg */

  /* — Status — */
  --color-success:  #059669;
  --color-warning:  #D97706;
  --color-error:    #DC2626;

  /* — Typography — */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* — Type Scale (fluid with clamp) — */
  --text-xs:    0.75rem;      /* 12px */
  --text-sm:    0.875rem;     /* 14px */
  --text-base:  1rem;         /* 16px */
  --text-lg:    1.125rem;     /* 18px */
  --text-xl:    1.25rem;      /* 20px */
  --text-2xl:   1.5rem;       /* 24px */
  --text-h3:    clamp(1.25rem, 2vw, 1.5rem);
  --text-h2:    clamp(1.5rem, 3vw, 2.25rem);
  --text-h1:    clamp(2.25rem, 5vw, 3.5rem);
  --text-hero:  clamp(2.75rem, 6vw, 4.5rem);

  /* — Spacing Scale — */
  --sp-1:   0.25rem;   /* 4px  */
  --sp-2:   0.5rem;    /* 8px  */
  --sp-3:   0.75rem;   /* 12px */
  --sp-4:   1rem;      /* 16px */
  --sp-5:   1.25rem;   /* 20px */
  --sp-6:   1.5rem;    /* 24px */
  --sp-8:   2rem;      /* 32px */
  --sp-10:  2.5rem;    /* 40px */
  --sp-12:  3rem;      /* 48px */
  --sp-16:  4rem;      /* 64px */
  --sp-20:  5rem;      /* 80px */
  --sp-24:  6rem;      /* 96px */

  /* — Layout — */
  --container-max: 1200px;
  --nav-height:    72px;

  /* — Radius — */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* — Shadows — */
  --shadow-xs:  0 1px 3px rgba(13,17,23,0.06);
  --shadow-sm:  0 2px 8px rgba(13,17,23,0.08);
  --shadow-md:  0 4px 20px rgba(13,17,23,0.10);
  --shadow-lg:  0 8px 40px rgba(13,17,23,0.12);
  --shadow-brand: 0 4px 24px rgba(26, 107, 255, 0.2);

  /* — Transitions — */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* =============================================================================
   2. RESET & BASE
   ============================================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
}

/* Reduced motion — accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================================
   3. SCROLLBAR
   ============================================================================= */

::-webkit-scrollbar { width: 6px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-brand); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-brand-dark); }

/* =============================================================================
   4. TYPOGRAPHY
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.01em; }

p { margin-bottom: 0; }

/* =============================================================================
   5. LAYOUT — CONTAINER & SECTIONS
   ============================================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

@media (min-width: 1024px) {
  .container { padding-inline: var(--sp-8); }
}

.section {
  padding-block: var(--sp-20);
}

.section--sm {
  padding-block: var(--sp-12);
}

.section--lg {
  padding-block: var(--sp-24);
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--color-text-inverse);
}

.section--subtle {
  background-color: var(--bg-subtle);
}

/* =============================================================================
   6. NAVIGATION
   ============================================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.98);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-img {
  height: 36px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
}

.nav__logo-text span {
  color: var(--color-brand);
}

/* Footer logo override for dark backgrounds */
.site-footer .nav__logo-text {
  color: #FFFFFF;
}

/* Desktop nav links */
.nav__links {
  display: none;
  align-items: center;
  gap: var(--sp-8);
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-body);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-brand);
}

.nav__link--active {
  color: var(--color-brand);
}

/* Nav actions */
.nav__actions {
  display: none;
  align-items: center;
  gap: var(--sp-3);
}

@media (min-width: 768px) {
  .nav__actions { display: flex; }
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-body);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.nav__hamburger:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

@media (min-width: 768px) {
  .nav__hamburger { display: none; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--bg-base);
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-10);
}

.mobile-menu__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-body);
  cursor: pointer;
  font-size: var(--text-lg);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-primary);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover { color: var(--color-brand); }

.mobile-menu__footer {
  margin-top: auto;
  padding-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* =============================================================================
   7. BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.65rem var(--sp-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; }

/* Primary */
.btn--primary {
  background-color: var(--color-brand);
  color: #fff;
}
.btn--primary:hover {
  background-color: var(--color-brand-dark);
  box-shadow: var(--shadow-brand);
}

/* Secondary (outline) */
.btn--secondary {
  background-color: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn--secondary:hover {
  background-color: var(--color-brand);
  color: #fff;
}

/* Ghost */
.btn--ghost {
  background-color: transparent;
  color: var(--color-text-body);
  border-color: var(--color-border-strong);
}
.btn--ghost:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

/* Text link button */
.btn--text {
  background: none;
  border: none;
  color: var(--color-brand);
  padding-inline: 0;
  font-weight: 500;
}
.btn--text:hover { text-decoration: underline; transform: none; }

/* Size variants */
.btn--sm { padding: 0.5rem var(--sp-4); font-size: var(--text-xs); }
.btn--lg { padding: 0.875rem var(--sp-8); font-size: var(--text-base); }

/* On dark backgrounds */
.btn--dark-primary {
  background-color: var(--color-brand);
  color: #fff;
}
.btn--dark-primary:hover {
  background-color: var(--color-brand-dark);
  box-shadow: var(--shadow-brand);
}

.btn--dark-ghost {
  background-color: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(255,255,255,0.25);
}
.btn--dark-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background-color: rgba(255,255,255,0.05);
}

/* =============================================================================
   8. SECTION HEADER (Reusable)
   ============================================================================= */

.section-header {
  max-width: 640px;
  margin-bottom: var(--sp-12);
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  background-color: var(--color-brand-light);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

/* Dark variant of label */
.section--dark .section-label {
  background-color: rgba(26, 107, 255, 0.2);
  color: #7AADFF;
}

.section-title {
  font-size: var(--text-h2);
  margin-bottom: var(--sp-4);
}

/* On dark sections */
.section--dark .section-title {
  color: var(--color-text-inverse);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.section--dark .section-subtitle {
  color: var(--color-text-inverse-muted);
}

/* =============================================================================
   9. CARDS
   ============================================================================= */

.card {
  background-color: var(--bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-brand);
  transform: translateY(-3px);
}

/* Dark card */
.card--dark {
  background-color: var(--bg-dark-card);
  border-color: var(--color-border-dark);
}

.card--dark:hover {
  border-color: rgba(26, 107, 255, 0.5);
}

/* Feature card icon */
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  font-size: var(--text-xl);
}

.card__icon--blue  { background-color: var(--color-brand-light); color: var(--color-brand); }
.card__icon--dark  { background-color: rgba(26, 107, 255, 0.15); color: #7AADFF; }

.card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

.card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.card--dark .card__title {
  color: var(--color-text-inverse);
}

.card--dark .card__body {
  color: var(--color-text-inverse-muted);
}

/* =============================================================================
   10. FORMS
   ============================================================================= */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-body);
}

.form-input {
  width: 100%;
  padding: 0.65rem var(--sp-4);
  background-color: var(--bg-base);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(26, 107, 255, 0.1);
}

.form-input::placeholder {
  color: var(--color-text-faint);
}

/* =============================================================================
   11. GRIDS
   ============================================================================= */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

@media (min-width: 768px)  { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================================
   12. DIVIDER
   ============================================================================= */

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--sp-6);
}

.divider--dark {
  border-top-color: var(--color-border-dark);
}

/* =============================================================================
   13. BADGE / TAG
   ============================================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge--brand {
  background-color: var(--color-brand-light);
  color: var(--color-brand);
}

.badge--dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* On dark backgrounds */
.section--dark .badge--brand {
  background-color: rgba(26, 107, 255, 0.2);
  color: #7AADFF;
}

/* =============================================================================
   14. SCROLL ANIMATIONS (Intersection Observer triggered)
   ============================================================================= */

/* Elements start invisible, JS adds .is-visible to fire transition */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay utility classes */
.fade-in--delay-1 { transition-delay: 0.1s; }
.fade-in--delay-2 { transition-delay: 0.2s; }
.fade-in--delay-3 { transition-delay: 0.3s; }
.fade-in--delay-4 { transition-delay: 0.4s; }

/* =============================================================================
   15. FOOTER
   ============================================================================= */

.site-footer {
  background-color: var(--bg-dark);
  color: var(--color-text-inverse-muted);
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: var(--sp-4);
  max-width: 280px;
  color: var(--color-text-inverse-muted);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-inverse-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-text-inverse);
}

.footer__bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-text-inverse-muted);
}

.footer__social {
  display: flex;
  gap: var(--sp-4);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-inverse-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.footer__social-link:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

/* =============================================================================
   16. MODAL
   ============================================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background-color: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background-color: var(--bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.97);
  transition: transform var(--transition-base);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}

.modal__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: var(--text-base);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.modal__close:hover {
  background: var(--color-border-strong);
  color: var(--color-text-primary);
}

/* Social login buttons inside modal */
.social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 0.75rem var(--sp-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.social-btn--google {
  background-color: #fff;
  color: #374151;
}
.social-btn--google:hover { background-color: var(--bg-muted); }

.social-btn--facebook {
  background-color: #1877F2;
  color: #fff;
  border-color: #1877F2;
}
.social-btn--facebook:hover { background-color: #1560CF; }

/* Divider with text */
.or-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-block: var(--sp-5);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* =============================================================================
   17. HERO SECTION
   ============================================================================= */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-20);
  overflow: hidden;
  background-color: var(--bg-base);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: var(--sp-6);
}

.hero__title .highlight {
  color: var(--color-brand);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-10);
  max-width: 600px;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.hero__notice {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  line-height: 1.6;
}

.hero__notice a {
  color: var(--color-brand);
  text-decoration: underline;
}

/* Decorative background pattern */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.hero__bg-circle--1 {
  width: 600px;
  height: 600px;
  background: rgba(26, 107, 255, 0.08);
  top: -200px;
  right: -150px;
}

.hero__bg-circle--2 {
  width: 400px;
  height: 400px;
  background: rgba(26, 107, 255, 0.05);
  bottom: -100px;
  left: -100px;
}

/* =============================================================================
   18. UTILITY HELPERS
   ============================================================================= */

.text-brand   { color: var(--color-brand); }
.text-muted   { color: var(--color-text-muted); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }

.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: var(--sp-2); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-12 { margin-bottom: var(--sp-12); }

.mt-auto { margin-top: auto; }

.w-full    { width: 100%; }
.flex      { display: flex; }
.flex-col  { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* =============================================================================
   19. HERO SLIDER (GSAP-powered, section-scoped — does NOT hijack page scroll)
   ============================================================================= */

/* ── Slider Container ─────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #0D1117; /* fallback while BG images load */
}

/* Slide track — holds all slides stacked in same position */
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── Individual Slide ─────────────────────────────────── */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* GSAP manages visibility — start hidden, first slide shown via JS */
  visibility: hidden;
  z-index: 0;
}

.slide.is-active {
  visibility: visible;
  z-index: 1;
}

/* ── Outer & Inner wrappers for parallax wipe effect ──── */
/* Mirrors the SliderReference .outer / .inner pattern */
.slide__outer,
.slide__inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ── Background Image Layer ───────────────────────────── */
.slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform; /* GSAP parallax */
}

/* ── Dark Overlays ────────────────────────────────────── */

/* Slide 1, 2, 5, 6: 60% opacity black fade in the middle */
.slide__overlay--full {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      transparent 0%,
      rgba(0,0,0,0.6) 25%,
      rgba(0,0,0,0.6) 75%,
      transparent 100%
    );
}

/* Slide 4: bottom panel fade — fades from black bottom edge to top */
.slide__overlay--bottom {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.4) 30%,
      transparent 100%
    );
}

/* Slide 2, 3: right-half panel — fade from left edge to right */
.slide__overlay--right-panel {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(13,17,23,0.0)  0%,
      rgba(13,17,23,0.0) 40%,
      rgba(13,17,23,0.82) 55%,
      rgba(13,17,23,0.92) 100%
    );
}

/* Slide 4: no overlay class (no dark bg) */

/* ── Layout: Full-width center ────────────────────────── */
.slide__layout {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.slide__layout--center {
  justify-content: center;
  padding-inline: var(--sp-6);
}

.slide__layout--center .slide__content {
  text-align: center;
  max-width: 760px;
}

/* ── Layout: Bottom-aligned center ────────────────────── */
.slide__layout--bottom {
  justify-content: center;
  align-items: flex-end;
  padding-bottom: clamp(var(--sp-8), 10vh, var(--sp-20));
  padding-inline: var(--sp-6);
}

.slide__layout--bottom .slide__content {
  text-align: center;
  max-width: 760px;
}

/* ── Layout: Right 50% panel ──────────────────────────── */
.slide__layout--right {
  justify-content: flex-end;
  padding-inline: 0;
}

.slide__layout--right .slide__content {
  width: 50%;
  text-align: center;
  padding: var(--sp-12) var(--sp-10);
}

@media (max-width: 768px) {
  .slide__layout--right {
    justify-content: center;
    padding-inline: var(--sp-6);
  }
  .slide__layout--right .slide__content {
    width: 100%;
    padding: var(--sp-8) 0;
    text-align: center;
    background: rgba(13,17,23,0.75);
    border-radius: var(--radius-lg);
  }
}

/* ── Slide Text Styles ────────────────────────────────── */
.slide__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  /* GSAP fade-in — starts hidden */
  opacity: 0;
  transform: translateY(12px);
}

.slide__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: var(--sp-5);
  text-shadow: 0 4px 16px rgba(0,0,0,0.6);
  /* GSAP SplitText handles per-char animation — set on chars, not parent */
}

/* Each character wrapped by SplitText gets this treatment via GSAP */
.slide__title .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Clip wrapper that SplitText creates for lines */
.clip-text {
  overflow: hidden;
}

.slide__desc {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
  margin-bottom: var(--sp-6);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  /* GSAP fade — starts hidden */
  opacity: 0;
  transform: translateY(16px);
}

.slide__desc strong {
  color: #FFFFFF;
  font-weight: 600;
}

.slide__notice {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-6);
  opacity: 0;
  transform: translateY(10px);
}

.slide__notice a {
  color: var(--color-brand);
  text-decoration: underline;
}

.slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
}

.slide__layout--right .slide__actions {
  justify-content: center;
}

/* Button on slider (light version for dark bg) */
.slide__btn {
  background-color: var(--color-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26,107,255,0.35);
}

.slide__btn:hover {
  background-color: var(--color-brand-dark);
  box-shadow: 0 6px 28px rgba(26,107,255,0.5);
}

/* ── Navigation Dots ──────────────────────────────────── */
.slider-dots {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-2);
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-base), width var(--transition-base);
}

.slider-dot.is-active {
  background: #FFFFFF;
  width: 24px; /* elongated active dot */
}

.slider-dot:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

/* ── Prev / Next Arrows ───────────────────────────────── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  cursor: pointer;
  font-size: var(--text-base);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.slider-arrow:hover {
  background: rgba(26,107,255,0.5);
  border-color: var(--color-brand);
}

.slider-arrow--prev { left: var(--sp-6); }
.slider-arrow--next { right: var(--sp-6); }

@media (max-width: 480px) {
  .slider-arrow { display: none; } /* Too crowded on small phones */
}

/* ── Scroll Hint ──────────────────────────────────────── */
.slider-scroll-hint {
  position: absolute;
  bottom: var(--sp-6);
  right: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.4);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 10;
  animation: bounce-fade 2s ease-in-out infinite;
}

@keyframes bounce-fade {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50%       { opacity: 0.8; transform: translateY(-4px); }
}

/* ── Remove old static hero (replaced by slider) ─────── */
.hero {
  /* Override: hero section now replaced by .hero-slider */
  display: none;
}

/* =============================================================================
   20. WORDPRESS TYPOGRAPHY (.wp-content)
   ============================================================================= */

.container--narrow {
  max-width: 800px;
  margin-inline: auto;
}

.wp-content {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-body);
}

.wp-content > * + * {
  margin-top: 1.5em;
}

.wp-content h1,
.wp-content h2,
.wp-content h3,
.wp-content h4,
.wp-content h5,
.wp-content h6 {
  color: var(--color-text-primary);
  margin-top: 2em;
  margin-bottom: 0.75em;
  font-weight: 700;
  line-height: 1.3;
}

.wp-content h1 { font-size: 2.25em; }
.wp-content h2 { font-size: 1.75em; }
.wp-content h3 { font-size: 1.375em; }
.wp-content h4 { font-size: 1.125em; }

.wp-content a {
  color: var(--color-brand);
  text-decoration: underline;
  text-decoration-color: var(--color-brand-light);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.wp-content a:hover {
  text-decoration-color: var(--color-brand);
  color: var(--color-brand-dark);
}

.wp-content ul,
.wp-content ol {
  padding-left: 1.25em;
  margin-bottom: 1.25em;
}

.wp-content ul { list-style-type: disc; }
.wp-content ol { list-style-type: decimal; }

.wp-content li { margin-bottom: 0.5em; }
.wp-content li > ul,
.wp-content li > ol {
  margin-top: 0.5em;
  margin-bottom: 0;
}

.wp-content blockquote {
  border-left: 4px solid var(--color-brand);
  padding-left: 1.25em;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
  color: var(--color-text-muted);
  background: var(--bg-subtle);
  padding: 1.25em;
  border-radius: var(--radius-sm);
}

.wp-content img,
.wp-content figure,
.wp-content video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-block: 2em;
}

.wp-content figcaption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 0.75em;
}

.wp-content pre {
  background: var(--bg-dark);
  color: var(--color-text-inverse);
  padding: 1.25em;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: monospace;
  font-size: var(--text-sm);
  margin-bottom: 1.5em;
}

.wp-content code {
  background: var(--bg-muted);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
  font-family: monospace;
  color: var(--color-text-primary);
}

.wp-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 1em;
}
