:root {
	--bg: #08090b;
	--bg2: #0e0f12;
	--panel: #141518;
	--panel2: #1b1c20;
	--line: #2a2b31;
	--text: #e9edf3;
	--dim: #a3a5ad;
	--amber: #e5322d;
	--green: #3ddc84;
	--cyan: #4fd8ec;
	--orange: #ff9f43;
	--radius: 16px;
	--max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 Inter, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: #ff6a63; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(8, 9, 11, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -0.2px; }
.brand:hover { color: #fff; }
.brand .mark { width: 34px; height: 34px; display: block; flex: none; }
.nav nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav nav a { color: var(--dim); padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: #fff; background: var(--panel); }

/* type */
.eyebrow { font-size: 13px; letter-spacing: 3.2px; color: var(--amber); font-weight: 700; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.03; letter-spacing: -1.5px; margin: 0 0 20px; font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -1px; margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 21px; margin: 0 0 8px; letter-spacing: -0.2px; }
.lead { font-size: 20px; color: #c5cdd9; max-width: 640px; margin: 0 0 28px; }
p { margin: 0 0 14px; }
.muted { color: var(--dim); }

/* buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 11px; font-weight: 700; font-size: 16px; border: 1px solid var(--line); background: var(--panel); color: #fff; cursor: pointer; transition: transform 0.12s, background 0.12s; }
.btn:hover { color: #fff; background: var(--panel2); transform: translateY(-1px); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #ffffff; }
.btn.primary:hover { background: #ffc82e; color: #ffffff; }
.btn svg { width: 18px; height: 18px; }
.btn.small { padding: 9px 14px; font-size: 14px; }
.btn[hidden] { display: none; }

/* sections */
section { padding: 88px 0; }
section.alt { background: var(--bg2); border-top: 1px solid rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.hero { padding: 72px 0 64px; background: radial-gradient(90% 120% at 85% 0%, #2a1215 0%, var(--bg) 62%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero .shot { border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* badges & chips */
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.6px; padding: 5px 11px; border-radius: 999px; text-transform: uppercase; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.available { color: var(--green); background: rgba(61, 220, 132, 0.12); }
.badge.beta { color: var(--cyan); background: rgba(79, 216, 236, 0.12); }
.badge.soon { color: var(--orange); background: rgba(255, 159, 67, 0.12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; color: #d6dce6; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 6px 13px; }

/* plugin cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s, border-color 0.15s; }
.card:hover { transform: translateY(-3px); border-color: #3a475a; }
.card .art { aspect-ratio: 2 / 1; background: #0f141b; display: grid; place-items: center; overflow: hidden; }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .ver { font-size: 13px; color: var(--dim); }
.card p { color: #c2cad6; font-size: 16px; margin: 0; }
.card .btns { margin-top: auto; padding-top: 6px; }

/* generated art tiles for plugins without screenshots */
.tile { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.tile.airside { background: radial-gradient(70% 90% at 50% 100%, #12324a 0%, #0c1520 70%); }
.tile.vatsim { background: radial-gradient(70% 90% at 50% 100%, #2b1f45 0%, #110f1c 70%); }
.tile svg { width: 42%; height: auto; }

/* feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 56px; align-items: center; padding: 34px 0; }
.feature.flip > :first-child { order: 2; }
.feature img { border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.feature p { color: #c2cad6; }

/* grids */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.box h3 { display: flex; align-items: center; gap: 10px; }
.box p, .box li { color: #c2cad6; font-size: 16px; }
.box ul, .box ol { margin: 0; padding-left: 20px; }
.box li { margin: 5px 0; }
.ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(229, 50, 45, 0.12); flex: none; }
.ico svg { width: 20px; height: 20px; stroke: var(--amber); }

/* download panel */
.download { background: linear-gradient(135deg, #1d1416 0%, #121214 100%); border: 1px solid var(--line); border-radius: 20px; padding: 34px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.download .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin-top: 18px; }
.download .facts div { font-size: 15px; }
.download .facts b { display: block; color: var(--dim); font-weight: 600; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl-list .btn { justify-content: flex-start; }
.dl-note { font-size: 14px; color: var(--dim); margin-top: 6px; }

/* tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { font: inherit; font-size: 15px; font-weight: 600; color: var(--dim); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: #ffffff; background: var(--amber); border-color: var(--amber); }
.tabpanel[hidden] { display: none; }
.layout-grid { display: grid; gap: 8px; margin: 14px 0 6px; }
.layout-grid span { background: #0f141b; border: 1px solid #2a3443; border-radius: 9px; padding: 9px 6px; text-align: center; font-size: 12.5px; font-weight: 600; color: #d7dde6; min-height: 44px; display: grid; place-items: center; }
.layout-grid span.k { color: var(--amber); }
.layout-grid span.i { color: #b7c1ce; }
.layout-grid span.d { border-radius: 50%; aspect-ratio: 1; min-height: 0; font-size: 11px; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; color: var(--dim); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid #1f2834; vertical-align: top; color: #d2d9e3; }
td:first-child { color: #fff; font-weight: 600; }
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.gallery img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform 0.2s; }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5, 8, 12, 0.92); display: grid; place-items: center; padding: 28px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 18px; right: 22px; font-size: 30px; color: #fff; background: none; border: 0; cursor: pointer; }

/* changelog / faq */
.log { border-left: 2px solid var(--line); padding-left: 22px; }
.log .entry { position: relative; padding-bottom: 26px; }
.log .entry::before { content: ""; position: absolute; left: -29px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }
.log .entry h3 { font-size: 18px; }
.log ul { margin: 0; padding-left: 20px; color: #c2cad6; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; }
details p { color: #c2cad6; margin: 10px 0 0; }

.notice { border: 1px solid #5c4b12; background: #221d0d; color: #f1e2ae; border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.notice.cyan { border-color: #1c5560; background: #0d1e22; color: #bdeef6; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--dim); font-size: 14.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: #c2cad6; }

@media (max-width: 960px) {
	.hero .wrap, .feature, .download { grid-template-columns: minmax(0, 1fr); }
	.feature.flip > :first-child { order: 0; }
	.cards, .grid3 { grid-template-columns: minmax(0, 1fr); }
	.grid2, .gallery { grid-template-columns: minmax(0, 1fr); }
	section { padding: 64px 0; }
	.nav nav { display: none; }
	.nav nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 12px 24px 20px; border-bottom: 1px solid var(--line); }
	.menu-btn { display: inline-flex !important; margin-left: auto; }
}
.menu-btn { display: none; background: var(--panel); border: 1px solid var(--line); color: #fff; border-radius: 9px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }

.req { margin: 10px 0 0; padding: 9px 12px; border-left: 3px solid var(--amber); background: rgba(229,50,45,.08); border-radius: 6px; font-size: 14px; color: #ece7e7; }
.req b { color: #fff; }
