/* Home page (mockup port). Header/footer/.wrap/tokens live in base.css. */
.home-main { padding: 0; }
.home-main + .site-footer { margin-top: 0; }
.home {
  background: var(--h-bg); color: var(--h-ink); line-height: 1.9;
}
.home a { color: inherit; text-decoration: none; }
.home :focus-visible { outline-color: var(--h-focus); }
.home .on-dark :focus-visible, .home .on-dark:focus-visible { outline-color: var(--sky); }
.home h1, .home h2, .home h3, .home p, .home ul, .home dl, .home dd, .home figure { margin: 0; padding: 0; }
.home ul { list-style: none; }
.lift { transition: transform .2s ease, box-shadow .2s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -12px rgba(11, 18, 32, .18); }
.stretch::after { content: ""; position: absolute; inset: 0; }
.stretch:focus-visible { outline: 0; }
.lift:has(.stretch:focus-visible) { outline: 2px solid var(--h-focus); outline-offset: 2px; }

/* buttons */
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; transition: filter .15s, transform .15s, background .15s; }
.hbtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hbtn-sky, .hbtn-ghost, .hbtn-white { height: 54px; border-radius: 14px; font-size: 15px; }
.hbtn-sky { background: var(--sky); color: var(--navy) !important; padding-inline: 28px; }
.hbtn-ghost { border-color: rgba(255, 255, 255, .18); color: #fff !important; padding-inline: 24px; font-weight: 500; }
.hbtn-ghost:hover { background: rgba(255, 255, 255, .12); filter: none; }
.hbtn-ghost-lt { border-color: rgba(255, 255, 255, .4); font-weight: 700; }
.hbtn-white { background: #fff; color: var(--navy) !important; padding-inline: 28px; }
.hbtn-blue { height: 46px; background: #0468d7; color: #fff !important; padding-inline: 20px; }
.hbtn-lg { height: 48px; padding-inline: 22px; }
.hbtn-line { border-color: var(--h-btn-line); color: var(--h-ink); }
.hbtn-line:hover { filter: none; background: var(--h-soft); }

/* hero */
.home-hero { background-color: var(--navy); color: #fff; overflow: hidden; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 80px 96px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-badge { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(92, 200, 255, .1); border: 1px solid rgba(92, 200, 255, .25); font-size: 13px; color: #cfe9fa; }
.hero-badge .mono { padding: 3px 10px; border-radius: 999px; background: var(--sky); color: var(--navy); font-weight: 700; font-size: 11px; }
.hero-title { font-size: 56px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.hero-title span { color: var(--sky); }
.hero-lead { max-width: 560px; font-size: 18px; line-height: 1.95; color: var(--navy-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-top: 12px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.stats dd { font-size: 28px; font-weight: 700; line-height: 1.4; }
.stats dt { font-size: 13px; color: var(--navy-muted); }
.hero-visual { flex: 1 1 460px; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; padding-block: 24px; }
.code-card { width: 100%; max-width: 500px; border-radius: 20px; background: #111a2c; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); overflow: hidden; text-align: left; }
.code-bar { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.code-bar span { margin-left: 12px; font-size: 12px; color: var(--navy-muted); }
.code-bar i, .code-foot i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-bar .dot-y { background: #febc2e; } .code-bar .dot-g, .code-foot i { background: #28c840; }
.code-card pre { margin: 0; padding: 20px 20px 28px; font-size: 13px; line-height: 1.85; color: #d6e2f0; white-space: pre; overflow: hidden; }
.code-card pre .ln { color: #7d8ca3; } .code-card pre .k { color: #c792ea; } .code-card pre .f { color: #82aaff; }
.code-card pre .t { color: #ffcb6b; } .code-card pre .s { color: #c3e88d; } .code-card pre .a { color: var(--sky); }
.code-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .08); background: #0d1524; }
.code-foot i { width: 8px; height: 8px; background: #34d399; }
.code-foot span { font-size: 12px; color: var(--navy-muted); }
.float-badge { position: absolute; top: -6px; inset-inline-start: 8px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: #fff; color: var(--navy); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5); }
.fb-ico { width: 34px; height: 34px; border-radius: 10px; background: #e0f2fe; color: #0468d7; display: grid; place-items: center; }
.fb-txt { display: flex; flex-direction: column; line-height: 1.5; }
.fb-txt b { font-size: 13px; }
.fb-txt small { font-size: 10px; color: #4b5565; }

/* platform strip */
.platforms { background: var(--h-card); border-bottom: 1px solid var(--h-line); }
.platforms-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.platforms-row > span { font-size: 13px; color: var(--h-muted); font-weight: 500; }
.platforms ul { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 700; color: var(--h-faint); }

/* sections */
.sec { padding-block: 64px; }
.sec-pillars { padding-top: 96px; padding-bottom: 48px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.sec-title { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--h-link); letter-spacing: .1em; }
.sec h2 { font-size: 38px; line-height: 1.45; font-weight: 700; }
.sec-sub { font-size: 15px; line-height: 1.9; color: var(--h-muted); max-width: 380px; }
.sec-title .sec-sub { max-width: none; }
.more-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--h-link) !important; }
.more-link svg { transition: transform .15s; } .more-link:hover svg { transform: translateX(-4px); }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.ico-sky { background: #e0f2fe; color: #0468d7; } .ico-mint { background: #d1fae5; color: #047857; }
.ico-violet { background: #ede9fe; color: #5b21b6; } .ico-amber { background: #fef3c7; color: #b45309; }

/* pillars (bento) */
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pillar { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--h-card); border: 1px solid var(--h-line); }
.pillar h3 { font-size: 19px; font-weight: 700; }
.pillar p { font-size: 14px; line-height: 1.9; color: var(--h-muted); }
.pillar-main { grid-row: span 2; justify-content: space-between; gap: 32px; min-height: 360px; padding: 32px; background: var(--navy); border-color: var(--navy); color: #fff; }
.pillar-main .ico-lg { width: 52px; height: 52px; border-radius: 16px; background: rgba(92, 200, 255, .14); color: var(--sky); }
.pillar-body { display: flex; flex-direction: column; gap: 12px; }
.pillar-main h3 { font-size: 26px; }
.pillar-main p { font-size: 15px; line-height: 1.95; color: var(--navy-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; }

/* courses */
.grid-courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.course { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--h-card); border: 1px solid var(--h-line); }
.course-banner { position: relative; height: 200px; padding: 24px; background-color: #0a3a6b; color: #fff; display: flex; flex-direction: column; justify-content: space-between; --c: var(--sky); }
.course:nth-child(3n+2) .course-banner { background-color: #1e1b4b; --c: #a5b4fc; }
.course:nth-child(3n) .course-banner { background-color: #053b2f; --c: #6ee7b7; }
.course-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-glyph { margin-top: auto; font-size: 44px; font-weight: 700; line-height: 1; color: var(--c); }
.pill { position: relative; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--c); color: var(--navy); font-size: 12px; font-weight: 700; }
.course-body { display: flex; flex-direction: column; flex: 1; gap: 16px; padding: 24px; }
.course h3 { font-size: 19px; line-height: 1.7; font-weight: 700; }
.course p { font-size: 14px; line-height: 1.9; color: var(--h-muted); }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--h-line); font-size: 13px; }
.course:hover .hbtn { filter: brightness(1.08); }

/* what is flutter */
.intro { display: flex; flex-direction: column; gap: 40px; padding: 48px; border-radius: 32px; background: var(--h-card); border: 1px solid var(--h-line); }
.intro-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.intro h2 { font-size: 34px; line-height: 1.5; }
.intro-lead { font-size: 16px; line-height: 2; color: var(--h-muted); }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; background: var(--h-bg); }
.feat .ico { width: 42px; height: 42px; border-radius: 12px; color: #fff; }
.ico-solid-blue { background: #0468d7; } .ico-solid-violet { background: #5b21b6; } .ico-solid-green { background: #047857; } .ico-solid-amber { background: #b45309; }
.feat h3 { font-size: 17px; font-weight: 700; }
.feat p { font-size: 14px; line-height: 1.9; color: var(--h-muted); }

/* articles */
.grid-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.post { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--h-card); border: 1px solid var(--h-line); --bg: #e0f2fe; --fg: #0468d7; }
.post:nth-child(4n+2) { --bg: #0b1220; --fg: #5cc8ff; }
.post:nth-child(4n+3) { --bg: #d1fae5; --fg: #047857; }
.post:nth-child(4n) { --bg: #fef3c7; --fg: #b45309; }
.post-banner { position: relative; height: 160px; display: grid; place-items: center; background: var(--bg); }
.post-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-glyph { font-size: 52px; font-weight: 700; color: var(--fg); }
.date-pill { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 10px; border-radius: 8px; background: #fff; color: #4b5565; font-size: 11px; line-height: 1.8; }
.post-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px; }
.post-cat { font-size: 12px; font-weight: 700; color: var(--fg); }
.post:nth-child(4n+2) .post-cat { color: #5b21b6; }
.post h3 { font-size: 16px; line-height: 1.8; font-weight: 700; }
.post p { font-size: 13px; line-height: 1.9; color: var(--h-muted); }
.post-author { margin-top: auto; font-size: 12px; color: var(--h-faint); }
.home-cats { margin-top: 28px; }
.home-cats .tags a { color: var(--h-muted); background: var(--h-card); border-color: var(--h-line); }
.home-cats .tags a:hover { color: var(--h-link); border-color: var(--h-link); }

/* community */
.community { display: flex; flex-direction: column; gap: 24px; padding: 40px; border-radius: 32px; background: var(--h-card); border: 1px solid var(--h-line); }
.community h2 { font-size: 32px; }
.qrows { display: flex; flex-direction: column; border: 1px solid var(--h-line); border-radius: 18px; overflow: hidden; }
.qrows li + li { border-top: 1px solid var(--h-line); }
.row-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; transition: background .15s; }
.row-link:hover { background: var(--h-soft); }
.qico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #e0f2fe; color: #0468d7; }
.qico.is-ok { background: #d1fae5; color: #047857; }
.qtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qtxt b { font-size: 15px; font-weight: 700; line-height: 1.7; }
.qtxt small { font-size: 12px; color: var(--h-faint); }
.qchev { flex: none; color: var(--h-faint); }

/* cta */
.sec-cta { padding-block: 48px 96px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: 56px 48px; border-radius: 32px; background-color: #0468d7; color: #fff; }
.cta-copy { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.sec .cta h2 { font-size: 36px; line-height: 1.5; }
.cta p { font-size: 16px; line-height: 1.95; color: #e0f0ff; }

@media (max-width: 1080px) {
  .hero-grid { padding-block: 56px 64px; }
}
@media (max-width: 640px) {
  .hero-grid { padding-block: 40px 48px; gap: 40px; }
  .hero-title { font-size: 34px; line-height: 1.35; }
  .hero-lead { font-size: 16px; }
  .sec h2, .community h2, .intro h2, .sec .cta h2 { font-size: 26px; }
  .sec { padding-block: 40px; }
  .sec-pillars { padding-top: 56px; }
  .sec-cta { padding-bottom: 56px; }
  .float-badge { display: none; }
  .hero-visual { padding-block: 0; }
  .intro, .community { padding: 24px; border-radius: 24px; }
  .cta { padding: 32px 24px; border-radius: 24px; }
  .code-card pre { font-size: 11px; padding-inline: 14px; }
  .hero-cta .hbtn { flex: 1 1 auto; }
}
