:root {
    --ink: #16181b;
    --ink-soft: #464d55;
    --muted: #6b737c;
    --line: #e7e3db;
    --paper: #faf8f4;
    --card: #ffffff;
    --accent: #e8590c;
    --accent-dark: #c2410c;
    --accent-soft: #fff1e6;
    --radius: 1.1rem;
    --shadow: 0 1px 2px rgba(22, 24, 27, 0.04), 0 12px 40px rgba(22, 24, 27, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }

.wrap { width: min(1160px, 92vw); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(250, 248, 244, 0.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 1.5rem; height: 4.2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.6rem; background: var(--ink); color: #fff; }
.brand-mark svg { width: 1.15rem; height: 1.15rem; }
.brand span span { color: var(--accent); }
.nav { display: flex; gap: 1.4rem; margin-left: auto; font-weight: 600; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.account { display: flex; align-items: center; gap: 0.5rem; }
.account a { text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 0.5rem 0.9rem; border-radius: 999px; }
.account a.solid { background: var(--ink); color: #fff; }
.account a.solid:hover { background: #2b2f34; }
.account a.plain:hover { background: rgba(22, 24, 27, 0.06); }

.hero { padding: 2.6rem 0 3.2rem; }
.hero-copy { margin-bottom: 1.4rem; }
.hero h1 { margin: 0.85rem 0 0.7rem; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { margin: 0; max-width: 38rem; font-size: 1.12rem; color: var(--ink-soft); }

.stage { position: relative; height: 22rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
#kaart { position: absolute; inset: 0; background: #e7eef2; }

.finder { position: relative; z-index: 2; margin: 0 0 0.85rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1rem 0.85rem; }
.pill { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.75rem; padding: 0.28rem 0.7rem 0.28rem 0.4rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.pill i { width: 0.5rem; height: 0.5rem; margin-left: 0.25rem; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15); }
.finder label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.query { position: relative; display: flex; gap: 0.5rem; }
.finder input { flex: 1; min-width: 0; color: var(--ink); background: #fcfbf9; border: 1px solid #d9d4ca; border-radius: 0.65rem; padding: 0.68rem 0.8rem; }
.finder input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(232, 89, 12, 0.14); }
.finder button[type="submit"] { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--accent); color: #fff; border: 0; border-radius: 0.65rem; padding: 0 0.9rem; font-weight: 700; cursor: pointer; }
.finder button[type="submit"]:hover { background: var(--accent-dark); }
.finder button[type="submit"] svg { width: 1.05rem; height: 1.05rem; }
.finder button.locate { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; margin-top: 0.65rem; background: #fff; color: var(--ink); border: 1px solid #d9d4ca; border-radius: 0.65rem; padding: 0.62rem 0.9rem; font-weight: 700; cursor: pointer; }
.finder button.locate:hover { border-color: var(--ink); }
.finder button.locate:disabled { opacity: 0.6; cursor: progress; }
.finder button.locate svg { width: 1.05rem; height: 1.05rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.filters .chip { border: 1px solid #d9d4ca; background: #fff; color: var(--ink); border-radius: 999px; padding: 0.38rem 0.75rem; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.filters .chip:hover { border-color: var(--ink); }
.filters .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.suggest { position: absolute; z-index: 5; left: 0; right: 4.6rem; top: calc(100% + 0.35rem); margin: 0; padding: 0.3rem; list-style: none; background: #fff; border: 1px solid #d9d4ca; border-radius: 0.7rem; box-shadow: var(--shadow); max-height: 18rem; overflow: auto; }
.suggest button { display: flex; justify-content: space-between; gap: 0.75rem; width: 100%; text-align: left; color: var(--ink); background: #fff; border: 0; border-radius: 0.45rem; padding: 0.5rem 0.65rem; cursor: pointer; }
.suggest button:hover, .suggest button[aria-selected="true"] { background: var(--accent-soft); }
.suggest small { color: var(--muted); font-weight: 700; font-size: 0.75rem; }
.hint { min-height: 1.2rem; margin: 0.55rem 0 0; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.hint.is-error { color: #8a3b2b; }

.detail { position: absolute; z-index: 500; right: 1rem; bottom: 1rem; width: min(24rem, calc(100% - 2rem)); max-height: min(34rem, calc(100% - 2rem)); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.05rem 1.1rem; }
.detail h2 { margin: 0 2.2rem 0.2rem 0; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; }
.detail .operator { margin: 0 0 0.85rem; color: var(--ink-soft); font-weight: 600; }
.detail .close { position: absolute; top: 0.7rem; right: 0.7rem; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.detail .close:hover { color: var(--ink); }
.socket { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.socket h3 { margin: 0; font-size: 1rem; }
.socket .meta { margin: 0.15rem 0 0.45rem; color: var(--ink-soft); font-size: 0.92rem; }
.socket .free { color: #15803d; font-weight: 700; }
.socket .busy { color: #b45309; font-weight: 700; }
.price { margin: 0.35rem 0 0; padding: 0; list-style: none; }
.price li { margin: 0.15rem 0; font-size: 0.95rem; }
.price .when { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.detail .foot { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.82rem; }

.note { margin: 0.7rem 0 0; color: var(--ink-soft); font-size: 0.82rem; font-weight: 600; }

.pin, .cluster { background: transparent; border: 0; }
.pin span, .cluster span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 999px; color: #fff; font-weight: 800; box-shadow: 0 4px 12px rgba(22, 24, 27, 0.28); border: 2px solid #fff; }
.pin span { background: var(--accent); }
.pin.dc span { background: #9a3412; }
.pin.on span { outline: 3px solid rgba(232, 89, 12, 0.45); }
.you { background: transparent; border: 0; }
.you span { display: block; width: 16px; height: 16px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.22); }
.map-tool { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: 0.7rem; background: #fff; color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.map-tool:hover { color: var(--accent-dark); }
.map-tool:disabled { opacity: 0.6; cursor: progress; }
.map-tool svg { width: 1.15rem; height: 1.15rem; }
.fullscreen-control[aria-pressed="true"] { color: var(--accent-dark); }
body.map-open { overflow: hidden; }
.map-block.is-fullscreen { position: fixed; inset: 0; z-index: 80; background: #e7eef2; }
.map-block.is-fullscreen .stage { position: absolute; inset: 0; height: auto; border: 0; border-radius: 0; }
.map-block.is-fullscreen .finder { position: absolute; z-index: 800; top: 0.75rem; left: 0.75rem; width: min(34rem, calc(100% - 4.6rem)); margin: 0; }
.map-block.is-fullscreen .note { display: none; }
.cluster span { background: var(--ink); font-size: 0.78rem; }

.leaflet-control-attribution { font-size: 0.7rem; }

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.35rem 1.2rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: 1.15rem; letter-spacing: -0.02em; }
.stat span { color: var(--ink-soft); font-size: 0.92rem; }
.section { padding: 4.5rem 0; }
.eyebrow { margin: 0 0 0.6rem; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.section h2 { margin: 0 0 0.8rem; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.section-intro { max-width: 40rem; margin: 0 0 2.2rem; font-size: 1.1rem; color: var(--ink-soft); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature { display: flex; flex-direction: column; padding: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9d4ca; }
.feature .icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 0.8rem; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem; }
.feature .icon svg { width: 1.35rem; height: 1.35rem; }
.feature h3 { margin: 0 0 0.4rem; font-size: 1.15rem; letter-spacing: -0.02em; }
.feature p { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: 0.97rem; }
.feature .more { margin-top: auto; font-weight: 700; font-size: 0.93rem; color: var(--accent-dark); }
.feature .more::after { content: " →"; }
.dev { background: var(--ink); color: #e9ebee; border-radius: 1.8rem; margin: 0 auto; padding: 3.2rem; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2.4rem; align-items: center; }
.dev h2 { color: #fff; }
.dev .section-intro { color: #b8bec6; margin-bottom: 1.4rem; }
.dev ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.55rem; }
.dev li { display: flex; gap: 0.6rem; color: #d5d9de; }
.dev li::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; border-radius: 50%; background: rgba(232, 89, 12, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23ff8a4c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat; }
.buttons { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.button { display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; padding: 0.75rem 1.2rem; border-radius: 999px; background: var(--accent); color: #fff; }
.button:hover { background: var(--accent-dark); }
.button.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.terminal { background: #0d0f11; border: 1px solid #2a2e33; border-radius: 1rem; overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1rem; border-bottom: 1px solid #22262b; }
.terminal-bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #3a3f45; }
.terminal-bar span { margin-left: 0.6rem; color: #7d858e; font-size: 0.82rem; font-weight: 600; }
.terminal pre { margin: 0; padding: 1.2rem 1.3rem 1.4rem; overflow-x: auto; font: 500 0.86rem/1.65 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #d5d9de; }
.terminal .c { color: #7d858e; }
.terminal .k { color: #ff8a4c; }
.terminal .s { color: #9fd99b; }
.terminal .n { color: #8cc8ff; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.4rem 2.6rem; border-radius: 1.8rem; background: var(--accent-soft); border: 1px solid #f6d6bf; }
.cta h2 { margin: 0 0 0.4rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta p { margin: 0; color: var(--ink-soft); max-width: 36rem; }
.cta .button.dark { background: var(--ink); white-space: nowrap; }
.cta .button.dark:hover { background: #2b2f34; }
.site-foot { margin-top: 0; }

@media (max-width: 1020px) {
    .features, .stats .wrap { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: 0; }
    .dev { grid-template-columns: 1fr; padding: 2rem; }
}
@media (max-width: 860px) {
    .nav { display: none; }
    .account { margin-left: auto; }
}
@media (max-width: 720px) {
    .hero { padding-top: 1.6rem; }
    .stage { height: 18rem; }
    .finder button[type="submit"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .suggest { right: 3.2rem; }
    .detail { left: 0.55rem; right: 0.55rem; bottom: 0.55rem; width: auto; max-height: 70%; }
    .stats .wrap, .features { grid-template-columns: 1fr; }
    .stat { border-left: 0; border-top: 1px solid var(--line); }
    .stat:first-child { border-top: 0; }
    .cta { flex-direction: column; align-items: flex-start; padding: 1.6rem; }
}
