/* =====================================================================
   CACAOLOOK — Design System 2026
   Tema: Cacao (brown) + Emerald + Sky. Dark/Light otomatis.
   ===================================================================== */

:root {
  --brand-50: #fdf6ee;
  --brand-100: #f8e8d4;
  --brand-200: #efcfaa;
  --brand-300: #e3b078;
  --brand-400: #d68f4c;
  --brand-500: #c8732e;
  --brand-600: #a85a24;
  --brand-700: #85451f;
  --brand-800: #63341b;
  --brand-900: #452516;

  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, .14);
  --sky: #38bdf8;
  --violet: #8b5cf6;
  --rose: #fb7185;
  --amber: #f59e0b;

  --bg: #f6f4f0;
  --bg-soft: #efece6;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --surface-glass: rgba(255, 255, 255, .72);
  --border: rgba(69, 37, 22, .10);
  --border-strong: rgba(69, 37, 22, .18);
  --text: #2b1d14;
  --text-soft: #6b5a4e;
  --text-muted: #9a8a7c;
  --shadow-sm: 0 1px 2px rgba(43, 29, 20, .06), 0 2px 8px rgba(43, 29, 20, .05);
  --shadow: 0 10px 30px -12px rgba(43, 29, 20, .18), 0 4px 12px rgba(43, 29, 20, .06);
  --shadow-lg: 0 30px 60px -20px rgba(43, 29, 20, .28), 0 10px 24px rgba(43, 29, 20, .08);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --sidebar-w: 272px;
  --topbar-h: 68px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --grad-brand: linear-gradient(135deg, #c8732e 0%, #8b5cf6 55%, #10b981 100%);
  --grad-hero: radial-gradient(1200px 600px at 10% -10%, rgba(200, 115, 46, .22), transparent 60%),
               radial-gradient(900px 500px at 90% 0%, rgba(139, 92, 246, .18), transparent 55%),
               radial-gradient(800px 500px at 50% 110%, rgba(16, 185, 129, .16), transparent 60%);
}

[data-theme="dark"] {
  --bg: #0e0b09;
  --bg-soft: #15110d;
  --surface: #191410;
  --surface-2: #1f1914;
  --surface-glass: rgba(25, 20, 16, .66);
  --border: rgba(255, 240, 225, .09);
  --border-strong: rgba(255, 240, 225, .16);
  --text: #f6ede4;
  --text-soft: #c9b8a8;
  --text-muted: #8f7d6d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 40px -16px rgba(0, 0, 0, .7), 0 4px 12px rgba(0, 0, 0, .35);
  --shadow-lg: 0 40px 80px -28px rgba(0, 0, 0, .8);
  --accent-soft: rgba(16, 185, 129, .16);
  --grad-hero: radial-gradient(1200px 600px at 10% -10%, rgba(200, 115, 46, .28), transparent 60%),
               radial-gradient(900px 500px at 90% 0%, rgba(139, 92, 246, .24), transparent 55%),
               radial-gradient(800px 500px at 50% 110%, rgba(16, 185, 129, .2), transparent 60%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background .35s var(--ease), color .35s var(--ease);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(200, 115, 46, .25); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

/* ---------------------------------------------------------------- Layout */
.cl-shell { min-height: 100vh; display: flex; }
.cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: var(--sidebar-w); transition: margin .35s var(--ease); }

.cl-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 60;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px;
  transition: transform .4s var(--ease), background .35s var(--ease);
}
.cl-sidebar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 0% 100%, rgba(200,115,46,.10), transparent 60%);
}
.cl-brand { display: flex; align-items: center; gap: 12px; padding: 8px 10px 20px; position: relative; }
.cl-brand-mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: linear-gradient(150deg, #3a2513, #1d1208); color: #fff; font-weight: 800; font-size: 19px;
  box-shadow: 0 10px 22px -8px rgba(200, 115, 46, .7), inset 0 0 0 1px rgba(247, 224, 0, .28);
  transform-style: preserve-3d;
}
.cl-brand-mark img { width: 27px; height: 27px; display: block; }
.cl-net-status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; padding: 3px 9px; border-radius: 999px;
}
.cl-net-status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cl-net-status[data-state="online"] { color: #0b7a55; background: rgba(16, 185, 129, .14); }
.cl-net-status[data-state="offline"] { color: #b45309; background: rgba(245, 158, 11, .18); }
[data-theme="dark"] .cl-net-status[data-state="online"] { color: #6ee7b7; }
[data-theme="dark"] .cl-net-status[data-state="offline"] { color: #fbbf24; }
.cl-brand-name { font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.cl-brand-sub { font-size: 11px; color: var(--text-muted); letter-spacing: .16em; text-transform: uppercase; }

.cl-nav { position: relative; overflow-y: auto; flex: 1; padding-right: 4px; margin-top: 4px; }
.cl-nav::-webkit-scrollbar { width: 6px; }
.cl-nav-cap { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); padding: 18px 12px 8px; font-weight: 700; }
.cl-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--text-soft); font-weight: 600; font-size: 14px; position: relative;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.cl-link i { font-size: 19px; width: 22px; text-align: center; transition: transform .3s var(--ease); }
.cl-link:hover { background: var(--surface-2); color: var(--text); transform: translateX(2px); }
.cl-link:hover i { transform: scale(1.12) rotate(-4deg); }
.cl-link.active {
  background: linear-gradient(90deg, rgba(200, 115, 46, .16), rgba(200, 115, 46, .04));
  color: var(--brand-500); font-weight: 700;
}
.cl-link.active::before {
  content: ""; position: absolute; left: -14px; top: 20%; bottom: 20%; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--brand-500);
}
[data-theme="dark"] .cl-link.active { color: #f0b27a; }

.cl-sidebar-foot {
  margin-top: 12px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface-2); font-size: 12.5px; color: var(--text-soft); position: relative;
}
.cl-sidebar-foot b { color: var(--text); }

/* Topbar */
.cl-topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: var(--surface-glass); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.cl-page-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.cl-page-sub { font-size: 11.5px; color: var(--text-muted); }
.cl-topbar-spacer { flex: 1; }

.cl-icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  cursor: pointer; transition: all .2s var(--ease); font-size: 19px; position: relative;
}
.cl-icon-btn:hover { color: var(--brand-500); border-color: var(--brand-300); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.cl-avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 6px 16px -6px rgba(139, 92, 246, .8);
}

/* Content */
.cl-content { padding: 28px; flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; }

/* ---------------------------------------------------------------- Cards */
.cl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.cl-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.cl-card-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cl-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.cl-stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; position: relative; overflow: hidden; height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cl-stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cl-stat::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: var(--stat-glow, rgba(200, 115, 46, .12)); filter: blur(6px);
  transition: transform .5s var(--ease);
}
.cl-stat:hover::after { transform: scale(1.25); }
.cl-stat-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--stat-glow, rgba(200, 115, 46, .12)); color: var(--stat-color, var(--brand-500));
  font-size: 22px; margin-bottom: 14px;
}
.cl-stat-value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.cl-stat-label { font-size: 12.5px; color: var(--text-soft); font-weight: 600; }
.cl-stat-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 8px; }
.cl-trend { font-size: 11.5px; font-weight: 700; color: var(--accent); }

