/* ==========================================================================
   CyberStrategix — Global Stylesheet
   Dark, modern cybersecurity theme. Single shared file for all pages.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #0a0e17;
  --bg-soft: #0f1525;
  --bg-card: #131a2b;
  --bg-card-hover: #1a2338;
  --border: #1f2a44;
  --text: #e6ecf5;
  --text-dim: #9aa7c0;
  --text-faint: #66738f;
  --accent: #00e5a0;        /* neon green */
  --accent-2: #2f8cff;      /* electric blue */
  --accent-3: #b14cff;      /* violet */
  --danger: #ff4d5e;
  --warn: #ffb020;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow: 0 8px 30px rgba(0,0,0,.45);
  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
  --grad-main: linear-gradient(135deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  --glass: rgba(255,255,255,.04);
  --glass-brd: rgba(255,255,255,.09);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47,140,255,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(0,229,160,.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 76px 0; }
.section-sm { padding: 46px 0; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.muted { color: var(--text-dim); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--text-dim); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: .96rem; cursor: pointer; letter-spacing: .01em;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.30), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.btn:hover::after { left: 135%; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b988);
  color: #04130d; box-shadow: 0 6px 22px rgba(0,229,160,.30);
}
.btn-primary:hover { color: #04130d; box-shadow: 0 10px 30px rgba(0,229,160,.45); transform: translateY(-2px); }
.btn-yt {
  background: linear-gradient(135deg, #ff0033, #cc0029); color: #fff;
  box-shadow: 0 6px 22px rgba(255,0,51,.30);
}
.btn-yt:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,0,51,.45); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); background: rgba(0,229,160,.06); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,23,.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--glass-brd);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.scrolled { background: rgba(10,14,23,.85); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #04130d; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(0,229,160,.35);
}
.brand b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-weight: 600; font-size: .95rem;
  padding: 8px 13px; border-radius: 8px; transition: all .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 12px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-cta { margin: 8px 0 4px; text-align: center; justify-content: center; }
}

