/*
 * ╔══════════════════════════════════════════════════════════╗
 * ║  SentinelUI — Component Library                         ║
 * ║  Single-file bundle — import this in any project.       ║
 * ║                                                          ║
 * ║  Components:                                             ║
 * ║   1. Tokens (CSS custom properties)                      ║
 * ║   2. Reset & base                                        ║
 * ║   3. Layout utilities (.wrap, .section)                  ║
 * ║   4. Typography & section headings                       ║
 * ║   5. Buttons                                             ║
 * ║   6. Badges & chips                                      ║
 * ║   7. Status indicators                                   ║
 * ║   8. Alerts                                              ║
 * ║   9. Cards                                               ║
 * ║  10. Progress bars                                       ║
 * ║  11. Toggle switch                                       ║
 * ║  12. Form inputs                                         ║
 * ║  13. Tabs                                                ║
 * ║  14. Empty state                                         ║
 * ║  15. Modal                                               ║
 * ║  16. Navigation / Header                                 ║
 * ║  17. Footer                                              ║
 * ║  18. Hero section                                        ║
 * ║  19. Feature grid                                        ║
 * ║  20. Carousel                                            ║
 * ╚══════════════════════════════════════════════════════════╝
 */

/* ═══════════════════════════════════════════════════════════
   1. TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  --hue: 0;
  --bg-0: #0A0404; --bg-1: #0F0606; --bg-2: #160808;
  --ink: #F2E6E6; --ink-dim: #C2A0A0; --ink-mute: #7A5050;
  --line: hsla(0,40%,50%,0.12); --line-strong: hsla(0,50%,60%,0.22);
  --blue: hsl(0 85% 52%); --blue-bright: hsl(0 100% 65%); --blue-deep: hsl(0 80% 38%);
  --ice: hsl(0 100% 92%); --green: #22c55e; --amber: #FFC857; --red: #FF3B3B;
  --color-success: #22c55e; --color-warn: #FFC857; --color-danger: #FF3B3B;
  --color-success-dim: hsla(142,70%,38%,0.5);
  --color-warn-dim:    hsla(45,90%,55%,0.45);
  --color-danger-dim:  hsla(0,60%,50%,0.3);
  --space-1:4px;  --space-2:8px;  --space-3:12px; --space-4:16px;
  --space-5:20px; --space-6:24px; --space-8:32px; --space-10:40px;
  --radius:14px;  --radius-sm:6px; --radius-md:10px;
  --radius-lg:14px; --radius-xl:16px; --radius-pill:999px;
  --font-display: 'Oswald', sans-serif;
  --font-serif:   'Inter', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    'Inter', system-ui, sans-serif;
  --z-base:1; --z-raised:10; --z-header:100; --z-drawer:99; --z-modal:200; --z-toast:300;
}

/* ═══════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: hsla(0,70%,45%,0.55); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: hsl(0,80%,55%); }
html { scrollbar-width: thin; scrollbar-color: hsla(0,70%,45%,0.55) var(--bg-1); }
body {
  background: var(--bg-0); color: var(--ink);
  font-family: var(--font-sans); font-size: 15px;
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ═══════════════════════════════════════════════════════════
   3. LAYOUT
   ═══════════════════════════════════════════════════════════ */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 480px) { .wrap { padding: 0 20px; } }

/* ═══════════════════════════════════════════════════════════
   4. TYPOGRAPHY & SECTION HEADINGS
   ═══════════════════════════════════════════════════════════ */
.section { position: relative; padding: 64px 0; }

.section-eyebrow, .section-label {
  display: inline-flex; align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--blue-bright); text-transform: uppercase;
  letter-spacing: 0.15em; margin-bottom: var(--space-4);
}
.section-eyebrow::before, .section-label::before {
  content: ''; width: 24px; height: 1px;
  background: var(--blue-bright); flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px,4.2vw,60px);
  letter-spacing: -0.01em; line-height: 1.05;
  margin: 0 0 20px; text-transform: uppercase;
}
.section-title .accent { color: var(--blue-bright); }

.section-sub {
  font-size: 17px; color: var(--ink-dim);
  max-width: 580px; margin: 0 0 60px; line-height: 1.6;
}

.heading-xl {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px,5.2vw,76px);
  letter-spacing: -0.01em; line-height: 1.02; margin: 0; text-transform: uppercase;
}
.heading-xl .accent { display: block; color: var(--blue-bright); }

