/* ═══════════════════════════════════════════════════════
   GIOVANNITECH - SCROLL STORYTELLING SITE
   Inspired by Cornrevolution.resn.global aesthetic
   ═══════════════════════════════════════════════════════ */

:root {
  --bg-dark: #0A0A0F;
  --bg-deep: #050507;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --accent-green: #4ADE80;
  --accent-blue: #60A5FA;
  --accent-purple: #A78BFA;
  --accent-amber: #FBBF24;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.15);

  /* Typography — Font Families */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-italic: 'Instrument Serif', 'Times New Roman', serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  /* Legacy alias */
  --font-display: var(--font-primary);

  /* Typography — Modular Scale (1.250 Major Third) */
  --h1-size: clamp(48px, 8vw, 96px);
  --h2-size: clamp(32px, 5vw, 56px);
  --h3-size: clamp(22px, 3vw, 32px);
  --h4-size: clamp(18px, 2vw, 24px);
  --h5-size: clamp(15px, 1.5vw, 18px);
  --h6-size: 14px;
  --p-size: 15px;
  --small-size: 13px;
  --xs-size: 11px;

  /* Typography — Line Heights */
  --line-height-tight: 0.92;
  --line-height-heading: 1.15;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;

  /* Typography — Letter Spacing */
  --letter-spacing-tight: -0.035em;
  --letter-spacing-base: 0;
  --letter-spacing-wide: 0.08em;
  --letter-spacing-widest: 0.18em;

  /* Layout */
  --section-pad-y: 32px;
  --section-pad-x: clamp(20px, 5vw, 80px);
}

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

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

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

/* ───── GRAIN / NOISE OVERLAY ───── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
}

/* ───── TOP NAV ───── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green);
  animation: brandPulse 2s ease-in-out infinite;
}

@keyframes brandPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.top-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
  font-family: var(--font-ui);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.top-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--accent-green);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.top-cta:hover {
  background: var(--accent-green);
  color: var(--bg-dark);
  transform: translateY(-1px);
}

/* ───── SCROLL PROGRESS BAR ───── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 200;
}

.sp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue), var(--accent-purple));
  transition: width 0.1s linear;
}

/* ───── SCROLL DOTS NAVIGATION ───── */
.scroll-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sd-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: block;
}

.sd-dot.active {
  background: var(--text-primary);
  transform: scale(1.4);
}

.sd-label {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sd-dot:hover .sd-label {
  opacity: 1;
}

/* ═══════ SECTIONS BASE ═══════ */
.section {
  position: relative;
  width: 100%;
  padding: var(--section-pad-y) var(--section-pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.section-num {
  position: absolute;
  top: 40px;
  left: var(--section-pad-x);
  font-family: var(--font-italic);
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}

.section-num.green {
  color: rgba(74, 222, 128, 0.08);
}

.section-num.blue {
  color: rgba(96, 165, 250, 0.08);
}

.section-num.amber {
  color: rgba(251, 191, 36, 0.08);
}

.section-title {
  font-size: var(--h2-size);
  font-weight: 800;
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-title .italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
}

.section-title span {
  display: block;
}

/* ═══════ HERO SECTION — KAMUI PREMIUM ═══════ */
.section-hero {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  background: #0A0A0A;
  overflow: hidden;
}

/* ─── Video Background ─── */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.08);
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.45) contrast(1.15) saturate(0.5);
  will-change: transform, opacity;
  transition: opacity 2s ease;
}

.hero-video.loaded {
  opacity: 0.3;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 10, 0.7) 0%,
      rgba(10, 10, 10, 0.15) 35%,
      rgba(10, 10, 10, 0.15) 65%,
      rgba(10, 10, 10, 0.9) 100%);
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

/* ─── Dual ambient glow orbs ─── */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.hero-glow-primary {
  top: 40%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(74, 222, 128, 0.035) 0%, transparent 65%);
  animation: glowFloat 12s ease-in-out infinite;
}

.hero-glow-warm {
  top: 55%;
  left: 60%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.02) 0%, transparent 65%);
  animation: glowFloat 16s ease-in-out infinite reverse;
}

@keyframes glowFloat {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-45%, -55%) scale(1.08);
  }
}