/* ---------- Grouped dropdown nav ---------- */
.nav-links .has-dd { position: relative; }
.nav-links .dd-toggle {
  display: flex; align-items: center; gap: 5px; cursor: pointer;
  color: var(--text-dim); font-weight: 600; font-size: .95rem;
  padding: 8px 13px; border-radius: 8px; transition: all .18s;
  background: none; border: none; font-family: inherit;
}
.nav-links .dd-toggle:hover,
.nav-links .has-dd.active .dd-toggle { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links .caret { font-size: .55rem; opacity: .7; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 264px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 8px; box-shadow: 0 18px 44px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s; z-index: 200;
}
.dropdown::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-dd:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dd:hover .caret { transform: rotate(180deg); }
.dropdown a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.dropdown a:hover { background: rgba(255,255,255,.05); }
.dropdown a b { font-size: .92rem; color: var(--text); font-weight: 700; }
.dropdown a span { font-size: .78rem; color: var(--text-faint); font-weight: 500; }
.dropdown a.active { background: rgba(0,229,160,.1); }
.dropdown a.active b { color: var(--accent); }

@media (max-width: 880px) {
  .nav-links .has-dd { width: 100%; }
  .nav-links .dd-toggle { width: 100%; justify-content: space-between; padding: 12px 10px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 0 0 6px 14px; min-width: 0; display: none;
  }
  .dropdown::before { display: none; }
  .has-dd:hover .dropdown { display: none; }
  .has-dd.open .dropdown { display: block; }
  .has-dd.open .caret { transform: rotate(180deg); }
  .dropdown a { padding: 9px 8px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; z-index: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(47,140,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,140,255,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 380px at 50% 30%, #000, transparent 80%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 880px; }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 46px; }
.hero-stats .stat b {
  display: block; font-family: var(--font-display); font-size: 2.1rem; line-height: 1;
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats .stat span { font-size: .85rem; color: var(--text-faint); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(0,229,160,.10); color: var(--accent); border: 1px solid rgba(0,229,160,.25);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0,229,160,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(0,229,160,.5);} 70%{box-shadow:0 0 0 9px rgba(0,229,160,0);} 100%{box-shadow:0 0 0 0 rgba(0,229,160,0);} }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.tag-news { background: rgba(47,140,255,.14); color: #79b4ff; }
.tag-cve  { background: rgba(255,77,94,.14); color: #ff8a96; }
.tag-tip  { background: rgba(0,229,160,.14); color: var(--accent); }
.tag-vid  { background: rgba(255,0,51,.14); color: #ff7a8c; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(6px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(0,229,160,.55), transparent 42%, transparent 58%, rgba(47,140,255,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 24px 52px -18px rgba(0,229,160,.32); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 16px;
  background: rgba(47,140,255,.12); border: 1px solid rgba(47,140,255,.25);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: .96rem; }

.section-head { margin-bottom: 38px; }
.section-head.center { text-align: center; }
.section-head h2 { margin-bottom: 10px; }
.section-head .row { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- News feed items ---------- */
.feed { display: grid; gap: 16px; }
.feed-item {
  display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; transition: border-color .18s, transform .18s, background .18s;
}
.feed-item:hover { border-color: rgba(0,229,160,.4); transform: translateX(3px); background: var(--bg-card-hover); }
.feed-item .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.feed-item .src { font-size: .8rem; color: var(--accent-2); font-weight: 700; }
.feed-item .time { font-size: .78rem; color: var(--text-faint); }
.feed-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feed-item h3 a { color: var(--text); }
.feed-item h3 a:hover { color: var(--accent); }
.feed-item p { font-size: .9rem; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.feed-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.filter-btn {
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer;
  background: var(--bg-card); color: var(--text-dim); border: 1px solid var(--border); transition: all .18s;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #04130d; border-color: var(--accent); }

.feed-loading, .feed-error { text-align: center; padding: 40px; color: var(--text-dim); }
.spinner {
  width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; margin: 0 auto 16px; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Skill level tracks ---------- */
.track-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.track-tab {
  padding: 10px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .92rem;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); transition: all .18s;
}
.track-tab:hover { color: var(--text); }
.track-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04130d; border-color: transparent; }
.track-panel { display: none; }
.track-panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Resource list ---------- */
.res-list { list-style: none; display: grid; gap: 12px; }
.res-list li {
  display: flex; align-items: flex-start; gap: 13px; padding: 15px 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: all .18s;
}
.res-list li:hover { border-color: rgba(0,229,160,.4); background: var(--bg-card-hover); }
.res-list .r-ico { font-size: 1.2rem; line-height: 1.5; }
.res-list .r-body strong { display: block; color: var(--text); }
.res-list .r-body span { font-size: .88rem; color: var(--text-dim); }
.res-list .r-body a { font-weight: 600; }

/* ---------- Guides / accordion ---------- */
.accordion { display: grid; gap: 12px; }
.acc-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: 18px 20px; font-size: 1.02rem; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.acc-head:hover { color: var(--accent); }
.acc-head .chev { transition: transform .25s; color: var(--text-faint); }
.acc-item.open .acc-head .chev { transform: rotate(180deg); color: var(--accent); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-body-inner { padding: 0 20px 20px; color: var(--text-dim); }
.acc-body-inner ul { margin: 8px 0 0 18px; }
.acc-body-inner li { margin-bottom: 6px; }

/* ---------- Video showcase ---------- */
.video-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .18s, border-color .18s; }
.video-card:hover { transform: translateY(-4px); border-color: rgba(255,0,51,.4); }
.video-embed { position: relative; aspect-ratio: 16/9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .v-body { padding: 16px 18px; }
.video-card .v-body h3 { font-size: 1rem; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, #1a0008, #0a0e17); color: var(--text-dim); padding: 20px;
}
.video-placeholder .play { font-size: 2.4rem; color: #ff0033; margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255,0,51,.16), transparent 60%),
    linear-gradient(135deg, #14101c, #0d1422);
  border: 1px solid var(--border); border-radius: 22px; padding: 54px 40px; text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Newsletter ---------- */
.subscribe-form { display: flex; gap: 10px; max-width: 460px; margin: 22px auto 0; flex-wrap: wrap; }
.subscribe-form input {
  flex: 1; min-width: 200px; padding: 13px 16px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); font-size: .95rem;
}
.subscribe-form input:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: .8rem; color: var(--text-faint); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 54px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--text-dim); font-size: .92rem; }
.site-footer a:hover { color: var(--accent); }
.footer-about p { color: var(--text-dim); font-size: .92rem; margin-top: 12px; max-width: 320px; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); font-size: 1.05rem; font-weight: 700;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 38px; padding-top: 22px; text-align: center; color: var(--text-faint); font-size: .85rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { margin-top: 12px; }

/* ---------- Utility ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:10px}.mt-2{margin-top:20px}.mt-3{margin-top:32px}
.hidden { display: none !important; }
.flex { display: flex; } .wrap { flex-wrap: wrap; } .gap { gap: 12px; } .items-center{align-items:center;}

/* ---------- Brand logo image & trademark ---------- */
.brand-mark { height: 46px; width: 46px; border-radius: 11px; display: block; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.brand { gap: 12px; }
.brand .tm, .tm { font-size: .5em; vertical-align: super; color: var(--accent); font-weight: 700; margin-left: 1px; letter-spacing: 0; }
.site-footer .brand-mark { height: 52px; width: 52px; }
@media (max-width: 880px) { .brand-mark { height: 42px; width: 42px; } }

/* ==========================================================================
   2026 design layer — aurora, glow, motion, bento
   ========================================================================== */
body::before {
  content: ''; position: fixed; inset: -25% -10% auto -10%; height: 85vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 50% at 18% 18%, rgba(0,229,160,.16), transparent 70%),
    radial-gradient(42% 55% at 82% 8%,  rgba(47,140,255,.16), transparent 70%),
    radial-gradient(34% 46% at 60% 42%, rgba(177,76,255,.12), transparent 70%);
  filter: blur(34px); opacity: .9;
  animation: auroraDrift 20s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(64px); z-index: 0; pointer-events: none; }
.hero::before { width: 440px; height: 440px; top: -130px; right: -70px; background: radial-gradient(circle, rgba(0,229,160,.22), transparent 70%); }
.hero::after  { width: 380px; height: 380px; bottom: -150px; left: -90px; background: radial-gradient(circle, rgba(47,140,255,.20), transparent 70%); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
.hero .pill { backdrop-filter: blur(8px); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 158px; gap: 18px; }
.bento-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--glass-brd); display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bento-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background: radial-gradient(120% 100% at 100% 0%, var(--g1, rgba(0,229,160,.18)), transparent 60%);
  transition: opacity .25s;
}
.bento-card:hover { transform: translateY(-5px); border-color: rgba(0,229,160,.45); box-shadow: 0 24px 52px -18px rgba(0,229,160,.30); }
.bento-card:hover::after { opacity: .9; }
.bento-card .b-ico { font-size: 1.7rem; position: absolute; top: 18px; left: 20px; }
.bento-card .go { position: absolute; top: 18px; right: 20px; color: var(--text-faint); font-size: 1.2rem; transition: .2s; }
.bento-card:hover .go { color: var(--accent); transform: translateX(3px); }
.bento-card h3 { font-size: 1.16rem; margin-bottom: 4px; }
.bento-card p { color: var(--text-dim); font-size: .88rem; }
.bento-2 { grid-column: span 2; }
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-2 { grid-column: span 2; } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .bento-2 { grid-column: span 1; } }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Legal / prose pages, footer legal links, cookie consent
   ========================================================================== */
.legal { max-width: 820px; margin: 0 auto; }
.legal > p:first-of-type { font-size: 1.05rem; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.legal h3 { font-size: 1.04rem; margin: 22px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--text-dim); }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent-2); }
.legal a:hover { color: var(--accent); }
.legal .updated { color: var(--text-faint); font-size: .85rem; margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: .9rem; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); color: var(--text); }
.legal td { color: var(--text-dim); }
.legal-note { background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.25); border-radius: 12px; padding: 14px 16px; font-size: .88rem; color: var(--text-dim); margin: 18px 0; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 30px; }
.legal-toc a { font-size: .85rem; padding: 6px 13px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); }
.legal-toc a:hover { color: var(--accent); border-color: var(--accent); }

.footer-legal { border-top: 1px solid var(--border); margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.footer-legal a { color: var(--text-dim); font-size: .85rem; }
.footer-legal a:hover { color: var(--accent); }

.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 940px; margin: 0 auto;
  background: rgba(15,21,37,.97); backdrop-filter: blur(12px); border: 1px solid var(--glass-brd); border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  animation: ckUp .4s ease;
}
@keyframes ckUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie-bar p { color: var(--text-dim); font-size: .9rem; flex: 1; min-width: 240px; margin: 0; }
.cookie-bar a { color: var(--accent); }
.cookie-bar .ck-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar .btn { padding: 10px 18px; font-size: .88rem; }
@media (max-width: 560px) { .cookie-bar { bottom: 0; left: 0; right: 0; border-radius: 16px 16px 0 0; } }

/* ==========================================================================
   Contact form + floating contact button
   ========================================================================== */
.cform { max-width: 640px; }
.cform label { display: block; font-weight: 600; font-size: .9rem; color: var(--text); margin-bottom: 16px; }
.cform input, .cform textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); font-size: 1rem; font-family: inherit; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); }
.cform .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .cform .cf-row { grid-template-columns: 1fr; } }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform button { margin-top: 6px; }
.contact-cards { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-aside { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.contact-aside h3 { margin-bottom: 8px; }
.contact-aside p { color: var(--text-dim); font-size: .92rem; margin-bottom: 12px; }
.wa-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: rgba(0,229,160,.14); color: var(--accent); font-weight: 700; font-size: .82rem; }

.contact-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 250;
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 19px; border-radius: 999px;
  background: var(--grad-main); color: #04130d; font-weight: 800; font-size: .92rem;
  box-shadow: 0 12px 30px rgba(0,229,160,.4); transition: transform .15s, box-shadow .2s;
}
.contact-fab:hover { color: #04130d; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,229,160,.5); }
.contact-fab .cf-ico { font-size: 1.15rem; }
@media (max-width: 560px) { .contact-fab .cf-txt { display: none; } .contact-fab { padding: 15px; } }

/* ==========================================================================
   Mobile / device compatibility safety net (applies to all pages)
   ========================================================================== */
img, svg, video, canvas, iframe { max-width: 100%; }
table { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
.res { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 560px) {
  /* Sign-in / sign-up bars (community + Pro): stack and go full-width so nothing is hidden */
  .auth-bar { flex-direction: column; align-items: stretch; }
  .auth-bar input { width: 100%; min-width: 0 !important; }
  .auth-bar .btn { width: 100%; justify-content: center; }

  /* The "I agree to the guidelines" checkbox — make it obvious and easy to tap */
  .agree { font-size: .92rem; width: 100%; }
  .agree input[type=checkbox] { width: 20px; height: 20px; transform: translateY(1px); }

  /* Pay-what-you-wish row on the Pro page */
  .give { width: 100%; }
  .give .field { max-width: none !important; flex: 1 1 100%; }

  /* Modals fit small screens */
  .modal { padding: 20px 12px; }
  .modal-card { padding: 20px 16px; }

  /* Buttons in hero/CTA bands wrap cleanly */
  .hero-actions .btn, .cta-band .btns .btn { width: 100%; justify-content: center; }
}