/* Buttons */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
}
.cl-btn:active { transform: scale(.97); }
.cl-btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(200, 115, 46, .8); background-size: 160% 160%; }
.cl-btn-primary:hover { background-position: 100% 50%; box-shadow: 0 16px 32px -12px rgba(139, 92, 246, .8); transform: translateY(-2px); }
.cl-btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.cl-btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-500); transform: translateY(-1px); }
.cl-btn-soft { background: var(--accent-soft); color: var(--accent); }
.cl-btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.cl-btn-block { width: 100%; }

/* Badges */
.cl-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.cl-badge-green { background: rgba(16, 185, 129, .14); color: #0d9668; }
.cl-badge-amber { background: rgba(245, 158, 11, .16); color: #b45309; }
.cl-badge-rose { background: rgba(251, 113, 133, .16); color: #e11d48; }
.cl-badge-sky { background: rgba(56, 189, 248, .16); color: #0284c7; }
[data-theme="dark"] .cl-badge-green { color: #34d399; }
[data-theme="dark"] .cl-badge-amber { color: #fbbf24; }
[data-theme="dark"] .cl-badge-rose { color: #fb7185; }
[data-theme="dark"] .cl-badge-sky { color: #7dd3fc; }

/* Progress */
.cl-progress { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.cl-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); transition: width 1s var(--ease); }

/* Tables / lists */
.cl-list { display: flex; flex-direction: column; gap: 2px; }
.cl-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px;
  transition: background .2s;
}
.cl-row:hover { background: var(--surface-2); }
.cl-row-main { min-width: 0; flex: 1; }
.cl-row-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-row-sub { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* Inputs */
.cl-field { margin-bottom: 14px; }
.cl-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-soft); margin-bottom: 6px; letter-spacing: .01em; }
.cl-input, .cl-select, .cl-textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
  -webkit-appearance: none; appearance: none;
}
.cl-textarea { min-height: 110px; resize: vertical; }
.cl-input:focus, .cl-select:focus, .cl-textarea:focus { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(200, 115, 46, .13); background: var(--surface); }
.cl-input::placeholder { color: var(--text-muted); }
.cl-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239a8a7c' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%239a8a7c' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}

/* ---------------------------------------------------------------- Landing */
.cl-landing { background: var(--bg); color: var(--text); }
.cl-landing .cl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cl-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 0;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s, padding .3s;
}
.cl-navbar.scrolled { background: var(--surface-glass); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 0 var(--border); padding: 8px 0; }
.cl-navbar-inner { display: flex; align-items: center; gap: 16px; }
.cl-nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cl-nav-links a { padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-soft); transition: all .2s; }
.cl-nav-links a:hover { background: var(--surface-2); color: var(--text); }
.cl-burger { display: none; }

.cl-hero { position: relative; padding: 170px 0 90px; overflow: hidden; background: var(--grad-hero); }
.cl-hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.cl-hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.cl-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface-glass); border: 1px solid var(--border); backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 700; color: var(--text-soft); box-shadow: var(--shadow-sm);
}
.cl-eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.cl-h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.03; letter-spacing: -.04em; font-weight: 800; margin: 22px 0 18px; }
.cl-grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cl-lead { font-size: clamp(1rem, 1.6vw, 1.16rem); color: var(--text-soft); line-height: 1.65; max-width: 540px; }
.cl-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cl-hero-stats { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.cl-hero-stat b { display: block; font-size: 24px; letter-spacing: -.02em; }
.cl-hero-stat span { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* 3D floating device */
.cl-visual { position: relative; perspective: 1200px; }
.cl-orbit {
  position: absolute; inset: -8% -6%; border: 1px dashed var(--border-strong); border-radius: 50%;
  animation: spin 34s linear infinite; opacity: .6;
}
.cl-orbit::before, .cl-orbit::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-400); box-shadow: 0 0 18px var(--brand-400); top: 12%; left: 12%;
}
.cl-orbit::after { top: auto; left: auto; bottom: 12%; right: 12%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.cl-device {
  position: relative; transform-style: preserve-3d; transform: rotateX(6deg) rotateY(-10deg);
  transition: transform .5s var(--ease); will-change: transform;
  border-radius: 28px; padding: 16px; background: var(--surface-glass);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); backdrop-filter: blur(20px);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: rotateX(6deg) rotateY(-10deg) translateY(0); } 50% { transform: rotateX(4deg) rotateY(-7deg) translateY(-14px); } }
