:root {
  color-scheme: dark;
  --bg-900: #07131f;
  --bg-800: #0d1d2c;
  --surface: #10263a;
  --surface-2: #15324c;
  --line: #275173;
  --text: #f2f7fb;
  --muted: #bfd2e2;
  --accent: #2dc7b6;
  --accent-2: #f4b15d;
  --shadow: 0 20px 35px rgba(3, 10, 17, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg-900);
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(140deg, var(--bg-900), var(--bg-800));
  background-color: var(--bg-900);
  position: relative;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 6% 10%, rgba(45, 199, 182, 0.22), transparent 36%),
    radial-gradient(circle at 92% 16%, rgba(244, 177, 93, 0.16), transparent 30%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    36px 36px,
    36px 36px;
  z-index: -2;
}

body::before {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  top: -160px;
  right: -160px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(45, 199, 182, 0.45), rgba(45, 199, 182, 0));
  filter: blur(30px);
  z-index: -1;
  animation: orbit 18s linear infinite;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  margin: 0;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 24px;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}

.hero-logo {
  width: clamp(240px, 40vw, 340px);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
  animation: float-logo 5s ease-in-out infinite;
}

.hero-tag {
  display: inline-flex;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

h1 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 2.6vw + 1rem, 3.1rem);
  line-height: 1.08;
  max-width: 18ch;
}

.hero-subtitle {
  margin-top: 16px;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.65;
}

.hero-cta {
  display: inline-flex;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  color: #051622;
  background: linear-gradient(120deg, var(--accent), #6be2d4);
  border: 1px solid rgba(103, 221, 208, 0.85);
  box-shadow: 0 10px 20px rgba(45, 199, 182, 0.25);
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 52px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 28px;
}

.summary-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(191, 210, 226, 0.24);
  background: rgba(16, 38, 58, 0.72);
  padding: 16px;
  backdrop-filter: blur(3px);
}

.summary-item span {
  display: block;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 1.55rem;
  color: var(--accent);
  line-height: 1;
}

.summary-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.assignment-section {
  margin-bottom: 32px;
}

.assignment-lead {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.assignment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.assignment-panel {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(191, 210, 226, 0.24);
  background:
    linear-gradient(180deg, rgba(21, 50, 76, 0.88), rgba(16, 38, 58, 0.84));
  box-shadow: var(--shadow);
}

.input-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: #d8e7f3;
  font-weight: 600;
}

.teams-input {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  border: 1px solid rgba(191, 210, 226, 0.35);
  border-radius: 12px;
  padding: 12px 12px;
  background: rgba(8, 23, 35, 0.72);
  color: #eff6fc;
  font: inherit;
  line-height: 1.5;
}

.teams-input::placeholder {
  color: #9fbbd1;
}

.teams-input:focus-visible {
  outline: 3px solid rgba(45, 199, 182, 0.65);
  outline-offset: 2px;
}

.assignment-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(103, 221, 208, 0.85);
  border-radius: 10px;
  padding: 9px 12px;
  background: linear-gradient(120deg, var(--accent), #67ddd0);
  color: #03121d;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.action-btn.secondary {
  border-color: rgba(244, 177, 93, 0.5);
  background: linear-gradient(120deg, rgba(244, 177, 93, 0.85), rgba(247, 211, 140, 0.9));
  color: #1f1000;
}

.action-btn.ghost {
  border-color: rgba(191, 210, 226, 0.36);
  background: rgba(11, 31, 46, 0.62);
  color: #e9f2f9;
}

.action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.action-btn:focus-visible {
  outline: 3px solid rgba(244, 177, 93, 0.85);
  outline-offset: 2px;
}

.assignment-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(191, 210, 226, 0.2);
  background: rgba(9, 27, 42, 0.55);
  color: #cfdeeb;
  font-size: 0.93rem;
}

.assignment-status[data-type="success"] {
  border-color: rgba(45, 199, 182, 0.45);
  color: #a8efe5;
}

.assignment-status[data-type="warning"] {
  border-color: rgba(244, 177, 93, 0.45);
  color: #ffe1b3;
}