/* ─── Floating particles ─── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: particleFloat var(--dur) linear infinite;
  opacity: 0;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: var(--opacity);
  }

  90% {
    opacity: var(--opacity);
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* ─── Cinematic frame corners ─── */
.hero-frame {
  position: absolute;
  inset: 40px;
  z-index: 3;
  pointer-events: none;
}

.hf-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0;
}

.hf-corner::before,
.hf-corner::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
}

.hf-corner::before {
  width: 24px;
  height: 1px;
}

.hf-corner::after {
  width: 1px;
  height: 24px;
}

.hf-tl {
  top: 0;
  left: 0;
}

.hf-tl::before {
  top: 0;
  left: 0;
}

.hf-tl::after {
  top: 0;
  left: 0;
}

.hf-tr {
  top: 0;
  right: 0;
}

.hf-tr::before {
  top: 0;
  right: 0;
}

.hf-tr::after {
  top: 0;
  right: 0;
}

.hf-bl {
  bottom: 0;
  left: 0;
}

.hf-bl::before {
  bottom: 0;
  left: 0;
}

.hf-bl::after {
  bottom: 0;
  left: 0;
}

.hf-br {
  bottom: 0;
  right: 0;
}

.hf-br::before {
  bottom: 0;
  right: 0;
}

.hf-br::after {
  bottom: 0;
  right: 0;
}

/* ─── Center content container ─── */
.hero-center {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ─── Chip badge ─── */
.hero-chip {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 999px;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(10px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chip-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green), 0 0 12px rgba(74, 222, 128, 0.3);
  animation: chipPulse 2.5s ease-in-out infinite;
}

@keyframes chipPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.25;
    transform: scale(0.5);
  }
}

/* ─── Title ─── */
.hero-title {
  position: relative;
  z-index: 4;
  font-size: clamp(46px, 9.5vw, 128px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-bottom: 0;
  color: var(--text-primary);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 20px rgba(255, 255, 255, 0.05));
}

/* ─── Decorative divider ─── */
.hero-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 28px 0 24px;
  z-index: 4;
  position: relative;
}

/* ─── Subtitle ─── */
.hero-sub {
  position: relative;
  z-index: 4;
  font-size: clamp(11px, 1.2vw, 14px);
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 480px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
}

/* ─── CTA Button ─── */
.hero-cta {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  padding: 16px 36px 16px 40px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(16px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 40px rgba(255, 255, 255, 0.04),
    0 0 80px rgba(74, 222, 128, 0.02);
  transform: translateY(-2px);
}

.hero-cta:hover::before {
  opacity: 1;
}

.cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-cta:hover .cta-arrow {
  background: var(--text-primary);
  color: #0A0A0A;
  transform: translateX(3px);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

/* ─── Scroll hint ─── */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.15);
  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
}

.scroll-arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: -28px;
  left: 0;
  width: 100%;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35));
  animation: scrollHint 3s ease-in-out infinite;
}

@keyframes scrollHint {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(68px);
    opacity: 0;
  }
}

/* ─── Hero responsive premium ─── */
@media (max-width: 768px) {
  .hero-frame {
    inset: 20px;
  }

  .hf-corner {
    width: 16px;
    height: 16px;
  }

  .hf-corner::before {
    width: 16px;
  }

  .hf-corner::after {
    height: 16px;
  }

  .hero-chip {
    margin-bottom: 32px;
    font-size: 9px;
    padding: 7px 16px;
  }

  .hero-title {
    font-size: clamp(40px, 11vw, 80px);
  }

  .hero-divider {
    margin: 22px 0 20px;
  }

  .hero-sub {
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-bottom: 36px;
  }

  .hero-cta {
    padding: 14px 28px 14px 32px;
    font-size: 12px;
  }

  .hero-glow-primary {
    width: 500px;
    height: 500px;
  }

  .hero-glow-warm {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-frame {
    inset: 14px;
  }

  .hero-chip {
    font-size: 8px;
    letter-spacing: 0.15em;
    padding: 6px 14px;
  }

  .hero-title {
    font-size: clamp(36px, 13vw, 60px);
  }

  .hero-sub {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero-cta {
    padding: 13px 24px 13px 28px;
    gap: 10px;
  }

  .hero-scroll-hint {
    bottom: 24px;
  }
}

/* ═══════ SCIENCE SECTION ═══════ */
.section-science {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0F0F1A 50%, var(--bg-dark) 100%);
  padding-top: 32px;
}

.science-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(96, 165, 250, 0.08), transparent 60%);
  pointer-events: none;
}

