html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
:root {
  --font-body: "Manrope", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --surface: #f8fafc;
  --surface-strong: #ffffff;
  --brand-700: #0f766e;
  --brand-600: #0ea5a4;
  --accent-600: #ea580c;
  --accent-500: #f97316;
  --outline: rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.12);
}

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--surface);
}

body.app-shell {
  margin-bottom: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(14, 165, 164, 0.22), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.2), transparent 40%),
    linear-gradient(120deg, #f8fafc 0%, #f1f5f9 45%, #fff7ed 100%);
  z-index: -2;
}

body.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

body.app-shell header,
body.app-shell footer {
  display: none;
}

body.app-shell .container {
  max-width: none;
  padding: 0;
}

body.app-shell main {
  padding: 0;
}

.printos-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 28px;
  position: relative;
  z-index: 0;
}

.sidebar {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--outline);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.brand-sub {
  color: var(--ink-500);
  font-size: 0.85rem;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-link {
  text-decoration: none;
  color: var(--ink-700);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.side-link:hover {
  background: rgba(14, 165, 164, 0.08);
  border-color: rgba(14, 165, 164, 0.25);
  color: var(--ink-900);
}

.side-link.active {
  background: rgba(14, 165, 164, 0.15);
  border-color: rgba(14, 165, 164, 0.35);
  color: var(--brand-700);
}

.info-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 255, 0.82));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-500);
  font-weight: 600;
}

.info-title {
  font-size: 1rem;
  color: var(--ink-900);
}

.info-note {
  font-size: 0.85rem;
  color: var(--ink-500);
}

.shell-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.panel-hero {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--outline);
  border-radius: 26px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-strong);
}

.panel-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 12px 0;
}

.hero-text {
  color: var(--ink-700);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--ink-500);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-cta,
.btn-ghost {
  border: none;
  cursor: pointer;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--brand-600), #22c55e);
  box-shadow: 0 12px 24px rgba(14, 165, 164, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(14, 165, 164, 0.3);
  color: #ffffff;
}

.btn-cta-secondary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
}

.btn-ghost {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--outline);
  font-weight: 600;
  color: var(--ink-700);
}

.hero-card {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(14, 165, 164, 0.4), transparent 70%);
}

.hero-card-top {
  display: flex;
  gap: 8px;
}

.hero-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.hero-metric-label {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.7);
}

.hero-metric-value {
  font-size: 1.8rem;
  font-family: var(--font-display);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.65);
}

.hero-stat-value {
  font-size: 1rem;
}

.hero-progress {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px;
  position: relative;
}

.hero-progress-bar {
  height: 6px;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  border-radius: 999px;
}

.hero-progress-text {
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.7);
  margin-top: 6px;
  display: block;
}

.panel-section {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--outline);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--ink-500);
  font-weight: 700;
  margin-bottom: 6px;
}

.section-text {
  color: var(--ink-600);
  max-width: 640px;
}

.panel-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.module-card {
  background: #ffffff;
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.module-card.featured {
  background: linear-gradient(180deg, rgba(14, 165, 164, 0.08), rgba(255, 255, 255, 0.9));
  border-color: rgba(14, 165, 164, 0.25);
}

.module-title {
  font-weight: 700;
  color: var(--ink-900);
}

.module-text {
  color: var(--ink-600);
  font-size: 0.95rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink-700);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.scenario-card {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(14, 165, 164, 0.12), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(14, 165, 164, 0.2);
  border-radius: 20px;
  padding: 20px;
}

.scenario-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.scenario-col {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
}

.scenario-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ink-500);
  font-weight: 700;
}

.scenario-value {
  font-size: 1.2rem;
  font-family: var(--font-display);
}

.scenario-note {
  color: var(--ink-500);
  font-size: 0.8rem;
}

.pill {
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent-600);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 1100px) {
  .printos-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .side-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .panel-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .printos-shell {
    padding: 18px;
  }

  .panel-hero {
    padding: 20px;
  }

  .panel-section {
    padding: 18px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }
}
