/* TermAura base: tokens, reset, shared components. Dark mode only. */
:root {
  color-scheme: dark;
  --black: #02070A; --night: #061013; --panel: #0A171A; --panel-2: #0F2024; --raised: #15292D;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(45, 245, 184, .22); --line-3: rgba(45, 245, 184, .45);
  --mint: #2DF5B8; --teal: #12C9C4; --deep: #0A7F78;
  --text: #EAF7F4; --mute: #8FA9A5; --dim: #5E7B7E;
  --err: #FF8585; --warn: #F5C86B; --blue: #6CB6FF; --violet: #B79CFF;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --nav-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--black); scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-width: thin; scrollbar-color: #1d3b3f transparent; }
body { margin: 0; min-height: 100vh; background: var(--black); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; position: relative; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(45, 245, 184, .3); }
/* slim scrollbars everywhere */
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1d3b3f; border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-thumb:hover { background: #2a5a5c; background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: #1d3b3f transparent; }
.grow { flex: 1; } .muted { color: var(--mute); } .sm { font-size: .8125rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1080px, 100% - 2 * clamp(20px, 5vw, 48px)); margin-inline: auto; }
body > :where(:not(.backdrop):not(svg):not(.modal):not(.toast):not(canvas)) { position: relative; z-index: 1; }
body.modal-open { overflow: hidden; }

/* ---- backdrop: live smoke drawn by a shader (js/ui.js), no image ---- */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #010607; contain: strict; }
.smoke-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.smoke-cv.off { display: none; }
.mist { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0; will-change: transform; }
.nogl .smoke-cv { display: none; }
.nogl .mist { opacity: 1; }
.m1 { width: 60vw; height: 60vw; left: -14vw; bottom: -22vw; background: radial-gradient(circle, rgba(45, 245, 184, .2), transparent 68%); animation: mist1 30s ease-in-out infinite alternate; }
.m2 { width: 52vw; height: 52vw; right: -12vw; top: -16vw; background: radial-gradient(circle, rgba(18, 201, 196, .18), transparent 68%); animation: mist2 36s ease-in-out infinite alternate; }
.grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vig { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(1, 6, 7, .5) 100%); }
@keyframes mist1 { to { transform: translate3d(14vw, -8vw, 0) scale(1.2); } } @keyframes mist2 { to { transform: translate3d(-12vw, 9vw, 0) scale(1.15); } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; font-size: .9rem; border-radius: 999px; font-weight: 600; border: 1px solid var(--line); background: rgba(15, 32, 36, .6); transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .25s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { border-color: var(--line-3); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--mint); color: #02130E; border-color: var(--mint); box-shadow: 0 8px 30px -10px rgba(45, 245, 184, .6); }
.btn-primary:hover { background: #5CFFCB; border-color: #5CFFCB; box-shadow: 0 10px 36px -8px rgba(45, 245, 184, .75); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .14); }
.btn-ghost:hover { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .22); }
.btn-sm { height: 36px; padding: 0 16px; font-size: .875rem; } .btn-lg { height: 48px; padding: 0 24px; font-size: .9375rem; }
.btn-danger { color: var(--err); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn .arr { transition: transform .25s var(--ease); } .btn:hover .arr { transform: translateX(3px); }

/* ---- floating nav ---- */
.nav { position: fixed; top: calc(14px + var(--safe-t)); left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding-inline: 14px; pointer-events: none; }
.nav-in { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 8px; height: var(--nav-h); padding: 0 8px 0 18px; border-radius: 999px; background: rgba(6, 16, 19, .62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05); transition: background .3s, border-color .3s; }
.nav.scrolled .nav-in { background: rgba(4, 11, 13, .82); border-color: var(--line-2); }
.logo { display: block; flex: none; margin-right: 14px; } .logo img { height: 28px; width: auto; transition: filter .3s; } .logo:hover img { filter: drop-shadow(0 0 12px rgba(45, 245, 184, .45)); }
.links { display: flex; align-items: center; gap: 2px; }
.links a:not(.btn) { position: relative; display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 999px; color: var(--mute); font-weight: 500; font-size: .875rem; transition: color .2s, background .2s; }
.links a:not(.btn):hover { color: var(--mint); }
.links a.active { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav-right { display: flex; align-items: center; gap: 8px; flex: none; margin-left: 10px; }
.btn-cta { height: 38px; padding: 0 16px; background: var(--mint); color: #02130E; border-color: var(--mint); font-size: .875rem; }
.btn-cta:hover { background: #5CFFCB; border-color: #5CFFCB; }
.chip-s { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 8px; border-radius: 999px; background: rgba(255, 120, 20, .08); font-size: .8125rem; font-weight: 600; transition: background .2s; }
.chip-s:hover { background: rgba(255, 120, 20, .16); }
.chip-s .fire { width: 16px; height: 21px; } .chip-s span { color: var(--mute); font-weight: 500; } .chip-s b { font-variant-numeric: tabular-nums; }
.mob-only, .burger { display: none; }

/* ---- the flame ---- */
.fire { width: 1em; height: 1.3em; overflow: visible; filter: drop-shadow(0 0 10px rgba(255, 110, 20, .6)); }
.fire g { transform-box: fill-box; transform-origin: 50% 100%; }
.fire .f1 { animation: fl1 1.7s ease-in-out infinite alternate; } .fire .f2 { animation: fl2 1.2s ease-in-out infinite alternate; } .fire .f3 { animation: fl3 .9s ease-in-out infinite alternate; }
@keyframes fl1 { 0% { transform: scale(1, 1) skewX(0); } 50% { transform: scale(.97, 1.05) skewX(-2deg); } 100% { transform: scale(1.02, .98) skewX(1.5deg); } }
@keyframes fl2 { 0% { transform: scale(1, 1) skewX(1deg); } 100% { transform: scale(.94, 1.09) skewX(-2.5deg); } }
@keyframes fl3 { 0% { transform: scale(1, 1); opacity: .95; } 100% { transform: scale(.9, 1.14); opacity: 1; } }
.fire.off { filter: grayscale(1) brightness(.5) drop-shadow(none); opacity: .8; } .fire.off g { animation: none; }
.fire.big { width: 88px; height: 114px; }

/* ---- glass ---- */
.glass { background: linear-gradient(180deg, rgba(10, 26, 30, .7), rgba(5, 14, 17, .78)); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border: 1px solid var(--line-2); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 30px 80px -30px rgba(45, 245, 184, .25); }

/* ---- modal + toast ---- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(1, 5, 7, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadeIn .25s; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(460px, 100%); padding: 34px 30px 26px; border-radius: 24px; text-align: center; background: linear-gradient(180deg, #0C1D21, #071216); border: 1px solid var(--line-3); box-shadow: 0 0 80px -10px rgba(45, 245, 184, .35), 0 40px 100px rgba(0, 0, 0, .6); animation: pop .4s var(--ease); }
.modal-card h2 { font-size: 1.6rem; letter-spacing: -.02em; margin: 10px 0 6px; } .modal-card input { width: 100%; height: 54px; margin-top: 20px; padding: 0 18px; border-radius: 14px; background: #03090B; border: 1px solid var(--line-2); font-size: 1.0625rem; text-align: center; outline: 0; transition: box-shadow .2s, border-color .2s; }
.modal-card input:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(45, 245, 184, .15); }
.modal .err { min-height: 22px; margin-top: 8px; color: var(--err); font-size: .875rem; } .modal-act { display: grid; gap: 10px; margin-top: 6px; }
.modal .fine { margin-top: 16px; font-size: .78rem; color: var(--dim); } .modal-fire { display: grid; place-items: center; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--mute); } .modal-x:hover { background: var(--panel-2); color: #fff; } .modal-x svg { width: 18px; height: 18px; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.toast { position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translate(-50%, 24px); max-width: min(92vw, 440px); padding: 13px 18px; border-radius: 16px; background: rgba(15, 32, 36, .96); border: 1px solid var(--line-3); box-shadow: 0 16px 50px rgba(0, 0, 0, .55), 0 0 30px -8px rgba(45, 245, 184, .4); font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .4s var(--ease); z-index: 120; display: flex; gap: 10px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast svg { width: 20px; height: 20px; color: var(--mint); flex: none; }

/* ---- footer: opaque so the smoke never runs through the text ---- */
.foot { position: relative; border-top: 1px solid var(--line-2); background: #030A0C; padding: 40px 0 calc(40px + var(--safe-b)); }
.foot-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px 32px; }
.foot-in > a { justify-self: start; display: block; } .foot-in img { height: 28px; width: auto; }
.foot-in nav { display: flex; align-items: center; gap: 8px 28px; font-size: .875rem; color: #B7CDC9; }
.foot-in nav a { padding: 6px 0; transition: color .2s; } .foot-in nav a:hover { color: var(--mint); }
.copy { justify-self: end; font-size: .8125rem; color: #8FA9A5; }
@media (max-width: 860px) {
  .foot { padding: 36px 0 calc(32px + var(--safe-b)); }
  .foot-in { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 18px; }
  .foot-in > a, .copy { justify-self: center; }
  .foot-in nav { flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
}

/* ---- shared responsive nav ---- */
@media (max-width: 860px) {
  :root { --nav-h: 52px; }
  .desk-only { display: none !important; } .mob-only { display: inline-flex; }
  .nav-in { width: 100%; max-width: 560px; padding: 0 8px 0 16px; }
  .nav-right { margin-left: auto; }
  .burger { display: grid; gap: 5px; place-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
  .burger i { display: block; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease); }
  .burger[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); } .burger[aria-expanded="true"] i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .links { position: absolute; left: 0; right: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 24px; background: rgba(4, 11, 13, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .8); display: none; }
  .links.open { display: flex; animation: fadeIn .2s; }
  .links a:not(.btn) { height: 46px; font-size: 1rem; padding: 0 16px; }
  .links .btn { margin-top: 6px; height: 46px; }
}
@media (max-width: 420px) { .chip-s span:not(.fl) { display: none; } .chip-s { padding: 0 10px 0 8px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---- styled dropdown ---- */
.dd { position: relative; display: inline-flex; min-width: 0; }
.dd-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 44px; padding: 0 12px 0 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: .8125rem; font-weight: 500; text-align: left; transition: border-color .2s, background .2s, box-shadow .25s; }
.dd-btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.dd-btn:focus-visible, .dd.open .dd-btn { border-color: var(--line-3); box-shadow: 0 0 0 4px rgba(45, 245, 184, .12); outline: 0; }
.dd-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dd-btn svg { width: 16px; height: 16px; flex: none; color: var(--mute); transition: transform .25s var(--ease), color .2s; } .dd.open .dd-btn svg { transform: rotate(180deg); color: var(--mint); }
.cmd-tools .dd { max-width: 220px; }
.row2 .dd { flex: 1; } .row2 .dd-btn { height: 38px; border-radius: 10px; background: var(--black); padding: 0 10px 0 12px; }
.dd-pop { position: fixed; z-index: 95; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 16px; background: rgba(6, 16, 19, .96); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .85), 0 0 40px -16px rgba(45, 245, 184, .4); transform-origin: top left; animation: ddIn .18s var(--ease); }
.dd-pop.up { transform-origin: bottom left; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.dd-pop.up { animation-name: ddUp; } @keyframes ddUp { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 7px 10px 7px 12px; border-radius: 10px; font-size: .8125rem; color: var(--mute); cursor: pointer; transition: background .12s, color .12s; }
.dd-opt svg { width: 15px; height: 15px; flex: none; color: var(--mint); opacity: 0; }
.dd-opt.hl { background: rgba(255, 255, 255, .06); color: var(--text); }
.dd-opt.on { color: var(--mint); font-weight: 600; } .dd-opt.on svg { opacity: 1; } .dd-opt.on.hl { background: rgba(45, 245, 184, .1); }
.dd-pop::-webkit-scrollbar { width: 6px; }

/* ---- styled checkbox ---- */
.chk input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); display: grid; place-content: center; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.chk input::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid #02130E; border-bottom: 2px solid #02130E; transform: rotate(-45deg) scale(0); transition: transform .18s var(--ease); }
.chk input:checked { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 14px -2px rgba(45, 245, 184, .6); } .chk input:checked::after { transform: rotate(-45deg) scale(1); }
.chk input:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.chk:hover input:not(:checked) { border-color: var(--line-3); }
