/* ============================================
   Layer 0 — Koyu zemin üzerinde buz mavisi cam kutular
   ============================================ */

:root {
    --l0-glass: rgba(22, 24, 44, 0.72);
    --l0-glass-strong: rgba(30, 34, 58, 0.82);
    --l0-glass-tint: rgba(56, 189, 248, 0.14);
    --l0-glass-border: rgba(125, 211, 252, 0.45);
    --l0-glass-border-soft: rgba(255, 255, 255, 0.12);
    --l0-ice: #38bdf8;
    --l0-ice-bright: #7dd3fc;
    --l0-ice-muted: #94a3b8;
    --l0-text: #e8eaf5;
    --l0-text-soft: #b4b9d4;
}

/* Global koyu tema ile uyum; bu dosyada Layer 0 kutu/komponent görünümleri. */

/* İstatistik şeridi — uzay camı (content.css üzerine) */
body:has(.layer0-hero-banner) .layer-premium-stats-box {
    background: linear-gradient(145deg,
            rgba(8, 10, 22, 0.92) 0%,
            rgba(18, 16, 40, 0.9) 45%,
            rgba(12, 22, 42, 0.92) 100%) !important;
    border: 1px solid rgba(124, 156, 255, 0.22) !important;
    border-radius: 20px !important;
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(167, 139, 250, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
}

body:has(.layer0-hero-banner) .layer-premium-stats-box::before {
    height: 2px !important;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(56, 189, 248, 0.7) 25%,
            rgba(167, 139, 250, 0.85) 50%,
            rgba(56, 189, 248, 0.7) 75%,
            transparent 100%) !important;
}

