@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Cormorant+Garamond:wght@600;700&display=swap");

:root {
  --bg-top: #081524;
  --bg-mid: #12324f;
  --bg-bottom: #21577d;
  --panel: rgba(6, 17, 31, 0.62);
  --panel-strong: rgba(4, 11, 21, 0.78);
  --line: rgba(214, 238, 255, 0.1);
  --line-strong: rgba(214, 238, 255, 0.18);
  --text: #f6fbff;
  --muted: rgba(236, 244, 252, 0.72);
  --accent: #a3efff;
  --gold: #f4d7a4;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.22);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", "Aptos", "Segoe UI Variable", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(167, 231, 255, 0.14), transparent 33%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 48%, var(--bg-bottom));
}

body {
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

kbd {
  padding: 0.08rem 0.36rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#rain-canvas,
.ambient-orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#rain-canvas {
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.94;
}

.ambient-orb {
  z-index: 0;
}

.ambient-orb-one::before,
.ambient-orb-two::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
}

.ambient-orb-one::before {
  width: 34rem;
  height: 34rem;
  right: -8rem;
  top: 4rem;
  background: radial-gradient(circle, rgba(255, 252, 235, 0.14), rgba(255, 252, 235, 0));
}

.ambient-orb-two::before {
  width: 28rem;
  height: 28rem;
  left: -8rem;
  bottom: 2rem;
  background: radial-gradient(circle, rgba(163, 239, 255, 0.08), rgba(163, 239, 255, 0));
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 20px 0 28px;
}

.app-shell {
  display: grid;
  gap: 18px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff2c8, #a3efff);
  color: #07121e;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
}

.route-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.route-nav a {
  padding: 0.78rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
  font-weight: 600;
}

.route-nav a.active,
.route-nav a:hover {
  color: var(--text);
  background: rgba(163, 239, 255, 0.12);
  border-color: rgba(163, 239, 255, 0.16);
}

.restore-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
}

.restore-banner[hidden] {
  display: none;
}

.restore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel,
.ad-card {
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--panel), var(--panel-strong)),
    radial-gradient(circle at top left, rgba(163, 239, 255, 0.07), transparent 32%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.98fr);
  gap: 16px;
  padding: 18px;
  overflow: hidden;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% 30%;
  height: 22rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 244, 216, 0.1), rgba(255, 244, 216, 0));
  pointer-events: none;
}

.hero-copy,
.hero-dashboard,
.footer-panel,
.command-center,
.sound-lab,
.intelligence-panel {
  position: relative;
  z-index: 1;
}

.brand-block h1,
.panel h2,
.ad-card h3,
.ad-banner h3,
.alarm-modal h2,
.footer-panel h2,
.hero-copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.01em;
  line-height: 0.9;
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(1.55rem, 2vw, 2.35rem);
  max-width: 12ch;
}

.panel h2,
.footer-panel h2 {
  font-size: clamp(1.1rem, 1.2vw, 1.45rem);
}

.lede,
.panel p,
.ad-card p,
.footer-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.eyebrow,
.ad-label {
  display: block;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--gold);
}

.hero-actions,
.hero-highlights,
.actions,
.preset-row,
.sound-chips,
.overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 1rem;
}

.hero-highlights {
  margin-top: 0.9rem;
}

.hero-highlights span {
  padding: 0.62rem 0.88rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.84fr);
  gap: 18px;
  align-items: start;
}

.dashboard-sidebar {
  display: grid;
  gap: 18px;
}

.hero-dashboard {
  display: grid;
  gap: 14px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.shortcut-card {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  text-align: left;
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at top left, rgba(163, 239, 255, 0.08), transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shortcut-card span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.shortcut-card strong {
  font-size: 0.95rem;
}

.shortcut-card:hover {
  background: rgba(163, 239, 255, 0.14);
  transform: translateY(-1px);
}

.guidance-strip {
  display: grid;
  gap: 16px;
}

.guidance-strip strong {
  display: block;
  margin-bottom: 8px;
}

.guidance-strip p {
  color: var(--muted);
}

.metric-stack,
.hero-summary,
.status-ribbon,
.footer-grid,
.control-grid {
  display: grid;
  gap: 18px;
}

.metric-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(163, 239, 255, 0.12), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top left, rgba(163, 239, 255, 0.12), transparent 62%);
}

