/* =========================================================
   LEARNING REWIRED LAB — COSMOS
   Cinematic launchpad for the COSMOS HTML5 experience
   File: /assets/css/cosmos.css
   ========================================================= */

.cosmos-page {
  --cosmos-ink: #f8fbff;
  --cosmos-muted: rgba(226, 232, 240, 0.76);
  --cosmos-soft: rgba(248, 250, 252, 0.1);
  --cosmos-line: rgba(255, 255, 255, 0.14);
  --cosmos-deep: #050816;
  --cosmos-navy: #07111f;
  --cosmos-panel: rgba(10, 20, 42, 0.76);
  --cosmos-panel-strong: rgba(12, 24, 52, 0.92);
  --cosmos-blue: #72a7ff;
  --cosmos-cyan: #66e3ff;
  --cosmos-lime: #b9ff7a;
  --cosmos-gold: #ffd36e;
  --cosmos-pink: #ff87c8;
  --cosmos-orange: #ffb86b;
  --cosmos-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --cosmos-radius-xl: 34px;
  --cosmos-radius-lg: 26px;
  --cosmos-radius-md: 18px;

  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(102, 227, 255, 0.18), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(255, 135, 200, 0.14), transparent 34%),
    radial-gradient(circle at 50% 92%, rgba(114, 167, 255, 0.14), transparent 38%),
    linear-gradient(180deg, #050816 0%, #07111f 48%, #050816 100%);
  color: var(--cosmos-ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.cosmos-page *,
.cosmos-page *::before,
.cosmos-page *::after {
  box-sizing: border-box;
}

.cosmos-page h1,
.cosmos-page h2,
.cosmos-page h3,
.cosmos-page p,
.cosmos-page figure {
  margin-top: 0;
}

.cosmos-page figure {
  margin-right: 0;
  margin-left: 0;
}

.cosmos-page a {
  color: inherit;
}

.cosmos-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.cosmos-eyebrow,
.cosmos-panel-label {
  margin-bottom: 14px;
  color: var(--cosmos-cyan);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.cosmos-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(66px, 8vw, 118px) 0 clamp(54px, 7vw, 92px);
}

.cosmos-starfield {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  opacity: 0.9;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(102, 227, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 211, 110, 0.48) 0 1px, transparent 1.3px);
  background-position:
    0 0,
    28px 42px,
    64px 18px;
  background-size:
    86px 86px,
    132px 132px,
    174px 174px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  animation: cosmosStarDrift 26s linear infinite;
}

.cosmos-starfield::before,
.cosmos-starfield::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background-repeat: repeat;
  mix-blend-mode: screen;
}

.cosmos-starfield::before {
  opacity: 0.72;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(102, 227, 255, 0.75) 0 1px, transparent 1.6px);
  background-size:
    118px 118px,
    184px 184px;
  background-position:
    18px 28px,
    76px 44px;
  animation: cosmosStarTwinkle 4.8s ease-in-out infinite alternate;
}

.cosmos-starfield::after {
  opacity: 0.38;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 1) 0 1.4px, transparent 2px),
    radial-gradient(circle, rgba(255, 211, 110, 0.85) 0 1.2px, transparent 1.9px);
  background-size:
    220px 220px,
    310px 310px;
  background-position:
    42px 88px,
    120px 36px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
  animation: cosmosStarPulse 6.2s ease-in-out infinite;
}

@keyframes cosmosStarDrift {
  0% {
    background-position:
      0 0,
      28px 42px,
      64px 18px;
  }

  100% {
    background-position:
      86px 86px,
      160px 174px,
      238px 192px;
  }
}

@keyframes cosmosStarTwinkle {
  0% {
    opacity: 0.34;
    transform: translate3d(0, 0, 0) scale(1);
    filter: brightness(0.85);
  }

  45% {
    opacity: 0.85;
    filter: brightness(1.35);
  }

  100% {
    opacity: 0.48;
    transform: translate3d(10px, -8px, 0) scale(1.015);
    filter: brightness(1);
  }
}

