:root {
  --bg: #05070d;
  --bg-soft: #0b1222;
  --ink: #eaf2ff;
  --muted: #9db0d7;
  --stroke: rgba(123, 159, 229, 0.32);
  --panel: rgba(9, 15, 30, 0.78);
  --panel-strong: rgba(10, 18, 36, 0.92);
  --blue: #4b8fff;
  --cyan: #8ae8ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.06);
}

.build-tag {
  position: fixed;
  top: 8px;
  right: 12px;
  z-index: 40;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(146, 184, 250, 0.5);
  background: rgba(8, 14, 29, 0.82);
  color: #c9e2ff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #76d5ff, #5f96ff);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(85, 156, 255, 0.1), transparent 36%);
  z-index: 0;
}

body {
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 20% -20%, rgba(43, 106, 232, 0.35), transparent 70%),
    radial-gradient(900px 500px at 90% 0%, rgba(28, 211, 255, 0.2), transparent 72%),
    linear-gradient(180deg, #07112a, #05070d 55%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  opacity: 0.18;
}

.glow {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(55px);
}

.glow-a {
  width: 360px;
  height: 360px;
  top: -130px;
  left: -100px;
  background: rgba(61, 120, 255, 0.5);
}

.glow-b {
  width: 300px;
  height: 300px;
  bottom: -120px;
  right: -60px;
  background: rgba(66, 218, 255, 0.35);
}

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin: 0;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 0.9rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.88;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.8rem 1rem 3rem;
}

.layout-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem 2.4rem;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
}

.apps-rail {
  position: sticky;
  top: 120px;
  align-self: start;
  display: grid;
  gap: 0.7rem;
}

.app-tile {
  width: 108px;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #dbe8ff;
  border: 1px solid rgba(142, 175, 238, 0.3);
  border-radius: 14px;
  padding: 0.7rem 0.55rem 0.6rem;
  background: linear-gradient(170deg, rgba(9, 15, 30, 0.7), rgba(10, 18, 36, 0.92));
}

.app-tile img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.22);
  padding: 4px;
}

.app-tile img.samuel-icon {
  width: 76px;
  height: 76px;
  padding: 0;
  object-fit: cover;
  object-position: center;
}

.app-tile span {
  font-size: 0.98rem;
  color: #cfe0ff;
}

.hero {
  min-height: 38vh;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 0.7rem 0 0.8rem;
}

.hero h1 {
  background: linear-gradient(130deg, #f2f8ff 0%, #a6d5ff 42%, #6fa8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6.6vw, 5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding-bottom: 0.08em;
}

.hero-copy {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.74rem 1.1rem;
  font-weight: 700;
  font-size: 0.93rem;
}

.btn-solid {
  color: #011230;
  background: linear-gradient(170deg, #9ce8ff, #62a7ff 70%);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--stroke);
  background: rgba(10, 16, 31, 0.55);
}

.panel {
  margin-top: 0.55rem;
}

.weather-grid,
.objects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.module {
  grid-column: span 6;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: linear-gradient(170deg, var(--panel), var(--panel-strong));
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(1, 8, 24, 0.45);
  transform-style: preserve-3d;
  transition: transform 240ms ease, border-color 200ms ease;
}

h2 {
  margin: 0;
  font-size: 1.08rem;
}

.muted {
  margin: 0.45rem 0 0.8rem;
  color: var(--muted);
}

.embed-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(137, 172, 242, 0.28);
  min-height: 360px;
}

.embed-wrap iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  background: #fff;
}

.fallback-link {
  margin-top: 0.7rem;
  font-size: 0.9rem;
}

.fallback-link a {
  color: #a8d7ff;
}

.weather-card {
  border: 1px solid rgba(142, 175, 238, 0.35);
  border-radius: 14px;
  padding: 1rem;
  background: radial-gradient(circle at top right, rgba(71, 125, 255, 0.28), rgba(71, 125, 255, 0));
}

.weather-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.weather-module { grid-column: span 12; }

.weather-temp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.weather-icon {
  font-size: 8.6rem;
  line-height: 1;
  margin-left: 0.2rem;
  width: 50%;
  text-align: right;
}

.weather-place,
.weather-day,
.weather-meta,
.weather-temp {
  margin: 0;
}

.weather-place {
  color: var(--muted);
}

.weather-day {
  margin-top: 0.3rem;
  font-size: 1.1rem;
}

.weather-temp {
  margin-top: 0.35rem;
  font-size: 3rem;
  font-weight: 800;
}

.weather-meta {
  color: var(--muted);
}
.feed-list { margin: 0; padding-left: 1.1rem; color: var(--ink); }
.feed-list li { margin: 0 0 0.45rem; }
.pretty-feed {
  list-style: none;
  padding: 0;
}
.pretty-feed li {
  margin: 0 0 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(142, 175, 238, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.week-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.38rem;
}
.day-chip {
  border: 1px solid rgba(142, 175, 238, 0.25);
  border-radius: 10px;
  padding: 0.34rem 0.45rem;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.82rem;
}

.day-chip-top {
  display: block;
  font-weight: 700;
  color: #dbe9ff;
}

.day-chip-temp {
  display: block;
  margin-top: 0.08rem;
  color: #b8caea;
}

.community-card {
  margin: 0.65rem 0 0.8rem;
  border: 1px solid rgba(142, 175, 238, 0.28);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

#pogo-community-image {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

#pogo-community-title {
  margin: 0;
  padding: 0.72rem 0.78rem;
  color: #dbe9ff;
  font-weight: 700;
}

#omx-week-chart {
  width: 100%;
  margin-top: 0.65rem;
  border: 1px solid rgba(142, 175, 238, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

#omx-week-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

#pogo-community-anchor {
  text-decoration: none;
}

#svt-list img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 0.55rem;
  border: 1px solid rgba(142, 175, 238, 0.28);
}

#svt-list a {
  color: #dbe8ff;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.topbar.reveal {
  transform: translateY(-14px);
}

.module.tilt:hover {
  border-color: rgba(162, 199, 255, 0.6);
}

.section-block {
  transition: transform 500ms ease, opacity 500ms ease;
}

@media (max-width: 900px) {
  .layout-shell {
    grid-template-columns: 1fr;
  }

  .apps-rail {
    position: static;
  }

  .module {
    grid-column: span 12;
  }
}
