:root{
  --bg:#041018;
  --text:#e9fbff;
  --muted:#a8c7d1;
  --line:rgba(255,255,255,.12);
  --glass:rgba(10, 24, 32, .42);
  --accent-hue:165;
}

/* Base */
*{box-sizing:border-box}
html,body{
  height:100%;
  margin:0;
}
body{
  font-family:Inter,system-ui,sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(88,240,214,.16), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(74,182,255,.14), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(184,107,255,.12), transparent 25%),
    linear-gradient(180deg, #041018 0%, #06151d 100%);
  color:var(--text);
}

/* Scrollable content above fixed background */
.page{
  min-height:100vh;
  position:relative;
  z-index:1;
  max-width:960px;
  margin:0 auto;
  padding:80px 16px 80px;
}

/* Background layers */
.noise{
  position:fixed; inset:0;
  pointer-events:none;
  opacity:.06;
  z-index:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.orb{
  position:fixed;
  border-radius:50%;
  filter: blur(18px);
  mix-blend-mode:screen;
  opacity:.8;
  animation: float 12s ease-in-out infinite;
  z-index:0;
}
.orb-1{
  width:280px; height:280px;
  left:8%; top:18%;
  background:radial-gradient(circle, rgba(88,240,214,.95), rgba(88,240,214,0) 70%);
}
.orb-2{
  width:340px; height:340px;
  right:10%; top:12%;
  background:radial-gradient(circle, rgba(74,182,255,.9), rgba(74,182,255,0) 72%);
  animation-delay:-3s;
}
.orb-3{
  width:220px; height:220px;
  left:50%; bottom:8%;
  background:radial-gradient(circle, rgba(184,107,255,.75), rgba(184,107,255,0) 72%);
  animation-delay:-6s;
}
.cloud{
  position:fixed;
  border-radius:50%;
  filter: blur(28px);
  opacity:.55;
  background:linear-gradient(135deg, rgba(88,240,214,.22), rgba(74,182,255,.14), rgba(184,107,255,.18));
  animation: drift 18s ease-in-out infinite;
  z-index:0;
}
.cloud::before,
.cloud::after{
  content:"";
  position:absolute;
  border-radius:50%;
  background:inherit;
  filter:inherit;
}
.cloud-1{
  width:420px; height:150px;
  left:-5%; top:58%;
}
.cloud-1::before{width:180px;height:180px;left:70px;top:-80px}
.cloud-1::after{width:220px;height:220px;left:190px;top:-95px}
.cloud-2{
  width:360px; height:130px;
  right:2%; top:62%;
  animation-delay:-5s;
}
.cloud-2::before{width:170px;height:170px;left:40px;top:-75px}
.cloud-2::after{width:210px;height:210px;left:170px;top:-90px}
.cloud-3{
  width:520px; height:170px;
  left:25%; top:8%;
  opacity:.38;
  animation-delay:-9s;
}
.cloud-3::before{width:220px;height:220px;left:110px;top:-90px}
.cloud-3::after{width:260px;height:260px;left:260px;top:-110px}

/* Sticky pill at top */
.sticky-panel{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  justify-content:center;
  pointer-events:none;
  margin-bottom:16px;
}
.sticky-pill{
  pointer-events:auto;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(5,14,22,.82);
  backdrop-filter:blur(16px);
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.78rem;
  color:#e9fbff;
}
.pill-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:rgba(88,240,214,1);
}
.pill-label{opacity:.8;}

/* Nav tabs */
.nav-tabs{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-bottom:22px;
}
.nav-tab{
  border-radius:999px;
  padding:6px 14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(6,16,24,.7);
  color:var(--muted);
  font-size:.8rem;
  cursor:pointer;
  backdrop-filter:blur(14px);
  transition:.2s ease;
}
.nav-tab--active{
  color:var(--text);
  border-color:hsla(var(--accent-hue) 80% 70% / .9);
  background:linear-gradient(135deg,
    hsla(var(--accent-hue) 80% 70% / .28),
    rgba(4,14,22,.9));
}

/* Views */
.view{
  display:none;
}
.view--active{
  display:block;
}
.view-center{
  min-height:420px;
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
}
.view-center.view--active{
  display:flex;
}

/* Hero (home view) */
.hero{
  text-align:center;
}
.eyebrow{
  margin:0 0 14px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:hsl(var(--accent-hue) 80% 70%);
  font-size:.78rem;
}
h1{
  margin:0;
  max-width:900px;
  font-size:clamp(2.8rem, 7vw, 6.2rem);
  line-height:.92;
  letter-spacing:-.06em;
  text-shadow:0 0 30px rgba(88,240,214,.12);
}
.subhead{
  max-width:720px;
  margin:18px auto 0;
  font-size:1.08rem;
  line-height:1.7;
  color:var(--muted);
}
.actions{
  display:flex;
  gap:14px;
  margin-top:28px;
  flex-wrap:wrap;
  justify-content:center;
}

