/* Public site (everything with the public header and footer): always dark, in the
   landing page's neon style. Loaded on top of app.css; tokens retuned here. */
.site {
  --bg: #050608; --bg-2: #050608;
  --panel: rgba(15, 21, 35, .78); --panel-2: rgba(255, 255, 255, .035); --panel-3: rgba(255, 255, 255, .06);
  --line: rgba(125, 249, 255, .10); --line-2: rgba(125, 249, 255, .2);
  --brand: #4f8bff; --brand-2: #6f9bff; --brand-soft: rgba(59, 108, 255, .16); --brand-soft-2: rgba(59, 108, 255, .3);
  --neon: #7df9ff;
  --shadow-sm: inset 0 1px 0 rgba(255, 255, 255, .04); --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  background: #050608; color: var(--text);
}
.site .wrap { max-width: 1240px; }

/* backdrop: glows and a faint grid fixed behind every public page */
.site main { position: relative; isolation: isolate; min-height: 60vh; }
.site main::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(700px 420px at 10% 0%, rgba(29, 78, 216, .28), transparent 70%),
              radial-gradient(600px 400px at 95% 10%, rgba(124, 58, 237, .2), transparent 70%),
              radial-gradient(700px 500px at 50% 110%, rgba(8, 145, 178, .14), transparent 70%); }
