/* =============================================================
   Karbontex · style.css
   :root tokens · base typography · reset · scrollbar
   Renkler: logo (mavi/cyan/derin lacivert) + landing video first frame
   tonal kalibre. Hex literal yasak — yeni renk gerekirse buraya ekle.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* ===== Brand (mavi merkezli — logodan kalibre) ===== */
    --brand-primary: #1B7FFF;
    --brand-primary-dark: #0F3FA8;
    --brand-primary-soft: rgba(27, 127, 255, 0.10);
    --brand-cyan: #3FCDFF;
    --brand-cyan-soft: rgba(63, 205, 255, 0.14);
    --brand-deep: #0A1F4A;
    --brand-deep-2: #0E2A5F;    

    /* ===== Aksent (sürdürülebilirlik yeşili — sınırlı kullan) ===== */
    --accent-green: #2CC68F;
    --accent-green-dark: #1F9C70;
    --accent-green-soft: #DEF5E8;

    /* ===== Yüzey ===== */
    --bg: #F5F6F8;
    --bg-2: #EEF1F5;
    --bg-soft: #FFFFFF;
    --bg-deep: #0A1F4A;
    --bg-deep-2: #061233;

    /* Navbar solid — title text'in görsel paritesi için --ink'ten 1 tık daha derin */
    --nav-bg: #060D1E;

    /* ===== Mürekkep (text) ===== */
    --ink: #0E1B33;
    --ink-soft: #4A5878;
    --ink-mute: #8895AE;
    --ink-fade: #B7C0D0;
    --ink-on-dark: #F5F7FA;
    --ink-mute-on-dark: rgba(245, 247, 250, 0.65);
    --ink-fade-on-dark: rgba(245, 247, 250, 0.35);

    /* ===== Çizgi ===== */
    --line: rgba(14, 27, 51, 0.08);
    --line-strong: rgba(14, 27, 51, 0.14);
    --line-on-dark: rgba(245, 247, 250, 0.10);
    --line-on-dark-strong: rgba(245, 247, 250, 0.18);

    /* ===== State ===== */
    --success: #2CC68F;
    --warn: #F59E0B;
    --danger: #EF4444;

    /* ===== Shadow ===== */
    --shadow-sm: 0 1px 2px rgba(14, 27, 51, 0.04);
    --shadow-md: 0 2px 12px rgba(14, 27, 51, 0.06);
    --shadow-lg: 0 6px 24px rgba(14, 27, 51, 0.08);
    --shadow-xl: 0 16px 40px -12px rgba(14, 27, 51, 0.16);
    --shadow-dashboard: 0 30px 80px -20px rgba(14, 27, 51, 0.20), 0 0 0 1px rgba(14, 27, 51, 0.06);
    --shadow-glow: 0 0 0 1px rgba(27, 127, 255, 0.18), 0 12px 32px -8px rgba(27, 127, 255, 0.28);

    /* ===== Tipografi ===== */
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* ===== Easing ===== */
    --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ===== Layout ===== */
    --container-max: 1340px;
    --nav-max: 1340px;
    --section-pad-y: 100px;
    --section-pad-y-sm: 60px;
    --section-pad-x: 20px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    background-color: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    background-color: transparent;
    font-family: inherit;
    color: inherit;
}

button:focus,
button:active,
button:hover {
    outline: none;
}

ul,
ol,
li {
    list-style: none;
    padding: 0;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ===== Tipografi ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 { font-size: 3rem; letter-spacing: -0.025em; }
h2 { font-size: 2.25rem; letter-spacing: -0.022em; }
h3 { font-size: 1.5rem; letter-spacing: -0.014em; }
h4 { font-size: 1.125rem; letter-spacing: -0.008em; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    color: var(--ink-soft);
    line-height: 1.7;
}

::selection {
    background: var(--brand-primary);
    color: #fff;
}

/* Kaybet — global default `<i>` davranışı (CLAUDE.md gereği her zaman font-size verilmeli) */
i {
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--brand-primary);
    border-radius: 8px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--brand-primary-dark);
}

::-webkit-scrollbar-track {
    background-color: var(--bg);
}

/* ===== Section base ===== */
section {
    position: relative;
    display: block;
}

/* ===== Yardımcı sınıflar ===== */
/* İmza accent — heading içindeki vurgu kelimesi.
   Space Grotesk 700: bold, geometrik, dikkat çekici. Italic değil. */
.serif-italic,
.title-italic {
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--brand-primary);
}

/* Eyebrow — pure typography, no dot slop. Format: "MODÜLLER ─ 5 PLATFORM" */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-mute);
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.eyebrow.is-on-dark { color: var(--brand-cyan); }
.eyebrow.is-on-dark::before { background: var(--brand-cyan); opacity: 0.7; }

.eyebrow.is-center { justify-content: center; }
.eyebrow.is-center::before,
.eyebrow.is-center::after {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.caption {
    font-size: 0.8125rem;
    color: var(--ink-mute);
    letter-spacing: 0.02em;
}

.text-on-dark { color: var(--ink-on-dark); }
.text-on-dark p,
.text-on-dark .lead { color: var(--ink-mute-on-dark); }

/* Container shorthand */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
}

/* ===== Mobil ===== */
@media (max-width: 1024px) {
    html { overflow-x: hidden; }
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    :root {
        --section-pad-y: 64px;
        --section-pad-y-sm: 40px;
        --section-pad-x: 16px;
    }

    /* InvertedRadius mobil yedek (V2 zaten devre dışı bırakır) */
    [data-inverted-corner] { overflow: hidden !important; }
    [data-inverted-corner] [data-corner]:not(.quick-contact-corner):not(.footer-brand-social-inverted) {
        display: none !important;
    }
    [data-shape] {
        clip-path: none !important;
        -webkit-clip-path: none !important;
    }
}

@media (max-width: 480px) {
    :root {
        --section-pad-y: 56px;
        --section-pad-y-sm: 36px;
        --section-pad-x: 14px;
    }
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }

    /* Prevent images/videos from overflowing parent on small screens */
    img, video, iframe, svg { max-width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
