:root {
  --bg: #050712;
  --bg-deep: #02030a;
  --text: #f7f3ff;
  --muted: #b8afd8;
  --border: rgba(185, 150, 255, 0.22);
  --accent: #8c52ff;
  --accent-strong: #d55cff;
  --shadow: 0 30px 90px rgba(3, 5, 18, 0.58);
  --font-body: "Bahnschrift", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --font-display: "Aptos Display", "Bahnschrift", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 28%, rgba(143, 82, 255, 0.26), transparent 18%),
    radial-gradient(circle at 24% 78%, rgba(213, 92, 255, 0.12), transparent 20%),
    radial-gradient(circle at 82% 20%, rgba(86, 131, 255, 0.12), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, #060817 44%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 14%, rgba(202, 192, 238, 0.24) 0 1px, transparent 1px),
    radial-gradient(circle at 38% 76%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px);
  background-size: 260px 260px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.cta-page {
  min-height: min(76vh, 780px);
  display: grid;
  place-items: center;
  padding: 24px 0 12px;
}

.cta-card {
  width: min(720px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at top center, rgba(143, 82, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(15, 19, 45, 0.92), rgba(7, 10, 28, 0.97));
  box-shadow: var(--shadow), inset 0 0 28px rgba(130, 93, 255, 0.07);
  backdrop-filter: blur(18px);
}

.cta-logo {
  width: 120px;
  border-radius: 28px;
  box-shadow: 0 0 34px rgba(140, 82, 255, 0.24);
}

.cta-eyebrow {
  margin: 22px 0 0;
  color: #e894ff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.cta-text {
  max-width: 36ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  margin-top: 28px;
  padding: 0 22px;
  border-radius: 18px;
  border: 1px solid rgba(221, 197, 255, 0.46);
  background: linear-gradient(180deg, rgba(148, 93, 255, 0.98), rgba(102, 61, 232, 0.98));
  box-shadow: 0 0 34px rgba(122, 80, 255, 0.32);
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 42px rgba(122, 80, 255, 0.38);
}

.overview-section {
  display: grid;
  gap: 22px;
  padding-top: 20px;
}

.overview-intro,
.notification-intro {
  max-width: 760px;
}

.section-eyebrow {
  margin: 0 0 10px;
  color: #e894ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2,
h3 {
  font-family: var(--font-display);
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-text {
  max-width: 54ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.overview-preview,
.breakdown-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(143, 82, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(15, 19, 45, 0.9), rgba(7, 10, 28, 0.96));
  box-shadow: var(--shadow), inset 0 0 24px rgba(130, 93, 255, 0.05);
}

.overview-preview {
  padding: 24px;
}

.overview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.overview-topbar strong {
  display: block;
  font-size: 1.45rem;
}

.overview-topbar span,
.overview-stat-card span,
.overview-stat-card p,
.overview-table-row span,
.overview-side-card span,
.breakdown-card p {
  color: var(--muted);
}

.overview-add-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(221, 197, 255, 0.34);
  background: linear-gradient(180deg, rgba(148, 93, 255, 0.28), rgba(102, 61, 232, 0.28));
  color: var(--text);
  font-weight: 700;
}

.overview-stats-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 14px;
  margin-top: 18px;
  align-items: stretch;
}

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

.overview-stat-card,
.overview-surface,
.overview-side-card {
  border: 1px solid rgba(185, 150, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.overview-stat-card {
  padding: 18px;
  border-radius: 20px;
}

.overview-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.overview-stat-card p {
  margin: 8px 0 0;
  line-height: 1.4;
}

.overview-nextup-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(185, 150, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  justify-items: center;
  gap: 10px;
}

.overview-nextup-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.overview-ring {
  width: 144px;
  height: 144px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(10, 12, 33, 0.98) 82%, transparent 83% 100%),
    conic-gradient(from 180deg, rgba(214, 95, 255, 0.96) 72%, rgba(102, 77, 168, 0.16) 0);
  box-shadow:
    inset 0 0 24px rgba(143, 82, 255, 0.12),
    0 0 22px rgba(168, 101, 255, 0.32),
    0 0 48px rgba(116, 76, 255, 0.18);
}

.overview-ring-content {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.overview-ring-content small {
  color: rgba(207, 198, 255, 0.58);
  font-size: 0.64rem;
}

.overview-ring-content strong {
  font-size: 2rem;
  line-height: 0.95;
}

.overview-ring-content span {
  font-size: 0.78rem;
  color: rgba(247, 244, 255, 0.92);
}

.overview-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr) minmax(220px, 0.72fr);
  gap: 14px;
  margin-top: 18px;
  align-items: start;
}

.overview-left-column,
.overview-middle-column,
.overview-right-column {
  display: grid;
  gap: 14px;
}

.overview-surface {
  padding: 18px;
  border-radius: 22px;
}

.overview-surface-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.overview-surface-head span {
  color: #ece1ff;
  font-size: 0.9rem;
}

.overview-table-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(185, 150, 255, 0.14);
  background: rgba(9, 12, 30, 0.42);
}

.overview-table-row {
  display: grid;
  gap: 6px;
}

.overview-table-row b {
  font-size: 1rem;
}

.overview-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.overview-calendar-grid span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.overview-calendar-grid .active {
  color: var(--text);
  border: 1px solid rgba(220, 194, 255, 0.38);
  background: linear-gradient(180deg, rgba(143, 82, 255, 0.28), rgba(117, 72, 255, 0.3));
}

.overview-side-card {
  padding: 18px;
  border-radius: 22px;
  min-height: 158px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.overview-side-card strong {
  font-size: 1.12rem;
}

.overview-side-card span {
  line-height: 1.6;
}

.overview-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.breakdown-card {
  padding: 22px;
}

.breakdown-card h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
}

.breakdown-card p {
  margin: 0;
  line-height: 1.7;
}

.notification-section {
  display: grid;
  gap: 22px;
  padding-top: 34px;
}

.notification-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.notification-preview {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(143, 82, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(18, 22, 52, 0.94), rgba(8, 10, 28, 0.97));
  box-shadow: var(--shadow), inset 0 0 24px rgba(130, 93, 255, 0.06);
}

.notify-frame {
  position: relative;
  width: 100%;
  border-radius: 32px;
}

.notify-shell {
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(161, 122, 255, 0.42);
  background:
    radial-gradient(circle at 20% 12%, rgba(143, 82, 255, 0.24), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(212, 92, 255, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(16, 19, 50, 0.98), rgba(11, 14, 39, 0.99));
  box-shadow: inset 0 0 30px rgba(130, 93, 255, 0.08);
  overflow: hidden;
}

.notify-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.05) 22%, transparent 48%),
    radial-gradient(circle at 50% -6%, rgba(191, 154, 255, 0.18), transparent 32%);
  pointer-events: none;
}

