/* Yediiklim Koç V6 — tasarım jetonları (katman 1)
   Tüm renk, boşluk, yarıçap, gölge ve hareket değerleri buradan gelir.
   Açık/koyu tema: <html data-theme="light|dark">; seçim yoksa sistem tercihi izlenir. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/v6/fonts/pjs-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/v6/fonts/pjs-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    color-scheme: light;

    /* Marka ham renkleri (yalnızca anlamsal jetonlar üzerinden kullanılır) */
    --brand-navy: #101b35;
    --brand-blue: #2563eb;
    --brand-purple: #7c3aed;
    --brand-red: #ef4444;

    /* Anlamsal renkler — açık tema */
    --bg: #f3f6fc;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --surface-sunken: #eaeff9;
    --border: #dfe5f1;
    --border-strong: #c7d0e3;
    --text: #172033;
    --text-muted: #56657e;
    --text-faint: #5d6c85;
    --primary: #2563eb;
    --primary-hover: #1d4fd0;
    --primary-contrast: #ffffff;
    --primary-soft: #e6eefe;
    --accent: #7c3aed;
    --accent-soft: #f0eafd;
    --success: #0b7f59;
    --success-soft: #e2f5ec;
    --warning: #915a07;
    --warning-soft: #fdf1d9;
    --danger: #c42d3a;
    --danger-soft: #fdebed;
    --focus: #2563eb;
    --scrim: #0a122655;

    /* Koyu yüzey (kendi başına koyu kalan alanlar: analiz sahnesi, giriş görseli) */
    --ink-surface: #101b35;
    --ink-surface-2: #17264a;
    --ink-text: #e8eefc;
    --ink-muted: #a6b4d3;

    /* Gölge */
    --shadow-1: 0 1px 2px #101b350d, 0 2px 8px -2px #101b3512;
    --shadow-2: 0 2px 4px #101b350a, 0 12px 28px -12px #101b3526;
    --shadow-3: 0 8px 16px -6px #101b3514, 0 28px 56px -20px #101b3538;

    /* Tipografi */
    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --fs-xs: .75rem;      /* 12 */
    --fs-sm: .8125rem;    /* 13 */
    --fs-base: .9375rem;  /* 15 */
    --fs-md: 1.0625rem;   /* 17 */
    --fs-lg: 1.25rem;     /* 20 */
    --fs-xl: 1.625rem;    /* 26 */
    --fs-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
    --lh-tight: 1.2;
    --lh-body: 1.6;

    /* Boşluk — 8px tabanlı (4px yarım adım) */
    --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;

    /* Yarıçap */
    --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

    /* Hareket */
    --ease: cubic-bezier(.2, .8, .2, 1);
    --t-fast: 150ms; --t-base: 200ms; --t-slow: 250ms;

    /* Yerleşim */
    --rail: 76px; --rail-open: 244px; --topbar: 64px; --dock: 68px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --content-max: 1180px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0a0f1f;
    --surface: #111a31;
    --surface-elevated: #17223e;
    --surface-sunken: #0d1429;
    --border: #232f50;
    --border-strong: #34436b;
    --text: #e8edf8;
    --text-muted: #a7b4cf;
    --text-faint: #8896b3;
    --primary: #6b97f5;
    --primary-hover: #8aaef8;
    --primary-contrast: #07122b;
    --primary-soft: #16264d;
    --accent: #b49cfa;
    --accent-soft: #231a45;
    --success: #4fd1a1;
    --success-soft: #0f2d26;
    --warning: #f2c36b;
    --warning-soft: #33260b;
    --danger: #ff8791;
    --danger-soft: #371219;
    --focus: #8aaef8;
    --scrim: #02060fb3;
    --ink-surface: #0d1530;
    --ink-surface-2: #14204a;
    --shadow-1: 0 1px 2px #00000040, 0 2px 8px -2px #00000040;
    --shadow-2: 0 2px 4px #00000040, 0 12px 28px -12px #00000080;
    --shadow-3: 0 8px 16px -6px #00000060, 0 28px 56px -20px #000000a0;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0a0f1f;
        --surface: #111a31;
        --surface-elevated: #17223e;
        --surface-sunken: #0d1429;
        --border: #232f50;
        --border-strong: #34436b;
        --text: #e8edf8;
        --text-muted: #a7b4cf;
        --text-faint: #8896b3;
        --primary: #6b97f5;
        --primary-hover: #8aaef8;
        --primary-contrast: #07122b;
        --primary-soft: #16264d;
        --accent: #b49cfa;
        --accent-soft: #231a45;
        --success: #4fd1a1;
        --success-soft: #0f2d26;
        --warning: #f2c36b;
        --warning-soft: #33260b;
        --danger: #ff8791;
        --danger-soft: #371219;
        --focus: #8aaef8;
        --scrim: #02060fb3;
        --ink-surface: #0d1530;
        --ink-surface-2: #14204a;
        --shadow-1: 0 1px 2px #00000040, 0 2px 8px -2px #00000040;
        --shadow-2: 0 2px 4px #00000040, 0 12px 28px -12px #00000080;
        --shadow-3: 0 8px 16px -6px #00000060, 0 28px 56px -20px #000000a0;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root { --t-fast: 0ms; --t-base: 0ms; --t-slow: 0ms; }
}