.science-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.science-tag,
.cie-badge,
.sol-tag,
.human-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.08);
}

.cie-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-green);
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

.sol-tag {
  color: var(--accent-purple);
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.08);
}

.human-tag {
  color: var(--accent-amber);
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

.science-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin: 16px 0;
}

.science-visual {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
}

.screen-mock {
  flex: 1;
  background: #1a1a2e;
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.screen-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #0f0f1a;
  border-bottom: 1px solid var(--border-subtle);
}

.screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.screen-dot.red {
  background: #ff5f57;
}

.screen-dot.yellow {
  background: #ffbd2e;
}

.screen-dot.green {
  background: #28c840;
}

.screen-title {
  margin-left: 12px;
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.screen-body {
  padding: 20px 16px;
  text-align: center;
  background: #f4f4f4;
  color: #1a1a1a;
  font-family: 'Segoe UI', sans-serif;
}

.screen-icon {
  font-size: 32px;
  color: #ff5f57;
  margin-bottom: 12px;
}

.screen-error {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.screen-msg {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.screen-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-green);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
  z-index: 2;
}

.ai-response {
  flex: 1;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.ai-line i {
  color: var(--accent-green);
  font-size: 18px;
  flex-shrink: 0;
}

.science-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.science-lead {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-primary);
  line-height: 1.4;
  font-weight: 500;
}

.science-lead em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-blue);
}

.science-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.science-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.science-list li:last-child {
  border-bottom: none;
}

.li-num {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 24px;
  color: var(--accent-blue);
  flex-shrink: 0;
  width: 40px;
  line-height: 1;
}

.science-list li>span:last-child {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.science-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-box {
  text-align: center;
  flex: 1;
}

.stat-num {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-lbl {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border-subtle);
}

/* ═══════ AI ASSISTANT SECTION ═══════ */
.section-num.purple {
  color: rgba(167, 139, 250, 0.08);
}

.section-assistant {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0D0B14 50%, var(--bg-dark) 100%);
  padding-top: 48px;
  padding-bottom: 48px;
}

.assistant-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 0 auto;
}

.assistant-header {
  text-align: center;
  margin-bottom: 48px;
}

.assistant-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.15);
  color: var(--accent-purple);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: var(--xs-size);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
  animation: chipPulse 2.5s ease-in-out infinite;
}

.assistant-desc {
  color: var(--text-secondary);
  font-size: var(--p-size);
  line-height: var(--line-height-relaxed);
  max-width: 560px;
  margin: 16px auto 0;
}

/* ─── 3x3 Category Grid ─── */
.assistant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 48px;
}

.assist-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.assist-card:hover {
  background: rgba(167, 139, 250, 0.06);
  border-color: rgba(167, 139, 250, 0.2);
  transform: translateX(4px);
}

.assist-emoji {
  font-size: 22px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.assist-info {
  flex: 1;
  min-width: 0;
}

.assist-name {
  font-size: var(--h6-size);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: var(--letter-spacing-base);
  margin-bottom: 2px;
}

.assist-hint {
  font-size: var(--xs-size);
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

.assist-arrow {
  color: var(--text-tertiary);
  font-size: 16px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.assist-card:hover .assist-arrow {
  color: var(--accent-purple);
  transform: translateX(3px);
}

/* ─── CTA ─── */
.assistant-cta-wrap {
  text-align: center;
}

.assistant-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(167, 139, 250, 0.1);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--h6-size);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  cursor: pointer;
  transition: all 0.4s ease;
}

.assistant-cta:hover {
  background: var(--accent-purple);
  color: var(--bg-dark);
  border-color: var(--accent-purple);
  box-shadow: 0 0 32px rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
}

.assistant-note {
  font-size: var(--xs-size);
  color: var(--text-tertiary);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  margin-top: 14px;
}

/* ─── Assistant Responsive ─── */
@media (max-width: 768px) {
  .assistant-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .assist-card { padding: 14px 14px; }
  .assist-emoji { font-size: 20px; width: 28px; }
  .assist-name { font-size: 13px; }
  .assist-hint { font-size: 10px; }
}

@media (max-width: 480px) {
  .assistant-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .assistant-header { margin-bottom: 32px; }
  .assistant-cta { padding: 12px 24px; font-size: 13px; }
}

/* ═══════ CIE SECTION ═══════ */
.section-cie {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0A1A12 50%, var(--bg-dark) 100%);
  padding-top: 32px;
  text-align: center;
}

