/* ═══════════════════════════════════════════════════════════
   main.css — WebKreasiAdhi V3
   Base system: variables, reset, layout, utilities, components
   ═══════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (Design Tokens)
─────────────────────────────────────────────────────────── */
:root {
  /* — Blue Primary Scale — */
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-500: #2563EB;
  --blue-600: #1D4ED8;
  --blue-600: #2563EB;
  --blue-700: #1E40AF;
  --blue-800: #1E3A8A;
  --blue-900: #172554;

  /* — Slate Neutral Scale — */
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* — Accent Colors — */
  --cyan-100: #CFFAFE;
  --cyan-400: #22D3EE;
  --cyan-500: #06B6D4;
  --cyan-600: #0891B2;
  --cyan-700: #0E7490;

  --violet-100: #EDE9FE;
  --violet-500: #8B5CF6;
  --violet-600: #7C3AED;
  --violet-700: #6D28D9;

  --emerald-100: #D1FAE5;
  --emerald-500: #10B981;
  --emerald-600: #059669;

  --amber-100:  #FEF3C7;
  --amber-500:  #F59E0B;
  --amber-600:  #D97706;

  --rose-100: #FFE4E6;
  --rose-500: #F43F5E;

  /* — Semantic Aliases — */
  --color-primary: #1E40AF;
--color-primary-light: #2563EB;
--color-primary-dark: #172554;
--color-primary-bg: #F8FAFC;
--color-primary-ring: #93C5FD;

  --color-accent-cyan:   var(--cyan-500);
  --color-accent-violet: var(--violet-600);
  --color-success:       var(--emerald-500);
  --color-warning:       var(--amber-500);
  --color-danger:        var(--rose-500);

  /* — Page Colors — */
  --color-bg:          #FFFFFF;
  --color-bg-alt:      var(--slate-50);
  --color-bg-card:     #FFFFFF;
  --color-bg-card-hover: var(--blue-50);
  --color-surface:     var(--slate-100);

  --color-text-heading: var(--slate-900);
  --color-text-body:    var(--slate-600);
  --color-text-muted:   var(--slate-400);
  --color-text-inverse: #FFFFFF;

  --color-border:       var(--slate-200);
  --color-border-focus: var(--blue-300);

  /* — Glassmorphism — */
  --glass-bg:          rgba(255, 255, 255, 0.72);
  --glass-bg-heavy:    rgba(255, 255, 255, 0.96);
  --glass-border:      rgba(37, 99, 235, 0.10);
  --glass-border-alt:  rgba(37, 99, 235, 0.16);
  --glass-blur:        blur(16px) saturate(180%);
  --glass-blur-heavy:  blur(20px) saturate(200%);
  --glass-shadow:      0 8px 32px rgba(37, 99, 235, 0.08);

  /* — Nav — */
  --nav-bg-top:        rgba(255, 255, 255, 0.72);
  --nav-bg-scrolled:   rgba(255, 255, 255, 0.95);
  --nav-border:        rgba(37, 99, 235, 0.08);
  --nav-height:        72px;
  --nav-height-scroll: 64px;

  /* — Shadows — */
  --shadow-xs:   0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm:   0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md:   0 4px 16px rgba(15, 23, 42, 0.10);
  --shadow-lg:   0 8px 32px rgba(15, 23, 42, 0.12);
  --shadow-xl:   0 16px 48px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 2px 8px rgba(37, 99, 235, 0.06), 0 0 0 1px rgba(37, 99, 235, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(37, 99, 235, 0.14), 0 0 0 1px rgba(37, 99, 235, 0.10);
  --shadow-nav:  0 2px 20px rgba(15, 23, 42, 0.06);
  --shadow-megamenu: 0 16px 48px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.08);
  --shadow-btn:  0 4px 14px rgba(37, 99, 235, 0.30);
  --shadow-btn-hover: 0 6px 20px rgba(37, 99, 235, 0.40);

  /* — Border Radius — */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-pill: 9999px;

  /* — Spacing Scale — */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* — Typography — */
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-code:    'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   20px;
  --text-2xl:  24px;
  --text-3xl:  30px;
  --text-4xl:  36px;
  --text-5xl:  48px;
  --text-6xl:  56px;
  --text-7xl:  72px;

  --leading-tight:  1.1;
  --leading-snug:   1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --tracking-tight:  -0.025em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.08em;

  /* — Transitions — */
  --ease-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast:   150ms;
  --duration-normal: 250ms;
  --duration-slow:   400ms;

  --transition-base:    var(--duration-normal) var(--ease-out);
  --transition-fast:    var(--duration-fast)   var(--ease-out);
  --transition-slow:    var(--duration-slow)   var(--ease-out);
  --transition-spring:  var(--duration-slow)   var(--ease-spring);

  /* — Z-Index Scale — */
  --z-base:     1;
  --z-card:     10;
  --z-dropdown: 100;
  --z-nav:      200;
  --z-mobile:   300;
  --z-overlay:  400;
  --z-toast:    500;

  /* — Layout — */
  --container-max:  1200px;
  --container-wide: 1400px;
  --container-px:   clamp(16px, 5vw, 48px);

  --section-py: clamp(var(--space-16), 8vw, var(--space-32));
}