body:has(.layer0-hero-banner) .layer-premium-stats-box::after {
    background:
        radial-gradient(ellipse 55% 40% at 15% 20%, rgba(124, 156, 255, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 45% at 88% 75%, rgba(167, 139, 250, 0.1), transparent 55%) !important;
}

body:has(.layer0-hero-banner) .layer-premium-stats-box:hover {
    border-color: rgba(167, 139, 250, 0.35) !important;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(124, 156, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body:has(.layer0-hero-banner) .layer-premium-stat-item {
    background: linear-gradient(160deg,
            rgba(22, 26, 48, 0.88) 0%,
            rgba(14, 16, 32, 0.92) 100%) !important;
    border: 1px solid rgba(124, 156, 255, 0.14) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body:has(.layer0-hero-banner) .layer-premium-stat-item:hover {
    background: linear-gradient(160deg,
            rgba(32, 36, 62, 0.95) 0%,
            rgba(20, 22, 44, 0.96) 100%) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(167, 139, 250, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body:has(.layer0-hero-banner) .layer-premium-stat-icon {
    background: linear-gradient(145deg,
            rgba(56, 189, 248, 0.15) 0%,
            rgba(99, 102, 241, 0.18) 100%) !important;
    border: 1px solid rgba(125, 211, 252, 0.28) !important;
    color: #c4d4ff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

body:has(.layer0-hero-banner) .layer-premium-stat-item:hover .layer-premium-stat-icon {
    background: linear-gradient(145deg,
            rgba(56, 189, 248, 0.28) 0%,
            rgba(167, 139, 250, 0.22) 100%) !important;
    border-color: rgba(196, 181, 253, 0.45) !important;
    color: #eef2ff !important;
    box-shadow: 0 6px 20px rgba(124, 156, 255, 0.2);
}

body:has(.layer0-hero-banner) .layer-premium-stat-number {
    background: linear-gradient(135deg, #e0e7ff 0%, #7dd3fc 45%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

body:has(.layer0-hero-banner) .layer-premium-stat-item:hover .layer-premium-stat-number {
    filter: brightness(1.08);
}

body:has(.layer0-hero-banner) .layer-premium-stat-label {
    color: rgba(180, 185, 212, 0.92) !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body:has(.layer0-hero-banner) .layer-premium-stat-item:hover .layer-premium-stat-label {
    color: #f1f5f9 !important;
}

/* ----- Hero konsolu — premium koyu terminal ----- */
.layer0-hero-banner .code-preview {
    background: linear-gradient(155deg,
            rgba(6, 8, 18, 0.96) 0%,
            rgba(16, 14, 36, 0.94) 42%,
            rgba(8, 18, 38, 0.96) 100%);
    border: 1px solid rgba(124, 156, 255, 0.28);
    border-radius: 18px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(167, 139, 250, 0.1),
        0 0 48px rgba(56, 189, 248, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(165%);
    -webkit-backdrop-filter: blur(20px) saturate(165%);
    overflow: hidden;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', 'Monaco', monospace;
}

.layer0-hero-banner .code-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, rgba(167, 139, 250, 0.07) 0%, transparent 38%),
        linear-gradient(315deg, rgba(56, 189, 248, 0.06) 0%, transparent 40%),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 24px,
            rgba(148, 163, 184, 0.04) 24px,
            rgba(148, 163, 184, 0.04) 25px);
    pointer-events: none;
    z-index: 0;
}

.layer0-hero-banner .code-preview:hover {
    border-color: rgba(196, 181, 253, 0.45);
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.6),
        0 0 56px rgba(124, 156, 255, 0.12),
        0 0 80px rgba(167, 139, 250, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.layer0-hero-banner .code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.1rem;
    background: linear-gradient(180deg,
            rgba(14, 16, 32, 0.98) 0%,
            rgba(10, 12, 26, 0.99) 100%);
    border-bottom: 1px solid rgba(124, 156, 255, 0.2);
    box-shadow: inset 0 -1px 0 rgba(167, 139, 250, 0.12);
    position: relative;
    z-index: 1;
}

.layer0-hero-banner .code-dots {
    display: flex;
    gap: 0.5rem;
}

.layer0-hero-banner .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.35);
}

.layer0-hero-banner .dot-red {
    background: radial-gradient(circle at 30% 30%, #fca5a5, #ef4444);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.45);
}

.layer0-hero-banner .dot-yellow {
    background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.layer0-hero-banner .dot-green {
    background: radial-gradient(circle at 30% 30%, #5eead4, #14b8a6);
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

.layer0-hero-banner .code-preview:hover .dot {
    transform: scale(1.06);
}

.layer0-hero-banner .code-title {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #a5f3fc 0%, #c4b5fd 50%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}

.layer0-hero-banner .code-content {
    padding: 1.35rem 1.5rem 1.5rem;
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.5) 0%, transparent 28%),
        radial-gradient(ellipse 120% 80% at 50% 100%, rgba(99, 102, 241, 0.08), transparent 55%),
        #050814;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
    min-height: 200px;
}

.layer0-hero-banner .hero-visual {
    position: relative;
}

.layer0-hero-banner .hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 118%;
    height: 118%;
    background:
        radial-gradient(circle at 40% 40%, rgba(167, 139, 250, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 60% 60%, rgba(56, 189, 248, 0.14) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    filter: blur(28px);
    opacity: 0.85;
}

.layer0-hero-banner .code-content pre {
    margin: 0;
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.85;
    color: #e2e8f0;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.06);
}

.layer0-hero-banner .code-content code {
    color: inherit;
    background: transparent;
}

.layer0-hero-banner .code-keyword {
    color: #c4b5fd;
    font-weight: 700;
    text-shadow: 0 0 18px rgba(167, 139, 250, 0.35);
}

.layer0-hero-banner .code-variable {
    color: #7dd3fc;
    font-weight: 600;
}

.layer0-hero-banner .code-string {
    color: #fde68a;
}

.layer0-hero-banner .code-function {
    color: #a5b4fc;
    font-weight: 600;
}

.layer0-hero-banner .code-method {
    color: #93c5fd;
}

.layer0-hero-banner .code-number {
    color: #f9a8d4;
    font-weight: 600;
}

.layer0-hero-banner .code-comment {
    color: rgba(148, 163, 184, 0.88);
    font-style: italic;
}

.layer0-hero-banner .code-content pre::after {
    content: '▍';
    color: #38bdf8;
    animation: l0CursorBlink 1s step-end infinite;
    margin-left: 3px;
    font-weight: 400;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

@keyframes l0CursorBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.25;
    }
}

.layer0-hero-banner .code-content::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.layer0-hero-banner .code-content::-webkit-scrollbar-track {
    background: rgba(15, 18, 36, 0.95);
    border-radius: 6px;
}

.layer0-hero-banner .code-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.55), rgba(56, 189, 248, 0.5));
    border-radius: 6px;
    border: 2px solid rgba(8, 10, 22, 0.9);
}

.layer0-hero-banner .code-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c4b5fd, #38bdf8);
}

.layer0-hero-banner .code-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 211, 252, 0.7) rgba(15, 18, 36, 0.95);
}

/* Hero rozet — cam */
.layer0-hero-banner .hero-badge {
    background: linear-gradient(135deg,
            var(--l0-glass) 0%,
            var(--l0-glass-strong) 100%);
    border: 1px solid var(--l0-glass-border);
    border-radius: 14px;
    box-shadow:
        0 6px 24px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

.layer0-hero-banner .hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.35), transparent);
}

.layer0-hero-banner .hero-badge .badge-icon-wrapper {
    background: rgba(224, 242, 254, 0.65);
    border: 1px solid rgba(125, 211, 252, 0.55);
}

.layer0-hero-banner .hero-badge .badge-text {
    color: var(--l0-ice);
    font-weight: 600;
}

.layer0-hero-banner .hero-badge .badge-text-secondary {
    color: var(--l0-ice-muted);
}

.layer0-hero-banner .hero-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.layer0-hero-banner .title-highlight {
    color: var(--l0-ice-bright);
    font-weight: 700;
}

/* CTA — cam düğmeler */
.layer0-hero-banner .hero-actions .btn {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 12px;
    letter-spacing: 0.02em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.layer0-hero-banner .hero-actions .btn-primary {
    background: linear-gradient(135deg,
            rgba(30, 58, 95, 0.9) 0%,
            rgba(14, 116, 144, 0.75) 100%);
    border: 1px solid var(--l0-glass-border);
    color: #e0f2fe;
    box-shadow:
        0 6px 20px rgba(14, 165, 233, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.layer0-hero-banner .hero-actions .btn-primary:hover {
    border-color: rgba(14, 165, 233, 0.75);
    color: #f0f9ff;
    box-shadow:
        0 10px 28px rgba(14, 165, 233, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.layer0-hero-banner .btn-primary .fa-arrow-right {
    transition: transform 0.35s ease;
    display: inline-block;
}

.layer0-hero-banner .btn-primary:hover .fa-arrow-right {
    transform: translateX(4px);
}

.layer0-hero-banner .hero-actions .btn-secondary {
    background: linear-gradient(135deg,
            rgba(22, 24, 44, 0.75) 0%,
            rgba(30, 34, 58, 0.88) 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--l0-text-soft);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.layer0-hero-banner .hero-actions .btn-secondary:hover {
    border-color: var(--l0-glass-border);
    color: var(--l0-ice);
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.12);
    transform: translateY(-2px);
}

/* Konu bölümü */
.layer0-topics-section {
    padding: var(--spacing-xxl) 0;
}

.layer0-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
    border-radius: 16px;
    background: linear-gradient(135deg,
            var(--l0-glass) 0%,
            rgba(36, 40, 64, 0.55) 100%);
    border: 1px solid var(--l0-glass-border);
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.layer0-section-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg,
            rgba(36, 40, 64, 0.9) 0%,
            rgba(30, 58, 95, 0.55) 100%);
    border: 1px solid var(--l0-glass-border);
    border-radius: 14px;
    color: var(--l0-ice);
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.layer0-section-title-wrapper {
    flex: 1;
}

.layer0-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--l0-text);
    margin-bottom: 0.5rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.layer0-section-description {
    font-size: 1rem;
    color: var(--l0-text-soft);
    line-height: 1.6;
    font-style: italic;
}

.layer0-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.layer0-topic-card {
    background: linear-gradient(145deg,
            var(--l0-glass) 0%,
            rgba(36, 40, 64, 0.78) 45%,
            var(--l0-glass-tint) 100%);
    border: 1px solid var(--l0-glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.layer0-topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.45), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.layer0-topic-card:hover {
    border-color: rgba(14, 165, 233, 0.65);
    transform: translateY(-4px);
    box-shadow:
        0 14px 40px rgba(14, 165, 233, 0.14),
        inset 0 1px 0 #fff;
}

.layer0-topic-card:hover::before {
    transform: scaleX(1);
}

.layer0-topic-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 242, 254, 0.75);
    border: 1px solid rgba(125, 211, 252, 0.55);
    border-radius: 12px;
    color: var(--l0-ice);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.layer0-topic-card:hover .layer0-topic-icon {
    background: rgba(186, 230, 253, 0.85);
    border-color: rgba(14, 165, 233, 0.55);
    color: #0369a1;
}

.layer0-topic-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--l0-text);
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.layer0-topic-description {
    font-size: 0.9375rem;
    color: var(--l0-text-soft);
    line-height: 1.5;
    margin: 0;
}

/* Sabit katman rozeti — cam */
.layer0-badge-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: linear-gradient(135deg,
            var(--l0-glass) 0%,
            var(--l0-glass-strong) 100%);
    border: 1px solid var(--l0-glass-border);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--l0-ice);
    letter-spacing: 0.03em;
    box-shadow:
        0 6px 22px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: layer0BadgeFadeIn 0.6s ease-out;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.layer0-badge-content i {
    font-size: 0.875rem;
    color: var(--l0-ice-bright);
}

.layer0-badge-content:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px rgba(14, 165, 233, 0.15),
        inset 0 1px 0 #fff;
    border-color: rgba(14, 165, 233, 0.65);
    color: #0369a1;
}

.layer0-badge-content:hover i {
    color: #0284c7;
}

@keyframes layer0BadgeFadeIn {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Üst bölüm başlığı (features-header) — zemin üstü okunurluk */
body:has(.layer0-hero-banner) .layer0-topics-section .features-title,
body:has(.layer0-hero-banner) .layer0-topics-section .features-title-line {
    color: var(--l0-text);
}

body:has(.layer0-hero-banner) .layer0-topics-section .features-title-highlight {
    color: var(--l0-ice-bright);
}

body:has(.layer0-hero-banner) .layer0-topics-section .features-subtitle {
    color: var(--l0-text-soft);
}

body:has(.layer0-hero-banner) .layer0-hero-banner .hero-description {
    color: var(--l0-text-soft);
}

/* ----- Katman 0 index · premium bölümler (prologue, derinlik, köprü) ----- */
.l0-premium-prologue,
.l0-premium-depth {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    overflow: hidden;
}

.l0-premium-prologue::before,
.l0-premium-depth::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto;
    height: 60%;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(56, 189, 248, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.l0-premium-container {
    position: relative;
    z-index: 1;
}

.l0-premium-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--l0-ice-bright);
    margin: 0 0 1rem;
}

.l0-premium-eyebrow-muted {
    color: rgba(186, 230, 253, 0.75);
}

.l0-premium-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #a78bfa);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}

.l0-premium-heading {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--l0-text);
    margin: 0 0 1.25rem;
    max-width: 22ch;
}