@keyframes cosmosStarPulse {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(1);
  }

  42% {
    opacity: 0.72;
    transform: scale(1.012);
  }

  68% {
    opacity: 0.36;
  }
}

.cosmos-hero::before,
.cosmos-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.cosmos-hero::before {
  top: 6%;
  right: -180px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(102, 227, 255, 0.18), transparent 68%);
}

.cosmos-hero::after {
  left: -260px;
  bottom: -280px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(255, 211, 110, 0.14), transparent 70%);
}

.cosmos-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.cosmos-hero-copy h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 6.8vw, 6.1rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.cosmos-hero-copy h1 span {
  display: block;
  width: max-content;
  max-width: 100%;
  padding-right: 0.05em;
  background: linear-gradient(90deg, #ffffff 0%, var(--cosmos-cyan) 48%, var(--cosmos-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cosmos-hero-lede {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--cosmos-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.26rem);
  line-height: 1.68;
}

.cosmos-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 28px;
}

.cosmos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

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

.cosmos-btn-primary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(102, 227, 255, 0.98), rgba(114, 167, 255, 0.98));
  color: #04101e;
  box-shadow: 0 20px 50px rgba(102, 227, 255, 0.22);
}

.cosmos-btn-primary:hover {
  box-shadow: 0 24px 60px rgba(102, 227, 255, 0.32);
}

.cosmos-btn-secondary {
  border: 1px solid var(--cosmos-line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--cosmos-ink);
  backdrop-filter: blur(16px);
}

.cosmos-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.cosmos-btn-pigs {
  border-color: rgba(255, 135, 200, 0.28);
  background: rgba(255, 135, 200, 0.08);
}

.cosmos-btn-pigs:hover {
  border-color: rgba(255, 135, 200, 0.42);
  background: rgba(255, 135, 200, 0.12);
}

.cosmos-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 12px;
}

.cosmos-status-strip div {
  min-width: 132px;
  padding: 13px 14px;
  border: 1px solid var(--cosmos-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.065);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.cosmos-status-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--cosmos-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================================
   COMMAND CARD / HERO IMAGE
   ========================================================= */

.cosmos-command-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 24px;
  border: 1px solid var(--cosmos-line);
  border-radius: var(--cosmos-radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 50% 32%, rgba(102, 227, 255, 0.18), transparent 52%),
    var(--cosmos-panel);
  box-shadow: var(--cosmos-shadow);
  backdrop-filter: blur(24px);
}

.cosmos-command-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  pointer-events: none;
}

.cosmos-command-header {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.cosmos-command-header p {
  margin-bottom: 6px;
  color: var(--cosmos-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cosmos-command-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -0.04em;
}

.cosmos-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(185, 255, 122, 0.38);
  border-radius: 999px;
  background: rgba(185, 255, 122, 0.12);
  color: var(--cosmos-lime);
  font-size: 0.74rem;
  font-weight: 900;
}

.cosmos-live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cosmos-lime);
  box-shadow: 0 0 18px rgba(185, 255, 122, 0.8);
}

.cosmos-hero-art {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  margin: 30px 0 22px;
  border: 1px solid var(--cosmos-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(102, 227, 255, 0.18), transparent 48%),
    rgba(255, 255, 255, 0.055);
}

.cosmos-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.02), rgba(5, 8, 22, 0.22)),
    radial-gradient(circle at 50% 20%, transparent 0 48%, rgba(5, 8, 22, 0.22) 100%);
}

.cosmos-hero-art::after {
  content: "MISSION CONTROL";
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  padding: 8px 10px;
  border: 1px solid rgba(102, 227, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.5);
  color: var(--cosmos-cyan);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.cosmos-hero-art img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.08) contrast(1.04);
}

.cosmos-command-stats {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
}

.cosmos-command-stats article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--cosmos-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
}

