/* ===========================================
   KONFECTOR — Base / Variables / Reset
   Typography: Syne (headings) + Outfit (body)
   =========================================== */

/* ============ CSS CUSTOM PROPERTIES ============ */
:root {
    /* —— Background / Surface (Blacks & very dark blues) —— */
    --surface-0: #030303;
    --surface-1: #070909;
    --surface-2: #1a2041;
    --surface-3: #1f1a3c;
    --surface-card: rgba(26, 32, 65, 0.65);
    --surface-glass: rgba(7, 9, 9, 0.7);

    /* —— Primary (Blues & Purples from logo) —— */
    --primary-950: #020303;
    --primary-900: #070909;
    --primary-800: #1a2041;
    --primary-700: #1c1637;
    --primary-600: #132b41;
    --primary-500: #133857;

    /* —— Accent (Slate & Plum) —— */
    --accent-700: #3b2249;
    /* Plum */
    --accent-600: #334869;
    /* Slate */
    --accent-500: #4a6fa5;
    --accent-400: #6b8ab8;
    --accent-300: #8ba7d1;
    --accent-glow: transparent;
    --accent-glow-strong: transparent;

    /* —— Warm neutral (cream/sand) —— */
    --warm-50: #fefcf8;
    --warm-100: #fdf8ef;
    --warm-200: #f5edd8;
    --warm-300: #e8dcc0;
    --warm-400: #d4c49e;

    /* —— Text —— */
    --text-primary: #f8f9fa;
    --text-secondary: #cdd6e5;
    --text-muted: #8ba7d1;
    --text-inverse: #020303;

    /* —— Borders —— */
    --border-subtle: rgba(139, 167, 209, 0.1);
    --border-default: rgba(139, 167, 209, 0.2);
    --border-accent: rgba(74, 111, 165, 0.4);

    /* —— Typography —— */
    --font-heading: 'Tektur', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* —— Spacing scale —— */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* —— Border radius (Sharp / Origami) —— */
    --radius-sm: 0px;
    --radius-md: 2px;
    --radius-lg: 4px;
    --radius-xl: 6px;
    --radius-full: 8px;

    /* —— Transitions —— */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;

    /* —— Shadows (Modern soft depth) —— */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: none;
    --shadow-glow-strong: none;

    /* —— Layout —— */
    --max-width: 72rem;
    --max-width-narrow: 48rem;
}

/* ============ RESET ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--surface-0);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-normal) var(--ease-out);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ============ TYPOGRAPHY ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============ UTILITY CLASSES ============ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

.section {
    padding: var(--space-4xl) 0;
}

.section-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--accent-400), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 auto;
}

/* ============ SELECTION ============ */
::selection {
    background-color: var(--accent-500);
    color: var(--text-inverse);
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-0);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-600);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-600);
}