.metric,
.summary-card,
.insight-card,
.status-ribbon > div {
  padding: 14px 16px 15px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
    radial-gradient(circle at top left, rgba(163, 239, 255, 0.04), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.metric span,
.summary-card span,
.insight-card span,
.status-ribbon span,
.field span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.metric strong,
.summary-card strong,
.insight-card strong,
.status-ribbon strong {
  display: block;
  margin-top: 0.42rem;
  font-size: clamp(0.95rem, 1.15vw, 1.28rem);
  line-height: 1.15;
}

.hero-time strong {
  font-size: clamp(1.45rem, 1.85vw, 1.95rem);
}

.restore-banner h2 {
  font-size: clamp(1.25rem, 1.45vw, 1.7rem);
}

.control-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  grid-template-areas:
    "command sound"
    "command ready";
  align-items: start;
}

.command-center {
  grid-area: command;
}

.sound-lab {
  grid-area: sound;
}

.intelligence-panel {
  grid-area: ready;
}

.panel,
.ad-card,
.ad-banner {
  position: relative;
  padding: 18px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 12px;
}

.compact-heading {
  margin-bottom: 10px;
}

.panel-tag {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(163, 239, 255, 0.1);
  border: 1px solid rgba(163, 239, 255, 0.12);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.panel-intro {
  margin-bottom: 0.85rem;
  max-width: 44ch;
  font-size: 0.92rem;
}

.mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.mode-tab,
.preset-pill,
.chip,
.ghost-button,
.primary-button,
.secondary-button {
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.mode-tab,
.preset-pill,
.chip,
.ghost-button,
.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.mode-tab,
.chip {
  border-radius: 999px;
  padding: 11px 15px;
}

.preset-pill {
  border-radius: 999px;
  padding: 10px 14px;
}

.mode-tab.active,
.preset-pill:hover,
.chip.active,
.chip:hover,
.ghost-button:hover,
.secondary-button:hover {
  background: rgba(163, 239, 255, 0.18);
  box-shadow: 0 10px 28px rgba(159, 231, 255, 0.12);
}

.ghost-button,
.primary-button,
.secondary-button {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}

.primary-button {
  color: #07121e;
  background: linear-gradient(135deg, #fff2c8, #a3efff);
  box-shadow: 0 18px 34px rgba(163, 239, 255, 0.22);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.mode-panel {
  display: none;
}

.mode-panel.active {
  display: block;
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.slider-field input {
  min-height: auto;
  padding: 0;
  accent-color: #b4f5ff;
}

.status-ribbon {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.insight-grid {
  display: grid;
  gap: 10px;
}

.features-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.saved-preset-grid,
.steps-list {
  display: grid;
  gap: 10px;
}

.saved-preset-card,
.step-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.026)),
    radial-gradient(circle at top left, rgba(163, 239, 255, 0.06), transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.saved-preset-card h3,
.step-item strong {
  margin: 0;
}

.saved-preset-card p,
.step-item span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.saved-preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.saved-preset-actions .ghost-button,
.saved-preset-actions .secondary-button {
  padding: 9px 13px;
  font-size: 0.78rem;
}

.saved-preset-actions button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.step-item {
  align-items: center;
}

.step-item strong {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(163, 239, 255, 0.14);
  color: var(--text);
  flex: 0 0 auto;
}

.ad-slot {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 20px;
  border: 1px dashed rgba(163, 239, 255, 0.26);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}

.ad-slot.is-live {
  padding: 0;
  border-style: solid;
  overflow: hidden;
}

.ad-slot.is-empty {
  display: none;
}

.ad-slot ins.adsbygoogle {
  width: 100%;
  min-height: 140px;
}

.ad-slot-banner {
  min-height: 140px;
  margin-top: 18px;
}

.ad-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.future-ad-zone {
  display: grid;
  gap: 14px;
}

.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  opacity: 0.92;
}

.landing-panel,
.footer-panel {
  display: grid;
  gap: 14px;
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-list a {
  color: var(--text);
  text-decoration: none;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.link-list a:hover {
  background: rgba(163, 239, 255, 0.12);
}

.faq-item + .faq-item {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
}

.alarm-overlay {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 244, 216, 0.2), transparent 34%),
    rgba(4, 10, 16, 0.76);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.alarm-overlay[hidden] {
  display: none;
}

.alarm-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.alarm-modal {
  width: min(100%, 450px);
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(32, 17, 10, 0.94), rgba(92, 34, 18, 0.88));
  border: 1px solid rgba(255, 244, 216, 0.2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
}

#overlay-time {
  margin: 12px 0 22px;
  font-size: 2.8rem;
  color: #fff3d1;
}

body.alarm-flash {
  animation: alarmFlash 1s steps(2) infinite;
}

@keyframes alarmFlash {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.25) brightness(1.08);
  }
}

@media (max-width: 1600px) {
  .page-shell {
    width: min(1280px, calc(100% - 24px));
  }
}

@media (max-width: 1180px) {
  .dashboard-shell,
  .hero-shell,
  .shortcut-grid,
  .control-grid,
  .content-page-grid,
  .footer-grid,
  .metric-stack,
  .hero-summary,
  .two-up,
  .status-ribbon {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 14px;
    gap: 14px;
  }

  .panel,
  .ad-card,
  .ad-banner,
  .hero-shell {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
    max-width: 10ch;
  }

  .ad-banner-inner,
  .panel-heading,
  .top-nav,
  .restore-banner {
    flex-direction: column;
    align-items: start;
  }
}