.cosmos-command-stats span {
  color: var(--cosmos-muted);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cosmos-command-stats strong {
  color: #ffffff;
  font-size: 0.95rem;
  text-align: right;
}

/* =========================================================
   SYSTEM BRIDGE SECTION
   ========================================================= */

.cosmos-system-section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.cosmos-system-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(102, 227, 255, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 211, 110, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(8, 17, 31, 0.94), rgba(5, 8, 22, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.cosmos-system-card h2 {
  margin: 0 0 18px;
  max-width: 720px;
  color: #f8fbff;
  font-size: clamp(1.95rem, 3.9vw, 3.85rem);
  line-height: 1;
  letter-spacing: -0.058em;
}

.cosmos-system-card p {
  max-width: 740px;
  color: rgba(226, 232, 240, 0.78);
}

.cosmos-system-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cosmos-system-points article {
  padding: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cosmos-system-points span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(102, 227, 255, 0.9);
}

.cosmos-system-points strong {
  display: block;
  color: #f8fbff;
  font-size: 1.02rem;
}

.cosmos-system-points p {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.72);
}

/* =========================================================
   INTRO SECTION
   ========================================================= */

.cosmos-intro-section {
  padding: clamp(50px, 7vw, 92px) 0;
}

.cosmos-intro-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--cosmos-line);
  border-radius: var(--cosmos-radius-xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 211, 110, 0.13), transparent 34%),
    radial-gradient(circle at 8% 80%, rgba(102, 227, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: var(--cosmos-shadow);
}

.cosmos-intro-card::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 135, 200, 0.11), transparent 68%);
  pointer-events: none;
}

.cosmos-intro-copy h2 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(1.95rem, 3.9vw, 3.85rem);
  line-height: 1;
  letter-spacing: -0.058em;
}

.cosmos-intro-copy p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--cosmos-muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

.cosmos-intro-grid {
  position: relative;
  display: grid;
  gap: 14px;
}

.cosmos-intro-grid article {
  padding: 18px;
  border: 1px solid var(--cosmos-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(14px);
}

.cosmos-intro-grid span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid rgba(102, 227, 255, 0.24);
  border-radius: 12px;
  background: rgba(102, 227, 255, 0.1);
  color: var(--cosmos-cyan);
  font-size: 0.72rem;
  font-weight: 950;
}

.cosmos-intro-grid h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  letter-spacing: -0.045em;
}

.cosmos-intro-grid p {
  margin-bottom: 0;
  color: var(--cosmos-muted);
  font-size: 0.95rem;
  line-height: 1.58;
}

/* =========================================================
   CAPTAIN STRATO
   ========================================================= */

.cosmos-captain {
  padding: clamp(50px, 7vw, 92px) 0;
}

.cosmos-captain-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.cosmos-captain-card {
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--cosmos-line);
  border-radius: var(--cosmos-radius-xl);
  background:
    radial-gradient(circle at 22% 10%, rgba(255, 211, 110, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    var(--cosmos-panel);
  box-shadow: var(--cosmos-shadow);
}

.cosmos-captain-portrait {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  margin: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 35%, rgba(102, 227, 255, 0.2), transparent 48%),
    rgba(255, 255, 255, 0.055);
}

.cosmos-captain-portrait::before {
  content: "";
  position: absolute;
  inset: 28px;
  z-index: 2;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  pointer-events: none;
  transform: rotate(-10deg);
}

.cosmos-captain-portrait::after {
  content: "TRANSMISSION LIVE";
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  padding: 8px 10px;
  border: 1px solid rgba(255, 211, 110, 0.32);
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.54);
  color: var(--cosmos-gold);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.cosmos-captain-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.05) contrast(1.04);
}

.cosmos-captain-transmission {
  padding-top: 24px;
}

.cosmos-captain-transmission h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.cosmos-captain-transmission p:last-child {
  margin-bottom: 0;
  color: var(--cosmos-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.cosmos-captain-copy h2,
.cosmos-dashboard-copy h2,
.cosmos-section-header h2,
.cosmos-final-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.95rem, 3.9vw, 3.85rem);
  line-height: 1;
  letter-spacing: -0.058em;
}