.cie-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(74, 222, 128, 0.06), transparent 60%);
  pointer-events: none;
}

.cie-marquee {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 0;
  background: rgba(74, 222, 128, 0.05);
  border-bottom: 1px solid rgba(74, 222, 128, 0.15);
  overflow: hidden;
  z-index: 2;
}

.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 24px;
  color: var(--accent-green);
  font-weight: 400;
  letter-spacing: 0.02em;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.cie-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  margin-top: 80px;
}

.cie-title .cie-italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--accent-green), #60A5FA);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cie-lead {
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 16px auto 24px;
  max-width: 600px;
}

.cie-lead em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--accent-green);
  font-weight: 400;
}

.cie-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0 28px;
  text-align: left;
}

.cie-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: rgba(74, 222, 128, 0.03);
  border: 1px solid rgba(74, 222, 128, 0.12);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.cie-step:hover {
  background: rgba(74, 222, 128, 0.06);
  border-color: rgba(74, 222, 128, 0.25);
  transform: translateX(8px);
}

.cs-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-green);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.4);
}

.cs-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.cs-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cie-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-green);
  color: var(--bg-dark);
  border: none;
  cursor: pointer;
  padding: 14px 24px 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cie-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 60px rgba(74, 222, 128, 0.6);
}

.cie-cta .cta-arrow {
  background: var(--bg-dark);
  color: var(--accent-green);
}

/* ═══════ SOLUTIONS SECTION ═══════ */
.section-solutions {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0A0F1F 50%, var(--bg-dark) 100%);
  padding-top: 32px;
}

.solutions-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(167, 139, 250, 0.08), transparent 60%);
  pointer-events: none;
}

.solutions-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.sol-lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 12px 0 24px;
  max-width: 600px;
}

.sol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.sol-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.sol-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, var(--c), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sol-card:hover {
  transform: translateY(-8px);
  border-color: var(--c);
}

.sol-card:hover::before {
  opacity: 0.15;
}

.sc-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--c);
  margin: 0 auto 18px;
  transition: all 0.3s ease;
}

.sol-card:hover .sc-icon {
  background: var(--c);
  color: var(--bg-dark);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 24px var(--c);
}

.sol-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.sol-card p {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.sol-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--accent-purple), #8B5CF6);
  color: white;
  border: none;
  cursor: pointer;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 0 32px rgba(167, 139, 250, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sol-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 48px rgba(167, 139, 250, 0.6);
}

/* ═══════ HUMAN SECTION ═══════ */
.section-human {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1A1408 50%, var(--bg-dark) 100%);
  padding-top: 32px;
}

.human-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(251, 191, 36, 0.08), transparent 60%);
  pointer-events: none;
}

.human-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.human-title .italic {
  background: linear-gradient(135deg, var(--accent-amber), #F97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.human-lead {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 12px 0 24px;
  max-width: 640px;
}

.human-lead em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--accent-amber);
  font-weight: 400;
}

.human-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.human-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.human-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-amber);
  background: rgba(251, 191, 36, 0.04);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hc-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-amber);
}

.human-card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.human-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.hc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--accent-green);
  font-size: 14px;
  font-weight: 700;
}

