:root {
    --paper: #f7f8f4;
    --surface: #ffffff;
    --ink: #15304a;
    --text: #3d5160;
    --muted: #71808a;
    --line: #d9e3e6;
    --blue: #2877c7;
    --blue-dark: #185a9c;
    --blue-soft: #e8f3fa;
    --green: #3d8666;
    --serif: "Newsreader", Georgia, serif;
    --sans: "Public Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; color: white; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header { position: relative; z-index: 10; background: rgba(247,248,244,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50% 50% 46% 54%; color: white; background: var(--blue); font-family: var(--serif); font-size: 1.2rem; box-shadow: inset -5px -5px 0 rgba(0,0,0,.08); }
.nav-links { display: flex; gap: 25px; font-size: .8rem; font-weight: 600; }
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--blue); }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--text); background: transparent; font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; }
.theme-toggle:hover { color: var(--blue); }

.plugin-page { position: relative; min-height: calc(100vh - 71px); display: grid; align-items: center; overflow: hidden; padding: clamp(32px, 5vh, 56px) 0; background: #e9f2f5; }
.page-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .24; filter: saturate(.72) contrast(.88) brightness(1.06); }
.page-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(249,250,247,.97) 0%, rgba(246,249,247,.93) 48%, rgba(235,244,247,.72) 100%), linear-gradient(180deg, rgba(255,255,255,.08), rgba(230,242,246,.5)); }
.page-glow { position: absolute; left: -180px; bottom: -240px; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.88); filter: blur(40px); }
.plugin-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr); gap: clamp(54px, 7vw, 90px); align-items: center; }

.title-line { display: flex; align-items: center; gap: 10px; }
.moon-mark { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font-size: .9rem; }
.eyebrow { margin: 0; color: var(--blue-dark); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 15px 0 15px; color: var(--ink); font-family: var(--serif); font-size: clamp(3rem, 4.6vw, 4.25rem); font-weight: 500; line-height: .98; letter-spacing: -.025em; }
h1 em { display: block; margin-top: 7px; color: var(--blue-dark); font-size: .42em; font-weight: 400; letter-spacing: 0; }
.summary { max-width: 650px; margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.42; }

.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 20px 0; font-size: .7rem; font-weight: 600; }
.status-line > span:not(.status) { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 999px; color: var(--green); background: rgba(61,134,102,.09); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #58a07c; box-shadow: 0 0 0 4px rgba(88,160,124,.13); }

.capabilities { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capabilities article { min-height: 104px; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.46); }
.capabilities h2 { margin: 0 0 5px; color: var(--ink); font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.capabilities p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }

.specs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; }
.specs div { display: flex; gap: 6px; font-size: .68rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); font-weight: 600; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.button { min-height: 41px; display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 7px; color: white; background: var(--blue); font-size: .72rem; font-weight: 700; text-decoration: none; box-shadow: 0 8px 22px rgba(40,119,199,.16); }
.button:hover { background: var(--blue-dark); }
.text-link { color: var(--blue-dark); font-size: .76rem; font-weight: 700; text-underline-offset: 4px; }

.visual { min-width: 0; }
.mode-demo { padding: 9px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 25px 65px rgba(21,48,74,.13); transform: rotate(.7deg); }
.mode-demo-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 15px; border-bottom: 1px solid var(--line); background: #f6f7f4; border-radius: 9px 9px 0 0; }
.mode-demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: #93b9ce; }
.mode-demo-bar i:nth-child(2) { background: #c8d9b7; }
.mode-demo-bar i:nth-child(3) { background: #dfc99b; }
.mode-demo-screen { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; overflow: hidden; border-radius: 0 0 9px 9px; }
.mode-side { padding: 34px 24px; }
.mode-side strong { display: block; margin-bottom: 30px; font-family: var(--serif); font-size: 1.55rem; }
.mode-side.light { color: var(--ink); background: #fbfaf6; }
.mode-side.dark { color: #eef3f4; background: #132a3e; }
.demo-line { height: 8px; margin-bottom: 12px; border-radius: 99px; background: currentColor; opacity: .22; }
.demo-line.short { width: 63%; }
.demo-image { height: 105px; margin-top: 30px; border-radius: 8px; background: linear-gradient(145deg, #5c91d1, #87c2c5 52%, #e4c589); }
.dark .demo-image { filter: brightness(.72) saturate(.85); }
.mode-toggle { position: absolute; left: 50%; bottom: 20px; width: 48px; height: 48px; display: grid; place-items: center; border: 5px solid white; border-radius: 50%; color: white; background: var(--blue); font-size: 1.15rem; transform: translateX(-50%); box-shadow: 0 8px 20px rgba(21,48,74,.2); }
.visual-note { max-width: 520px; margin: 23px auto 0; color: var(--muted); font-size: .8rem; text-align: center; }
.visual-note strong { color: var(--ink); }

@media (max-height: 780px) and (min-width: 901px) {
    .plugin-page { align-items: start; padding-block: 28px; }
    h1 { font-size: 3.3rem; }
    .mode-demo-screen { min-height: 285px; }
    .capabilities article { min-height: 90px; padding-block: 12px; }
}

@media (max-width: 900px) {
    .plugin-page { overflow: visible; }
    .plugin-grid { grid-template-columns: 1fr; }
    .visual { max-width: 620px; }
}

@media (max-width: 580px) {
    .shell { width: min(100% - 28px, 1120px); }
    .nav { align-items: flex-start; padding-block: 16px; }
    .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 9px 15px; }
    .plugin-page { padding-block: 44px; }
    .capabilities { grid-template-columns: 1fr; }
    .mode-demo-screen { min-height: 285px; }
    .mode-side { padding: 27px 15px; }
    .demo-image { height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    .page-video { display: none; }
}

html[data-theme="dark"] {
    --paper: #0d1a21;
    --surface: #142730;
    --ink: #f2f5f2;
    --text: #c6d2d6;
    --muted: #9baeb5;
    --line: #324850;
    --blue: #6db5e8;
    --blue-dark: #95caec;
    --blue-soft: #193747;
    --green: #78b996;
    color-scheme: dark;
}
html[data-theme="dark"] .site-header { background: rgba(13,26,33,.94); }
html[data-theme="dark"] .plugin-page { background: #0c1820; }
html[data-theme="dark"] .page-video { opacity: .44; filter: saturate(.8) contrast(.95) brightness(.65); }
html[data-theme="dark"] .page-wash { background: linear-gradient(90deg, rgba(12,25,32,.96) 0%, rgba(13,28,36,.91) 50%, rgba(15,34,44,.68) 100%), linear-gradient(180deg, rgba(7,17,23,.08), rgba(6,18,25,.48)); }
html[data-theme="dark"] .page-glow { background: rgba(48,105,132,.12); }
html[data-theme="dark"] .capabilities article { background: rgba(20,39,48,.68); }
html[data-theme="dark"] .mode-demo { border-color: #47606a; background: #1a3039; box-shadow: 0 25px 65px rgba(0,0,0,.28); }
html[data-theme="dark"] .mode-demo-bar { background: #1b3038; }
html[data-theme="dark"] .visual-note strong { color: var(--ink); }