.cl-device-bar { display: flex; gap: 6px; padding: 0 0 12px; }
.cl-device-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.cl-device-bar i:first-child { background: #fb7185; }
.cl-device-bar i:nth-child(2) { background: #fbbf24; }
.cl-device-bar i:nth-child(3) { background: #34d399; }
.cl-device-body { border-radius: 18px; background: var(--surface); padding: 16px; border: 1px solid var(--border); }
.cl-mini-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.cl-mini-stat > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 9px; }
.cl-mini-stat b { display: block; font-size: 17px; letter-spacing: -.02em; }
.cl-mini-stat span { font-size: 9.5px; color: var(--text-muted); font-weight: 600; }
.cl-mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 84px; padding: 8px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--border); }
.cl-mini-chart span { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--grad-brand); opacity: .85; animation: grow 1.4s var(--ease) both; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(.15); opacity: 0; } to { transform: scaleY(1); opacity: .85; } }
.cl-float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); font-size: 12px; font-weight: 700; z-index: 3;
  animation: floaty 6s ease-in-out infinite;
}
.cl-float-chip.one { top: 6%; right: -4%; animation-delay: -1.5s; }
.cl-float-chip.two { bottom: 8%; left: -8%; animation-delay: -3s; }
.cl-float-chip i { color: var(--accent); font-size: 17px; }

/* Sections */
.cl-section { padding: 90px 0; position: relative; }
.cl-section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.cl-section-tag { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-500); font-weight: 800; }
.cl-h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.035em; line-height: 1.1; margin: 10px 0 14px; font-weight: 800; }
.cl-section-head p { color: var(--text-soft); font-size: 15px; line-height: 1.65; margin: 0; }

.cl-feature {
  padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); height: 100%; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.cl-feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(200,115,46,.10), transparent 60%);
  pointer-events: none;
}
.cl-feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.cl-feature:hover::before { opacity: 1; }
.cl-feature-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px; background: var(--accent-soft); color: var(--accent);
  transition: transform .4s var(--ease);
}
.cl-feature:hover .cl-feature-icon { transform: rotate(-6deg) scale(1.08); }
.cl-feature h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -.01em; }
.cl-feature p { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; margin: 0; }