.l0-premium-heading-tight {
    max-width: 26ch;
}

.l0-premium-heading-accent {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 35%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.l0-premium-lead {
    font-size: clamp(1rem, 1.35vw, 1.1rem);
    line-height: 1.75;
    color: var(--l0-text-soft);
    margin: 0 0 2.25rem;
    max-width: 62rem;
}

.l0-premium-lead-narrow {
    max-width: 52rem;
}

.l0-premium-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.l0-premium-pillar {
    padding: 1.5rem 1.35rem;
    border-radius: 16px;
    background: linear-gradient(155deg, var(--l0-glass) 0%, rgba(20, 24, 42, 0.9) 100%);
    border: 1px solid var(--l0-glass-border);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.l0-premium-pillar:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(167, 139, 250, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.l0-premium-pillar-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #e0f2fe;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(167, 139, 250, 0.2));
    border: 1px solid rgba(125, 211, 252, 0.35);
}

.l0-premium-pillar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--l0-text);
    margin: 0 0 0.5rem;
}

.l0-premium-pillar-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--l0-text-soft);
    margin: 0;
}

.l0-depth-intro {
    margin-bottom: 2rem;
}

.l0-spec-frame {
    margin-bottom: 2.75rem;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(167, 139, 250, 0.25));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.l0-spec-scroll {
    overflow-x: auto;
    border-radius: 17px;
    -webkit-overflow-scrolling: touch;
}

