:root {
  --cpp-dark: #073540;
  --cpp-ink: #14282e;
  --cpp-orange: #ff6b3d;
  --cpp-line: #e5ebec;
  --cpp-shadow: 0 16px 48px rgba(14, 44, 50, .08);
}

body {
  color: var(--cpp-ink);
  background-color: #f5f7f6;
  background-image: linear-gradient(rgba(245, 247, 246, .96), rgba(245, 247, 246, .96)), url('../apps/platform/assets/main-d-watermark-pattern-v2.png');
  background-size: auto, 1100px 700px;
  background-position: center top;
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.main-wrap { min-width: 0; padding-top: 76px; }

.sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 16px 14px 14px;
  color: #dfeaec;
  background: linear-gradient(180deg, #073540, #063d49 69%, #073540);
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 60px;
  margin: 0 3px 20px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
}
.sidebar-identity-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #c5e957, #84b900); color: #073540; font-size: 18px; }
.sidebar-identity strong, .sidebar-identity small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-identity strong { color: #fff; font-size: 11px; }
.sidebar-identity small { margin-top: 3px; color: #92b0b5; font-size: 9px; }
.sidebar-identity-chevron { color: #789da3; }
.sidebar-group-label { padding: 0 13px 9px; color: #6f9aa0; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.side-nav { display: grid; gap: 3px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 13px; min-height: 42px; padding: 8px 12px; border-radius: 9px; color: #acc4c7; font-size: 12px; font-weight: 700; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-item.is-active { color: #073540; background: #fff; box-shadow: 0 8px 22px rgba(1, 25, 31, .2); }
.nav-item.is-active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #a7db00; }
.nav-icon { width: 23px; color: #a8c6c8; font-size: 19px; font-weight: 500; text-align: center; line-height: 1; }
.nav-item.is-active .nav-icon { color: var(--cpp-orange); }
.sidebar-spacer { flex: 1; }
.sidebar-visual { height: 145px; margin: 12px 3px 3px; background: url('../apps/platform/assets/sidebar-tech-car.png') center bottom / contain no-repeat; opacity: .8; }
.sidebar-note { margin: 0 3px; padding: 12px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 14px; background: rgba(255, 255, 255, .045); }
.sidebar-note .small-dot, .demo-pill .small-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #a7db00; box-shadow: 0 0 0 4px rgba(167, 219, 0, .15); }
.sidebar-note strong { color: #fff; font-size: 11px; }
.sidebar-note p { margin: 7px 0 0; color: #91b3b7; font-size: 9px; line-height: 1.5; }
.sidebar-bottom { padding: 13px 6px 0; color: #789da2; font-size: 8px; font-weight: 700; letter-spacing: .12em; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  height: 76px;
  padding: 0 26px;
  border-bottom: 1px solid var(--cpp-line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 12px rgba(9, 41, 47, .025);
}
.platform-brand { display: flex; align-items: center; width: 187px; height: 100%; }
.platform-brand img { display: block; width: 174px; max-height: 54px; object-fit: contain; }
.breadcrumb { display: flex; align-items: center; gap: 12px; justify-self: center; width: min(540px, 100%); min-height: 38px; padding: 0 13px; border: 1px solid var(--cpp-line); border-radius: 10px; background: #f8faf9; color: #829398; font-size: 11px; }
.breadcrumb::before { content: '▣'; color: var(--cpp-orange); font-size: 13px; }
.breadcrumb strong { color: #173f48; }
.breadcrumb-sep { color: #bec5c4; }
.topbar-right { display: flex; justify-content: flex-end; }
.demo-pill { display: flex; align-items: center; white-space: nowrap; padding: 9px 11px; border: 1px solid var(--cpp-line); border-radius: 9px; background: #fff; color: #466a6e; font-size: 10px; font-weight: 700; }

.main-wrap > main { width: min(1460px, 100%); max-width: none; margin: 0 auto; padding: 30px 34px 70px; }
.cpp-banner { display: grid; grid-template-columns: minmax(250px, .9fr) minmax(0, 1.4fr); gap: 28px; align-items: center; min-height: 140px; margin-bottom: 20px; padding: 22px 25px; border-radius: 18px; background: #073540; color: #fff; box-shadow: var(--cpp-shadow); }
.release-badge { display: inline-block; padding: 7px 10px; border-radius: 6px; background: #a7db00; color: #073540; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.cpp-banner h2 { margin: 12px 0 5px; color: #fff; font-size: clamp(19px, 2vw, 27px); letter-spacing: -.04em; }
.cpp-banner p { margin: 0; color: #b7d0d1; font-size: 11px; line-height: 1.55; }
.cpp-banner-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cpp-banner-links a { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; gap: 3px 10px; min-height: 68px; padding: 17px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px; background: rgba(255, 255, 255, .085); }
.cpp-banner-links a:hover { background: rgba(255, 255, 255, .16); }
.cpp-banner-links a > span { grid-row: span 2; color: #ff8b65; font-size: 10px; font-weight: 800; }
.cpp-banner-links strong { color: #fff; font-size: 12px; }
.cpp-banner-links small { grid-column: 2; color: #b9d0d1; font-size: 9px; }
.cpp-banner-links b { grid-column: 3; grid-row: 1 / 3; align-self: center; color: #ff8b65; font-size: 15px; }

.hero { display: grid; grid-template-columns: 51% 49%; gap: 0; align-items: stretch; min-height: 380px; margin-bottom: 18px; padding: 0; overflow: hidden; border: 1px solid var(--cpp-line); border-radius: 22px; background: #fff; box-shadow: var(--cpp-shadow); }
.hero-copy { align-self: center; padding: clamp(30px, 3vw, 50px); }
.hero h1 { margin: 19px 0 20px; color: var(--cpp-ink); font-size: clamp(32px, 3.2vw, 52px); line-height: 1.08; }
.hero h1 em { color: var(--cpp-orange); }
.hero-copy > p { max-width: 520px; margin-bottom: 22px; color: #71858b; font-size: 13px; line-height: 1.7; }
.hero-visual { position: relative; min-height: 360px; overflow: hidden; background: #7c918f; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; position: absolute; inset: 0; }
.hero-visual::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(3, 24, 29, .9)); }
.hero-visual-top { position: absolute; z-index: 1; top: 21px; left: 25px; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.hero-visual-bottom { position: absolute; z-index: 1; right: 21px; bottom: 19px; left: 21px; display: flex; align-items: center; gap: 12px; color: #fff; }
.hero-visual-bottom > span { display: flex; align-items: center; justify-content: center; flex: 0 0 45px; height: 42px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 7px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.hero-visual-bottom i { font-style: normal; color: #a9bac0; }
.hero-visual-bottom strong, .hero-visual-bottom small { display: block; }
.hero-visual-bottom strong { font-size: 12px; }
.hero-visual-bottom small { margin-top: 4px; color: #c5d4d6; font-size: 10px; }

.learning-plan { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 18px; padding: 18px 21px; border: 1px solid var(--cpp-line); border-radius: 16px; background: #fff; box-shadow: var(--cpp-shadow); }
.learning-plan-heading span { display: block; color: var(--cpp-orange); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.learning-plan-heading strong { display: block; margin-top: 5px; font-size: 13px; }
.learning-plan ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.learning-plan li { display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 8px 10px; border-radius: 9px; background: #f3f7f5; }
.learning-plan li > span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 8px; background: #e1f0e9; color: #0b5960; font-size: 10px; font-weight: 800; }
.learning-plan li:first-child > span { background: #ffede7; color: var(--cpp-orange); }
.learning-plan li strong, .learning-plan li small { display: block; }
.learning-plan li strong { font-size: 11px; }
.learning-plan li small { margin-top: 3px; color: #82969a; font-size: 9px; }
.notice { margin-bottom: 48px; }
.exam-section, .practice, .source-section { scroll-margin-top: 100px; }
.main-wrap footer { max-width: 1460px; margin: 0 auto; padding: 0 34px; }
.mobile-nav { display: none; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .topbar { grid-template-columns: 190px minmax(0, 1fr) auto; }
  .main-wrap > main { padding: 27px 26px 65px; }
  .cpp-banner { grid-template-columns: 1fr; gap: 15px; }
  .hero-copy { padding: 32px; }
  .hero h1 { font-size: clamp(33px, 4vw, 47px); }
  .learning-plan { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-wrap { padding-top: 64px; }
  .topbar { grid-template-columns: auto 1fr; height: 64px; padding: 0 20px; }
  .platform-brand { width: 145px; }
  .platform-brand img { width: 140px; }
  .breadcrumb { display: none; }
  .main-wrap > main { padding: 22px 20px 105px; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 250px; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 55; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 66px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #1c5862; background: #073540; box-shadow: 0 -8px 25px rgba(7, 53, 64, .15); }
  .mobile-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; color: #a7c5c9; font-size: 10px; font-weight: 700; }
  .mobile-nav a span { font-size: 22px; line-height: 1; }
  .mobile-nav a.is-active { color: #fff; background: #0b4b56; box-shadow: inset 0 3px #a7db00; }
}

@media (max-width: 650px) {
  .topbar { padding: 0 17px; }
  .demo-pill { padding: 7px 8px; font-size: 9px; }
  .main-wrap > main { padding: 17px 15px 104px; }
  .cpp-banner { padding: 18px; border-radius: 15px; }
  .cpp-banner-links { grid-template-columns: 1fr; }
  .hero { border-radius: 16px; }
  .hero-copy { padding: 27px 24px; }
  .hero h1 { font-size: clamp(34px, 8vw, 43px); }
  .hero-visual { min-height: 205px; }
  .learning-plan { padding: 16px; }
  .learning-plan ol { grid-template-columns: 1fr; }
  .learning-plan li { min-height: 48px; }
  .notice { margin-bottom: 42px; }
  .main-wrap footer { padding: 0 15px 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
