:root {
  color-scheme: light;
  --bg: #eef5fb;
  --bg-accent: linear-gradient(135deg, #f7fbff 0%, #eaf4fb 45%, #d9ebf8 100%);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-border: rgba(29, 55, 119, 0.13);
  --text: #25354d;
  --muted: #5a6b82;
  --title: #1a3479;
  --accent: #0075bd;
  --accent-strong: #1d3777;
  --accent-soft: #d9ecfa;
  --shadow: 0 24px 80px rgba(29, 55, 119, 0.14);
}

body.dark-mode {
  color-scheme: dark;
  --bg: #071125;
  --bg-accent: linear-gradient(135deg, #050b19 0%, #0c1e3f 52%, #073b62 100%);
  --surface: rgba(7, 17, 37, 0.72);
  --surface-strong: rgba(13, 30, 60, 0.92);
  --surface-border: rgba(146, 198, 236, 0.16);
  --text: #edf5fb;
  --muted: #a9bad0;
  --title: #ffffff;
  --accent: #2ea6e8;
  --accent-strong: #91d3ff;
  --accent-soft: rgba(46, 166, 232, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg-accent);
  color: var(--text);
  isolation: isolate;
  transition: background 0.35s ease, color 0.35s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 117, 189, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 55, 119, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  z-index: -1;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 4.9rem;
  height: 4.9rem;
  object-fit: contain;
  padding: 0.35rem;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(29, 55, 119, 0.16);
}

.eyebrow,
.panel-label,
.status-pill {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
}

.eyebrow,
.panel-label {
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.brand-block h1 {
  margin: 0;
  color: var(--title);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
}

.theme-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.theme-toggle__track {
  display: inline-grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.theme-toggle__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.theme-toggle__thumb {
  width: 2.3rem;
  height: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  position: relative;
}

.theme-toggle__thumb::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.18rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.28s ease;
}

body.dark-mode .theme-toggle__thumb::after {
  transform: translateX(0.92rem);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.info-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--surface-border);
  border-radius: 1.5rem;
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: clamp(28rem, 66vh, 42rem);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 117, 189, 0.11);
  pointer-events: none;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto 2rem 2rem auto;
  width: min(42vw, 23rem);
  aspect-ratio: 1;
  background: url("assets/SSA_240x240.png") center / contain no-repeat;
  opacity: 0.08;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--accent-strong);
}

.status-pill::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.35rem rgba(0, 117, 189, 0.14);
}

.hero-copy h2 {
  position: relative;
  margin: 0;
  max-width: 13ch;
  color: var(--title);
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  position: relative;
  margin: 1.4rem 0 0;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid var(--surface-border);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
  box-shadow: 0 16px 34px rgba(0, 117, 189, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ghost-link:hover,
.ghost-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 117, 189, 0.45);
}

.info-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  background:
    linear-gradient(180deg, var(--surface-strong), var(--surface)),
    linear-gradient(135deg, rgba(0, 117, 189, 0.2), rgba(29, 55, 119, 0));
}

.panel-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 117, 189, 0.14), transparent 42%),
    repeating-linear-gradient(135deg, rgba(29, 55, 119, 0.06) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.panel-label,
.status-list,
.panel-note {
  position: relative;
}

.status-list {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.status-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.6;
}

.status-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.panel-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .topbar,
  .hero-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar {
    justify-content: stretch;
  }

  .theme-toggle {
    justify-self: start;
  }

  .hero-copy h2 {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
    padding-top: 1rem;
  }

  .brand-block {
    align-items: flex-start;
  }

  .brand-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
  }

  .theme-toggle__track {
    width: 100%;
  }

  .hero-copy,
  .info-panel {
    border-radius: 1.5rem;
  }

  .hero-copy h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .lead {
    font-size: 0.98rem;
  }
}