.cl-cta {
  border-radius: 30px; padding: 54px 40px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2b1d14, #452516 45%, #63341b);
  color: #fff;
}
.cl-cta::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(600px 300px at 20% 0%, rgba(200,115,46,.6), transparent 60%),
              radial-gradient(600px 300px at 90% 100%, rgba(16,185,129,.4), transparent 60%);
}
.cl-cta > * { position: relative; z-index: 2; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* Tick counter */
.cl-count { font-variant-numeric: tabular-nums; }

/* Theme toggle */
.cl-theme-toggle { position: relative; overflow: hidden; }
.cl-theme-toggle .sun, .cl-theme-toggle .moon { position: absolute; transition: transform .45s var(--ease), opacity .3s; }
[data-theme="light"] .cl-theme-toggle .moon { transform: translateY(120%) rotate(90deg); opacity: 0; }
[data-theme="dark"] .cl-theme-toggle .sun { transform: translateY(-120%) rotate(-90deg); opacity: 0; }

/* Offline banner + toast */
.cl-offline-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 200;
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px;
  background: #1f1914; color: #f6ede4; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-lg); transition: transform .45s var(--ease);
  pointer-events: none;
}
.cl-offline-bar.show { transform: translate(-50%, 0); pointer-events: auto; }
.cl-offline-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.cl-toast-wrap { position: fixed; top: 84px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.cl-toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 600; max-width: 340px;
  animation: toastIn .4s var(--ease) both;
}
.cl-toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px) scale(.96); } }
.cl-toast i { font-size: 19px; }
.cl-toast.success i { color: var(--accent); }
.cl-toast.error i { color: var(--rose); }
.cl-toast.info i { color: var(--sky); }

/* Skeleton */
.cl-skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--bg-soft) 25%, var(--surface-2) 37%, var(--bg-soft) 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Weather widget */
.cl-weather { display: flex; align-items: center; gap: 18px; }
.cl-weather-icon { font-size: 52px; color: var(--brand-400); line-height: 1; }
.cl-weather-temp { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.cl-weather-loc { font-size: 12.5px; color: var(--text-soft); font-weight: 600; }
.cl-weather-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.cl-weather-meta > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 8px 12px; min-width: 88px; }
.cl-weather-meta b { display: block; font-size: 14px; }
.cl-weather-meta span { font-size: 10.5px; color: var(--text-muted); font-weight: 600; }

/* Mobile bottom nav */
.cl-bottom-nav { display: none; }

/* ---------------------------------------------------------------- Utilities */
.cl-grid { display: grid; gap: 18px; }
.cl-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cl-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cl-flex { display: flex; align-items: center; gap: 10px; }
.cl-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cl-mt { margin-top: 18px; }
.cl-mb { margin-bottom: 18px; }
.cl-muted { color: var(--text-muted); }
.cl-soft { color: var(--text-soft); }
.cl-small { font-size: 12px; }
.cl-right { text-align: right; }
.cl-nowrap { white-space: nowrap; }
.cl-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1199.98px) {
  .cl-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .cl-visual { max-width: 460px; margin: 0 auto; }
  .cl-hero { padding-top: 140px; }
}
@media (max-width: 991.98px) {
  :root { --sidebar-w: 0px; }
  .cl-main { margin-left: 0; }
  .cl-sidebar { transform: translateX(-104%); width: 286px; box-shadow: var(--shadow-lg); }
  body.sidebar-open .cl-sidebar { transform: translateX(0); }
  body.sidebar-open::after {
    content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px); animation: fade .25s;
  }
  @keyframes fade { from { opacity: 0; } }
  .cl-burger { display: grid; }
  .cl-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-nav-links { display: none; }
  .cl-content { padding: 20px 16px 90px; }
  .cl-bottom-nav {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 50; height: 66px;
    background: var(--surface-glass); backdrop-filter: blur(18px); border-top: 1px solid var(--border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .cl-bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 10px; font-weight: 700; color: var(--text-muted); border-radius: 12px;
  }
  .cl-bottom-nav a i { font-size: 21px; }
  .cl-bottom-nav a.active { color: var(--brand-500); background: rgba(200,115,46,.10); }
}
@media (max-width: 767.98px) {
  .cl-grid-4, .cl-grid-3, .cl-grid-2 { grid-template-columns: 1fr; }
  .cl-topbar { padding: 0 16px; }
  .cl-page-title { font-size: 14px; }
  .cl-card { padding: 18px; border-radius: 16px; }
  .cl-h1 { letter-spacing: -.03em; }
  .cl-hero { padding: 120px 0 60px; }
  .cl-section { padding: 62px 0; }
  .cl-float-chip { display: none; }
  .cl-cta { padding: 38px 22px; border-radius: 22px; }
  .cl-weather { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cl-offline-bar { left: 16px; right: 16px; bottom: 80px; transform: translateY(calc(100% + 96px)); justify-content: center; }
  .cl-offline-bar.show { transform: translateY(0); }
  .cl-toast-wrap { left: 16px; right: 16px; top: 76px; }
  .cl-toast { max-width: none; }
}

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