/* Self-hosted Inter (latin subset) — no external font CDN for GDPR compliance */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/inter-400.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/inter-500.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/inter-600.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/inter-700.woff2") format("woff2");
}

/* Self-hosted Space Grotesk (headings) — no external font CDN */
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/spacegrotesk-600.woff2") format("woff2");
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/spacegrotesk-700.woff2") format("woff2");
}

/* Self-hosted JetBrains Mono (tagline accent) — no external font CDN */
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/jetbrainsmono-400.woff2") format("woff2");
}

:root {
    --bg: #0b0f17;
    --bg-soft: #121826;
    --card: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e6e9ef;
    --muted: #9aa4b2;
    --accent: #6366f1;
    --accent-2: #22d3ee;
    --cursor-glow: rgba(34, 211, 238, 0.9);
    --cursor-line: rgba(99, 102, 241, 0.45);
    --radius: 16px;
    --maxw: 880px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

#cursor-net {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.page,
.footer {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    #cursor-net {
        display: none;
    }
}

/* Ambient gradient backdrop */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 60% at 20% 10%, rgba(99, 102, 241, 0.20), transparent 60%),
        radial-gradient(50% 50% at 90% 20%, rgba(34, 211, 238, 0.16), transparent 55%),
        linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.page {
    flex: 1;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero */
.hero {
    text-align: center;
}

.avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.5rem;
    display: block;
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.30);
}

.hero h1 {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tagline {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    color: var(--accent-2);
    font-weight: 400;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.intro {
    color: var(--muted);
    max-width: 540px;
    margin: 1.25rem auto 0;
}

/* Links */
.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    background: var(--card);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5457e6, #14c4e0);
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(6px);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
}

.card h2 {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Tag list (Toolbox) */
.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.tags li {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.tags li:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--text);
}

/* Legal pages (Impressum / Datenschutz) */
.legal {
    max-width: 720px;
}

.legal .back {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent-2);
    text-decoration: none;
    font-size: 0.95rem;
}

.legal .back:hover {
    text-decoration: underline;
}

.legal h1 {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.legal h2 {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 0.5rem;
}

.legal p {
    color: var(--muted);
}

.legal a {
    color: var(--accent-2);
}

.legal .note {
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--muted);
}