.l0-spec-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: rgba(10, 12, 24, 0.92);
    color: var(--l0-text-soft);
}

.l0-spec-table thead th {
    text-align: left;
    padding: 1rem 1.1rem;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(224, 242, 254, 0.92);
    background: rgba(22, 28, 48, 0.98);
    border-bottom: 1px solid rgba(125, 211, 252, 0.2);
}

.l0-spec-table tbody td {
    padding: 1rem 1.1rem;
    vertical-align: top;
    line-height: 1.55;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.l0-spec-table tbody tr:hover td {
    background: rgba(56, 189, 248, 0.04);
}

.l0-spec-table tbody tr:last-child td {
    border-bottom: none;
}

.l0-spec-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ecfeff;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(125, 211, 252, 0.35);
    white-space: nowrap;
}

.l0-bridge-header {
    margin-bottom: 1.5rem;
}

/* Soyutlama merdiveni ile aynı premium başlık yapısı (eyebrow + gradient başlık + lead) */
.l0-bridge-header-premium {
    margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid rgba(125, 211, 252, 0.12);
}

.l0-bridge-intro {
    margin-bottom: 0;
}

.l0-bridge-header-premium .l0-premium-heading {
    margin-bottom: 1rem;
}

.l0-bridge-lead-tight {
    margin-bottom: 1.35rem;
}

