:root {
    --bg: #0c0c0d;
    --text: #ececec;
    --muted: #8a8a8e;
    --line: #26262a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: 72px; background: var(--bg); }

body {
    min-height: 100vh;
    background: transparent;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.header, .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px clamp(20px, 5vw, 56px);
}

#bg { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; opacity: 0.5; }

.header { position: sticky; top: 0; z-index: 10; background: rgba(12, 12, 13, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand img { height: 26px; width: auto; }

nav { display: flex; gap: 24px; color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--text); }

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    width: min(880px, 100%);
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 40px clamp(20px, 5vw, 56px);
}

.eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }

h1 {
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.02em;
}

h1 strong { font-weight: 800; }

.built {
    display: flex;
    align-items: baseline;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 500;
    color: var(--muted);
}

.word {
    display: inline-flex;
    overflow: hidden;
    padding: 0.15em 0;
    margin: -0.15em 0;
    color: var(--text);
    font-weight: 700;
}

.ch { display: inline-block; }
.ch.in { animation: rise 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ch.out { animation: fall 0.32s cubic-bezier(0.6, 0, 0.8, 0.3) both; }

@keyframes rise { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fall { from { transform: none; opacity: 1; } to { transform: translateY(-110%); opacity: 0; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
}
.btn:hover { border-color: var(--muted); }
.btn-solid { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-solid:hover { background: #fff; border-color: #fff; }

.modules {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 80px clamp(20px, 5vw, 56px) 96px;
}

.modules-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.modules-head h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.modules-head p { color: var(--muted); }

.group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.group-head h3 { font-size: 17px; font-weight: 600; }
.count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.donut { margin-bottom: 56px; }

.donut-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 40px;
}
.donut-list li { display: flex; flex-direction: column; gap: 3px; }
.donut-list strong { font-size: 15px; font-weight: 600; }
.donut-list span { font-size: 14px; color: var(--muted); line-height: 1.4; }

.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.groups .group-head { margin-bottom: 0; padding: 14px 0; }


.footer { color: var(--muted); font-size: 13px; flex-wrap: wrap; border-top: 1px solid var(--line); background: rgba(12, 12, 13, 0.72); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.show { opacity: 1; transform: none; }

.modules-head, .donut, .group { text-shadow: 0 0 12px var(--bg); }

@media (max-width: 640px) {
    .donut-list { grid-template-columns: 1fr; }
    .modules { padding-top: 56px; }
    .footer { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .ch.in, .ch.out { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