.mono-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute);
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════
   5. BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; font-family: var(--font-sans); font-weight: 600;
  font-size: 14px; letter-spacing: 0.01em; border-radius: 10px;
  border: none; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn-primary {
  background: var(--blue); color: #0A0404;
  box-shadow: 0 6px 18px -8px hsla(0,90%,50%,0.6);
}
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-2px); box-shadow: 0 10px 24px -8px hsla(0,90%,50%,0.75); }
.btn-ghost { background: hsla(0,30%,12%,0.5); color: var(--ink); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: hsla(0,40%,18%,0.55); border-color: hsla(0,70%,60%,0.4); transform: translateY(-2px); }
.btn-danger { background: hsla(0,80%,38%,0.18); color: var(--color-danger); border: 1px solid var(--color-danger-dim); }
.btn-danger:hover { background: hsla(0,80%,38%,0.32); border-color: var(--color-danger); transform: translateY(-2px); }
.btn-success { background: hsla(142,70%,9%,0.9); color: var(--color-success); border: 1px solid var(--color-success-dim); }
.btn-success:hover { background: hsla(142,70%,13%,0.95); border-color: var(--color-success); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-icon { padding: 10px; } .btn-icon.btn-sm { padding: 7px; }
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.65; }

/* ═══════════════════════════════════════════════════════════
   6. BADGES & CHIPS
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 4px 10px; font-family: var(--font-mono); font-size: 10px;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: var(--radius-pill); white-space: nowrap; line-height: 1;
}
.badge-sm { font-size: 9px; padding: 2px 8px; }
.badge-default  { background: hsla(0,40%,8%,0.6);    border: 1px solid var(--line-strong);        color: var(--ink-mute); }
.badge-accent   { background: hsla(0,85%,52%,0.1);   border: 1px solid hsla(0,80%,60%,0.35);     color: var(--blue-bright); }
.badge-success  { background: hsla(142,70%,15%,0.4); border: 1px solid var(--color-success-dim); color: var(--color-success); }
.badge-warn     { background: hsla(45,90%,12%,0.5);  border: 1px solid var(--color-warn-dim);    color: var(--color-warn); }
.badge-danger   { background: hsla(0,80%,12%,0.5);   border: 1px solid var(--color-danger-dim);  color: var(--color-danger); }

.chip-lg {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: hsla(0,40%,8%,0.6); border: 1px solid;
  border-radius: var(--radius-pill); width: max-content;
}
.chip-lg .dot { width: 6px; height: 6px; border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; background: hsla(0,30%,12%,0.55);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-dim);
  backdrop-filter: blur(10px); margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 8px var(--red);
  animation: pulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   7. STATUS INDICATORS
   ═══════════════════════════════════════════════════════════ */
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot-online  { background: var(--color-success); box-shadow: 0 0 6px var(--color-success); animation: pulse 2s infinite; }
.status-dot-offline { background: var(--ink-mute); }
.status-dot-warn    { background: var(--color-warn); box-shadow: 0 0 6px var(--color-warn); animation: restartBlink 0.65s ease-in-out infinite; }
.status-dot-pending { background: #a78bfa; box-shadow: 0 0 6px #a78bfa; animation: pulse 2s infinite; }

@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.35; } }
@keyframes restartBlink { 0%,100%{ opacity:1; } 50%{ opacity:0.2; } }

/* ═══════════════════════════════════════════════════════════
   8. ALERTS
   ═══════════════════════════════════════════════════════════ */
.alert {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  border: 1px solid; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.04em; line-height: 1.5; margin-bottom: var(--space-3);
}
.alert:last-child { margin-bottom: 0; }
.alert-success { background: hsla(142,70%,9%,0.7);  border-color: var(--color-success-dim); color: var(--color-success); }
.alert-warn    { background: hsla(45,90%,9%,0.7);   border-color: var(--color-warn-dim);    color: var(--color-warn); }
.alert-danger  { background: hsla(0,80%,9%,0.7);    border-color: var(--color-danger-dim);  color: var(--color-danger); }
.alert-info    { background: hsla(0,85%,9%,0.7);    border-color: var(--line-strong);       color: var(--ink-dim); }