/* Buttons */
.btn{
  text-decoration:none;
  color:var(--text);
  padding:10px 20px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(5,15,20,.6);
  backdrop-filter: blur(18px);
  transition:.25s ease;
  font-size:.9rem;
}
.btn:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.28);
  box-shadow:0 10px 30px rgba(0,0,0,.22);
}
.primary{
  background:linear-gradient(135deg,
    hsla(var(--accent-hue) 80% 70% / .25),
    rgba(74,182,255,.18));
}

/* Info panel */
.panel{
  margin-top:34px;
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.panel-card{
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--glass);
  backdrop-filter: blur(18px);
  text-align:left;
}
.label{
  display:block;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--muted);
  margin-bottom:10px;
}
.panel-card strong{
  font-size:1.05rem;
  font-weight:700;
}

/* Spacer */
.spacer{
  margin-top:40px;
  padding:0 18px;
}
.spacer-text{
  max-width:520px;
  margin:0 auto;
  font-size:.9rem;
  color:var(--muted);
}

/* View headers */
.view-header{
  text-align:center;
  margin-bottom:22px;
}
.view-header h2{
  margin:0 0 6px;
}
.view-header p{
  margin:0;
  font-size:.9rem;
  color:var(--muted);
}

/* Volume panel (centered, Android-like) */
.volume-panel{
  width:260px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(6,16,24,.86);
  backdrop-filter:blur(22px);
  padding:16px 16px 18px;
  box-shadow:0 26px 80px rgba(0,0,0,.7);
}
.volume-panel-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.volume-panel-icon{
  width:24px;
  height:24px;
  border-radius:8px;
  background:linear-gradient(135deg,
    hsla(var(--accent-hue) 90% 70% / .95),
    hsla(var(--accent-hue) 80% 60% / .9));
}
.volume-panel-label{
  font-size:.9rem;
  opacity:.88;
}
.volume-panel-slider{
  margin:6px 0 10px;
  position:relative;
  height:36px;
  display:flex;
  align-items:center;
}
.volume-panel-track{
  position:relative;
  flex:1;
  height:6px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
}
.volume-panel-fill{
  position:absolute;
  left:0;
  top:0;
  height:100%;
  width:70%;
  background:linear-gradient(90deg,
    hsla(var(--accent-hue) 90% 70% / .9),
    hsla(var(--accent-hue) 80% 60% / .8));
}
.volume-panel-thumb{
  position:absolute;
  left:70%;
  transform:translateX(-50%);
  width:18px;
  height:18px;
  border-radius:999px;
  background:#e9fbff;
  box-shadow:0 8px 16px rgba(0,0,0,.6);
  cursor:pointer;
}
.volume-panel-level-label{
  text-align:right;
  font-size:.8rem;
  color:var(--muted);
}
.hint{
  margin-top:12px;
  font-size:.8rem;
  color:var(--muted);
}

/* AI search view */
.aisearch-card{
  width:min(480px, 100%);
  border-radius:26px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(6,16,24,.88);
  backdrop-filter:blur(22px);
  padding:18px 18px 16px;
  box-shadow:0 26px 80px rgba(0,0,0,.7);
}
.aisearch-bar{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(5,15,22,.9);
  margin-bottom:12px;
}
.aisearch-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(88,240,214,1);
  box-shadow:0 0 10px rgba(88,240,214,.9);
}
.aisearch-text{
  flex:1;
  font-size:.85rem;
  opacity:.88;
}
.aisearch-button{
  border:none;
  border-radius:999px;
  padding:6px 12px;
  font-size:.8rem;
  cursor:pointer;
  color:#041018;
  background:linear-gradient(135deg,
    hsla(var(--accent-hue) 90% 70% / .95),
    hsla(var(--accent-hue) 80% 60% / .95));
}
.aisearch-scan-area{
  position:relative;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(4,14,22,.9);
  height:150px;
  overflow:hidden;
  margin-bottom:12px;
}
.aisearch-scan-highlight{
  position:absolute;
  left:-40%;
  top:0;
  width:40%;
  height:100%;
  background:linear-gradient(90deg,
    transparent,
    hsla(var(--accent-hue) 95% 80% / .5),
    transparent);
  mix-blend-mode:screen;
  opacity:0;
}
.aisearch-hints{
  position:absolute;
  left:10px;
  bottom:10px;
  display:flex;
  gap:6px;
}
.aisearch-result{
  font-size:.85rem;
  color:var(--muted);
}
.aisearch-result-title{
  margin:0 0 2px;
  font-weight:600;
  color:var(--text);
}
.aisearch-result-body{
  margin:0;
}

/* Badges (reused) */
.badge{
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(6,18,26,.7);
  font-size:.7rem;
  color:var(--muted);
}

/* Animations */
@keyframes float{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(0,-18px,0) scale(1.05)}
}
@keyframes drift{
  0%,100%{transform:translateX(0) translateY(0)}
  25%{transform:translateX(20px) translateY(-12px)}
  50%{transform:translateX(-18px) translateY(10px)}
  75%{transform:translateX(14px) translateY(-8px)}
}

/* Responsive */
@media (max-width: 700px){
  .panel{grid-template-columns:1fr}
  h1{font-size:clamp(2.4rem, 10vw, 5rem)}
  .page{padding:80px 12px 80px}
  .volume-panel{width:90%}
}
