:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #102033;
  --muted: #5b6b7f;
  --line: #d8e0ea;
  --brand: #0f5fb7;
  --brand-dark: #0b3d75;
  --brand-soft: #e8f2ff;
  --success: #147a45;
  --warning: #a15c00;
  --danger: #b42318;
  --shadow: 0 14px 34px rgba(16, 32, 51, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  background: #0d2747;
  color: #fff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.sidebar-logo {
  width: 210px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  padding: 8px;
}

.login-logo {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  margin-bottom: 34px;
}

.partner-logo {
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
}

.brand-name {
  font-weight: 800;
  line-height: 1.1;
}

.brand-sub {
  color: #b8cbe1;
  font-size: 12px;
  margin-top: 3px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  text-align: left;
  color: #dceaf8;
  background: transparent;
  padding: 11px 12px;
  border-radius: 8px;
}

.nav button.active,
.nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-footer {
  margin-top: auto;
  color: #b8cbe1;
  font-size: 12px;
  line-height: 1.45;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.title-block h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.title-block p {
  margin: 6px 0 0;
  color: var(--muted);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 8px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.logout {
  color: var(--brand-dark);
  background: #eef5ff;
  padding: 8px 10px;
  border-radius: 8px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
}

.card p {
  color: var(--muted);
  line-height: 1.55;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.metric-value {
  font-size: 30px;
  font-weight: 800;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.online,
.low,
.approved {
  color: var(--success);
  background: #eaf7f0;
}

.busy,
.medium,
.pending {
  color: var(--warning);
  background: #fff4e3;
}

.offline,
.high,
.blocked {
  color: var(--danger);
  background: #ffebe8;
}

.primary,
.secondary,
.danger-btn {
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 800;
}

.primary {
  background: var(--brand);
  color: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.secondary {
  background: #eaf1f8;
  color: var(--brand-dark);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.danger-btn {
  background: #ffe9e6;
  color: var(--danger);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary:hover,
.secondary:hover,
.danger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(16, 32, 51, 0.16);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button-row.centered {
  justify-content: center;
  margin-top: 28px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 8px;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 480px);
}

.login-hero {
  background: linear-gradient(135deg, #0d2747, #0f5fb7);
  color: #fff;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-hero .brand {
  display: block;
}

.login-hero h1 {
  font-size: 44px;
  margin: 0 0 14px;
  line-height: 1.05;
}

.login-hero p {
  color: #dceaf8;
  font-size: 18px;
  line-height: 1.55;
  max-width: 700px;
}

.login-panel {
  background: #fff;
  display: flex;
  align-items: center;
  padding: 34px;
}

.login-card {
  width: 100%;
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.hint {
  font-size: 13px;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.timeline-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 13px;
}

.banner {
  border: 1px solid #bad7ff;
  background: #edf6ff;
  color: #0b3d75;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.code {
  font-family: "Cascadia Code", Consolas, monospace;
  background: #0f1d2e;
  color: #dceaf8;
  padding: 14px;
  border-radius: 8px;
  overflow: auto;
  font-size: 13px;
}

.home-page {
  background: #f7faff;
  min-height: 100vh;
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 46px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.home-logo {
  width: 250px;
  max-width: 42vw;
  height: auto;
}

.home-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--brand-dark);
  font-weight: 800;
}

.home-links a {
  color: var(--brand-dark);
}

.home-hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: center;
  padding: 72px 54px 54px;
  background:
    linear-gradient(120deg, rgba(13, 39, 71, 0.95), rgba(15, 95, 183, 0.82)),
    url("./assets/favicon-192.png");
  background-size: cover, 360px;
  background-repeat: no-repeat;
  background-position: center, right 8% center;
  color: #fff;
  overflow: hidden;
}

.home-hero h1 {
  max-width: 900px;
  margin: 12px 0 18px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
  animation: riseIn 720ms ease-out both;
}

.home-hero p {
  max-width: 740px;
  color: #e5f1ff;
  font-size: 19px;
  line-height: 1.58;
  animation: riseIn 860ms ease-out both;
}

.eyebrow {
  display: inline-flex;
  color: #9ed0ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(3, 22, 45, 0.28);
  padding: 20px;
  color: var(--ink);
  animation: floatIn 900ms ease-out both;
}

.brand-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-3d-wrap {
  position: relative;
  height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(74, 163, 255, 0.22), transparent 42%),
    linear-gradient(145deg, #061a33, #0d2747 52%, #102f56);
  margin: 14px 0;
}

.hero-3d-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 35%, transparent 78%);
}

#shield3d {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.scene-chip {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #eaf5ff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
  animation: pulseChip 2.6s ease-in-out infinite;
}

.scene-chip.top {
  top: 14px;
  left: 14px;
}

.scene-chip.bottom {
  right: 14px;
  bottom: 14px;
  animation-delay: 900ms;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  max-width: 780px;
}

.hero-stats div {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.11);
  animation: riseIn 900ms ease-out both;
}

.hero-stats div:nth-child(2) {
  animation-delay: 80ms;
}

.hero-stats div:nth-child(3) {
  animation-delay: 160ms;
}

.hero-stats div:nth-child(4) {
  animation-delay: 240ms;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 28px;
  color: #fff;
}

.hero-stats span {
  color: #dceaf8;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.offer-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 18px;
  margin-top: 12px;
}

.offer-card span,
.offer-card strong,
.offer-card p {
  display: block;
}

.offer-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.offer-card strong {
  color: var(--brand-dark);
  font-size: 24px;
  margin-top: 6px;
}

.offer-badge {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 999px;
  background: #eaf7f0;
  color: var(--success);
  padding: 7px 10px;
  font-weight: 800;
  font-size: 12px;
}

.marquee-strip {
  overflow: hidden;
  white-space: nowrap;
  background: #0d2747;
  color: #dceaf8;
  border-top: 1px solid #20476f;
  border-bottom: 1px solid #20476f;
  padding: 12px 0;
}

.marquee-strip span {
  display: inline-block;
  padding-right: 28px;
  animation: marquee 28s linear infinite;
  font-weight: 800;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.about-card h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
}

.about-card li {
  margin: 10px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.process-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.process-card span {
  color: var(--brand);
  font-weight: 900;
  font-size: 12px;
}

.process-card h3 {
  margin: 8px 0;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.challenge-card {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.track-label {
  display: inline-flex;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.challenge-card h3 {
  margin: 12px 0 8px;
  font-size: 28px;
  color: var(--brand-dark);
}

.challenge-card p {
  max-width: 920px;
  color: var(--muted);
  line-height: 1.65;
}

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

.challenge-columns div {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.challenge-columns h4 {
  margin: 0 0 8px;
  color: var(--brand-dark);
}

.shield-visual {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.shield-visual img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.shield-visual strong,
.shield-visual span {
  display: block;
}

.shield-visual span {
  color: var(--muted);
  margin-top: 4px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mini-metrics div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-metrics strong,
.mini-metrics span {
  display: block;
}

.mini-metrics strong {
  font-size: 22px;
  color: var(--brand-dark);
}

.mini-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.home-section {
  padding: 68px 54px;
  max-width: 1280px;
  margin: 0 auto;
}

.home-section.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: start;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2 {
  margin: 10px 0 12px;
  font-size: 36px;
  line-height: 1.12;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.process-card:hover,
.challenge-card:hover,
.roadmap div:hover {
  transform: translateY(-4px);
  border-color: #9ccaff;
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.14);
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--brand-dark);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.room-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.room-card:hover {
  transform: translateY(-4px);
  border-color: #9ccaff;
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.14);
}

.room-card img {
  width: 100%;
  height: 160px;
  display: block;
  object-fit: cover;
  background: #eef5ff;
}

.room-card div {
  padding: 16px;
}

.room-card h3 {
  margin: 0 0 8px;
  color: var(--brand-dark);
}

.room-card p {
  min-height: 74px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--brand-dark);
  background: #f5f9ff;
  font-size: 11px;
  font-weight: 800;
}

.room-link {
  color: var(--brand);
  background: transparent;
  padding: 0;
  font-weight: 900;
}

.registration-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 28px;
}

.registration-section h1 {
  margin: 10px 0;
  font-size: 42px;
}

.registration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin-top: 24px;
}

.registration-form .full {
  grid-column: 1 / -1;
}

.registration-summary {
  border: 1px solid #b9d8ff;
  border-radius: 8px;
  background: #edf6ff;
  padding: 14px;
}

.registration-summary strong,
.registration-summary span {
  display: block;
}

.registration-summary span {
  color: var(--muted);
  margin-top: 4px;
}

.registration-success {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #f7faff, #e8f2ff);
}

.success-card {
  max-width: 620px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 20px;
}

.success-card h1 {
  margin: 10px 0;
  color: var(--brand-dark);
}

.payment-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 16px;
  margin-top: 16px;
}

.payment-box span,
.payment-box strong,
.payment-box p {
  display: block;
}

.payment-box strong {
  font-size: 30px;
  color: var(--success);
  margin: 4px 0;
}

.briefing-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 28px 64px;
  display: grid;
  gap: 16px;
}

.briefing-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.briefing-hero img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef5ff;
}

.briefing-hero h1 {
  margin: 8px 0;
  font-size: 38px;
  color: var(--brand-dark);
}

.briefing-hero p {
  color: var(--muted);
  line-height: 1.6;
}

.chat-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.chat-header h2,
.chat-header p {
  margin: 0;
}

.chat-header p {
  color: var(--muted);
  margin-top: 4px;
}

.chat-messages {
  min-height: 280px;
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    linear-gradient(90deg, #e8f2ff 1px, transparent 1px),
    linear-gradient(#e8f2ff 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.chat-message {
  max-width: 78%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.chat-message.mine {
  margin-left: auto;
  background: #edf6ff;
  border-color: #b9d8ff;
}

.chat-message strong,
.chat-message span {
  display: block;
}

.chat-message p {
  margin: 5px 0;
  color: var(--ink);
}

.chat-message span {
  color: var(--muted);
  font-size: 12px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.slot-controls,
.admin-actions {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.slot-controls input,
.slot-controls textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
}

.slot-controls textarea {
  min-height: 64px;
  resize: vertical;
}

.admin-actions button,
.slot-controls button {
  padding: 8px 10px;
  font-size: 13px;
}

.timeline.large {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.roadmap {
  display: grid;
  gap: 12px;
}

.roadmap div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseChip {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.82;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.roadmap strong,
.roadmap span {
  display: block;
}

.roadmap strong {
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.roadmap span {
  color: var(--muted);
}

.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 54px;
  background: #0d2747;
  color: #dceaf8;
}

.log-list {
  display: grid;
  gap: 10px;
}

.log-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdff;
}

.log-item strong {
  color: var(--brand-dark);
  margin-right: 8px;
}

.log-item span {
  color: var(--muted);
  font-size: 13px;
}

.log-item p {
  margin: 4px 0 0;
  color: var(--ink);
}

.certificate {
  border: 1px solid #b9d8ff;
  background: #edf6ff;
  border-radius: 8px;
  padding: 14px;
}

.certificate strong,
.certificate span {
  display: block;
}

.certificate strong {
  color: var(--brand-dark);
}

.certificate span {
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 980px) {
  .app-shell,
  .login-page {
    grid-template-columns: 1fr;
  }

  .home-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
  }

  .home-links {
    flex-wrap: wrap;
  }

  .home-hero,
  .home-section.split {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 44px 20px;
  }

  .home-hero h1 {
    font-size: 42px;
  }

  .home-section {
    padding: 44px 20px;
  }

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

  .hero-stats,
  .process-grid,
  .challenge-columns,
  .room-grid,
  .briefing-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }

  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .main,
  .login-hero,
  .login-panel {
    padding: 20px;
  }

  .login-hero h1 {
    font-size: 34px;
  }

  .home-links a {
    display: none;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .feature-grid,
  .mini-metrics,
  .hero-stats,
  .process-grid,
  .challenge-columns,
  .room-grid,
  .registration-form,
  .briefing-hero,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Premium visual polish */
:root {
  --cyan: #35d6ff;
  --midnight: #071b31;
}

.home-page {
  background:
    radial-gradient(circle at top left, rgba(53, 214, 255, 0.15), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 95, 183, 0.14), transparent 32%),
    #f7faff;
}

.home-nav {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(7, 27, 49, 0.06);
}

.home-links a {
  position: relative;
}

.home-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.home-links a:hover::after {
  transform: scaleX(1);
}

.home-hero {
  min-height: 680px;
  background:
    linear-gradient(120deg, rgba(7, 27, 49, 0.98), rgba(13, 55, 101, 0.9), rgba(15, 95, 183, 0.78)),
    radial-gradient(circle at 86% 25%, rgba(53, 214, 255, 0.24), transparent 22%);
  background-size: cover, cover;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 72%);
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  font-size: 58px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
}

.hero-3d-wrap {
  background:
    radial-gradient(circle at 50% 45%, rgba(53, 214, 255, 0.24), transparent 42%),
    linear-gradient(145deg, #061a33, #0d2747 52%, #102f56);
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.offer-card {
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
}

.marquee-strip {
  background: linear-gradient(90deg, #071b31, #0d2747, #0f5fb7);
}

.feature-card,
.room-card,
.process-card,
.challenge-card,
.roadmap div,
.about-card,
.registration-form,
.success-card,
.chat-panel,
.briefing-hero {
  border-color: rgba(15, 95, 183, 0.16);
}

.feature-card,
.room-card {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(53, 214, 255, 0.6), rgba(15, 95, 183, 0.12)) border-box;
}

.room-card img {
  height: 178px;
  transition: transform 220ms ease;
}

.room-card:hover img {
  transform: scale(1.035);
}

.room-link::after {
  content: " ->";
  color: var(--cyan);
}

.primary {
  background: linear-gradient(135deg, #0f5fb7, #0b74d1);
}

.primary:hover {
  background: linear-gradient(135deg, #0b4f9b, #0b74d1);
}

.room-card {
  cursor: pointer;
}

.room-card:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.card,
.feature-card,
.room-card,
.process-card,
.challenge-card,
.about-card {
  box-shadow: 0 18px 46px rgba(16, 32, 51, 0.11);
}

@media (max-width: 980px) {
  .home-hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 560px) {
  .home-hero h1 {
    font-size: 34px;
  }
}
