:root {
  --bg-main: #050012;
  --bg-elevated: #0c021f;
  --bg-elevated-soft: #12052b;
  --accent: #c45bff;
  --accent-soft: rgba(196, 91, 255, 0.2);
  --accent-strong: #f076ff;
  --text-primary: #f7f3ff;
  --text-secondary: #b7a5d8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 22px 80px rgba(0, 0, 0, 0.8);
  --radius-lg: 22px;
  --radius-pill: 999px;
  --transition-fast: 180ms ease-out;
  --transition-med: 260ms cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #2d0b52 0, #050012 55%)
      no-repeat,
    radial-gradient(circle at bottom right, #370b4c 0, #050012 60%) no-repeat,
    #050012;
  color: var(--text-primary);
  overflow-x: hidden;
}

.page-shell {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 20% 20%, #f076ff, #5e21b0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: #0b0218;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.brand-logo-link {
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name,
.brand-name-link {
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-secondary);
}

.brand-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(107, 255, 184, 0.45);
  background: radial-gradient(circle at top, rgba(107, 255, 184, 0.14), #050012);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c0ffe4;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6bffb8;
  box-shadow: 0 0 12px rgba(107, 255, 184, 0.9);
}

.status-text {
  opacity: 0.9;
}

.header-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.weather-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 0, 35, 0.55);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  max-width: min(440px, 70vw);
}

.weather-pill[aria-busy="true"] {
  opacity: 0.9;
}

.weather-icon {
  font-size: 12px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(196, 91, 255, 0.25));
}

.weather-city {
  color: var(--text-primary);
  letter-spacing: 0.06em;
  max-width: 14ch;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.weather-city::before,
.weather-city::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  pointer-events: none;
  z-index: 1;
}

.weather-city::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10, 0, 35, 0.9), rgba(10, 0, 35, 0));
}

.weather-city::after {
  right: 0;
  background: linear-gradient(270deg, rgba(10, 0, 35, 0.9), rgba(10, 0, 35, 0));
}

.weather-city-inner {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  transform: translateX(0);
}

.weather-city.is-marquee .weather-city-inner {
  padding-left: 100%;
  animation: weather-marquee var(--weather-marquee-duration, 9s) linear infinite;
}

@keyframes weather-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.weather-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-action {
  border: 0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(196, 91, 255, 0.16);
  color: var(--text-primary);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: transform 120ms ease-out, background var(--transition-fast),
    border-color var(--transition-fast);
}

.weather-action:hover {
  background: rgba(196, 91, 255, 0.26);
  transform: translateY(-1px);
}

.weather-action:active {
  transform: translateY(0);
}

.header-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(10, 0, 35, 0.6);
  transition: background var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast), transform 120ms ease-out;
}

.header-link:hover {
  background: rgba(24, 5, 60, 0.9);
  border-color: rgba(196, 91, 255, 0.7);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero {
  padding: 24px 22px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top left, rgba(192, 86, 255, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(52, 135, 255, 0.24), transparent 60%),
    linear-gradient(135deg, rgba(13, 0, 40, 0.96), rgba(6, 0, 30, 0.98));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% -10%, rgba(255, 255, 255, 0.18), transparent 55%);
  opacity: 0.65;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 38px);
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.accent {
  color: var(--accent-strong);
}

.hero-subtitle {
  margin: 0;
  max-width: 540px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.hero-compact {
  padding: 22px 20px;
}

.cards-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-heading h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.section-heading p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.resource-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top left, rgba(192, 86, 255, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(60, 133, 255, 0.18), transparent 60%),
    #0b021a;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transform-origin: center center;
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-fast), background-position 200ms ease-out;
}

.resource-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 52%);
  opacity: 0.7;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.resource-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
  border-color: rgba(196, 91, 255, 0.7);
}

.resource-card-inner {
  position: relative;
  z-index: 1;
}

.resource-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(6, 0, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6bffb8;
  box-shadow: 0 0 10px rgba(107, 255, 184, 0.9);
}

.badge-soft {
  background: rgba(23, 3, 52, 0.9);
  border-color: rgba(255, 255, 255, 0.06);
}

.resource-title {
  margin: 0 0 6px;
  font-size: 17px;
}

.resource-description {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.resource-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.resource-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(7, 1, 30, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.resource-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-strong);
  font-weight: 500;
}

.resource-cta-arrow {
  transition: transform var(--transition-fast);
}

.resource-card:hover .resource-cta-arrow {
  transform: translateX(3px);
}

.resource-card.disabled {
  cursor: default;
}

.resource-card.disabled:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.06);
}

.resource-card.disabled .resource-cta {
  color: var(--text-secondary);
}

.resource-card.disabled .badge-dot {
  background: #ffce7a;
  box-shadow: 0 0 10px rgba(255, 206, 122, 0.6);
}

.resource-card.disabled .resource-pill {
  opacity: 0.85;
}

.ts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
}

.ts-card {
  padding: 20px 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0218;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.ts-card-primary {
  background: radial-gradient(circle at top left, rgba(192, 86, 255, 0.26), transparent 55%),
    linear-gradient(135deg, #0b021d, #14042f);
}

.ts-card-secondary {
  background: radial-gradient(circle at bottom right, rgba(72, 127, 255, 0.26), transparent 60%),
    linear-gradient(135deg, #090121, #0e032d);
}

.ts-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.ts-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.ts-info-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ts-info-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ts-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ts-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.ts-copy {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 0, 32, 0.7);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  text-align: left;
  width: fit-content;
  cursor: pointer;
  color: var(--text-primary);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
  transition: transform 140ms ease-out, border-color var(--transition-fast),
    background var(--transition-fast), box-shadow var(--transition-fast);
}

.ts-copy:hover {
  border-color: rgba(196, 91, 255, 0.7);
  background: radial-gradient(circle at top left, rgba(192, 86, 255, 0.35), transparent 60%),
    rgba(18, 3, 52, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.85);
  transform: translateY(-1px);
}

.ts-copy:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.8);
}

.ts-copy-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  min-height: 16px;
}

.ts-note {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.9;
}

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(10, 0, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-med), box-shadow var(--transition-med),
    transform 140ms ease-out, border-color var(--transition-fast);
}

.btn-primary {
  background: radial-gradient(circle at top, #f076ff, #7e24d4);
  color: #10031f;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.95);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.site-footer {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.footer-subtext {
  opacity: 0.9;
}

.cursor-orbit {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.cursor-orbit {
  width: 260px;
  height: 260px;
  margin-left: -130px;
  margin-top: -130px;
  background: radial-gradient(
    circle,
    rgba(240, 118, 255, 0.30) 0%,
    rgba(196, 91, 255, 0.18) 34%,
    rgba(90, 30, 200, 0.10) 54%,
    rgba(60, 0, 130, 0) 74%
  );
  mix-blend-mode: screen;
  filter: blur(18px);
  opacity: 0.75;
  transition: opacity 200ms ease-out;
}

.cursor-orbit.hidden {
  opacity: 0;
}

@media (max-width: 768px) {
  .page-shell {
    padding-inline: 16px;
  }

  .site-header {
    margin-bottom: 22px;
    flex-wrap: wrap;
  }

  .hero {
    padding: 20px 18px;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ts-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (pointer: coarse) {
  .cursor-orbit {
    display: none;
  }
}