/* ───────────────────────────────────────────────────────────
   2. RESET & BASE
─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* Scroll padding for sticky nav */
html {
  scroll-padding-top: var(--nav-height);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

canvas {
  display: block;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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


/* ───────────────────────────────────────────────────────────
   3. ACCESSIBILITY
─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: calc(var(--z-toast) + 10);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible ring */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ───────────────────────────────────────────────────────────
   4. LAYOUT — Container & Grid System
─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--wide {
  max-width: var(--container-wide);
}

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

/* ─── Section Base ─── */
.section {
  padding-block: var(--section-py);
  position: relative;
  overflow: hidden;
}

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

/* ─── Section Header ─── */
.section__header {
  text-align: center;
  margin-bottom: clamp(var(--space-12), 5vw, var(--space-20));
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(var(--space-12), 5vw, var(--space-20));
}

.section__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
  border: 1px solid var(--blue-200);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-heading);
  margin-bottom: var(--space-4);
}

.section__title-highlight {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin-inline: auto;
}

/* ─── Bottom CTA ─── */
.section__bottom-cta {
  text-align: center;
  margin-top: clamp(var(--space-12), 5vw, var(--space-16));
  padding: var(--space-8) var(--space-6);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-xl);
}

.section__bottom-cta p {
  color: var(--color-text-body);
  margin-bottom: var(--space-4);
}

.section__bottom-cta strong {
  color: var(--color-text-heading);
  font-weight: 600;
}


/* ───────────────────────────────────────────────────────────
   5. TYPOGRAPHY UTILITIES
─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.text-gradient {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted   { color: var(--color-text-muted); }
.text-body    { color: var(--color-text-body); }
.text-heading { color: var(--color-text-heading); }
.text-primary { color: var(--color-primary); }
.text-center  { text-align: center; }
.text-sm      { font-size: var(--text-sm); }
.text-xs      { font-size: var(--text-xs); }
.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }


/* ───────────────────────────────────────────────────────────
   6. BUTTON SYSTEM
─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary */
.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
  color: white;
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--blue-300);
}

.btn--outline:hover {
  background: var(--blue-50);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--slate-600);
  border-color: var(--slate-200);
}

.btn--ghost:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--slate-800);
}

/* White (untuk section berwarna) */
.btn--white {
  background: white;
  color: var(--color-primary);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  background: var(--blue-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: var(--color-primary-dark);
}

/* Sizes */
.btn--sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 14px 32px;
  font-size: var(--text-base);
}

.btn--xl {
  padding: 16px 40px;
  font-size: var(--text-lg);
}

.btn--full {
  width: 100%;
}

/* Icon within button */
.btn svg,
.btn .btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--lg svg,
.btn--xl svg {
  width: 18px;
  height: 18px;
}


/* ───────────────────────────────────────────────────────────
   7. BADGE / CHIP SYSTEM
─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  line-height: 1.5;
  white-space: nowrap;
}

.badge--blue     { background: var(--blue-100);    color: var(--blue-700);    border: 1px solid var(--blue-200); }
.badge--cyan     { background: var(--cyan-100);    color: var(--cyan-700);    border: 1px solid rgba(6,182,212,0.2); }
.badge--violet   { background: var(--violet-100);  color: var(--violet-700);  border: 1px solid rgba(124,58,237,0.2); }
.badge--emerald  { background: var(--emerald-100); color: var(--emerald-600); border: 1px solid rgba(16,185,129,0.2); }
.badge--amber    { background: var(--amber-100);   color: var(--amber-600);   border: 1px solid rgba(245,158,11,0.2); }
.badge--slate    { background: var(--slate-100);   color: var(--slate-600);   border: 1px solid var(--slate-200); }


/* ───────────────────────────────────────────────────────────
   8. CARD BASE SYSTEM
─────────────────────────────────────────────────────────── */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition:
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--blue-200);
  transform: translateY(-2px);
}

