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

:root {
  --bg: #090c16; --panel: rgba(20, 25, 43, .82); --panel-solid: #151a2c;
  --panel-border: rgba(183, 193, 230, .12); --text: #f5f6ff; --muted: #929ab7;
  --accent: #b6a5ff; --accent-strong: #8873ff; --cyan: #67e2d5; --danger: #ff9da8;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); font-family: Manrope, sans-serif; overflow-x: hidden; }
button, select, input { font: inherit; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ambient { position: fixed; width: 42vw; height: 42vw; border-radius: 50%; filter: blur(100px); opacity: .13; pointer-events: none; }
.ambient-one { background: #6956ff; top: -18vw; left: -14vw; }.ambient-two { background: #1cc7b7; right: -22vw; bottom: -16vw; }
.shell { width: min(1160px, calc(100% - 48px)); margin: auto; position: relative; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--text); display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.04em; font-size: 20px; text-decoration: none; }
.brand > span:last-child > span { color: var(--accent); }
.brand-mark { width: 29px; height: 29px; border: 1px solid #8a7cff; border-radius: 9px; display: flex; gap: 2px; justify-content: center; align-items: center; transform: rotate(-11deg); background: rgba(134,113,255,.08); }
.brand-mark span { width: 3px; border-radius: 4px; background: var(--accent); }.brand-mark span:first-child { height: 8px; }.brand-mark span:nth-child(2) { height: 15px; }.brand-mark span:last-child { height: 11px; }
.secure-pill, .connection-state, .live-badge { font: 500 10px 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.secure-pill { color: var(--cyan); display: flex; gap: 9px; align-items: center; }
.pulse-dot, .live-badge span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(103,226,213,.1); }

.hero { min-height: 280px; display: flex; align-items: center; justify-content: space-between; padding: 35px 8% 31px; }
.eyebrow, .section-kicker { color: var(--accent); font: 500 10px 'DM Mono', monospace; letter-spacing: .17em; margin: 0 0 16px; }
h1 { max-width: 610px; margin: 0; font-size: clamp(42px, 5.4vw, 70px); line-height: .99; letter-spacing: -.075em; }
h1 em { color: var(--accent); font-style: normal; }.hero-copy { color: var(--muted); max-width: 550px; margin: 22px 0 0; font-size: 14px; line-height: 1.75; }
.hero-orbit { width: 210px; height: 210px; position: relative; margin-right: 6%; }
.orbit { position: absolute; border: 1px solid rgba(182,165,255,.24); border-radius: 50%; inset: 8px; transform: rotate(32deg) skew(-10deg); }.orbit-small { inset: 34px; border-color: rgba(103,226,213,.33); transform: rotate(-40deg) skew(14deg); }
.orbit-core { position: absolute; inset: 77px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #806cf5, #342d72); box-shadow: 0 0 52px rgba(128,105,255,.38); }.orbit-core svg { width: 29px; fill: none; stroke: white; stroke-width: 1.7; stroke-linecap: round; }
.orbit-label { position: absolute; color: var(--muted); font: 500 9px 'DM Mono'; letter-spacing: .14em; }.label-top { top: 7px; left: 94px; }.label-right { right: -13px; top: 100px; }

.setup-card { position: relative; display: flex; align-items: center; gap: 24px; background: rgba(17,22,38,.66); border: 1px solid var(--panel-border); border-radius: 15px; padding: 16px 50px 16px 20px; backdrop-filter: blur(18px); }
.setup-title { min-width: 128px; }.setup-title span { display: block; font-size: 12px; font-weight: 700; }.setup-title strong { color: var(--accent); font: 500 9px 'DM Mono'; text-transform: uppercase; letter-spacing: .12em; }
.setup-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); flex: 1; gap: 16px; }
.setup-steps li { display: flex; align-items: center; gap: 10px; }.setup-steps li > span { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; color: var(--accent); background: rgba(182,165,255,.1); border: 1px solid rgba(182,165,255,.16); border-radius: 50%; font: 500 10px 'DM Mono'; }
.setup-steps strong, .setup-steps small { display: block; }.setup-steps strong { font-size: 10px; }.setup-steps small { color: var(--muted); font-size: 8px; margin-top: 2px; }
.notice-close { position: absolute; right: 15px; top: 13px; color: #737c99; background: transparent; border: 0; font-size: 20px; cursor: pointer; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.panel { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 18px; padding: 27px; backdrop-filter: blur(18px); box-shadow: 0 16px 50px rgba(0,0,0,.11); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; }.panel h2 { font-size: 24px; letter-spacing: -.05em; margin: 0 0 24px; }
.connection-state { color: var(--muted); border: 1px solid rgba(141,150,182,.2); background: rgba(0,0,0,.09); padding: 7px 10px; border-radius: 999px; }.connection-state.connected { color: var(--cyan); border-color: rgba(103,226,213,.22); }
.device-card { display: flex; align-items: center; gap: 14px; padding: 13px; margin: 0 -4px; border: 1px solid rgba(183,193,230,.09); background: rgba(255,255,255,.018); border-radius: 13px; cursor: pointer; transition: border-color .2s, background .2s; }.device-card:hover { background: rgba(255,255,255,.03); border-color: rgba(183,193,230,.16); }
.device-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }.device-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.mic-icon { background: rgba(182,165,255,.12); color: var(--accent); }.speaker-icon { background: rgba(103,226,213,.1); color: var(--cyan); }
.device-info { flex: 1; min-width: 0; }.device-info > span { display: block; color: #e8e9f3; font-size: 11px; font-weight: 700; margin-bottom: 5px; }
select { color: var(--text); background: #20263b; border: 1px solid #303750; border-radius: 9px; padding: 8px 32px 8px 10px; outline: 0; cursor: pointer; }
.device-info select { width: 100%; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }.device-info small, .support-note { display: block; color: var(--muted); font-size: 9px; margin-top: 5px; }
.device-led { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #444c68; }.device-led.active { background: var(--cyan); box-shadow: 0 0 11px var(--cyan); }
.route-line { height: 24px; border-left: 1px dashed #4d5273; margin: 0 0 0 29px; padding: 3px 0; display: flex; flex-direction: column; justify-content: space-between; }.route-line span { width: 4px; height: 4px; margin-left: -2.5px; border-radius: 50%; background: var(--accent-strong); }
.button-row { display: flex; gap: 10px; margin-top: 22px; }.button { cursor: pointer; border-radius: 10px; padding: 11px 15px; font: 700 11px Manrope; border: 1px solid transparent; transition: transform .2s, filter .2s, background .2s; }.button:hover { transform: translateY(-1px); filter: brightness(1.06); }.button:active { transform: scale(.98); }.button-primary { color: white; background: linear-gradient(180deg, #917dff, #7761ef); box-shadow: 0 8px 22px rgba(128,105,255,.2); }.button-ghost { color: #c8cce1; background: rgba(255,255,255,.025); border-color: rgba(183,193,230,.15); }.support-note { line-height: 1.6; margin: 14px 2px 0; }

.live-badge { color: var(--muted); padding-top: 5px; }.live-badge span { background: #555b76; box-shadow: none; margin-right: 7px; }.live-badge.active { color: var(--cyan); }.live-badge.active span { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.visualizer { height: 168px; position: relative; overflow: hidden; border-radius: 12px; background: #0e1326; border: 1px solid rgba(183,193,230,.09); }.visualizer-grid { position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(151,164,211,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(151,164,211,.08) 1px, transparent 1px); background-size: 30px 30px; }
.bars { position: absolute; bottom: 44px; left: 19px; right: 19px; height: 62px; display: flex; align-items: center; gap: 4px; }.bar { flex: 1; min-width: 2px; height: 4%; border-radius: 4px; background: linear-gradient(#ad9eff, #624ed6); transition: height .09s ease; opacity: .9; }
.level-readout { position: absolute; bottom: 12px; left: 19px; font: 11px 'DM Mono'; color: var(--muted); }.level-readout strong { color: var(--text); font-size: 19px; min-width: 32px; display: inline-block; }
.gate-status { position: absolute; right: 14px; bottom: 13px; color: #6d7694; font: 500 8px 'DM Mono'; letter-spacing: .08em; }.gate-status.open { color: var(--cyan); }
.monitor-meta { display: flex; justify-content: space-between; color: var(--muted); font: 10px 'DM Mono'; margin: 11px 2px 22px; }.meta-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; }
.control-strip { display: flex; align-items: end; gap: 15px; }.volume-control { flex: 1; color: var(--muted); font: 10px 'DM Mono'; }.volume-control output { float: right; color: var(--accent); }.volume-control input { width: 100%; display: block; margin-top: 13px; }
input[type='range'] { height: 4px; accent-color: var(--accent); cursor: pointer; }
.mute-button { flex: 0 0 auto; width: 39px; height: 35px; color: var(--muted); background: #20263d; border: 1px solid #303753; border-radius: 9px; cursor: pointer; }.mute-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.mute-button.muted { color: var(--danger); background: rgba(255,100,100,.1); }.mute-button.muted .sound-wave { display: none; }
.button-start { width: 100%; margin-top: 23px; background: linear-gradient(180deg, #2c3452, #222941); color: #dce0f2; border-color: rgba(183,193,230,.08); }.button-start.running { background: linear-gradient(180deg, #b4616c, #914956); color: white; }.start-symbol { margin-right: 6px; }
.error-message { min-height: 15px; color: var(--danger); font-size: 10px; margin: 9px 0 -9px; }.error-message[data-tone='success'] { color: var(--cyan); }

.processing-panel { grid-column: 1 / -1; }.processing-heading { align-items: center; }.processing-heading h2 { margin-bottom: 0; }.preset-field { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 10px 'DM Mono'; }.preset-field select { min-width: 150px; font: 600 11px Manrope; }
.protection-row { display: flex; justify-content: space-between; align-items: center; margin: 25px 0; padding: 14px 15px; border-radius: 12px; background: rgba(103,226,213,.045); border: 1px solid rgba(103,226,213,.12); }.protection-copy { display: flex; align-items: center; gap: 11px; }.protection-copy strong, .protection-copy small { display: block; }.protection-copy strong { font-size: 11px; }.protection-copy small { color: var(--muted); font-size: 9px; margin-top: 3px; }.shield-icon { width: 27px; height: 27px; display: grid; place-items: center; color: var(--cyan); background: rgba(103,226,213,.11); border-radius: 9px; font-size: 12px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }.switch > span { display: block; width: 39px; height: 23px; padding: 3px; border-radius: 999px; background: #394058; cursor: pointer; transition: .2s; }.switch > span::after { content: ''; display: block; width: 17px; height: 17px; border-radius: 50%; background: white; box-shadow: 0 2px 5px #0006; transition: transform .2s; }.switch input:checked + span { background: var(--accent-strong); }.switch input:checked + span::after { transform: translateX(16px); }
.eq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }.eq-control { padding: 2px; }.eq-control > span { display: flex; justify-content: space-between; align-items: center; }.eq-control strong { font-size: 11px; }.eq-control output { color: var(--accent); font: 10px 'DM Mono'; }.eq-control input { display: block; width: 100%; margin: 17px 0 6px; }.eq-control small { color: #68708e; font: 9px 'DM Mono'; }.processing-tip { color: var(--muted); font-size: 9px; margin: 23px 0 0; padding-top: 16px; border-top: 1px solid var(--panel-border); }.processing-tip span { color: var(--cyan); text-transform: uppercase; font: 500 8px 'DM Mono'; letter-spacing: .1em; margin-right: 7px; }

.footer { display: flex; justify-content: space-between; color: #68708e; font: 10px 'DM Mono'; padding: 25px 3px 34px; }.footer-mark { color: var(--cyan); font-size: 13px; margin-right: 6px; }
dialog { width: min(430px, calc(100% - 32px)); color: var(--text); background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 18px; padding: 30px; box-shadow: 0 24px 100px #000; }.dialog-close { float: right; color: var(--muted); background: none; border: 0; font-size: 24px; cursor: pointer; }.dialog-icon { color: var(--accent); font-size: 33px; }.dialog h2 { margin: 8px 0 10px; }.dialog p:not(.section-kicker) { color: var(--muted); font-size: 12px; line-height: 1.7; }.dialog::backdrop { background: rgba(3,5,12,.76); backdrop-filter: blur(5px); }.dialog-action { margin-top: 12px; }

@media (max-width: 860px) { .setup-title { display: none; }.eq-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .shell { width: min(100% - 28px, 560px); }.topbar { height: 72px; }.secure-pill { font-size: 8px; }.hero { min-height: auto; padding: 45px 3px 31px; }.hero-orbit { display: none; }.setup-card { display: none; }.dashboard-grid { grid-template-columns: 1fr; }.processing-panel { grid-column: auto; }.panel { padding: 22px; }.processing-heading { align-items: flex-start; gap: 12px; }.processing-heading { flex-direction: column; }.preset-field { width: 100%; justify-content: space-between; }.eq-grid { grid-template-columns: 1fr 1fr; }.footer { gap: 12px; flex-direction: column; } }
@media (max-width: 430px) { h1 { font-size: 39px; }.panel-heading { gap: 10px; }.connection-state, .live-badge { font-size: 8px; }.button-row { flex-direction: column; }.eq-grid { grid-template-columns: 1fr; gap: 18px; }.protection-copy small { max-width: 200px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