.site main::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image: linear-gradient(rgba(125, 249, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 249, 255, .03) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(#000, transparent 85%); -webkit-mask-image: linear-gradient(#000, transparent 85%); }

/* header + footer */
.site .topbar { background: rgba(5, 6, 8, .72); border-bottom-color: transparent; }
.site .topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 249, 255, .45), rgba(59, 108, 255, .45), rgba(167, 139, 250, .45), transparent); }
.site .nav a { position: relative; color: #aab3c5; transition: color .2s; }
.site .nav a:hover { color: #fff; }
.site .nav a.on { color: #fff; }
.site .nav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -25px; height: 2px; background: var(--neon); box-shadow: 0 0 10px var(--neon); border-radius: 2px; }
.site .footer { position: relative; background: radial-gradient(700px 200px at 50% 0, rgba(29, 78, 216, .12), transparent 70%), #050608; border-top-color: transparent; }
.site .footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #22d3ee, #3b6cff, #a78bfa, transparent); opacity: .5; }
.site .footer a:hover { color: var(--neon); }

/* type */
.site h1, .site h2, .site h3 { font-family: 'Space Grotesk', var(--font); letter-spacing: -.03em; color: #fff; }
.site .section-title h1, .site .site-title {
  font-size: clamp(38px, 5.4vw, 66px); line-height: 1; letter-spacing: -.045em; margin: 0 0 16px; }
.site .section-title h1 .shimmer, .site .site-title .shimmer, .site h1 .shimmer, .site h2 .shimmer {
  background: linear-gradient(100deg, #6f9bff 0%, #22d3ee 25%, #c4b5fd 45%, #6f9bff 65%, #22d3ee 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
.site .section-title p, .site .lead { color: #aab3c5; font-size: 17px; }
.site .section { padding: 80px 0; }
.site .prose h2 { font-size: 26px; margin-top: 44px; }
.site .prose h2::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin: 0 12px 4px 0; vertical-align: middle;
  background: var(--neon); box-shadow: 0 0 10px var(--neon); transform: rotate(45deg); }
.site .prose p, .site .prose li { color: #c6cde0; }
.site .prose strong, .site .prose b { color: #fff; }
.site .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; border: 1px solid rgba(125, 249, 255, .25);
  background: rgba(125, 249, 255, .06); color: var(--neon); font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.site .kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.site a { color: #6f9bff; } .site a:hover { color: var(--neon); }

/* surfaces */
.site .card, .site .table-wrap, .site .toc, .site .ac-card, .site .pcard {
  background: linear-gradient(160deg, rgba(23, 33, 58, .66), rgba(8, 11, 20, .8)); backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.site .card { border-radius: 20px; }
.site .ac-card { transition: border-color .3s, translate .3s, box-shadow .3s; }
.site .ac-card:hover, .site a.card:hover { border-color: rgba(125, 249, 255, .4); box-shadow: 0 20px 60px rgba(37, 99, 255, .22); translate: 0 -3px; transform: none; }
.site .ac-card .no { font-family: 'Space Grotesk', var(--font); font-weight: 700; color: rgba(125, 249, 255, .45); }
.site th { background: rgba(125, 249, 255, .04); color: #8f99ad; font: 600 11px var(--mono); letter-spacing: .1em; }
.site td { border-color: var(--line); }
.site tbody tr { transition: background .2s; } .site tbody tr:hover td { background: rgba(125, 249, 255, .03); }
.site .stat .value, .site .price-big { font-family: 'Space Grotesk', var(--font); font-weight: 700; color: #fff; }
.site .price-big { text-shadow: 0 0 30px rgba(125, 249, 255, .3); }
.site .badge { border: 1px solid rgba(255, 255, 255, .08); }

/* controls */
.site .btn { border-radius: 12px; }
.site .btn.primary { position: relative; overflow: hidden; background: linear-gradient(180deg, #3a6bff, #1d3fd6); border: 1px solid rgba(125, 249, 255, .45); color: #fff;
  box-shadow: 0 0 0 1px rgba(59, 108, 255, .3), 0 10px 34px rgba(59, 108, 255, .5); }
.site .btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-100%); }
.site .btn.primary:hover { background: linear-gradient(180deg, #4a7bff, #2448e6); border-color: rgba(125, 249, 255, .7); box-shadow: 0 0 0 1px rgba(125, 249, 255, .5), 0 12px 46px rgba(59, 108, 255, .75); }
.site .btn.primary:hover::after { animation: swipe .8s; }
@keyframes swipe { to { transform: translateX(100%); } }
.site .btn.ghost, .site .btn:not(.primary):not(.danger):not(.buy):not(.glow) { border-color: rgba(125, 249, 255, .2); background: rgba(255, 255, 255, .03); color: #fff; }
.site .btn.ghost:hover, .site .btn:not(.primary):not(.danger):not(.buy):not(.glow):hover { border-color: rgba(125, 249, 255, .5); background: rgba(125, 249, 255, .07); }
.site .topbar .btn.ghost { border-color: transparent; background: none; }
.site .tabs { background: rgba(255, 255, 255, .03); border: 1px solid rgba(125, 249, 255, .14); border-radius: 14px; padding: 5px; }
.site .tabs a, .site .tabs button { font-family: 'Space Grotesk', var(--font); font-weight: 600; border: 1px solid transparent; transition: all .25s; }
.site .tabs a:hover, .site .tabs button:hover { color: #fff; text-decoration: none; }
.site .tabs a.on, .site .tabs button.on { background: linear-gradient(180deg, rgba(79, 139, 255, .4), rgba(47, 107, 255, .2)); border-color: rgba(125, 249, 255, .4); color: #fff;
  box-shadow: 0 0 22px rgba(59, 108, 255, .4); }
.site .size-pill { font-family: 'Space Grotesk', var(--font); font-weight: 700; background: rgba(255, 255, 255, .03); border-color: rgba(125, 249, 255, .14); transition: all .2s; }
.site .size-pill:hover { border-color: rgba(125, 249, 255, .45); }
.site .size-pill.on { background: rgba(125, 249, 255, .1); border-color: var(--neon); color: var(--neon); box-shadow: 0 0 20px rgba(125, 249, 255, .25); }
.site input, .site select, .site textarea { background: rgba(255, 255, 255, .03); border-color: rgba(125, 249, 255, .16); }
.site input:focus, .site select:focus, .site textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(125, 249, 255, .14); outline: none; }
.site input[type=checkbox] { accent-color: #3b6cff; }

/* auth pages: one glass card with a spinning neon edge */
.site .auth-card { position: relative; border: 0; padding: 34px; box-shadow: 0 40px 120px rgba(37, 99, 255, .25); }
.site .auth-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), #22d3ee, #3b6cff, #a78bfa, #22d3ee); animation: spin 5s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.site .auth-card h1 { font-size: 34px; letter-spacing: -.04em; }
.site .auth-mark { display: block; margin: 0 auto 18px; filter: drop-shadow(0 0 18px rgba(125, 249, 255, .5)); animation: bob 6s ease-in-out infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* academy banner keeps its art but takes the neon frame */
.site .ac-hero { border: 1px solid rgba(125, 249, 255, .2); box-shadow: 0 40px 120px rgba(37, 99, 255, .2); }
.site .ac-hero h1 { font-family: 'Space Grotesk', var(--font); font-weight: 700; letter-spacing: -.045em; }

@media (max-width: 900px) { .site .nav a.on::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .site .auth-card::before, .site .auth-mark, .site .shimmer { animation: none !important; }
}
.site .wrap.prose { max-width: 880px; }
.site .footer a { color: #aab3c5; } .site .footer a:hover { color: var(--neon); text-decoration: none; }
.site .nav a:hover { text-decoration: none; }
.site .tabs a:not(.on) { color: #aab3c5; }
