/* DrawSort landing — reset/variables + navigation. Split from the imported monolith (module-size
   guard: one stylesheet layer per file, load order = the <link> order). */
/* ============================================================
   RESET & VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --dark: #0d1117;
    --dark2: #161b22;
    --dark3: #21262d;
    --dark-card: #0f1729;
    --dark-border: #30363d;
    --white: #ffffff;
    --gray-50: #f8f9fb;
    --gray-100: #f0f6fc;
    --gray-200: #e6edf3;
    --gray-300: #cdd9e5;
    --gray-400: #adbac7;
    --gray-500: #768390;
    --gray-600: #636e7b;
    --text-on-dark: #e6edf3;
    --text-muted-dark: #adbac7;
    --text-faint-dark: #768390;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #3b82f6;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --section-bg: #f8f9fb;
    --section-border: #e5e7eb;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --card-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --card-shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --max-width: 1120px;
    --nav-height: 64px;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a2e;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   1. NAVIGATION
   ============================================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--dark);
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-img {
    height: 28px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted-dark);
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-signin {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted-dark);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease;
}

.nav-signin:hover {
    color: var(--white);
}

.nav-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: var(--accent);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.nav-cta:hover {
    background: var(--accent-hover);
}

