/* Core tokens */
:root {
    --brand: #2F8F83;
    --brand-strong: #25786f;
    --brand-deep: #1d625b;
    --warm: #F2B36F;
    --ink: #243331;
    --body: #2E3836;
    --muted: #71807C;
    --accent: #E96B4C;
    --accent-deep: #c95439;
    --paper: #FAFCFA;
    --soft: #EEF5F2;
    --white: #FFFFFF;
    --line: #DCE8E4;
    --line-strong: #C7D9D4;
    --shadow-sm: 0 10px 28px rgba(36, 51, 49, .08);
    --shadow-md: 0 22px 54px rgba(36, 51, 49, .12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 46px;
    --content: 1180px;
    --reading: 760px;
    --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--body); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.72; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { background: rgba(242, 179, 111, .45); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(233, 107, 76, .45); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; left: 14px; top: 12px; z-index: 9999; transform: translateY(-180%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(199, 217, 212, .75); background: rgba(250, 252, 250, .92); backdrop-filter: blur(18px); }
.header-shell { width: min(calc(100% - 40px), var(--content)); min-height: var(--header-h); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px 14px 14px 5px; background: var(--brand); color: #fff; font-weight: 800; box-shadow: 0 8px 22px rgba(47,143,131,.26); }
.brand-copy { display: grid; gap: 1px; line-height: 1.25; }
.brand-copy strong { font-size: 18px; color: var(--ink); letter-spacing: .02em; }
.brand-copy small { font-size: 11px; color: var(--muted); }
.primary-nav { display: flex; align-items: stretch; gap: 4px; }
.primary-nav a { position: relative; display: grid; gap: 1px; min-width: 120px; padding: 10px 14px 9px; border-radius: 14px; transition: background .2s ease, transform .2s ease; }
.primary-nav a:hover { background: var(--soft); transform: translateY(-1px); }
.primary-nav a.is-active { background: #e4f1ed; color: var(--brand-deep); }
.primary-nav a.is-active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 99px; background: var(--brand); }
.primary-nav span { font-size: 14px; font-weight: 700; color: var(--ink); }
.primary-nav small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.nav-toggle { display: none; border: 0; background: var(--soft); padding: 9px 12px; border-radius: 12px; cursor: pointer; gap: 8px; align-items: center; }
.nav-toggle-lines { display: grid; gap: 3px; }
.nav-toggle-lines i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

.section-space { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; padding: 86px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-deep); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 99px; background: var(--warm); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.22; }
h1 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.028em; }
h3 { font-size: 20px; letter-spacing: -.012em; }
p { color: var(--body); }
.section-heading { margin-bottom: 34px; }
.section-heading h2 { margin: 10px 0 12px; }
.section-heading > p { color: var(--muted); font-size: 16px; }
.compact-heading { max-width: 760px; }
.wide-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 70px; align-items: end; }
.wide-heading > p { margin-bottom: 10px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border: 1px solid transparent; border-radius: 14px; font-size: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(233,107,76,.22); }
.button-primary:hover { background: var(--accent-deep); box-shadow: 0 16px 34px rgba(233,107,76,.28); }
.button-quiet { background: rgba(255,255,255,.78); color: var(--ink); border-color: var(--line-strong); }
.button-quiet:hover { background: #fff; border-color: var(--brand); }
.text-link { display: inline-flex; gap: 9px; align-items: center; color: var(--brand-deep); font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }

.home-hero { padding-top: 64px; }
.hero-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: 64px; align-items: center; }
.hero-copy h1 { max-width: 760px; margin: 12px 0 22px; }
.hero-lead { max-width: 700px; font-size: 18px; color: #52615e; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points span { padding: 7px 11px; border-radius: 99px; background: var(--soft); color: var(--brand-deep); font-size: 12px; font-weight: 700; }
.hero-visual { position: relative; margin: 0; min-height: 520px; border-radius: var(--radius-xl); overflow: hidden; background: var(--soft); box-shadow: var(--shadow-md); }
.hero-visual::after { content: ""; position: absolute; inset: auto -40px -50px auto; width: 190px; height: 190px; border-radius: 50%; background: rgba(242,179,111,.32); filter: blur(1px); }
.hero-visual img { width: 100%; height: 520px; object-fit: cover; }
.hero-visual figcaption { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; padding: 18px 20px; border-radius: 18px; background: rgba(250,252,250,.92); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.hero-visual figcaption strong, .hero-visual figcaption span { display: block; }
.hero-visual figcaption strong { margin-bottom: 4px; color: var(--ink); }
.hero-visual figcaption span { color: var(--muted); font-size: 13px; }

.content-hub { border-top: 1px solid var(--line); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.filter-chip { border: 1px solid var(--line-strong); background: #fff; color: var(--muted); border-radius: 99px; padding: 8px 14px; cursor: pointer; font-size: 13px; font-weight: 700; transition: all .18s ease; }
.filter-chip:hover { border-color: var(--brand); color: var(--brand-deep); }
.filter-chip.is-active { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(47,143,131,.18); }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.topic-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: 0 8px 26px rgba(36,51,49,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.topic-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.topic-card[hidden] { display: none !important; }
.topic-image-wrap { position: relative; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.topic-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.topic-card:hover .topic-image-wrap img { transform: scale(1.035); }
.topic-kicker { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; border-radius: 99px; background: rgba(36,51,49,.78); color: #fff; font-size: 11px; font-weight: 800; backdrop-filter: blur(8px); }
.topic-body { padding: 18px; }
.topic-body h3 { margin-bottom: 9px; font-size: 18px; }
.topic-body > p { min-height: 7.2em; margin-bottom: 14px; color: #52615e; font-size: 13px; }
.topic-body details { border-top: 1px solid var(--line); padding-top: 12px; }
.topic-body summary { cursor: pointer; color: var(--brand-deep); font-size: 12px; font-weight: 800; list-style: none; }
.topic-body summary::-webkit-details-marker { display: none; }
.topic-body summary::after { content: "+"; float: right; font-size: 18px; line-height: 1; }
.topic-body details[open] summary::after { content: "−"; }
.topic-body details p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.topic-card-featured { grid-column: span 2; grid-row: span 2; display: grid; grid-template-rows: 1.15fr .85fr; }
.topic-card-featured .topic-body { padding: 24px; }
.topic-card-featured .topic-body h3 { font-size: 28px; }
.topic-card-featured .topic-body > p { min-height: 0; font-size: 15px; }
.filter-empty { margin: 24px 0 0; padding: 18px; border-radius: 14px; background: var(--soft); color: var(--muted); }

.discovery-section { display: grid; grid-template-columns: minmax(280px, .74fr) minmax(0, 1.26fr); gap: 86px; border-top: 1px solid var(--line); }
.discovery-section .section-heading { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.lane-list { border-top: 1px solid var(--line-strong); }
.lane-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 18px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.lane-marker { width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 6px rgba(242,179,111,.14); }
.lane-item h3 { margin-bottom: 7px; }
.lane-item p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.lane-item a { align-self: center; white-space: nowrap; color: var(--brand-deep); font-size: 12px; font-weight: 800; }

.web-bridge { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr); gap: 70px; align-items: center; background: var(--soft); border-radius: var(--radius-xl); padding-left: 46px; padding-right: 46px; }
.web-bridge-media { border-radius: 30px; overflow: hidden; min-height: 520px; }
.web-bridge-media img { width: 100%; height: 520px; object-fit: cover; }
.web-bridge-copy h2 { margin: 10px 0 16px; }
.web-bridge-copy > p { color: var(--muted); }
.benefit-stack { display: grid; margin: 26px 0; border-top: 1px solid var(--line-strong); }
.benefit-row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.benefit-row strong { color: var(--ink); font-size: 13px; }
.benefit-row span { color: var(--muted); font-size: 13px; }

.pace-section { border-top: 1px solid var(--line); }
.pace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pace-card { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.pace-card::before { content: ""; position: absolute; width: 90px; height: 90px; right: -24px; top: -28px; border-radius: 50%; background: rgba(47,143,131,.08); }
.pace-card > span { display: inline-flex; margin-bottom: 26px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.pace-card h3 { margin-bottom: 8px; }
.pace-card p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.device-paths { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding-left: 48px; padding-right: 48px; }
.device-paths h2 { margin: 10px 0 14px; color: #fff; }
.device-paths p { color: #c8d3d0; }
.device-paths .eyebrow { color: #bce0d9; }
.device-path-grid { display: grid; gap: 14px; }
.device-path { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.06); transition: transform .2s ease, background .2s ease; }
.device-path:hover { transform: translateX(4px); background: rgba(255,255,255,.1); }
.device-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(242,179,111,.14); color: var(--warm); font-size: 26px; }
.device-path small, .device-path strong, .device-path p { display: block; }
.device-path small { color: #aebdb9; font-size: 10px; letter-spacing: .08em; }
.device-path strong { margin: 2px 0 4px; color: #fff; font-size: 17px; }
.device-path p { margin: 0; font-size: 12px; }

.visual-note { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; }
.visual-note h2 { margin: 10px 0 18px; }
.visual-note-copy > p { max-width: 720px; color: var(--muted); }
.visual-note > img { width: 100%; height: 560px; object-fit: cover; border-radius: 34px; box-shadow: var(--shadow-md); }
.inline-note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.inline-note-grid > div { padding: 18px; border-radius: 18px; background: var(--soft); }
.inline-note-grid strong, .inline-note-grid span { display: block; }
.inline-note-grid strong { color: var(--ink); margin-bottom: 6px; }
.inline-note-grid span { color: var(--muted); font-size: 12px; }

.faq-section { border-top: 1px solid var(--line); }
.faq-list { display: grid; max-width: 900px; border-top: 1px solid var(--line-strong); }
.faq-item { padding: 0; border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; gap: 24px; padding: 19px 0; cursor: pointer; list-style: none; color: var(--ink); font-weight: 800; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 500; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { max-width: 760px; margin: -4px 0 20px; color: var(--muted); }

/* Shared inner pages */
.inner-hero { padding-top: 56px; }
.inner-hero-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr); gap: 70px; align-items: center; }
.inner-hero h1 { margin: 12px 0 20px; font-size: clamp(38px, 4.6vw, 62px); }
.inner-hero p { max-width: 720px; color: #566562; font-size: 17px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--brand-deep); }
.inner-hero-figure { margin: 0; padding: 18px; border-radius: 34px; background: var(--soft); }
.inner-hero-figure img { width: 100%; height: 420px; object-fit: cover; border-radius: 24px; }
.inner-hero-figure figcaption { padding: 14px 6px 2px; color: var(--muted); font-size: 12px; }

.web-start { border-top: 1px solid var(--line); }
.step-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-rail article { min-height: 260px; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.step-rail article > span { display: inline-flex; margin-bottom: 62px; color: var(--accent); font-weight: 900; font-size: 13px; }
.step-rail h3 { margin-bottom: 10px; }
.step-rail p { color: var(--muted); font-size: 13px; }

.browser-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: center; background: var(--soft); border-radius: var(--radius-xl); padding-left: 46px; padding-right: 46px; }
.browser-layout-copy h2 { margin: 10px 0 16px; }
.browser-layout-copy > p { color: var(--muted); }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 24px; color: #52615e; font-size: 13px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 900; }
.browser-window { overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-md); }
.browser-chrome { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #f7faf8; }
.browser-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #c5d2ce; }
.browser-chrome i:first-child { background: #ed8b73; }
.browser-chrome i:nth-child(2) { background: #eac07a; }
.browser-chrome i:nth-child(3) { background: #80c1b3; }
.browser-chrome span { margin-left: 10px; color: var(--muted); font-size: 10px; }
.browser-body { display: grid; grid-template-columns: 132px 1fr; min-height: 350px; }
.browser-side { display: grid; align-content: start; gap: 10px; padding: 20px 15px; border-right: 1px solid var(--line); background: #fbfdfc; }
.browser-side b { margin-bottom: 6px; color: var(--ink); font-size: 12px; }
.browser-side span { padding: 7px 8px; border-radius: 8px; color: var(--muted); font-size: 10px; }
.browser-side span:nth-child(3) { background: var(--soft); color: var(--brand-deep); }
.browser-content { padding: 24px; }
.browser-content strong { display: block; color: var(--ink); font-size: 18px; }
.browser-content p { color: var(--muted); font-size: 11px; }
.browser-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.browser-cards i { display: block; min-height: 88px; border-radius: 12px; background: linear-gradient(135deg, #e8f3ef, #f9f0e6); }
.browser-cards i:nth-child(2) { background: linear-gradient(135deg, #f7e5df, #f7f1e8); }
.browser-cards i:nth-child(3) { background: linear-gradient(135deg, #e6efe8, #eef5f2); }
.browser-cards i:nth-child(4) { background: linear-gradient(135deg, #f6ead8, #e8f2ef); }

.web-benefits { border-top: 1px solid var(--line); }
.benefit-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.benefit-card { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.benefit-card > span { display: inline-flex; margin-bottom: 42px; color: var(--brand); font-size: 12px; font-weight: 900; }
.benefit-card h3 { font-size: 17px; }
.benefit-card p { margin-bottom: 0; color: var(--muted); font-size: 12px; }

.web-scenes { border-top: 1px solid var(--line); }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scene-grid article { overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: #fff; }
.scene-grid img { width: 100%; height: 220px; object-fit: cover; }
.scene-grid h3 { margin: 20px 20px 9px; }
.scene-grid p { margin: 0 20px 22px; color: var(--muted); font-size: 13px; }
.next-device, .device-crosslink, .web-return { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-left: 42px; padding-right: 42px; border-radius: 28px; background: var(--ink); color: #fff; }
.next-device h2, .device-crosslink h2, .web-return h2 { margin: 9px 0 10px; color: #fff; font-size: clamp(28px, 3vw, 40px); }
.next-device p, .device-crosslink p, .web-return p { max-width: 760px; margin-bottom: 0; color: #c7d3d0; }
.next-device .eyebrow, .device-crosslink .eyebrow, .web-return .eyebrow { color: #bce0d9; }
.crosslink-actions { display: flex; flex-wrap: wrap; gap: 10px; min-width: max-content; }

/* PC page */
.pc-device-figure { background: #eaf2ef; }
.pc-focus { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; align-items: start; border-top: 1px solid var(--line); }
.pc-focus-intro { position: sticky; top: calc(var(--header-h) + 30px); }
.pc-focus-intro h2 { margin: 10px 0 16px; }
.pc-focus-intro p { color: var(--muted); }
.pc-focus-grid { display: grid; gap: 14px; }
.pc-focus-grid article { position: relative; min-height: 180px; padding: 26px 28px 26px 150px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.pc-focus-grid article::before { content: ""; position: absolute; left: 28px; top: 28px; width: 84px; height: 58px; border: 3px solid var(--brand); border-radius: 8px; box-shadow: inset 0 -7px 0 rgba(47,143,131,.08); }
.pc-focus-grid article::after { content: ""; position: absolute; left: 49px; top: 91px; width: 42px; height: 4px; border-radius: 8px; background: var(--brand); }
.pc-focus-grid strong { color: var(--ink); font-size: 20px; }
.pc-focus-grid p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.pc-tips { border-top: 1px solid var(--line); }
.tip-table { border-top: 1px solid var(--line-strong); }
.tip-row { display: grid; grid-template-columns: 60px minmax(180px, .55fr) 1.45fr; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tip-row > span { color: var(--accent); font-size: 11px; font-weight: 900; }
.tip-row h3 { margin: 0; font-size: 16px; }
.tip-row p { margin: 0; color: var(--muted); font-size: 13px; }

.keyboard-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; padding-left: 48px; padding-right: 48px; border-radius: var(--radius-xl); background: var(--soft); }
.keyboard-demo { display: grid; gap: 10px; }
.key-row { display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: center; }
kbd { display: inline-grid; place-items: center; min-height: 52px; padding: 8px 14px; border: 1px solid #b9cbc6; border-bottom-width: 4px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 5px 10px rgba(36,51,49,.06); }
.key-row span { color: var(--muted); font-size: 13px; }
.keyboard-copy h2 { margin: 10px 0 16px; }
.keyboard-copy p { color: var(--muted); }
.comfort-section { display: grid; grid-template-columns: 1fr 460px; gap: 80px; align-items: center; }
.comfort-copy h2 { margin: 10px 0 16px; }
.comfort-copy p { color: var(--muted); }
.comfort-section img { width: 100%; height: 370px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-sm); }

/* APP page */
.app-hero-shell { grid-template-columns: 1fr 410px; }
.phone-stage { margin: 0; display: grid; justify-items: center; }
.phone-frame { width: 310px; padding: 12px; border: 2px solid #31403e; border-radius: 42px; background: #17201e; box-shadow: var(--shadow-md); }
.phone-frame::before { content: ""; display: block; width: 72px; height: 7px; margin: 0 auto 10px; border-radius: 99px; background: #34413f; }
.phone-frame img { width: 100%; height: 500px; object-fit: cover; border-radius: 28px; }
.phone-stage figcaption { max-width: 330px; margin-top: 14px; color: var(--muted); text-align: center; font-size: 12px; }
.app-notes { border-top: 1px solid var(--line); }
.app-note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app-note-card { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.app-note-card > span { display: inline-flex; margin-bottom: 32px; color: var(--accent); font-size: 11px; font-weight: 900; }
.app-note-card h3 { font-size: 17px; }
.app-note-card p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.vertical-section { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: center; background: var(--soft); border-radius: var(--radius-xl); padding-left: 48px; padding-right: 48px; }
.vertical-visual img { width: 100%; height: 560px; object-fit: cover; border-radius: 32px; }
.vertical-copy h2 { margin: 10px 0 16px; }
.vertical-copy p { color: var(--muted); }
.mobile-rhythm { border-top: 1px solid var(--line); }
.rhythm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rhythm-grid article { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.rhythm-grid small { color: var(--brand); font-weight: 800; letter-spacing: .05em; }
.rhythm-grid h3 { margin: 24px 0 9px; }
.rhythm-grid p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

/* Footer + 404 */
.site-footer { margin-top: 70px; background: #1c2927; color: #fff; }
.footer-shell { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; padding: 54px 0 32px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; }
.footer-brand { color: #fff; font-size: 22px; font-weight: 900; }
.footer-intro p { max-width: 560px; margin: 9px 0 0; color: #aebdb9; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; align-content: start; }
.footer-links a { color: #d8e4e1; font-size: 13px; }
.footer-links a:hover { color: var(--warm); }
.footer-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,.1); color: #82918d; font-size: 11px; }
.not-found-main { min-height: 65vh; display: grid; place-items: center; padding: 70px 20px; }
.not-found-card { width: min(760px, 100%); padding: 54px; border-radius: 36px; background: var(--soft); text-align: center; }
.error-code { display: block; margin-bottom: 8px; color: var(--accent); font-size: 72px; font-weight: 900; line-height: 1; }
.not-found-card h1 { margin-bottom: 16px; font-size: 42px; }
.not-found-card p { max-width: 620px; margin: 0 auto; color: var(--muted); }
.not-found-card .hero-actions { justify-content: center; }

/* Fine-grained interaction states */
.js .primary-nav { transition: opacity .2s ease, transform .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:first-child { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:last-child { transform: translateY(-5px) rotate(-45deg); }
body.nav-open { overflow: hidden; }
.topic-card.is-revealed { animation: cardReveal .28s ease both; }
@keyframes cardReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Desktop refinements */
@media (min-width: 1200px) {
    .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .topic-card-featured { min-height: 660px; }
    .hero-shell { min-height: 590px; }
}

@media (max-width: 1100px) {
    :root { --header-h: 76px; }
    .header-shell { width: min(calc(100% - 28px), var(--content)); }
    .primary-nav a { min-width: auto; padding-inline: 10px; }
    .primary-nav small { display: none; }
    .section-space { width: min(calc(100% - 32px), var(--content)); padding: 72px 0; }
    .hero-shell, .inner-hero-shell { gap: 42px; }
    .hero-shell { grid-template-columns: 1fr .9fr; }
    .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .topic-card-featured { grid-column: span 2; }
    .web-bridge, .browser-layout, .keyboard-section, .vertical-section { padding-left: 32px; padding-right: 32px; gap: 46px; }
    .device-paths { padding-left: 36px; padding-right: 36px; gap: 44px; }
    .visual-note { grid-template-columns: 1fr 360px; gap: 50px; }
    .benefit-card-grid { grid-template-columns: repeat(2, 1fr); }
    .comfort-section { grid-template-columns: 1fr 380px; gap: 52px; }
}

@media (max-width: 860px) {
    .no-js .nav-toggle { display: none; }
    .js .nav-toggle { display: inline-flex; }
    .header-shell { min-height: 70px; }
    .primary-nav { display: grid; grid-template-columns: 1fr 1fr; position: absolute; left: 14px; right: 14px; top: calc(100% + 8px); padding: 12px; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(250,252,250,.98); box-shadow: var(--shadow-md); }
    .no-js .primary-nav { position: static; grid-template-columns: repeat(4, auto); padding: 0; border: 0; box-shadow: none; background: transparent; }
    .js .primary-nav[hidden] { display: none; }
    .primary-nav a { min-width: 0; }
    .primary-nav small { display: block; }
    .wide-heading { grid-template-columns: 1fr; gap: 4px; }
    .hero-shell, .inner-hero-shell, .app-hero-shell { grid-template-columns: 1fr; }
    .hero-visual { min-height: 430px; }
    .hero-visual img { height: 430px; }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-card-featured { grid-column: span 2; grid-row: auto; display: block; }
    .topic-card-featured .topic-image-wrap { aspect-ratio: 16/8.5; }
    .topic-body > p { min-height: 0; }
    .discovery-section { grid-template-columns: 1fr; gap: 26px; }
    .discovery-section .section-heading, .pc-focus-intro { position: static; }
    .web-bridge, .browser-layout, .keyboard-section, .vertical-section { grid-template-columns: 1fr; border-radius: 30px; }
    .web-bridge-media { min-height: 360px; }
    .web-bridge-media img { height: 360px; }
    .pace-grid, .app-note-grid { grid-template-columns: repeat(2, 1fr); }
    .device-paths { grid-template-columns: 1fr; border-radius: 30px; }
    .visual-note { grid-template-columns: 1fr 320px; gap: 36px; }
    .step-rail, .scene-grid { grid-template-columns: 1fr; }
    .step-rail article { min-height: auto; }
    .step-rail article > span { margin-bottom: 28px; }
    .browser-window { max-width: 680px; }
    .pc-focus { grid-template-columns: 1fr; gap: 28px; }
    .comfort-section { grid-template-columns: 1fr; }
    .comfort-section img { height: 420px; }
    .footer-shell { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    :root { --header-h: 68px; }
    .header-shell { width: calc(100% - 24px); gap: 12px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-copy small { display: none; }
    .primary-nav { grid-template-columns: 1fr; }
    .no-js .primary-nav { grid-template-columns: 1fr 1fr; position: absolute; left: 12px; right: 12px; top: calc(100% + 4px); padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-md); }
    .section-space { width: calc(100% - 28px); padding: 58px 0; }
    h1 { font-size: 38px; }
    h2 { font-size: 30px; }
    .home-hero, .inner-hero { padding-top: 38px; }
    .hero-shell, .inner-hero-shell { gap: 30px; }
    .hero-lead, .inner-hero p { font-size: 15px; }
    .hero-visual { min-height: 360px; border-radius: 28px; }
    .hero-visual img { height: 360px; }
    .hero-visual figcaption { left: 14px; right: 14px; bottom: 14px; }
    .topic-grid { grid-template-columns: 1fr; }
    .topic-card-featured { grid-column: auto; }
    .topic-card-featured .topic-image-wrap { aspect-ratio: 4/3; }
    .topic-card-featured .topic-body h3 { font-size: 22px; }
    .filter-bar { gap: 7px; }
    .filter-chip { padding: 7px 11px; font-size: 12px; }
    .lane-item { grid-template-columns: 10px 1fr; }
    .lane-item a { grid-column: 2; justify-self: start; }
    .web-bridge, .browser-layout, .keyboard-section, .vertical-section, .device-paths { width: calc(100% - 28px); padding: 34px 20px; }
    .web-bridge-media { min-height: 280px; }
    .web-bridge-media img { height: 280px; }
    .benefit-row { grid-template-columns: 1fr; gap: 4px; }
    .pace-grid, .app-note-grid, .rhythm-grid { grid-template-columns: 1fr; }
    .visual-note { grid-template-columns: 1fr; }
    .visual-note > img { height: 420px; }
    .inline-note-grid { grid-template-columns: 1fr; }
    .inner-hero-figure img { height: 330px; }
    .browser-body { grid-template-columns: 96px 1fr; }
    .browser-side { padding: 15px 9px; }
    .browser-content { padding: 16px; }
    .browser-cards { grid-template-columns: 1fr; }
    .benefit-card-grid { grid-template-columns: 1fr; }
    .next-device, .device-crosslink, .web-return { width: calc(100% - 28px); padding: 30px 22px; flex-direction: column; align-items: flex-start; }
    .crosslink-actions { min-width: 0; width: 100%; }
    .crosslink-actions .button { flex: 1; }
    .pc-focus-grid article { padding: 126px 22px 22px; }
    .pc-focus-grid article::before { left: 22px; }
    .pc-focus-grid article::after { left: 43px; }
    .tip-row { grid-template-columns: 42px 1fr; gap: 8px 14px; }
    .tip-row p { grid-column: 2; }
    .keyboard-section { gap: 34px; }
    .key-row { grid-template-columns: 90px 1fr; }
    .comfort-section img { height: 320px; }
    .app-hero-shell { text-align: left; }
    .phone-frame { width: 260px; }
    .phone-frame img { height: 420px; }
    .vertical-visual { max-width: 310px; margin: 0 auto; }
    .vertical-visual img { height: 460px; }
    .footer-shell { width: calc(100% - 28px); grid-template-columns: 1fr; }
    .footer-meta { grid-column: auto; flex-direction: column; gap: 4px; }
    .not-found-card { padding: 38px 22px; }
    .error-code { font-size: 58px; }
    .not-found-card h1 { font-size: 32px; }
}

@media (max-width: 420px) {
    .brand-copy strong { font-size: 16px; }
    .nav-toggle { padding: 8px 10px; }
    .nav-toggle > span:last-child { display: none; }
    .button { width: 100%; }
    .hero-actions { width: 100%; }
    .hero-points { gap: 6px; }
    .hero-points span { font-size: 11px; }
    .hero-visual { min-height: 330px; }
    .hero-visual img { height: 330px; }
    .topic-body { padding: 16px; }
    .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: thin; }
    .filter-chip { flex: 0 0 auto; }
    .device-path { grid-template-columns: auto 1fr; }
    .device-path > span:last-child { display: none; }
    .browser-body { display: block; }
    .browser-side { grid-template-columns: repeat(2, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
    .browser-side b { grid-column: 1 / -1; }
    .inner-hero h1 { font-size: 36px; }
    .phone-frame { width: 235px; }
    .phone-frame img { height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .hero-actions, .filter-bar, .nav-toggle { display: none !important; }
    body { background: #fff; color: #000; }
    .section-space { width: 100%; padding: 24px 0; }
    .topic-grid, .pace-grid, .scene-grid, .rhythm-grid { display: block; }
    .topic-card, .pace-card, .scene-grid article, .rhythm-grid article { break-inside: avoid; margin-bottom: 14px; box-shadow: none; }
}
