/* === Modern minimalist system (replaces legacy styles) === */
:root {
    --bg: #0f172a;
    --surface: rgba(255, 255, 255, 0.08);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --accent: #3b82f6;
    --accent-2: #06b6d4;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --focus: #3b82f6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.skip-link {
    position: absolute;
    left: -999px;
    top: 1rem;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    z-index: 2000;
}
.skip-link:focus { left: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.sidebar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo h1 { font-size: 1.1rem; letter-spacing: 0.2px; }
.logo p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
    transition: all 0.2s ease;
}
.nav-link.active,
.nav-link:hover { color: var(--text); background: rgba(59, 130, 246, 0.15); }

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.main-content { padding: 2rem 0 4rem; }
.container { max-width: 1150px; margin: 0 auto; padding: 0 1.75rem; }
section { padding: clamp(5rem, 8vw, 7rem) 0; position: relative; }
.section-title { margin: 0 0 2rem; font-size: 2rem; letter-spacing: -0.3px; }

.hero { min-height: 100vh; display: flex; align-items: center; }
.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}
.subtitle { color: var(--muted); }
.typing { color: var(--accent-2); font-weight: 600; }

.cta-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.secondary { background: var(--accent-2); border-color: var(--accent-2); color: #06212c; }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }

.input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.75rem;
    border-radius: 10px;
}
.input:focus, textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-color: var(--accent);
}
textarea { min-height: 130px; resize: vertical; }

.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    background: rgba(15, 23, 42, 0.7);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-more {
    position: relative;
}
.nav-more > summary {
    list-style: none;
    cursor: pointer;
}
.nav-more > summary::-webkit-details-marker {
    display: none;
}
.nav-more[open] > summary,
.nav-more > summary:hover {
    background: #eef2ff;
    color: var(--text);
}
.nav-submenu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: var(--shadow);
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1001;
}
.nav-submenu .nav-link {
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
}

@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        flex-direction: column;
        align-items: flex-start;
        background: var(--surface);
        padding: 5rem 1.5rem 2rem;
        box-shadow: var(--shadow);
        transition: right 0.25s ease;
    }
    .sidebar.active { right: 0; }
    .nav-menu { width: 100%; flex-direction: column; }
    .nav-submenu {
        position: static;
        border: none;
        box-shadow: none;
        padding: 0.25rem 0 0;
        background: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; transition: none !important; animation: none !important; }
}

