:root {
    color-scheme: dark;
    --bg: #070b14;
    --bg-soft: #0b111e;
    --surface: rgba(17, 25, 42, .78);
    --surface-solid: #11192a;
    --text: #f6f8ff;
    --muted: #94a0b8;
    --line: rgba(159, 177, 214, .14);
    --primary: #6987ff;
    --cyan: #50e1c1;
    --shadow: 0 24px 70px rgba(0, 0, 0, .34);
    --radius: 22px;
    --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.light {
    color-scheme: light;
    --bg: #f3f6fc;
    --bg-soft: #eaf0f9;
    --surface: rgba(255, 255, 255, .82);
    --surface-solid: #fff;
    --text: #11182a;
    --muted: #657087;
    --line: rgba(38, 55, 88, .13);
    --shadow: 0 24px 60px rgba(44, 62, 98, .12);
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; border-radius: 10px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 1rem; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.ambient-one { width: 520px; height: 520px; right: -220px; top: 50px; background: rgba(70, 92, 255, .14); }
.ambient-two { width: 460px; height: 460px; left: -300px; top: 680px; background: rgba(60, 219, 188, .08); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-symbol { width: 42px; height: 42px; display: grid; place-items: center; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .3)); }
.brand-symbol img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: Manrope, sans-serif; font-size: 1.06rem; letter-spacing: -.02em; }
.brand-copy small { margin-top: .23rem; color: var(--cyan); font-size: .57rem; font-weight: 800; letter-spacing: .26em; }
.main-nav { display: flex; align-items: center; gap: .35rem; }
.main-nav a { padding: .55rem .8rem; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; border-radius: 9px; }
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface); }
.nav-install { min-height: 38px; padding: .45rem .8rem; border: 1px solid rgba(80,225,193,.35); border-radius: 9px; background: rgba(80,225,193,.1); color: var(--cyan); font-size: .82rem; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.theme-button { position: relative; width: 45px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); }
.theme-button span { position: absolute; top: 50%; transform: translateY(-50%); font-size: .9rem; }
.theme-button .sun { left: 7px; color: var(--cyan); }
.theme-button .moon { right: 7px; }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.menu-button span { display: block; width: 100%; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--text); transition: .2s ease; }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; padding-block: 90px 100px; }
.eyebrow, .kicker { color: var(--cyan); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .6rem; }
.eyebrow span { width: 26px; height: 2px; background: var(--cyan); }
h1, h2, h3 { margin-top: 0; font-family: Manrope, sans-serif; letter-spacing: -.045em; }
h1 { max-width: 700px; margin: 1.25rem 0 1.4rem; font-size: clamp(3.2rem, 6.2vw, 5.8rem); line-height: .98; }
h1 em { color: transparent; font-style: normal; background: linear-gradient(110deg, #7590ff, #50e1c1); background-clip: text; -webkit-background-clip: text; }
.hero-copy > p { max-width: 580px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.2rem; }
.primary-button { display: inline-flex; align-items: center; gap: .8rem; min-height: 52px; padding: .75rem 1.25rem; border-radius: 12px; background: linear-gradient(135deg, #708bff, #526fea); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 15px 34px rgba(73, 99, 229, .28); transition: .2s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(73, 99, 229, .4); }
.install-button { min-height: 52px; display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 700; }
.install-button[hidden], .nav-install[hidden] { display: none; }
.project-count { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .86rem; }
.project-count strong { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(80, 225, 193, .1); color: var(--cyan); }

.hero-art { position: relative; min-height: 480px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(116, 141, 255, .22); border-radius: 50%; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.orbit-large { width: 400px; height: 400px; animation: spin 28s linear infinite; }
.orbit-large::before { left: 37px; top: 61px; }
.orbit-large::after { right: 20px; bottom: 95px; }
.orbit-small { width: 270px; height: 270px; border-style: dashed; animation: spin 20s linear infinite reverse; }
.orbit-small::before { right: 27px; top: 48px; }
.orbit-small::after { left: 16px; bottom: 77px; }
.core { position: relative; width: 190px; height: 190px; display: grid; place-items: center; text-align: center; filter: drop-shadow(0 30px 34px rgba(31, 50, 118, .4)); animation: box-breathe 5s ease-in-out infinite; }
.core::after { content: ""; position: absolute; inset: 12px; z-index: -1; border-radius: 50%; background: rgba(89, 114, 238, .24); filter: blur(28px); }
.core img { width: 100%; height: 100%; object-fit: contain; }
.core small { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); color: #80f4dc; font-size: .59rem; font-weight: 800; letter-spacing: .42em; text-shadow: 0 0 12px rgba(80, 225, 193, .5); }
.floating-app { position: absolute; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-solid); font: 800 1.55rem Manrope, sans-serif; box-shadow: var(--shadow); animation: float 4s ease-in-out infinite; }
.app-one { left: 4%; top: 20%; color: #b18cff; }
.app-two { right: 4%; top: 24%; color: #ffae67; animation-delay: -1s; }
.app-three { right: 15%; bottom: 13%; color: var(--cyan); animation-delay: -2s; }
.spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 20px var(--primary); }
.spark-one { left: 20%; bottom: 20%; }.spark-two { right: 21%; top: 13%; }

.catalogue { padding-block: 80px 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
h2 { margin: .45rem 0 0; font-size: clamp(2rem, 3.5vw, 3.15rem); }
.search-box { width: min(100%, 330px); min-height: 48px; display: flex; align-items: center; gap: .65rem; padding: 0 .85rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--muted); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-box input::placeholder { color: var(--muted); }
.search-box kbd { padding: .18rem .4rem; border: 1px solid var(--line); border-radius: 5px; background: var(--bg-soft); color: var(--muted); font-size: .66rem; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.filter { padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: .83rem; font-weight: 700; transition: .18s ease; }
.filter:hover { color: var(--text); border-color: rgba(112,139,255,.5); }
.filter.active { border-color: transparent; background: var(--text); color: var(--bg); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-card { min-height: 330px; display: flex; flex-direction: column; padding: 1.4rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-solid) 85%, transparent)); box-shadow: 0 12px 35px rgba(0,0,0,.1); transition: transform .22s ease, border-color .22s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(112, 139, 255, .38); }
.project-card[hidden] { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.6rem; }
.app-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; color: white; font: 800 1.8rem Manrope, sans-serif; box-shadow: inset 0 1px rgba(255,255,255,.3), 0 14px 25px rgba(0,0,0,.2); }
.app-icon.box-brand-icon { padding: 3px; border-radius: 0; background: transparent; box-shadow: none; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .28)); }
.app-icon.box-brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.app-icon.violet { background: linear-gradient(145deg, #a376f2, #6446b7); }.app-icon.blue { background: linear-gradient(145deg, #658eff, #3857c7); }.app-icon.orange { background: linear-gradient(145deg, #ffad62, #c56132); }.app-icon.green { background: linear-gradient(145deg, #4ed9b2, #258b78); }.app-icon.pink { background: linear-gradient(145deg, #ed73a8, #9c4773); }
.favorite { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-size: 1.25rem; }
.favorite:hover, .favorite.saved { border-color: rgba(255, 116, 158, .4); color: #ff749e; background: rgba(255, 116, 158, .08); }
.card-category { margin-bottom: .65rem; color: var(--cyan); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-card h3 { margin-bottom: .65rem; font-size: 1.45rem; }
.project-card p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.65; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.25rem; }
.status { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .74rem; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.open-link { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(112, 139, 255, .12); color: #8fa5ff; font-size: 1.1rem; text-decoration: none; transition: .2s ease; }
.open-link:hover { color: white; background: var(--primary); transform: rotate(-35deg); }
.open-link.disabled { opacity: .35; }
.empty-state { padding: 5rem 1rem; text-align: center; color: var(--muted); }
.empty-state > span { font-size: 3rem; }.empty-state h3 { margin: 1rem 0 .4rem; color: var(--text); }

.manifesto { padding-bottom: 100px; }
.manifesto-card { position: relative; min-height: 265px; display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 2.5rem; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); border: 1px solid rgba(112, 139, 255, .22); border-radius: 28px; background: radial-gradient(circle at 5% 100%, rgba(80,225,193,.13), transparent 28%), radial-gradient(circle at 90% 0%, rgba(112,139,255,.2), transparent 35%), var(--surface); }
.manifesto-mark { width: 110px; height: 110px; display: grid; place-items: center; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .28)); }
.manifesto-mark img { width: 100%; height: 100%; object-fit: contain; }
.manifesto-card h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.manifesto-card p { max-width: 620px; margin: .8rem 0 0; color: var(--muted); line-height: 1.65; }
.manifesto-card > a { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 11px; color: var(--text); font-size: .86rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.manifesto-card > a:hover { border-color: var(--primary); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--muted); font-size: .82rem; }
.compact .brand-symbol { width: 32px; height: 32px; }.compact .brand-copy strong { font-size: .9rem; }
.modal-open { overflow: hidden; }
.install-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.install-modal[hidden] { display: none; }
.install-backdrop { position: absolute; inset: 0; background: rgba(2, 5, 12, .78); backdrop-filter: blur(8px); }
.install-dialog { position: relative; width: min(100%, 480px); max-height: calc(100vh - 2rem); overflow-y: auto; padding: clamp(1.5rem, 5vw, 2.5rem); border: 1px solid var(--line); border-radius: 24px; background: var(--surface-solid); box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.install-dialog > img { display: block; width: 76px; height: 76px; margin-bottom: 1.25rem; border-radius: 18px; }
.install-dialog h2 { margin: .55rem 2rem 1rem 0; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.install-dialog p, .install-dialog li { color: var(--muted); line-height: 1.6; }
.install-dialog ol { margin: 1.25rem 0 0; padding-left: 1.4rem; }.install-dialog li + li { margin-top: .75rem; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.35rem; }
.dialog-action { width: 100%; margin-top: 1.25rem; border: 0; cursor: pointer; }
.dialog-action[hidden] { display: none; }.share-symbol { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 6px; color: var(--primary); }
.install-note { margin-top: 1.25rem; padding: .75rem; border-radius: 10px; background: rgba(112,139,255,.08); font-size: .85rem; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes box-breathe { 50% { transform: translateY(-7px) rotate(2deg) scale(1.025); } }
@keyframes float { 50% { transform: translateY(-12px) rotate(3deg); } }
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 70px; text-align: center; }
    .hero-copy { display: grid; justify-items: center; }.eyebrow { justify-content: center; }
    .hero-art { min-height: 390px; }.orbit-large { width: 340px; height: 340px; }.orbit-small { width: 230px; height: 230px; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .manifesto-card { grid-template-columns: 70px 1fr; }.manifesto-mark { width: 80px; height: 80px; }.manifesto-card > a { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .header-inner { position: relative; min-height: 68px; gap: .75rem; }
    .brand-copy strong { font-size: .96rem; }.brand-copy small { font-size: .5rem; letter-spacing: .18em; }
    .main-nav { position: absolute; inset: calc(100% + 1px) 0 auto; display: none; padding: .75rem; border: 1px solid var(--line); border-radius: 0 0 16px 16px; background: var(--surface-solid); box-shadow: var(--shadow); }
    .main-nav.open { display: grid; }.main-nav a { padding: .85rem; }.main-nav .nav-install { margin-top: .35rem; }
    .header-actions { margin-left: auto; }.menu-button { display: block; }.theme-button { flex: 0 0 auto; }
    .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .hero { min-height: auto; gap: 1rem; padding-block: 65px 50px; }.hero-actions { flex-direction: column; }.hero-art { min-height: 330px; transform: scale(.83); margin-inline: -40px; }
    .primary-button, .install-button { width: min(100%, 290px); justify-content: center; }
    .section-heading { align-items: stretch; flex-direction: column; }.search-box { width: 100%; }.project-grid { grid-template-columns: 1fr; }.project-card { min-height: 300px; }
    .manifesto-card { grid-template-columns: 1fr; text-align: center; }.manifesto-mark { display: none; }.manifesto-card > a { grid-column: 1; justify-self: center; }
    .footer-inner { flex-direction: column; justify-content: center; padding-block: 2rem; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