.assignment-status[data-type="error"] {
  border-color: rgba(244, 108, 108, 0.5);
  color: #ffd1d1;
}

.assignment-result-wrap {
  display: flex;
  flex-direction: column;
}

.result-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.assignment-result {
  min-height: 280px;
}

.assignment-result.is-empty {
  display: grid;
  place-items: center;
}

.empty-result {
  margin: 0;
  color: #acc2d5;
  text-align: center;
  max-width: 30ch;
}

.result-summary {
  margin: 0 0 12px;
  color: #dbe9f4;
}

.assignment-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.assignment-item {
  border: 1px solid rgba(191, 210, 226, 0.22);
  border-radius: 12px;
  padding: 12px;
  background: rgba(8, 28, 42, 0.72);
}

.assignment-item h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.assignment-meta {
  margin: 0;
  color: #c8daea;
  font-size: 0.9rem;
  line-height: 1.5;
}

.assignment-link {
  margin-top: 10px;
  display: inline-flex;
  text-decoration: none;
  color: #7de5d8;
  font-weight: 600;
}

.assignment-unassigned {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(191, 210, 226, 0.18);
}

.assignment-unassigned h4 {
  margin: 0 0 8px;
  font-size: 0.96rem;
  color: #e8f0f8;
}

.assignment-unassigned ul {
  margin: 0;
  padding-left: 18px;
  color: #c2d7e8;
  display: grid;
  gap: 5px;
}

.author-section {
  margin-bottom: 32px;
}

.author-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(191, 210, 226, 0.25);
  background:
    linear-gradient(180deg, rgba(21, 50, 76, 0.9), rgba(16, 38, 58, 0.86));
  box-shadow: var(--shadow);
}

.author-photo-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(244, 177, 93, 0.45);
  min-height: 280px;
  background: linear-gradient(160deg, rgba(244, 177, 93, 0.28), rgba(45, 199, 182, 0.22));
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.author-tag {
  margin: 0;
  color: #d8e7f3;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.author-content h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.author-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.author-highlights {
  margin: 0;
  padding-left: 18px;
  color: #e6eff7;
  display: grid;
  gap: 8px;
}

.author-topic {
  margin: 2px 0 0;
  color: #d8e7f3;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84rem;
  color: #eaf3fb;
  border: 1px solid rgba(45, 199, 182, 0.42);
  background: rgba(8, 26, 39, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

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

.mission-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(191, 210, 226, 0.24);
  background:
    linear-gradient(180deg, rgba(21, 50, 76, 0.82), rgba(16, 38, 58, 0.8));
  box-shadow: var(--shadow);
  transition: border-color 0.22s ease;
}

.mission-card:hover {
  border-color: rgba(45, 199, 182, 0.62);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.company {
  margin: 0;
  font-size: 1.12rem;
}

.sector {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d7e5f1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(244, 177, 93, 0.18);
  border: 1px solid rgba(244, 177, 93, 0.35);
}

.card-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.topic {
  margin: 0;
  font-size: 0.88rem;
  color: #d8e7f3;
}

.topic strong {
  color: var(--accent);
}

.deliverables {
  margin: 0;
  padding-left: 18px;
  color: #e6eff7;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  color: #03121d;
  background: linear-gradient(120deg, var(--accent), #67ddd0);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(103, 221, 208, 0.85);
}

.card-link:focus-visible,
.hero-cta:focus-visible {
  outline: 3px solid rgba(244, 177, 93, 0.85);
  outline-offset: 2px;
}

.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 26px;
}

.footer p {
  margin: 0;
  color: #a6bfd2;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease;
  will-change: transform;
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes float-logo {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

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

  .assignment-layout {
    grid-template-columns: 1fr;
  }

  .author-card {
    grid-template-columns: 1fr;
  }

  .author-photo-wrap {
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .content,
  .hero,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 48px;
  }

  .mission-card,
  .author-card {
    padding: 16px;
  }

  .assignment-panel {
    padding: 16px;
  }

  .card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .assignment-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