/* ═══════════════════════════════════════════════════════════
   9. CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: linear-gradient(160deg, hsla(0,40%,6%,0.95), hsla(0,50%,3%,0.98));
  border: 1px solid var(--line-strong); border-radius: var(--radius-xl);
  overflow: hidden; position: relative;
}
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 40px hsla(0,60%,10%,0.35); border-color: hsla(0,50%,60%,0.28); }
.card-grid-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.25; pointer-events: none;
}
.card-callout { padding: 16px 18px; background: hsla(0,40%,6%,0.5); border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; gap: 12px; align-items: flex-start; }
.card-callout-icon { font-size: 20px; flex-shrink: 0; }
.card-callout-title { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.card-callout-desc { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.06em; line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════
   10. PROGRESS BARS
   ═══════════════════════════════════════════════════════════ */
.progress-track { height: 3px; background: hsla(0,30%,100%,0.05); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: 2px; animation: barFill 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes barFill { to { width: var(--w,0%); } }
.progress-bar-ok     { background: linear-gradient(90deg,#2da866,var(--color-success)); }
.progress-bar-warn   { background: linear-gradient(90deg,#c07a10,var(--color-warn)); }
.progress-bar-danger { background: linear-gradient(90deg,#b81515,var(--blue-bright)); }
.progress-bar-accent { background: linear-gradient(90deg,var(--blue-deep),var(--blue-bright)); }
.metric-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.metric-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.metric-value { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.metric-value.ok { color: var(--color-success); } .metric-value.warn { color: var(--color-warn); }
.metric-value.danger { color: var(--color-danger); } .metric-value.dim { color: var(--ink-mute); }

/* ═══════════════════════════════════════════════════════════
   11. TOGGLE SWITCH
   ═══════════════════════════════════════════════════════════ */
.toggle { width: 38px; height: 21px; background: hsla(0,40%,12%,0.6); border: 1px solid hsla(0,40%,28%,0.4); border-radius: var(--radius-pill); position: relative; transition: background .2s, border-color .2s; cursor: pointer; flex-shrink: 0; }
.toggle.on { background: hsla(130,60%,28%,0.45); border-color: hsla(130,70%,50%,0.6); }
.toggle-knob { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink-mute); transition: transform .22s cubic-bezier(.3,1.4,.3,1), background .2s, box-shadow .2s; box-shadow: 0 1px 4px rgba(0,0,0,0.45); }
.toggle.on .toggle-knob { transform: translateX(17px); background: var(--color-success); box-shadow: 0 0 8px hsla(130,80%,55%,0.55), 0 1px 4px rgba(0,0,0,0.4); }

/* ═══════════════════════════════════════════════════════════
   12. FORM INPUTS
   ═══════════════════════════════════════════════════════════ */
.field-group { display: flex; flex-direction: column; gap: var(--space-1); }
.field-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); display: block; font-weight: 600; }
.field-hint { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); }
.field-error { font-family: var(--font-sans); font-size: 11px; color: var(--color-danger); margin: 4px 0 0; }
.field-input {
  width: 100%; background: hsla(0,30%,6%,0.8); border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); padding: 11px 16px; font-family: var(--font-mono);
  font-size: 14px; color: var(--ink); outline: none; transition: border-color .2s; box-sizing: border-box;
}
.field-input::placeholder { color: var(--ink-mute); }
.field-input:focus { border-color: var(--blue); }
.field-input.is-invalid { border-color: var(--color-danger); }
textarea.field-input { resize: vertical; min-height: 100px; line-height: 1.5; }
select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A5050' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   13. TABS
   ═══════════════════════════════════════════════════════════ */
.tab-bar { display: flex; gap: 2px; }
.tab-bar-bordered { border-bottom: 1px solid var(--line); }
.tab-bar-pill { gap: 4px; }
.tab-item {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 10px 20px; font-family: var(--font-mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-mute); background: transparent; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer; transition: color .18s, border-color .18s, background .18s; white-space: nowrap;
}
.tab-item:hover { color: var(--ink-dim); }
.tab-item.active { color: var(--blue-bright); border-bottom-color: var(--blue-bright); }
.tab-bar-pill .tab-item { border: 1px solid var(--line); border-radius: var(--radius-pill); border-bottom: 1px solid var(--line); margin-bottom: 0; padding: 8px 18px; }
.tab-bar-pill .tab-item:hover { color: var(--ink-dim); background: hsla(0,40%,50%,0.06); }
.tab-bar-pill .tab-item.active { background: hsla(0,80%,50%,0.12); border-color: hsla(0,80%,55%,0.5); color: var(--blue-bright); }
@media (max-width: 640px) {
  .tab-bar { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .tab-bar::-webkit-scrollbar { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   14. EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 80px 0; }
.empty-state-icon { font-size: 48px; color: var(--ink-mute); margin-bottom: var(--space-4); opacity: 0.4; }
.empty-state-text { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--ink-mute); margin: 0 0 var(--space-6); }

/* ═══════════════════════════════════════════════════════════
   15. MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay { position: fixed; inset: 0; background: hsla(0,40%,3%,0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.modal { background: #150707; border: 1px solid var(--line-strong); border-radius: var(--radius-xl); width: 100%; max-width: 460px; padding: var(--space-8); animation: modalIn .28s cubic-bezier(.22,1,.36,1); position: relative; }
@keyframes modalIn { from { opacity:0; transform:translateY(20px) scale(0.98); } to { opacity:1; transform:none; } }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.modal-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.modal-eyebrow { font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 4px; }
.modal-close { flex-shrink: 0; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--ink-mute); cursor: pointer; transition: border-color .2s, color .2s; font-size: 14px; }
.modal-close:hover { border-color: var(--blue); color: var(--ink); }
.modal-actions { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.modal-success { text-align: center; padding: 12px 0 8px; }
.modal-success-msg { font-family: var(--font-display); font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--color-success); margin: 0 0 6px; }

/* ═══════════════════════════════════════════════════════════
   16. NAVIGATION / HEADER
   ═══════════════════════════════════════════════════════════ */
/* ─── Shell ─── */
.hdr {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled {
  background: hsla(0, 40%, 3%, 0.75);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}

/* ─── Logo ─── */
.hdr-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 20px;
  letter-spacing: 0.08em; text-transform: uppercase;
  min-width: 0; flex-shrink: 1;
}
.hdr-logo-img { height: 34px; width: auto; display: block; }

/* ─── Nav ─── */
.hdr-nav { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.hdr-nav a {
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: var(--ink-dim); border-radius: 999px;
  transition: color .2s, background .2s; position: relative;
}
.hdr-nav a:hover { color: var(--ink); background: hsla(0, 60%, 60%, 0.06); }
.hdr-nav a.active { color: var(--ink); }
.hdr-nav a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--blue-bright); transform: translateX(-50%);
  box-shadow: 0 0 8px var(--blue-bright);
}

/* ─── CTA / auth ─── */
.hdr-cta { display: flex; gap: 10px; align-items: center; }
.hdr-login { font-size: 14px; color: var(--ink-dim); padding: 8px 14px; transition: color .2s; }
.hdr-login:hover { color: var(--ink); }
.hdr-user-chip { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
.hdr-user-name  { font-size: .85rem; font-weight: 500; }
.hdr-tier-badge { font-size: .6rem; font-weight: 700; padding: .15rem .45rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.hdr-tier-standard  { background: hsla(215,12%,55%,.15); color: hsl(215,12%,65%); }
.hdr-tier-preferred { background: hsla(215,25%,62%,.15); color: hsl(215,25%,72%); }
.hdr-tier-priority  { background: hsla(0,70%,55%,.15);   color: hsl(0,70%,65%); }
.hdr-tier-premier   { background: hsla(44,70%,58%,.15);  color: hsl(44,70%,68%); }

/* ─── Hamburger button ─── */
.hdr-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border-radius: 8px; border: 1px solid var(--line);
  background: hsla(0, 20%, 8%, 0.5);
  cursor: pointer; padding: 0;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}
.hdr-burger:hover { border-color: var(--line-strong); background: hsla(0, 30%, 12%, 0.6); }
.hdr-burger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .2s, width .25s;
  transform-origin: center;
}
.hdr-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hdr-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.hdr-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Mobile drawer ─── */
.hdr-drawer {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 101;
  background: hsla(0, 40%, 3%, 0.97);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 24px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .22s, visibility 0s .28s;
  display: none;
}
.hdr-drawer.open {
  transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto;
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .22s, visibility 0s;
}
.hdr-drawer-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.hdr-drawer-nav a {
  padding: 12px 14px; font-size: 15px; font-weight: 500;
  color: var(--ink-dim); border-radius: 8px;
  transition: color .15s, background .15s; position: relative;
}
.hdr-drawer-nav a:hover { color: var(--ink); background: hsla(0, 30%, 12%, 0.5); }
.hdr-drawer-nav a.active { color: var(--ink); background: hsla(0, 40%, 10%, 0.5); }
.hdr-drawer-nav a.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; background: var(--blue-bright);
  border-radius: 0 2px 2px 0; box-shadow: 0 0 8px var(--blue-bright);
}
.hdr-drawer-foot { display: flex; gap: 10px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }

/* ─── Dim overlay ─── */
.hdr-overlay { position: fixed; inset: 0; z-index: 99; background: hsla(0,0%,0%,.35); opacity: 0; pointer-events: none; transition: opacity .25s; }
.hdr-overlay.open { opacity: 1; pointer-events: auto; }

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .hdr { padding: 16px 24px; }
  .hdr-nav a { padding: 8px 12px; font-size: 13px; }
  .hdr-login { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 1040px) {
  .hdr-nav { gap: 0; }
  .hdr-nav a { padding: 8px 10px; font-size: 12px; }
}
/* Mobile: grid layout guarantees burger never overflows. */
@media (max-width: 900px) {
  .hdr {
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 12px;
    background: hsla(0, 40%, 3%, 0.92);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom-color: var(--line);
  }
  .hdr-nav  { display: none; }
  .hdr-cta  { display: none; }
  .hdr-burger { display: flex; }
  .hdr-drawer { display: block; }
  .hdr-logo { overflow: hidden; }
  .hdr-logo-img { height: auto; max-height: 34px; max-width: 100%; width: auto; }
}
@media (max-width: 480px) {
  .hdr { padding: 14px 18px; }
  .hdr-logo-img { max-height: 30px; }
}

/* ═══════════════════════════════════════════════════════════
   17. FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer { position: relative; padding: 100px 0 0; border-top: 1px solid var(--line); margin-top: 40px; overflow: hidden; background: radial-gradient(1400px 700px at 20% 20%, hsla(0,90%,40%,0.18), transparent 60%), radial-gradient(1000px 600px at 80% 10%, hsla(350,80%,45%,0.10), transparent 60%), radial-gradient(1600px 700px at 50% 100%, hsla(0,85%,38%,0.28), transparent 65%); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer-brand p { color: var(--ink-dim); font-size: 14px; max-width: 280px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; color: var(--blue-bright); letter-spacing: 0.15em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; color: var(--ink-dim); transition: color .15s, transform .15s; }
.footer-col a:hover { color: var(--ink); transform: translateX(4px); }
.footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-mute); }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; transition: all .2s; }
.footer-socials a:hover { border-color: var(--blue-bright); color: var(--blue-bright); background: hsla(0,50%,40%,0.1); }
@media (max-width: 1040px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   18. HERO
   ═══════════════════════════════════════════════════════════ */
.hero { position: relative; min-height: 100vh; padding-top: 120px; padding-bottom: 40px; overflow: hidden; }
.hero-bignword { position: absolute; top: 8%; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 700; font-size: clamp(56px,22vw,340px); letter-spacing: -0.02em; line-height: 0.9; white-space: nowrap; color: transparent; background: linear-gradient(180deg, hsla(0,30%,65%,0.16) 0%, hsla(0,50%,45%,0.09) 40%, hsla(0,80%,50%,0.22) 70%, transparent 95%); -webkit-background-clip: text; background-clip: text; z-index: 1; pointer-events: none; user-select: none; }
.hero-content { position: relative; z-index: 3; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; padding-top: 80px; }
.hero-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px,5.2vw,76px); letter-spacing: -0.01em; line-height: 1.02; margin: 0 0 24px; text-transform: uppercase; }
.hero-title .accent { display: block; color: var(--blue-bright); }
.hero-sub { font-size: 17px; color: var(--ink-dim); max-width: 480px; margin: 0 0 36px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; align-items: center; margin-bottom: 48px; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 520px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stat .v { font-family: var(--font-display); font-weight: 600; font-size: 34px; color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hero-stat .v .unit { color: var(--blue-bright); font-size: 20px; margin-left: 2px; }
.hero-stat .l { font-size: 11px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.scroll-ind { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-mute); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; margin: 48px auto 32px; width: fit-content; }
.scroll-ind .bar { width: 1px; height: 40px; background: linear-gradient(180deg,transparent,var(--ink-mute),transparent); animation: scroll-bar 2.5s linear infinite; }
@keyframes scroll-bar { 0%{ background-position:0 -40px; } 100%{ background-position:0 40px; } }
@media (max-width: 1040px) { .hero-content { grid-template-columns: 1fr; gap: 40px; } }

/* ═══════════════════════════════════════════════════════════
   19. FEATURE GRID
   ═══════════════════════════════════════════════════════════ */
.features { display: grid; grid-template-columns: repeat(12,1fr); gap: 16px; }
.feature { grid-column: span 4; position: relative; padding: 32px; background: linear-gradient(180deg,hsla(0,30%,10%,0.5),hsla(0,30%,5%,0.3)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .3s, transform .3s; }
.feature:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.feature.wide { grid-column: span 6; } .feature.tall { grid-column: span 6; min-height: 380px; }
.feature-num { font-family: var(--font-mono); font-size: 11px; color: var(--blue-bright); letter-spacing: 0.15em; }
.feature-title { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -0.005em; line-height: 1.05; margin: 0 0 8px; text-transform: uppercase; }
.feature-title .accent { color: var(--blue-bright); }
.feature-desc { font-size: 14px; color: var(--ink-dim); margin: 0; max-width: 360px; }
.feature-viz { position: relative; height: 200px; margin: 20px 0 16px; border-radius: 10px; background: hsla(0,40%,3%,0.7); border: 1px solid var(--line); overflow: hidden; padding: 12px; }
.feature-foot-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); }
.feature-foot-row b { color: var(--ink); font-family: var(--font-display); font-size: 18px; font-weight: 600; }
@media (max-width: 1040px) { .feature { grid-column: span 6; } .feature.wide,.feature.tall { grid-column: span 12; } }
@media (max-width: 700px) { .feature { grid-column: span 12; } }

/* ═══════════════════════════════════════════════════════════
   20. CAROUSEL
   ═══════════════════════════════════════════════════════════ */
.carousel { position: relative; margin-top: 40px; }
.carousel-stage { position: relative; height: 640px; display: flex; align-items: center; justify-content: center; perspective: 1800px; overflow: hidden; }
.carousel-card { position: absolute; width: 560px; height: 480px; border-radius: 20px; overflow: hidden; cursor: pointer; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s, box-shadow .5s, filter .5s; transform-style: preserve-3d; background: var(--bg-1); border: 1px solid var(--line-strong); }
.carousel-card .card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 1s ease; opacity: 0.5; }
.carousel-card.active:hover .card-bg { transform: scale(1.14); }
.carousel-card .card-grad { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(10,4,4,0.55) 0%,rgba(10,4,4,0.25) 35%,rgba(10,4,4,0.7) 75%,rgba(10,4,4,0.96) 100%); }
.carousel-card .card-content { position: absolute; inset: 0; padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; z-index: 2; }
.carousel-card .card-title { font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 1; letter-spacing: -0.01em; margin: 0 0 8px; text-transform: uppercase; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 28px; height: 4px; background: hsla(0,30%,40%,0.25); border-radius: 2px; transition: all .3s; cursor: pointer; position: relative; overflow: hidden; }
.carousel-dot.active { width: 60px; }
.carousel-dot.active::after { content: ''; position: absolute; inset: 0; background: var(--blue-bright); animation: dot-fill 5s linear; transform-origin: left; }
@keyframes dot-fill { 0%{ transform:scaleX(0); } 100%{ transform:scaleX(1); } }
.carousel-arrow { width: 44px; height: 44px; border-radius: 50%; background: hsla(0,30%,12%,0.55); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; transition: all .2s; backdrop-filter: blur(10px); cursor: pointer; }
.carousel-arrow:hover { background: hsla(0,40%,20%,0.65); border-color: var(--blue-bright); color: var(--blue-bright); }
@media (max-width: 700px) { .carousel-stage { height: 540px; } .carousel-card { width: 88vw; height: 400px; } .carousel-card .card-title { font-size: 36px; } .carousel-card .card-content { padding: 24px; } }

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
