:root {
  --bg: #0B0F1A;
  --surface: #151C2F;
  --text: #E6EDF3;
  --sub: #9FB0C3;
  --accent: #3B82F6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ======================
   TOPBAR
====================== */

.topbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 26, 0.42);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  z-index: 20;
}

.topbar-inner,
.topbar-inner-simple {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.spacer {
  flex: 1;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.login-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.login-btn:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
}

/* ======================
   SIDEBAR
====================== */

.sidebar {
  position: fixed;
  left: -260px;
  top: 0;
  width: 260px;
  height: 100%;
  background: #0F1528;
  border-right: 1px solid rgba(255,255,255,0.04);
  transition: left 0.3s ease;
  z-index: 30;
}

.sidebar.open {
  left: 0;
}

.sidebar-inner {
  padding: 24px 20px;
}

.sidebar-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar-subtitle {
  font-size: 13px;
  color: #6B7A90;
  margin-top: 4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}

.sidebar-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.04);
}

.sidebar-nav a.active {
  background: rgba(77,163,255,0.12);
}

/* ======================
   OVERLAY
====================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 25;
}

.overlay.show {
  display: block;
}

/* ======================
   CONTAINER
====================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ======================
   HERO
====================== */

.hero {
  padding: 96px 40px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 24%, rgba(59,130,246,0.18), transparent 32%),
    radial-gradient(circle at 82% 76%, rgba(34,211,238,0.10), transparent 38%),
    linear-gradient(180deg, rgba(21,28,47,0.96), rgba(16,22,38,0.92));
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 22px 60px rgba(0,0,0,0.24);
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9FB0C3;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  max-width: 10ch;
}

.hero p {
  color: var(--sub);
  max-width: 720px;
  font-size: 19px;
  line-height: 1.6;
  margin: 0;
}

.no-break {
  white-space: nowrap;
}

.hero-signature {
  margin-top: 16px;
  font-size: 14px;
  color: #6B7A90;
}

.hero-signature strong {
  color: #E6EDF3;
  font-weight: 500;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-secondary-link {
  margin-top: 20px;
  font-size: 14px;
  color: #8EA1B8;
  cursor: pointer;
}

.hero-secondary-link:hover {
  color: #E6EDF3;
}

a.hero-secondary-link,
a.hero-secondary-link:visited {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #8EA1B8;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

a.hero-secondary-link:hover {
  color: #E6EDF3;
  transform: translateX(2px);
}

/* ======================
   SECTIONS
====================== */

.section {
  margin-top: 60px;
}

.section-head {
  margin-bottom: 16px;
}

.section h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

/* ======================
   CARDS (CORE SYSTEM)
====================== */

.card {
  background: var(--surface);
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.16);
  border-color: rgba(255,255,255,0.06);
}

.card-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.card-sub {
  color: var(--sub);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.card-meta {
  color: #7E8CA3;
  font-size: 13px;
  line-height: 1.4;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* ======================
   TODAY CLEAN (HOME)
====================== */

.today-preview-clean {
  border: 1px solid rgba(59,130,246,0.14);
  box-shadow: 0 12px 34px rgba(59,130,246,0.08);
}

.today-preview-clean:hover {
  border-color: rgba(59,130,246,0.22);
  box-shadow: 0 16px 38px rgba(59,130,246,0.10);
}

.today-meta-row {
  margin-top: 10px;
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  opacity: 0.95;
}

/* ======================
   BUTTONS
====================== */

.btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, #3B82F6, #22D3EE);
  color: white;
  box-shadow: 0 8px 22px rgba(59,130,246,0.22);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
}

.btn.small {
  padding: 6px 10px;
  font-size: 14px;
}

a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.link,
.link:link,
.link:visited {
  background: none;
  border: none;
  color: #8EA1B8;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-block;
}

.link:hover,
.link:active {
  color: #E6EDF3;
  text-decoration: none;
  transform: translateX(2px);
}

/* ======================
   WEEK
====================== */

.week {
  background: var(--surface);
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--sub);
}

/* ======================
   PAGE ENTER ANIMATION
====================== */

.page-enter {
  opacity: 0;
  transform: translateY(10px);
  animation: pageEnter 0.5s ease forwards;
}

@keyframes pageEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================
   RESPONSIVE
====================== */

@media (max-width: 980px) {
  .hero {
    padding: 82px 32px;
  }

  .hero h1 {
    font-size: 50px;
    max-width: 12ch;
  }

  .hero p {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  .today-grid {
    grid-template-columns: 1fr;
  }

  .today-card {
    padding: 20px;
    border-radius: 24px;
  }

  .today-title {
    font-size: 20px;
  }

  .today-sub {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .topbar-inner-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .spacer {
    flex: 1;
    display: block;
  }

  .icon-btn {
    flex: 0 0 auto;
    font-size: 18px;
  }

  .login-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 999px;
  }

  .container {
    padding: 20px 16px 60px;
  }

  .hero {
    padding: 52px 24px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 40px;
    max-width: 12ch;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions a.btn {
    width: 100%;
  }

  .section {
    margin-top: 40px;
  }

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

  .card-title {
    font-size: 17px;
  }

  .card-sub {
    font-size: 14px;
  }

  .today-meta-row {
    gap: 6px;
    font-size: 12px;
  }

  .today-page-header {
    margin-bottom: 24px;
  }

  .today-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .today-sub {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
  }

  .today-card .btn {
    margin-top: 12px;
  }

    a.hero-secondary-link,
  a.hero-secondary-link:visited {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.4;
  }

  .section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-head .link,
  .section-head .link:link,
  .section-head .link:visited {
    font-size: 15px;
    line-height: 1.4;
  }
}