*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0f2744;
  --navy-deep: #0a1c33;
  --navy-btn: #163a5c;
  --navy-btn-border: rgba(120, 190, 230, 0.45);
  --title: #122c4a;
  --green-text: #2e7d32;
  --purple: #7b3fa0;
  --cyan: #4aa8d8;
  --card-bg: #ffffff;
  --page-bg: #eef5fb;
  --font: "Nunito", system-ui, sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: #1a2b3c;
  background: var(--navy-deep);
}

.app {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  background: linear-gradient(180deg, #12314f 0%, #0b2138 100%);
  padding: 1rem 0.9rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar__logo {
  background: #fff;
  border-radius: 10px;
  padding: 0.75rem 0.6rem;
  text-align: center;
}

.sidebar__logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.35rem;
}

.sidebar__logo p {
  font-size: 0.72rem;
  line-height: 1.15;
  color: #222;
  text-transform: lowercase;
}

.sidebar__logo strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a4668 0%, var(--navy-btn) 100%);
  border: 1.5px solid var(--navy-btn-border);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, background 0.12s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #225a82 0%, #1a4a6e 100%);
}

.nav-btn--active {
  background: linear-gradient(180deg, #2a6fa0 0%, #1d557c 100%);
  border-color: rgba(160, 220, 255, 0.7);
  box-shadow:
    0 0 0 2px rgba(100, 180, 230, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-btn__icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== Content ===== */
.content {
  position: relative;
  padding: 1.75rem 2rem 2.25rem;
  background:
    linear-gradient(180deg, rgba(238, 245, 251, 0.92) 0%, rgba(232, 242, 250, 0.94) 100%),
    url("../assets/bg-dna.png") right center / cover no-repeat;
  background-blend-mode: lighten;
  overflow-x: hidden;
}

.content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/bg-dna.png") center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.content > * {
  position: relative;
  z-index: 1;
}

.content__header {
  margin-bottom: 1.25rem;
}

.content__header h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 900;
  color: var(--title);
  margin-bottom: 0.35rem;
}

.content__header p {
  color: var(--green-text);
  font-weight: 700;
  font-size: 0.98rem;
  max-width: 640px;
  line-height: 1.45;
}

/* Panels */
.panel {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.35rem;
  box-shadow: 0 6px 18px rgba(20, 50, 90, 0.1);
  margin-bottom: 1.15rem;
}

.panel__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.panel__title--purple {
  color: var(--purple);
}

.panel__title--cyan {
  color: var(--cyan);
}

/* Steps */
.steps {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.step-card {
  position: relative;
  flex: 1 1 0;
  min-width: 150px;
  background: #f7fafc;
  border: 1px solid #e3ebf3;
  border-radius: 12px;
  padding: 1.35rem 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-card__num {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--purple);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card__preview {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.step-card__preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.step-card__preview--cube {
  background: #111;
}

.step-card__preview--panel {
  background: #eef2f7;
  padding: 0.35rem;
}

.step-card__text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.35;
}

.steps__arrow {
  align-self: center;
  color: var(--purple);
  font-size: 1.35rem;
  font-weight: 900;
  flex-shrink: 0;
  padding: 0 0.1rem;
}

/* Mini info panel (step 3) */
.mini-info {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #d5dde8;
  padding: 0.35rem 0.45rem;
  text-align: left;
  font-size: 0.58rem;
  overflow: hidden;
}

.mini-info__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1e3a5f;
  font-size: 0.68rem;
}

.mini-info__sub {
  color: #64748b;
  margin-bottom: 0.2rem;
}

.mini-info__label {
  font-weight: 800;
  color: #334155;
}

.mini-info ul {
  margin-left: 0.9rem;
  color: #475569;
  line-height: 1.25;
}

/* Bottom grid */
.bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.15rem;
}

.bottom-grid .panel {
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-list strong {
  display: block;
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 0.1rem;
}

.feature-list p {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 600;
  line-height: 1.4;
}

.feature-list__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 900;
  font-size: 0.75rem;
}

.feature-list__icon--green {
  background: #22c55e;
}

.feature-list__icon--blue {
  background: #3b82f6;
}

.feature-list__icon--orange {
  background: #f59e0b;
}

.feature-list__icon--purple {
  background: #8b5cf6;
}

.legend-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.legend-list b {
  color: #1e293b;
}

.legend-list__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.legend-list__dot--blue {
  background: #3b82f6;
}

.legend-list__dot--green {
  background: #22c55e;
}

.legend-list__dot--orange {
  background: #f59e0b;
}

.legend-list__dot--purple {
  background: #8b5cf6;
}

.legend-list__dot--sky {
  background: #38bdf8;
}

/* Responsive */
@media (max-width: 980px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .sidebar__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    padding: 0.4rem 0.65rem;
  }

  .sidebar__logo img {
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .sidebar__logo p {
    font-size: 0.65rem;
  }

  .sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.45rem;
  }

  .nav-btn {
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
    border-radius: 999px;
  }

  .content {
    padding: 1.25rem 1rem 1.75rem;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-wrap: wrap;
    justify-content: center;
  }

  .steps__arrow {
    display: none;
  }

  .step-card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
  }
}

@media (max-width: 520px) {
  .step-card {
    flex: 1 1 100%;
  }
}