.hc-arr {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.human-card:hover .hc-arr {
  transform: translateX(6px);
}

.human-promises {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
}

.promise {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.promise i {
  color: var(--accent-amber);
  font-size: 22px;
  flex-shrink: 0;
}

.promise strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ═══════ FOOTER ═══════ */
.footer {
  background: var(--bg-deep);
  padding: 40px var(--section-pad-x) 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  max-width: 320px;
}

.fb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  max-width: 1200px;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ═══════ ANIMATION CLASSES (initial states) ═══════ */
[data-reveal],
[data-reveal-stagger],
[data-reveal-item],
[data-card-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

[data-split-word]:not(.hero-line) {
  opacity: 1;
}

.hero-line {
  /* JS controls opacity via gsap.set, NEVER hidden permanently */
}

[data-fade-in] {
  opacity: 0;
}

/* ═══════ MOBILE RESPONSIVE ═══════ */
@media (max-width: 1024px) {
  .top-links {
    display: none;
  }

  .scroll-dots {
    display: none;
  }

  .science-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sol-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .human-promises {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 20px;
    --section-pad-x: 14px;
  }

  .hero-title {
    font-size: clamp(48px, 14vw, 72px);
  }

  .section-title {
    font-size: clamp(36px, 9vw, 56px);
  }

  .top-nav {
    padding: 14px 18px;
  }

  .top-brand .brand-text {
    font-size: 14px;
  }

  .top-cta span {
    display: none;
  }

  .top-cta {
    padding: 8px;
    width: 36px;
    height: 36px;
    justify-content: center;
  }

  .sol-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sol-card {
    padding: 24px 16px;
  }

  .human-cards {
    grid-template-columns: 1fr;
  }

  .science-stats {
    gap: 24px;
    flex-direction: column;
  }

  .stat-divider {
    display: none;
  }

  .science-visual {
    flex-direction: column;
    gap: 16px;
  }

  .screen-arrow {
    position: relative;
    left: 0;
    top: 0;
    transform: rotate(90deg);
  }

  .footer-content {
    flex-direction: column;
  }

  .cie-marquee span {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .sol-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta,
  .cie-cta,
  .sol-cta {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════
   MODAL — DIAGNOSI AI
   ═══════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 18, 0.98));
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(74, 222, 128, 0.06);
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.modal-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(74, 222, 128, 0.05));
  border: 1px solid rgba(74, 222, 128, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent-green);
  margin-bottom: 16px;
}

.modal-icon.result-icon {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.08));
}

.modal-icon.error-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
  border-color: rgba(239, 68, 68, 0.25);
  color: #EF4444;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Upload Zone */
.upload-zone {
  width: 100%;
  border: 2px dashed var(--border-mid);
  border-radius: 16px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 16px;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent-green);
  background: rgba(74, 222, 128, 0.04);
}

.upload-zone .ti-cloud-upload {
  font-size: 36px;
  color: var(--text-tertiary);
  transition: color 0.3s;
}

.upload-zone:hover .ti-cloud-upload {
  color: var(--accent-green);
}

.upload-zone span {
  font-size: 14px;
  color: var(--text-tertiary);
}

.upload-or {
  font-size: 12px !important;
  color: var(--text-tertiary) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 10px;
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-btn:hover {
  background: rgba(74, 222, 128, 0.18);
}

/* Preview */
.upload-preview {
  position: relative;
  width: 100%;
  max-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-mid);
}

.upload-preview img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
}

.preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.preview-remove:hover {
  background: rgba(239, 68, 68, 0.7);
}

/* Submit Button */
.modal-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-green), #22C55E);
  border: none;
  border-radius: 14px;
  color: #0A0A0F;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.modal-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 222, 128, 0.3);
}

.modal-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.modal-submit.wa-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

/* Result Box */
.result-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Loading Ring */
.loader-ring {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(74, 222, 128, 0.15);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modal mobile */
@media (max-width: 640px) {
  .modal-box {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .modal-title {
    font-size: 18px;
  }

  .result-actions {
    flex-direction: column;
  }

  .modal-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════ CIE WIZARD + TROUBLESHOOTER ═══════ */

.modal-box-lg {
  max-width: 600px;
}

/* Wizard option buttons */
.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.wizard-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.wizard-opt i {
  font-size: 20px;
  color: var(--accent-green);
  flex-shrink: 0;
}

.wizard-opt:hover {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
  transform: translateX(4px);
}

.wizard-opt.selected {
  background: rgba(74, 222, 128, 0.12);
  border-color: var(--accent-green);
}

/* Troubleshooter grid */
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.trouble-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.trouble-cat i {
  font-size: 28px;
  transition: color 0.25s;
}

.trouble-cat h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.trouble-cat span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.trouble-cat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

/* Trouble solution list */
.trouble-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  font-family: var(--font-display);
  align-self: flex-start;
}

.trouble-back:hover {
  text-decoration: underline;
}

.trouble-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
}

.trouble-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.trouble-item.open {
  border-color: var(--border-mid);
}

.trouble-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.2s;
}