.cosmos-captain-copy p,
.cosmos-dashboard-copy p,
.cosmos-section-header p,
.cosmos-final-card p {
  max-width: 700px;
  color: var(--cosmos-muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

/* =========================================================
   MEET THE PIGS
   ========================================================= */

.cosmos-pigs-section {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 124px) 0;
  border-top: 1px solid var(--cosmos-line);
  border-bottom: 1px solid var(--cosmos-line);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 135, 200, 0.14), transparent 34%),
    radial-gradient(circle at 88% 72%, rgba(102, 227, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.045));
}

.cosmos-pigs-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px);
  background-size:
    92px 92px,
    138px 138px;
  background-position:
    0 0,
    36px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
}

.cosmos-pigs-section::after {
  content: "";
  position: absolute;
  right: -260px;
  top: 10%;
  width: 640px;
  height: 640px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 135, 200, 0.12), transparent 70%);
  pointer-events: none;
}

.cosmos-pigs-section .cosmos-shell {
  position: relative;
  z-index: 2;
}

.cosmos-pigs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.cosmos-pigs-hero .cosmos-section-header {
  margin-bottom: 0;
}

.cosmos-pigs-transmission {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 211, 110, 0.3);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 211, 110, 0.15), transparent 36%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.cosmos-pigs-transmission p {
  position: relative;
  margin-bottom: 10px;
  color: var(--cosmos-gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cosmos-pigs-transmission h3 {
  position: relative;
  margin-bottom: 0;
  color: #fff7da;
  font-size: clamp(1.28rem, 2vw, 1.85rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.cosmos-pigs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cosmos-pig-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 660px;
  flex-direction: column;
  border: 1px solid var(--cosmos-line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 0%, rgba(255, 135, 200, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.cosmos-pig-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 227, 255, 0.34);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.34);
}

.cosmos-pig-card.commander {
  background:
    radial-gradient(circle at 78% 0%, rgba(255, 135, 200, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
}

.cosmos-pig-card.professor {
  background:
    radial-gradient(circle at 78% 0%, rgba(102, 227, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
}

.cosmos-pig-card.truffles {
  background:
    radial-gradient(circle at 78% 0%, rgba(255, 211, 110, 0.17), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
}

.cosmos-pig-portrait {
  position: relative;
  overflow: hidden;
  min-height: 345px;
  margin: 0;
  border-bottom: 1px solid var(--cosmos-line);
  background:
    radial-gradient(circle at 50% 28%, rgba(102, 227, 255, 0.18), transparent 48%),
    rgba(255, 255, 255, 0.045);
}

.cosmos-pig-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.02), rgba(5, 8, 22, 0.18)),
    radial-gradient(circle at 50% 22%, transparent 0 46%, rgba(5, 8, 22, 0.24) 100%);
}

.cosmos-pig-portrait img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(1.05) contrast(1.04);
}

.cosmos-pig-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.cosmos-pig-label {
  margin-bottom: 12px;
  color: var(--cosmos-cyan);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cosmos-pig-card.commander .cosmos-pig-label {
  color: var(--cosmos-pink);
}

.cosmos-pig-card.truffles .cosmos-pig-label {
  color: var(--cosmos-gold);
}

.cosmos-pig-card h3 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(1.5rem, 2.4vw, 2.08rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.cosmos-pig-card p:not(.cosmos-pig-label) {
  margin-bottom: 20px;
  color: var(--cosmos-muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.cosmos-pig-card strong {
  display: block;
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(255, 211, 110, 0.26);
  border-radius: 18px;
  background: rgba(255, 211, 110, 0.07);
  color: #fff7da;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cosmos-pig-card.commander strong {
  border-color: rgba(255, 135, 200, 0.28);
  background: rgba(255, 135, 200, 0.08);
  color: #ffe4f2;
}

.cosmos-pig-card.professor strong {
  border-color: rgba(102, 227, 255, 0.28);
  background: rgba(102, 227, 255, 0.08);
  color: #e6fbff;
}

.cosmos-pigs-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--cosmos-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(102, 227, 255, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.cosmos-pig-note-label {
  margin-bottom: 6px;
  color: var(--cosmos-cyan);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cosmos-pigs-note p:last-child {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--cosmos-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* =========================================================
   MISSIONS
   ========================================================= */

.cosmos-missions {
  padding: clamp(56px, 8vw, 108px) 0;
}

.cosmos-section-header {
  max-width: 840px;
  margin-bottom: 34px;
}

.cosmos-mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cosmos-mission-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--cosmos-line);
  border-radius: var(--cosmos-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.cosmos-mission-card:hover {
  border-color: rgba(102, 227, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.125), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.055);
  transform: translateY(-5px);
}

.cosmos-card-featured {
  background:
    radial-gradient(circle at 80% 0%, rgba(185, 255, 122, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(102, 227, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.055);
}

.cosmos-mission-card-cta {
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 211, 110, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 135, 200, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.055);
}

.cosmos-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 36px;
}

.cosmos-card-topline span,
.cosmos-card-topline strong {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cosmos-card-topline span {
  color: var(--cosmos-muted);
}

.cosmos-card-topline strong {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--cosmos-lime);
  background: rgba(185, 255, 122, 0.1);
}

.cosmos-mission-card-cta .cosmos-card-topline strong {
  color: var(--cosmos-gold);
  background: rgba(255, 211, 110, 0.1);
}

.cosmos-mission-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.cosmos-mission-card p {
  margin-bottom: 22px;
  color: var(--cosmos-muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

.cosmos-mission-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.cosmos-mission-card a::after {
  content: "→";
  color: var(--cosmos-cyan);
}

/* =========================================================
   EXPERIENCE FEATURES / PREVIEW
   ========================================================= */

.cosmos-dashboard-preview {
  padding: clamp(54px, 8vw, 110px) 0;
}

.cosmos-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.cosmos-feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.cosmos-feature-list li {
  position: relative;
  padding-left: 30px;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.42;
}

.cosmos-feature-list li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--cosmos-cyan);
  box-shadow: 0 0 22px rgba(102, 227, 255, 0.7);
}

.cosmos-dashboard-panel {
  overflow: hidden;
  border: 1px solid var(--cosmos-line);
  border-radius: var(--cosmos-radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)),
    var(--cosmos-panel-strong);
  box-shadow: var(--cosmos-shadow);
}

.cosmos-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--cosmos-line);
  background: rgba(255, 255, 255, 0.055);
}

.cosmos-panel-toolbar div {
  display: flex;
  gap: 7px;
}

.cosmos-panel-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.cosmos-panel-toolbar p {
  margin-bottom: 0;
  color: var(--cosmos-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.cosmos-experience-preview {
  position: relative;
  min-height: 470px;
  overflow: hidden;
}

.cosmos-experience-preview figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.cosmos-experience-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.06) contrast(1.04);
}

.cosmos-experience-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.05), rgba(5, 8, 22, 0.62)),
    radial-gradient(circle at 50% 15%, transparent 0 42%, rgba(5, 8, 22, 0.32) 100%);
  pointer-events: none;
}

.cosmos-preview-overlay {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 3;
  padding: 22px;
  border: 1px solid var(--cosmos-line);
  border-radius: 24px;
  background: rgba(5, 8, 22, 0.58);
  backdrop-filter: blur(18px);
}

.cosmos-preview-overlay p {
  margin-bottom: 8px;
  color: var(--cosmos-cyan);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cosmos-preview-overlay h3 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.cosmos-preview-overlay span {
  display: block;
  color: var(--cosmos-muted);
  font-size: 0.98rem;
  line-height: 1.52;
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.cosmos-final-cta {
  padding: clamp(54px, 8vw, 112px) 0 clamp(80px, 10vw, 132px);
}

.cosmos-final-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--cosmos-line);
  border-radius: var(--cosmos-radius-xl);
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 211, 110, 0.16), transparent 34%),
    radial-gradient(circle at 12% 82%, rgba(102, 227, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: var(--cosmos-shadow);
  text-align: center;
}

.cosmos-final-card h2,
.cosmos-final-card p {
  margin-right: auto;
  margin-left: auto;
}

.cosmos-final-card p {
  margin-bottom: 26px;
}

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

@media (max-width: 1080px) {
  .cosmos-hero-grid,
  .cosmos-system-card,
  .cosmos-intro-card,
  .cosmos-captain-grid,
  .cosmos-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .cosmos-command-card {
    min-height: auto;
  }

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

  .cosmos-dashboard-grid {
    gap: 38px;
  }

  .cosmos-pigs-hero {
    grid-template-columns: 1fr;
  }

  .cosmos-pigs-grid {
    grid-template-columns: 1fr;
  }

  .cosmos-pig-card {
    min-height: 0;
  }

  .cosmos-pig-portrait {
    min-height: 440px;
  }

  .cosmos-pigs-note {
    grid-template-columns: 1fr;
  }

  .cosmos-pigs-note .cosmos-btn {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .cosmos-system-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cosmos-shell {
    width: min(100% - 28px, 1180px);
  }

  .cosmos-hero {
    padding-top: 56px;
  }

  .cosmos-hero-copy h1 {
    font-size: clamp(2.85rem, 14vw, 4.55rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
  }

  .cosmos-hero-lede {
    font-size: 1rem;
  }

  .cosmos-hero-actions {
    display: grid;
  }

  .cosmos-btn {
    width: 100%;
  }

  .cosmos-status-strip {
    grid-template-columns: 1fr;
  }

  .cosmos-status-strip div {
    min-width: 0;
  }

  .cosmos-command-card,
  .cosmos-intro-card,
  .cosmos-captain-card,
  .cosmos-dashboard-panel,
  .cosmos-final-card,
  .cosmos-system-card {
    border-radius: 24px;
  }

  .cosmos-command-card {
    padding: 18px;
  }

  .cosmos-command-header {
    flex-direction: column;
  }

  .cosmos-hero-art {
    min-height: 280px;
    margin: 18px 0 16px;
  }

  .cosmos-command-stats article {
    align-items: flex-start;
    flex-direction: column;
  }

  .cosmos-command-stats strong {
    text-align: left;
  }

  .cosmos-captain-portrait {
    min-height: 320px;
  }

  .cosmos-mission-grid {
    grid-template-columns: 1fr;
  }

  .cosmos-mission-card {
    min-height: 250px;
  }

  .cosmos-experience-preview {
    min-height: 360px;
  }

  .cosmos-preview-overlay {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 18px;
    border-radius: 20px;
  }

  .cosmos-panel-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .cosmos-pigs-section {
    padding: 64px 0;
  }

  .cosmos-pigs-transmission,
  .cosmos-pig-card,
  .cosmos-pigs-note {
    border-radius: 24px;
  }

  .cosmos-pig-portrait {
    min-height: 360px;
  }

  .cosmos-pig-copy {
    padding: 20px;
  }
}

@media (max-width: 620px) {
  .cosmos-system-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .cosmos-shell {
    width: min(100% - 22px, 1180px);
  }

  .cosmos-hero-copy h1 {
    font-size: 2.85rem;
  }

  .cosmos-captain-card {
    padding: 16px;
  }

  .cosmos-captain-portrait {
    min-height: 280px;
  }

  .cosmos-experience-preview {
    min-height: 320px;
  }

  .cosmos-preview-overlay h3 {
    font-size: 1.8rem;
  }

  .cosmos-pig-portrait {
    min-height: 310px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cosmos-starfield,
  .cosmos-starfield::before,
  .cosmos-starfield::after {
    animation: none;
  }
}