.card--glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.card--highlighted {
  border-color: var(--blue-300);
  background: linear-gradient(135deg, var(--blue-50), white);
  box-shadow: var(--shadow-card);
}

.card--highlighted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Card Icon */
.card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-100);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.card__icon-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.card__tagline {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.card__description {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
}

/* Checklist features */
.card__features {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card__feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: 1.5;
}

.card__feature-item::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--emerald-100);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23059669' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  flex-shrink: 0;
  margin-top: 1px;
}


/* ───────────────────────────────────────────────────────────
   9. DIVIDER
─────────────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-6);
}

.divider--blue {
  background: linear-gradient(90deg, transparent, var(--blue-200), transparent);
}


/* ───────────────────────────────────────────────────────────
   10. ANIMATION UTILITIES
─────────────────────────────────────────────────────────── */

/* Fade-in on scroll (controlled by IntersectionObserver in app.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

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

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }
.reveal--delay-5 { transition-delay: 500ms; }

/* Scale in */
.reveal--scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-spring);
}

.reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.stagger-children.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.stagger-children.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 100ms; }
.stagger-children.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 200ms; }
.stagger-children.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 300ms; }
.stagger-children.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 400ms; }
.stagger-children.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 500ms; }


/* ───────────────────────────────────────────────────────────
   11. FLOATING WHATSAPP BUTTON
─────────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-toast);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.40);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  text-decoration: none;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.50);
  color: white;
}

/* Pulse ring animation */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  animation: wa-pulse 2.5s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.4; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}


/* ───────────────────────────────────────────────────────────
   12. BACK TO TOP BUTTON
─────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: var(--z-toast);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: var(--color-primary);
  border: 1.5px solid var(--blue-200);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal),
    box-shadow var(--transition-fast);
  cursor: pointer;
  opacity: 0;
}

.back-to-top:not([hidden]) {
  opacity: 1;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary);
}


/* ───────────────────────────────────────────────────────────
   13. FOOTER
─────────────────────────────────────────────────────────── */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding-top: var(--space-20);
  padding-bottom: var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-3);
}

.footer__brand-tagline {
  font-size: var(--text-sm);
  color: var(--slate-400);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
  text-decoration: none;
}

.footer__social-link:hover {
  background: var(--blue-600);
  color: white;
  border-color: transparent;
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer__link-group-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-4);
}

.footer__link-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link-item a {
  font-size: var(--text-sm);
  color: var(--slate-400);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.6;
}

.footer__link-item a:hover {
  color: white;
}

.footer__contact-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-4);
}

.footer__contact-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--blue-400, #60A5FA);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copy,
.footer__credit {
  font-size: var(--text-sm);
  color: var(--slate-500);
}

.footer__credit strong {
  color: var(--slate-300);
}


/* ───────────────────────────────────────────────────────────
   14. FORM ELEMENTS
─────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

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

.form-label--required::after {
  content: ' *';
  color: var(--rose-500);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-heading);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--slate-400);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.form-input.is-error,
.form-textarea.is-error {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.10);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--rose-500);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}


/* ───────────────────────────────────────────────────────────
   15. UTILITY HELPERS
─────────────────────────────────────────────────────────── */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

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

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-50) 50%, var(--slate-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--blue-100);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Counter animation target */
.counter-value {
  font-variant-numeric: tabular-nums;
}


/* ───────────────────────────────────────────────────────────
   16. THREE.JS CANVAS POSITIONING
─────────────────────────────────────────────────────────── */

/* Background particle canvas — fixed, behind everything */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* Fade particles saat scroll ke bawah (added by app.js) */
#hero-canvas.is-faded {
  opacity: 0.12;
}

/* Hero 3D floating objects canvas */
#hero-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius-xl);
}

/* Semua section harus di atas canvas background */
.section        { position: relative; z-index: 1; }
#site-header    { z-index: var(--z-nav); }
.whatsapp-float { z-index: var(--z-toast); }
.back-to-top    { z-index: var(--z-toast); }
.footer         { position: relative; z-index: 1; }

/* Section dengan bg putih block particle dari terlihat */
.section--services,
.section--portfolio,
.section--about,
.section--contact {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.section--alt {
  background: rgba(248, 250, 252, 0.97);
}

/* Hero section — transparan agar partikel terlihat */
.section--hero {
  background: transparent;
}

/* Solution section — sedikit transparan */
.section--solution {
  background: rgba(255, 255, 255, 0.98);
}