.trouble-item-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.trouble-item-header i {
  color: var(--text-tertiary);
  transition: transform 0.3s;
  font-size: 16px;
}

.trouble-item.open .trouble-item-header i {
  transform: rotate(180deg);
}

.trouble-item-body {
  display: none;
  padding: 0 16px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.trouble-item.open .trouble-item-body {
  display: block;
}

.trouble-item-body ol {
  margin: 0;
  padding-left: 20px;
}

.trouble-item-body ol li {
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .trouble-grid {
    grid-template-columns: 1fr;
  }

  .modal-box-lg {
    max-width: 100%;
  }
}

/* ═══════ COOKIE CONSENT BANNER ═══════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 0 20px 20px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  pointer-events: none;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner.hiding {
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.6, -0.28, 0.74, 0.05), opacity 0.3s ease;
}

.cookie-content {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(15, 15, 25, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.cookie-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--accent-amber);
  font-size: 22px;
}

.cookie-text {
  flex: 1;
  min-width: 0;
}

.cookie-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.cookie-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.cookie-accept {
  background: var(--accent-green);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.cookie-accept:hover {
  background: #5eed96;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(74, 222, 128, 0.45);
}

.cookie-decline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.cookie-decline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Cookie banner responsive */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
  }

  .cookie-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 10px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    justify-content: center;
    padding: 11px 14px;
  }
}

@media (max-width: 400px) {
  .cookie-banner {
    padding: 0 12px 12px;
  }

  .cookie-content {
    border-radius: 16px;
    padding: 16px;
  }

  .cookie-desc {
    font-size: 11px;
  }

  .cookie-btn {
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* ═══════ AI ASSISTANT CHAT WIDGET ═══════ */

/* ─── FAB Button ─── */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 13, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.chat-fab:hover {
  transform: scale(1.08);
  border-color: rgba(74, 222, 128, 0.3);
  box-shadow: 0 4px 32px rgba(74, 222, 128, 0.15);
}

.chat-fab-icon,
.chat-fab-close {
  position: absolute;
  transition: all 0.3s ease;
}

.chat-fab-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.chat-fab.active .chat-fab-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.chat-fab.active .chat-fab-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.chat-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.4);
  animation: fabPulse 2.5s ease-in-out infinite;
}

.chat-fab.active .chat-fab-pulse {
  display: none;
}

@keyframes fabPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* ─── Chat Panel ─── */
.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9999;
  width: 400px;
  height: 560px;
  background: rgba(13, 13, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ─── Header ─── */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 18px;
}

.chat-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid rgba(13, 13, 18, 0.95);
  box-shadow: 0 0 6px var(--accent-green);
}

.chat-header-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.chat-header-status {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.chat-header-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.chat-header-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ─── Messages Area ─── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

/* Message bubbles */
.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  animation: msgIn 0.3s ease-out;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  align-self: flex-end;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.15);
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
}

/* Markdown inside messages */
.chat-msg strong {
  color: var(--text-primary);
  font-weight: 600;
}

.chat-msg p {
  margin: 0 0 8px 0;
}

.chat-msg p:last-child {
  margin-bottom: 0;
}

.chat-msg ol,
.chat-msg ul {
  margin: 6px 0;
  padding-left: 20px;
}

.chat-msg li {
  margin-bottom: 4px;
}

/* ─── Welcome + Category Buttons ─── */
.chat-welcome {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.chat-categories {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-cat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  width: 100%;
}

.chat-cat-btn:hover {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.15);
  color: var(--text-primary);
  transform: translateX(4px);
}

.chat-cat-btn .cat-emoji {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ─── Typing Indicator ─── */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px 4px;
  flex-shrink: 0;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ─── Input Area ─── */
.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: none;
  max-height: 100px;
  overflow-y: auto;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.3);
}

.chat-input::placeholder {
  color: var(--text-tertiary);
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-green);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.chat-send:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.chat-send:not(:disabled):hover {
  background: var(--accent-green);
  color: var(--bg-dark);
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.3);
}

/* ─── Chat Responsive ─── */
@media (max-width: 480px) {
  .chat-fab {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .chat-panel {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }

  .chat-panel.open {
    transform: translateY(0) scale(1);
  }
}