/* base.css - Core variables, reset, and typography */
*,*::before,*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    scroll-snap-type: y proximity;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    -webkit-tap-highlight-color: rgba(224,120,80,.15);
}

:root {
    --brand-main: #E07850;
    --brand-hover: #c4623a;
    --brand-accent: #FF6B35;
    --bg: #0A0A0A;
    --surface: #111111;
    --surface2: #1A1A1A;
    --text: #F5F5F0;
    --text-gray: #888888;
    --text-muted: #8a8a8a;
    --text-dim: #878787;
    --border: #2D2D2D;
    --border-subtle: #1D1D1D;
    
    --success: #4ADE80;
    --info: #60A5FA;
    --danger: #F43F5E;
    --warning: #F0A830;
    
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;
}

body {
    font-family: var(--font-mono);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100%;
}

a {
    color: var(--brand-main);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--brand-accent);
}

a:focus-visible {
    outline: 2px solid var(--brand-main);
    outline-offset: 3px;
}

::selection {
    background: rgba(224,120,80,.3);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    scroll-snap-align: start;
}

/* Typography Utilities */
.text-brand { color: var(--brand-main); }
.text-muted { color: var(--text-muted); }
.font-heading { font-family: var(--font-heading); }
.font-mono { font-family: var(--font-mono); }

/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 36px;
    background: var(--brand-main);
    border: none;
    cursor: pointer;
    transition: background .2s;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--bg);
    letter-spacing: .5px;
}

.btn-primary:hover {
    background: var(--brand-accent);
    color: var(--bg);
}

.btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 28px;
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color .2s;
    font-size: 12px;
    color: var(--text-muted);
}

.btn-ghost:hover {
    border-color: var(--text-gray);
}

/* Pixel Divider */
.pixel-div {
    display: flex;
    width: 100%;
}

.pixel-div div {
    flex: 1;
    height: 4px;
}

/* Section Headers */
.sec-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-main);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.sec-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 5vw, 56px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 16px;
    max-width: 100%;
    overflow-wrap: break-word;
}

.sec-sub {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
    width: 100%;
}