:root {
  --ink: #18221e;
  --muted: #65736c;
  --paper: #f5f3ed;
  --surface: #fffefa;
  --line: #d9dfd8;
  --green: #0d5b48;
  --green-soft: #dcefe7;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% -8%, rgba(13, 91, 72, 0.15), transparent 32rem),
    radial-gradient(circle at 5% 35%, rgba(49, 92, 140, 0.08), transparent 28rem),
    var(--paper);
  line-height: 1.65;
}

button, input { font: inherit; }
.site-header {
  width: min(1180px, 92%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 1.25rem 0;
}

.platform-brand { display: flex; align-items: center; gap: .8rem; }
.platform-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: white; background: var(--green); border-radius: 14px 14px 14px 4px;
  font-family: Georgia, serif; font-size: 1.25rem; font-weight: 800;
}
.platform-brand strong, .platform-brand span { display: block; line-height: 1.3; }
.platform-brand span { color: var(--muted); font-size: .82rem; }
.platform-brand .platform-mark {
  display: grid;
  place-items: center;
  color: white;
  line-height: 1;
}
.header-note { color: var(--muted); font-size: .84rem; }

main { width: min(1180px, 92%); margin: 0 auto; padding-bottom: 5rem; }
.hero {
  position: relative; overflow: hidden; margin: 1.5rem 0 4rem; padding: clamp(2.2rem, 6vw, 5rem);
  color: white; background: #102f27; border-radius: 30px;
  box-shadow: 0 24px 70px rgba(24, 34, 30, .13);
}
.hero::before, .hero::after { content:""; position:absolute; border: 1px solid rgba(255,255,255,.1); border-radius:50%; }
.hero::before { width: 430px; height:430px; right:-110px; top:-190px; }
.hero::after { width: 280px; height:280px; right:90px; bottom:-210px; }
.hero-content { position: relative; z-index:1; max-width: 780px; }
.eyebrow { margin:0 0 .7rem; color:#9ad4bd; font-size:.78rem; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.hero h1 { margin:0; font-family: Georgia, "Noto Serif SC", serif; font-size:clamp(2.4rem,6vw,5rem); line-height:1.08; letter-spacing:-.03em; }
.hero h1 span { color:#9ad4bd; }
.hero-copy { max-width:650px; margin:1.4rem 0 2rem; color:#d5e5de; font-size:1.05rem; }
.hero-stats { display:flex; flex-wrap:wrap; gap:.8rem; }
.hero-stat { padding:.7rem .95rem; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); border-radius:12px; }
.hero-stat strong,.hero-stat span { display:block; line-height:1.35; }
.hero-stat span { color:#b8cbc3; font-size:.75rem; }

.catalog-heading { display:flex; align-items:end; justify-content:space-between; gap:2rem; margin-bottom:1.3rem; }
.catalog-heading h2 { margin:.15rem 0 0; font-family:Georgia,"Noto Serif SC",serif; font-size:clamp(1.8rem,4vw,2.7rem); }
.catalog-heading p { margin:0; color:var(--muted); }
.catalog-tools { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1.5rem; }
.filters { display:flex; gap:.45rem; padding:.3rem; background:#e9ece6; border-radius:12px; }
.filters button { padding:.55rem .85rem; color:var(--muted); background:transparent; border:0; border-radius:9px; cursor:pointer; }
.filters button.active { color:var(--green); background:white; box-shadow:0 3px 12px rgba(24,34,30,.07); font-weight:750; }
.search-wrap { position:relative; width:min(330px,45vw); }
.search-wrap input { width:100%; padding:.7rem 1rem .7rem 2.5rem; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:11px; }
.search-wrap span { position:absolute; left:.9rem; top:.63rem; color:var(--muted); }

.course-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem; }
.course-card { position:relative; display:flex; flex-direction:column; min-height:430px; padding:1.5rem; background:var(--surface); border:1px solid var(--line); border-radius:20px; box-shadow:0 12px 35px rgba(24,34,30,.05); transition:transform .18s ease,box-shadow .18s ease; }
.course-card.available:hover { transform:translateY(-3px); box-shadow:0 20px 45px rgba(24,34,30,.1); }
.course-card::before { content:""; position:absolute; inset:0 0 auto 0; height:5px; background:var(--course-color); border-radius:20px 20px 0 0; }
.course-card.planned { background:rgba(255,254,250,.62); }
.card-topline { display:flex; align-items:center; justify-content:space-between; }
.course-symbol { width:48px; height:48px; display:grid; place-items:center; color:white; background:var(--course-color); border-radius:15px 15px 15px 4px; font-family:Georgia,serif; font-size:1.35rem; font-weight:800; }
.status-badge { padding:.3rem .62rem; color:var(--course-color); background:var(--course-tint); border-radius:999px; font-size:.73rem; font-weight:800; }
.course-copy { margin:1.25rem 0 .7rem; }
.course-category { margin:0; color:var(--course-color)!important; font-size:.73rem!important; font-weight:800; letter-spacing:.08em; }
.course-copy h3 { margin:.25rem 0 0; font-family:Georgia,"Noto Serif SC",serif; font-size:1.8rem; }
.course-copy > strong { display:block; margin:.12rem 0 .6rem; }
.course-copy p { margin:.4rem 0; color:var(--muted); font-size:.9rem; }
.course-tags { display:flex; flex-wrap:wrap; gap:.4rem; }
.course-tags span { padding:.27rem .52rem; color:var(--muted); background:#f0f2ee; border-radius:7px; font-size:.72rem; }
.card-progress,.planned-note { margin-top:auto; padding-top:1.2rem; }
.card-progress > div:first-child { display:flex; justify-content:space-between; color:var(--muted); font-size:.78rem; }
.card-progress-track { height:6px; margin-top:.4rem; overflow:hidden; background:#e5e8e3; border-radius:99px; }
.card-progress-track span { display:block; height:100%; background:var(--course-color); border-radius:inherit; }
.planned-note { color:var(--muted); font-size:.8rem; }
.course-card footer { display:grid; grid-template-columns:auto auto 1fr; align-items:center; gap:.7rem; margin-top:1.2rem; padding-top:1rem; border-top:1px solid var(--line); color:var(--muted); font-size:.76rem; }
.course-action { justify-self:end; color:white; background:var(--course-color); padding:.55rem .8rem; border-radius:9px; font-weight:750; text-decoration:none; }
.course-action.disabled { color:var(--muted); background:#e8ebe6; }
.empty-state { grid-column:1/-1; padding:4rem; text-align:center; background:var(--surface); border:1px dashed #b8c1ba; border-radius:18px; }
.empty-state p { color:var(--muted); }

.framework-note { display:grid; grid-template-columns:1fr 1.4fr; gap:2rem; margin-top:4.5rem; padding:2rem; background:#e9eee8; border-radius:20px; }
.framework-note h2 { margin:.2rem 0; font-family:Georgia,"Noto Serif SC",serif; }
.framework-note p { color:var(--muted); }
.framework-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:.7rem; }
.framework-step { padding:1rem; background:rgba(255,255,255,.72); border-radius:12px; }
.framework-step strong { display:block; color:var(--green); }
.framework-step span { color:var(--muted); font-size:.8rem; }

@media (max-width:800px) {
  .course-grid { grid-template-columns:1fr; }
  .framework-note { grid-template-columns:1fr; }
  .catalog-heading,.catalog-tools { align-items:stretch; flex-direction:column; }
  .search-wrap { width:100%; }
}
@media (max-width:520px) {
  .header-note { display:none; }
  .hero { padding:2rem 1.4rem; border-radius:20px; }
  .filters { width:100%; }
  .filters button { flex:1; padding:.5rem .3rem; }
  .framework-steps { grid-template-columns:1fr; }
  .course-card footer { grid-template-columns:1fr 1fr; }
  .course-action { grid-column:1/-1; justify-self:stretch; text-align:center; }
}