.notify-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(235, 225, 255, 0.08);
  pointer-events: none;
}

.notify-window-chrome {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 16px 0;
}

.notify-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(236, 229, 255, 0.94);
  font-size: 0.82rem;
  font-weight: 500;
}

.notify-brand-mark {
  width: 20px;
  height: 20px;
}

.notify-content {
  min-height: calc(100% - 34px);
  padding: 2px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.notify-hero {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}

.notify-hero-mark {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(180, 102, 255, 0.28));
}

.notify-title {
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.notify-notes {
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.notify-meta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(214, 204, 255, 0.78);
  font-size: 0.7rem;
}

.notify-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notify-meta-item svg {
  width: 12px;
  height: 12px;
  fill: rgba(214, 204, 255, 0.76);
}

.notify-primary-button,
.notify-secondary-button,
.notify-dropdown-trigger {
  width: 100%;
  border: 1px solid rgba(178, 134, 255, 0.32);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
}

.notify-primary-button {
  margin-top: 16px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(148, 93, 255, 0.98), rgba(102, 61, 232, 0.98));
  box-shadow:
    0 0 24px rgba(122, 80, 255, 0.35),
    inset 0 1px 0 rgba(230, 218, 255, 0.24);
  cursor: pointer;
}

.notify-secondary-row {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(159, 117, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  position: relative;
}

.notify-secondary-button,
.notify-dropdown-trigger {
  min-height: 40px;
  background: rgba(255, 255, 255, 0.03);
}

.notify-secondary-button {
  padding: 0 14px;
  cursor: pointer;
}

.notify-dropdown {
  position: relative;
}

.notify-dropdown-trigger {
  position: relative;
  padding: 0 36px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.notify-dropdown-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(214, 204, 255, 0.82);
  border-bottom: 2px solid rgba(214, 204, 255, 0.82);
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
}

.notify-footer {
  margin-top: 12px;
  color: rgba(214, 204, 255, 0.78);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

.notification-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-bottom: 40px;
  }

  .cta-page {
    min-height: min(68vh, 620px);
    padding: 16px 0 8px;
  }

  .cta-card {
    padding: 32px 20px;
    border-radius: 26px;
  }

  .cta-button {
    width: 100%;
    min-width: 0;
  }

  .overview-stats-row,
  .overview-breakdown,
  .notification-layout,
  .notification-breakdown {
    grid-template-columns: 1fr;
  }

  .overview-topbar,
  .overview-stats-grid,
  .overview-content-grid {
    grid-template-columns: 1fr;
  }

  .overview-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .notify-secondary-row {
    grid-template-columns: 1fr;
  }
}
