:root {
  --bg: #f4f9ff;
  --bg-soft: #eef6ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #10233f;
  --muted: #68819f;
  --line: rgba(76, 124, 184, 0.12);
  --primary: #2f80ed;
  --primary-deep: #145cc0;
  --sky: #6ec5ff;
  --glow: rgba(110, 197, 255, 0.32);
  --success: #1e9a74;
  --shadow: 0 20px 60px rgba(37, 86, 140, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "GothamPro", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(110, 197, 255, 0.35), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(47, 128, 237, 0.18), transparent 18%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 44%, #f8fbff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: 320px;
  height: 320px;
  right: -80px;
  top: 90px;
  background: rgba(110, 197, 255, 0.28);
  animation: floatGlow 13s ease-in-out infinite;
}

body::after {
  width: 240px;
  height: 240px;
  left: -50px;
  bottom: 80px;
  background: rgba(47, 128, 237, 0.14);
  animation: floatGlow 16s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -18px, 0) scale(1.06); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(47, 128, 237, 0.18); }
  100% { box-shadow: 0 0 0 18px rgba(47, 128, 237, 0); }
}

.page-shell { animation: riseIn .7s ease-out; }

.navbar-shell,
.surface-panel,
.card-soft,
.icon-shell {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.16), rgba(104, 187, 255, 0.28));
  color: var(--brand-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
  flex-shrink: 0;
  font-size: 1.25rem;
}

.metric-chip {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.navbar-shell {
  border-radius: 28px;
  padding: 1rem 1.35rem;
}

.navbar-brand {
  font-family: "GothamPro-Black", sans-serif;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.nav-link {
  color: var(--muted);
  font-size: .96rem;
  transition: color .25s ease, transform .25s ease;
}

.nav-link:hover {
  color: var(--primary-deep);
  transform: translateY(-1px);
}

.btn-brand,
.btn-soft {
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, color .28s ease;
}

.btn-brand {
  background: linear-gradient(135deg, var(--primary) 0%, #49a6ff 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 16px 34px rgba(47, 128, 237, 0.26);
}

.btn-brand:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(47, 128, 237, 0.35);
}

.btn-soft {
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.btn-soft:hover {
  color: var(--primary-deep);
  transform: translateY(-2px);
  border-color: rgba(47, 128, 237, 0.24);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(47, 128, 237, 0.08);
  color: var(--primary-deep);
  border: 1px solid rgba(47, 128, 237, 0.08);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-size: .88rem;
  font-weight: 600;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92) 0%, rgba(244,250,255,.88) 52%, rgba(229,242,255,.92) 100%);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -70px -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(110, 197, 255, 0.32), transparent 66%);
  border-radius: 50%;
}

.hero-orb {
  width: 100%;
  min-height: 360px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.96), transparent 30%),
    radial-gradient(circle at 78% 28%, rgba(110, 197, 255, 0.7), transparent 28%),
    linear-gradient(145deg, #dff0ff 0%, #9fd3ff 48%, #4a9cff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 25px 60px rgba(47, 128, 237, 0.22);
  position: relative;
  overflow: hidden;
  animation: floatGlow 12s ease-in-out infinite;
}

.hero-orb::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  top: 22%;
  left: 18%;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.4);
  animation: pulseRing 2.8s infinite ease-out;
}

.card-soft,
.surface-panel { border-radius: 28px; }

.card-soft {
  padding: 1.4rem;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  position: relative;
  overflow: hidden;
}

.card-soft::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(110, 197, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.card-soft:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(37, 86, 140, 0.16);
  border-color: rgba(47, 128, 237, 0.18);
}

.metric-chip {
  border-radius: 22px;
  padding: 1rem 1.15rem;
  min-height: 100%;
}

.house-cover,
.media-gradient {
  min-height: 230px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.media-gradient {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.92), transparent 25%),
    linear-gradient(135deg, #edf7ff 0%, #b8e0ff 40%, #61b5ff 100%);
}

.house-cover::after,
.media-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(16, 35, 63, 0.18) 100%);
}

.floating-pill {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  background: rgba(255,255,255,0.92);
  color: var(--primary-deep);
  border-radius: 999px;
  padding: .55rem .9rem;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37, 86, 140, 0.14);
}

.section-band {
  position: relative;
  padding: 1.25rem;
  border-radius: 34px;
  margin-bottom: 1.25rem;
}

.section-band--airy {
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.12));
  border: 1px solid rgba(47, 128, 237, 0.08);
}

