/* Particles site styles */
:root {
  --bg: #0b0d14;
  --fg: #e6e9ef;
  --muted: #9aa3b2;
  --brand: #7c4dff;
  --brand-2: #00e5ff;
  --panel: rgba(20,22,32,0.65);
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; overflow-x: hidden; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 10; display:flex; align-items:center; justify-content:space-between; padding:10px 16px; background: rgba(15,16,25,0.45); backdrop-filter: saturate(120%) blur(6px); border:1px solid var(--border); border-radius: 12px; }
.brand { display:inline-flex; align-items:center; gap:10px; color:var(--fg); font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.brand .dot { width:10px;height:10px;border-radius:50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 18px rgba(124,77,255,.8), 0 0 24px rgba(0,229,255,.5) inset; }
.site-nav { display:flex; gap:14px; align-items:center; }
.site-nav a { color: var(--fg); opacity:.9; }
.site-nav a.active { opacity:1; text-decoration: underline; text-underline-offset: 6px; }
.btn { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(124,77,255,.25), rgba(0,229,255,.25)); color: var(--fg); border: 1px solid rgba(255,255,255,0.12); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn.alt { background: rgba(255,255,255,.06); }

.hero { min-height: 100vh; position: relative; display:grid; place-items:center; }
#bg { position: fixed; inset: 0; width:100%; height:100%; z-index: -1; background: radial-gradient(900px 900px at 80% -10%, rgba(124,77,255,0.25), transparent 60%), radial-gradient(600px 700px at -10% 110%, rgba(0,229,255,0.2), transparent 60%), var(--bg); }
.hero #textfx { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index: 3; }
.hero-inner { text-align:center; margin-top: 40px; }
.hero-inner h1 { font-size: clamp(46px, 8vw, 120px); margin: 0; letter-spacing: -.02em; font-weight: 800; background: linear-gradient(135deg, #fff, #b8c1ff 30%, #00f0ff 70%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 10px 40px rgba(124,77,255,.25); }
.tagline { color: var(--muted); font-size: clamp(14px, 2.5vw, 18px); margin-top: 8px; }
.actions { margin-top: 16px; display:flex; gap:12px; justify-content:center; }

/* Rotating text */
.rotator { margin-top: 18px; min-height: 2.2em; position: relative; }
.rotator .text { font-size: clamp(20px, 3.2vw, 34px); letter-spacing: .02em; opacity: 0; transform: translateY(6px); transition: all .5s var(--ease); }
.rotator .text.show { opacity: 1; transform: translateY(0); }
/* per-char animation support */
.rotator .text .char { display:inline-block; white-space:pre; will-change: transform, opacity; }

.control { position: fixed; right: 14px; top: 96px; width: 280px; background: var(--panel); border:1px solid var(--border); border-radius: 12px; padding: 12px; backdrop-filter: saturate(120%) blur(6px); box-shadow: var(--shadow); }
.control h3 { margin: 4px 0 10px 0; font-size: 16px; }
.control label { display:block; font-size: 13px; color: var(--muted); margin: 10px 0; }
.control label input[type="range"] { width: 100%; }
.control .row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.control [data-out] { float:right; color: var(--fg); margin-left: 8px; }

.container { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }
.subtitle { font-weight: 700; font-size: 22px; margin: 10px 0 18px; }
.cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: rgba(255,255,255,0.04); border:1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px) rotate3d(.2,.6,0,6deg); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.code { background: #0e111a; color: #d6deeb; border-radius: 12px; padding: 14px; border:1px solid #1b2030; overflow:auto; }

.site-footer { position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--muted); font-size: 12px; background: rgba(15,16,25,0.5); backdrop-filter: saturate(120%) blur(6px); padding: 6px 10px; border-radius: 10px; border:1px solid var(--border); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }

.stage { min-height: 100vh; display:grid; place-items:center; position: relative; }
.scene-switcher { text-align:center; }
.chips { display:flex; flex-wrap: wrap; gap: 10px; justify-content:center; margin: 10px 0 6px; }
.chip { background: rgba(255,255,255,.06); color: var(--fg); border:1px solid var(--border); border-radius: 999px; padding: 8px 12px; cursor:pointer; }
.chip.active { background: linear-gradient(135deg, rgba(124,77,255,.25), rgba(0,229,255,.25)); }

.doc h1, .about h1 { margin-top: 100px; }
.doc ul, .about ul { line-height: 1.9; }

/* Themes */
.theme-light { --bg: #f6f8fb; --fg: #0b0d14; --muted: #586174; --panel: rgba(255,255,255,0.75); --border: rgba(0,0,0,0.06); }
.theme-light #bg { background: radial-gradient(900px 900px at 80% -10%, rgba(124,77,255,0.15), transparent 60%), radial-gradient(600px 700px at -10% 110%, rgba(0,229,255,0.15), transparent 60%), var(--bg); }

@media (max-width: 860px) {
  .control { position: fixed; left: 50%; transform: translateX(-50%); right: auto; width: calc(100% - 24px); bottom: 14px; top: auto; }
}
