
:root{
  --cw-accent:#3ddc97;
  --cw-bg:#000000;
  --cw-fg:#f0f3f5;
  --cw-muted:#a8b5ad;
  --cw-bar:#000000;
  --background:0 0% 0%;
  --foreground:210 13% 96%;
  --surface-subtle:0 0% 0%;
  --card:0 0% 0%;
  --card-foreground:210 13% 96%;
  --popover:0 0% 0%;
  --popover-foreground:210 13% 96%;
  --muted:0 0% 8%;
  --muted-foreground:216 6% 70%;
}
.dark,.dark *{
  --background:0 0% 0% !important;
  --surface-subtle:0 0% 0% !important;
  --card:0 0% 0% !important;
  --popover:0 0% 0% !important;
}
*{box-sizing:border-box}
html,body{
  margin:0;padding:0;
  background:#000 !important;
  color:var(--cw-fg);
  font-family:"DM Sans","Space Grotesk",ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color-scheme:dark;
}
.cw-topbar{
  position:sticky;top:0;z-index:10000;display:flex;gap:.5rem;align-items:center;justify-content:space-between;
  padding:.55rem .85rem;background:#000 !important;backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.cw-topbar a{color:#fff;text-decoration:none;font-weight:800;letter-spacing:.01em}
.cw-topbar .cw-controls{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap}
.cw-topbar select,.cw-topbar button{background:#111;color:#fff;border:1px solid #333;border-radius:8px;padding:.35rem .6rem;font-size:.85rem;cursor:pointer}
.cw-note{font-size:.72rem;opacity:.7;max-width:40vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#cw-frame,#cw-frame .cw-home-wrap,#cw-frame .min-h-screen{
  min-height:70vh;
  background:#000 !important;
  color:#f0f3f5;
}
#cw-frame img,#cw-frame video{max-width:100%;height:auto}
.cw-page{max-width:1200px;margin:0 auto;padding:1rem 1.1rem 3rem}
.cw-missing{padding:3rem 1rem;text-align:center;color:var(--cw-muted)}
.cw-home-wrap{position:relative;color:#f0f3f5}

/* Force black backgrounds across captured page sections */
#cw-frame section,
#cw-frame header,
#cw-frame footer,
#cw-frame nav,
#cw-frame main,
#cw-frame [class*="bg-background"],
#cw-frame [class*="bg-card"],
#cw-frame [class*="bg-popover"],
#cw-frame [class*="bg-muted"],
#cw-frame [class*="bg-surface"]{
  background-color:#000 !important;
  background-image:none !important;
}
#cw-frame .bg-background\/90,
#cw-frame header.bg-background\/90{
  background-color:rgba(0,0,0,.92) !important;
}

/* Keep readable footer text on black */
#cw-frame footer,
#cw-frame footer *{color:#e8eeea !important}
#cw-frame footer a{color:#c9d4ce !important;opacity:1 !important}
#cw-frame footer a:hover{color:#fff !important}
#cw-frame footer h2,
#cw-frame footer h3,
#cw-frame footer .font-semibold,
#cw-frame footer [class*="font-"]{color:#fff !important}

/* Feature route tabs */
[data-cw-panels] > [data-cw-panel][hidden]{display:none!important}
[data-cw-panels] > [data-cw-panel]:not([hidden]){display:block}
button[data-cw-tab]{cursor:pointer}
@media (max-width:640px){.cw-note{display:none}}

/* Footer detail modal */
.cw-modal[hidden]{display:none!important}
.cw-modal{position:fixed;inset:0;z-index:30000;display:grid;place-items:center;padding:1rem}
.cw-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.82);backdrop-filter:blur(3px)}
.cw-modal-card{
  position:relative;z-index:1;width:min(92vw,520px);max-height:min(86vh,720px);overflow:auto;
  background:#000;color:#f2f6f3;border-radius:18px;padding:1.35rem 1.25rem 1.15rem;
  border:1px solid rgba(255,255,255,.14);box-shadow:0 24px 60px rgba(0,0,0,.65);
}
.cw-modal-x{position:absolute;top:.55rem;right:.7rem;width:2rem;height:2rem;border:0;border-radius:999px;background:transparent;color:#9bb0a4;font-size:1.45rem;cursor:pointer;line-height:1}
.cw-modal-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .55rem;border-radius:999px;background:rgba(61,220,151,.14);color:#3ddc97;font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.cw-modal-card h2{margin:.65rem 0 .45rem;font-size:1.35rem;line-height:1.25;color:#fff}
.cw-modal-card p{margin:0 0 .85rem;color:#b7c5bd;font-size:.95rem;line-height:1.55}
.cw-modal-card ul{margin:0 0 1.1rem;padding:0 0 0 1.1rem;color:#e7eee9}
.cw-modal-card li{margin:.35rem 0;line-height:1.45}
.cw-modal-actions{display:flex;gap:.55rem}
.cw-modal-cancel{flex:1;border:1px solid rgba(255,255,255,.18);background:#000;color:#e7eee9;border-radius:12px;padding:.75rem .9rem;font-weight:700;cursor:pointer}
.cw-modal-cta{flex:1.25;display:inline-flex;align-items:center;justify-content:center;background:#3ddc97;color:#000!important;text-decoration:none!important;border-radius:12px;padding:.75rem .9rem;font-weight:800}
a[data-cw-modal]{cursor:pointer}