.section-band--tint {
  background:
    radial-gradient(circle at top right, rgba(110, 197, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(227, 242, 255, 0.58), rgba(255,255,255,0.18));
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.section-band--softline {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  border-top: 1px solid rgba(47, 128, 237, 0.14);
  border-bottom: 1px solid rgba(47, 128, 237, 0.14);
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 1.25rem;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(47,128,237,.22), transparent);
}

.section-divider span {
  white-space: nowrap;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.section-aside-glow::after {
  content: "";
  position: absolute;
  inset: auto 8% -24% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(110, 197, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kpi-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.site-footer {
  margin-top: 2.5rem;
  border-radius: 28px;
  padding: 1.4rem 1.5rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(47, 128, 237, 0.08);
  box-shadow: var(--shadow);
}

.mobile-panel-note {
  font-size: .84rem;
  color: var(--muted);
}

.chat-bubble {
  border-radius: 22px;
  padding: 1rem 1.1rem;
  max-width: 80%;
  border: 1px solid rgba(47, 128, 237, 0.08);
}

.chat-bubble.me {
  background: linear-gradient(135deg, #e7f4ff, #f8fcff);
  margin-left: auto;
}

.chat-bubble.them {
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
}

.list-divider > * + * {
  border-top: 1px solid rgba(76, 124, 184, 0.12);
  margin-top: 1rem;
  padding-top: 1rem;
}

.reading-card,
.account-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(47, 128, 237, 0.08);
  border-radius: 22px;
  padding: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fade-in { animation: riseIn .75s ease-out both; }
.fade-delay-1 { animation-delay: .08s; }
.fade-delay-2 { animation-delay: .16s; }
.fade-delay-3 { animation-delay: .24s; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-secondary { color: var(--muted) !important; }
a { color: var(--primary-deep); text-decoration: none; }
a:hover { color: var(--primary); }

@media (max-width: 991px) {
  .stats-row,
  .detail-grid { grid-template-columns: 1fr; }
  .hero-panel { padding: 1.5rem; }
  .hero-orb { min-height: 260px; }
  .navbar-shell { border-radius: 22px; }
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(47, 128, 237, 0.1);
  }
}

.sky-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.sky-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(163, 216, 255, 0.75) 0%, rgba(214, 238, 255, 0.78) 38%, rgba(248, 252, 255, 0.92) 100%);
}

.cloud {
  position: absolute;
  width: 150px;
  height: 52px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  filter: blur(1px);
  box-shadow:
    60px 10px 0 8px rgba(255, 255, 255, 0.72),
    120px 0 0 16px rgba(255, 255, 255, 0.86),
    180px 14px 0 2px rgba(255, 255, 255, 0.76);
  opacity: 0.8;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}

.cloud::before {
  width: 84px;
  height: 84px;
  left: 34px;
  top: -26px;
}

.cloud::after {
  width: 108px;
  height: 108px;
  left: 92px;
  top: -38px;
}

.cloud-one {
  top: 12%;
  left: -20%;
  transform: scale(1.2);
  animation: driftCloud 62s linear infinite;
}

.cloud-two {
  top: 28%;
  left: -26%;
  transform: scale(0.95);
  opacity: 0.68;
  animation: driftCloud 88s linear infinite;
}

.cloud-three {
  top: 46%;
  left: -18%;
  transform: scale(1.45);
  opacity: 0.58;
  animation: driftCloud 112s linear infinite;
}

.cloud-four {
  top: 66%;
  left: -30%;
  transform: scale(0.82);
  opacity: 0.5;
  animation: driftCloud 136s linear infinite;
}

@keyframes driftCloud {
  0% { transform: translateX(0); }
  100% { transform: translateX(150vw); }
}

[data-theme="dark"] .sky-gradient,
body[data-theme="dark"] .sky-gradient {
  background:
    linear-gradient(180deg, rgba(18, 40, 72, 0.92) 0%, rgba(20, 53, 94, 0.9) 36%, rgba(8, 20, 35, 0.96) 100%);
}

[data-theme="dark"] .cloud,
body[data-theme="dark"] .cloud {
  background: rgba(214, 233, 255, 0.12);
  box-shadow:
    60px 10px 0 8px rgba(214, 233, 255, 0.1),
    120px 0 0 16px rgba(214, 233, 255, 0.16),
    180px 14px 0 2px rgba(214, 233, 255, 0.1);
}

[data-theme="dark"] .cloud::before,
[data-theme="dark"] .cloud::after,
body[data-theme="dark"] .cloud::before,
body[data-theme="dark"] .cloud::after {
  background: rgba(214, 233, 255, 0.14);
}

[data-theme="dark"] .section-band--airy,
[data-theme="dark"] .section-band--tint,
[data-theme="dark"] .section-band--softline,
body[data-theme="dark"] .section-band--airy,
body[data-theme="dark"] .section-band--tint,
body[data-theme="dark"] .section-band--softline {
  border-color: rgba(110, 197, 255, 0.12);
}
