/* ==========================================================================
   Omnitral — temel katman
   Token'lar, tipografi, butonlar, marka. Sayfa düzeni glass.css içinde.
   Siyah zemin · neon beyaz metin · tek vurgu.
   ========================================================================== */

:root {
    --bg: #000000;
    --surface: #0a0a0a;
    --surface-2: #111111;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.22);
    --text: #ffffff;
    --muted: #a3a3a3;
    --muted-2: #8a8a8a;
    --muted-3: #6f6f6f;
    --glow: 0 0 28px rgba(255, 255, 255, 0.38);
    --glow-soft: 0 0 60px rgba(255, 255, 255, 0.12);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;

    --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

    --container: 1160px;
    --gutter: clamp(20px, 4vw, 40px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #000;
    color-scheme: dark;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

::selection {
    background: #fff;
    color: #000;
}

:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 12px 18px;
    background: #fff;
    color: #000;
    font-weight: 600;
    z-index: 100;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}

/* ---------- Tipografi ---------- */

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.08;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.9rem, 8.2vw, 6rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
    font-weight: 600;
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

.lede {
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.6;
    max-width: 64ch;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.kicker::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--glow);
}

.mono {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--muted-2);
}

/* Ekran okuyucuya özel */
.g-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------- Butonlar ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 550;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: #e9e9e9;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
    height: 36px;
    padding: 0 15px;
    font-size: 13px;
}

.btn[aria-disabled="true"],
.btn:disabled {
    opacity: 0.55;
    pointer-events: none;
}

/* ---------- Marka ---------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #fff;
    color: #000;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
}

/* ---------- Dil geçişi sırasında kısa gizleme ----------
   Yalnızca kayıtlı dil varsayılandan farklıysa eklenir (inline script).
   JavaScript kapalıyken sınıf eklenmez, içerik her zaman görünür. */

html.lang-swap body {
    opacity: 0;
}

/* ---------- Gömülü sahnelerde animasyon duraklatma ----------
   Ana sayfa görünürlük sinyali gönderir (assets/embed.js). */

html[data-visible="0"] *,
html[data-visible="0"] *::before,
html[data-visible="0"] *::after {
    animation-play-state: paused !important;
}

/* ---------- Hareket azaltma ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