.l0-bridge-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--l0-text);
    margin: 0 0 0.5rem;
}

.l0-bridge-lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--l0-text-soft);
    max-width: 48rem;
}

.l0-bridge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.l0-bridge-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.35rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(28, 32, 52, 0.95) 0%, rgba(14, 16, 30, 0.92) 100%);
    border: 1px solid rgba(124, 156, 255, 0.18);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.l0-bridge-card:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.l0-bridge-card-kicker {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(186, 230, 253, 0.85);
}

.l0-bridge-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--l0-text);
}

.l0-bridge-card-desc {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--l0-text-soft);
}

.l0-bridge-card-meta {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(199, 210, 254, 0.75);
}

@media (max-width: 900px) {
    .l0-premium-pillars {
        grid-template-columns: 1fr;
    }

    .l0-bridge-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .layer0-section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .layer0-section-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .layer0-section-title {
        font-size: 1.5rem;
    }

    .layer0-topics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .layer0-topic-card {
        padding: 1.25rem;
    }

    .layer0-hero-banner .code-content {
        padding: 1rem;
    }

    .layer0-hero-banner .code-content pre {
        font-size: 0.8rem;
    }

    .layer0-badge-content {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
        border-radius: 10px;
    }

    .layer0-badge-content i {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .layer0-hero-banner .code-content {
        padding: 0.75rem;
    }

    .layer0-hero-banner .code-content pre {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .layer0-hero-banner .code-title {
        font-size: 0.75rem;
    }
}
