/**
 * Katman 1 ana sayfa — üç lens zihinsel modeli + örnek bandı + journey CTA
 * Katman 0 makine diyagramından farklı: yatay ray + üç bağlantılı panel (JS diline özgü)
 */

/* —— Features başlığı (sadece layer1 index) —— */
.layer1-index-page .l1-index-features {
    position: relative;
}

.layer1-index-page .l1-index-features .features-header {
    text-align: left;
    max-width: 40rem;
    margin-left: 0;
    margin-right: auto;
}

.layer1-index-page .l1-features-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(186, 230, 253, 0.8);
    margin: 0 0 0.75rem;
}

.layer1-index-page .l1-features-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f472b6);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.55);
}

.layer1-index-page .l1-index-features .features-title {
    justify-content: flex-start;
}

.layer1-index-page .l1-index-features .features-subtitle {
    text-align: left;
    max-width: 42rem;
}

/* —— Üç lens kök —— */
.l1mm-root {
    position: relative;
    margin: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 4vw, 3.5rem);
    padding: clamp(1.35rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 22px;
    background: linear-gradient(168deg,
            rgba(12, 10, 28, 0.94) 0%,
            rgba(8, 12, 28, 0.92) 42%,
            rgba(18, 8, 32, 0.93) 100%);
    border: 1px solid rgba(196, 181, 253, 0.2);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(251, 191, 36, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.l1mm-root::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 80% 0%, rgba(251, 191, 36, 0.1), transparent 55%),
        radial-gradient(ellipse 55% 40% at 15% 100%, rgba(56, 189, 248, 0.1), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.l1mm-inner {
    position: relative;
    z-index: 1;
}

.l1mm-head {
    margin-bottom: 1.5rem;
    max-width: 48rem;
}

.l1mm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(253, 224, 200, 0.88);
    margin: 0 0 0.45rem;
}

.l1mm-kicker i {
    color: #fcd34d;
    font-size: 0.8rem;
}

.l1mm-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: #f8fafc;
    margin: 0 0 0.5rem;
}

.l1mm-title-accent {
    background: linear-gradient(105deg, #fde68a 0%, #f472b6 45%, #a78bfa 85%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.l1mm-desc {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.65;
    color: rgba(200, 205, 230, 0.95);
    max-width: 46rem;
}

/* Yatay “çalışma rayı” */
.l1mm-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 1.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(6, 8, 18, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.l1mm-rail-node {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0f172a;
    background: linear-gradient(145deg, #fde68a, #fb923c);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
}

.l1mm-rail-node:nth-child(3) {
    background: linear-gradient(145deg, #7dd3fc, #38bdf8);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.l1mm-rail-node:nth-child(5) {
    background: linear-gradient(145deg, #e9d5ff, #c084fc);
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.35);
}

.l1mm-rail-line {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg,
            rgba(251, 191, 36, 0.5),
            rgba(56, 189, 248, 0.45),
            rgba(192, 132, 252, 0.5));
    opacity: 0.85;
    min-width: 12px;
}

/* Üç lens panel */
.l1mm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.15rem);
}

.l1mm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.15rem 1.1rem 1.25rem;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    background: linear-gradient(155deg,
            rgba(22, 20, 42, 0.92) 0%,
            rgba(8, 10, 22, 0.94) 100%);
    border: 1px solid rgba(124, 156, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.22s ease;
}

.l1mm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    opacity: 0.95;
}

.l1mm-card--warm::before {
    background: linear-gradient(90deg, #fbbf24, #f97316);
}

.l1mm-card--ice::before {
    background: linear-gradient(90deg, #38bdf8, #6366f1);
}

.l1mm-card--violet::before {
    background: linear-gradient(90deg, #a78bfa, #e879f9);
}

.l1mm-card:hover,
.l1mm-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(253, 224, 200, 0.35);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(251, 191, 36, 0.08);
    outline: none;
}

.l1mm-card--ice:hover,
.l1mm-card--ice:focus-visible {
    border-color: rgba(125, 211, 252, 0.4);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(56, 189, 248, 0.1);
}

.l1mm-card--violet:hover,
.l1mm-card--violet:focus-visible {
    border-color: rgba(196, 181, 253, 0.45);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(167, 139, 250, 0.12);
}

.l1mm-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.05rem;
    color: #fffbeb;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.25), rgba(249, 115, 22, 0.2));
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.l1mm-card--ice .l1mm-card-icon {
    color: #e0f2fe;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.22));
    border-color: rgba(125, 211, 252, 0.35);
}

.l1mm-card--violet .l1mm-card-icon {
    color: #faf5ff;
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.25), rgba(232, 121, 249, 0.18));
    border-color: rgba(196, 181, 253, 0.35);
}

.l1mm-card-step {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(167, 180, 220, 0.9);
}

.l1mm-card-title {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin: 0;
    line-height: 1.25;
}

.l1mm-card-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: rgba(186, 192, 220, 0.95);
    flex: 1;
}

.l1mm-chip {
    display: inline-block;
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 600;
    color: #fef3c7;
    background: rgba(4, 6, 14, 0.75);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.l1mm-card--ice .l1mm-chip {
    color: #bae6fd;
    border-color: rgba(56, 189, 248, 0.25);
}

.l1mm-card--violet .l1mm-chip {
    color: #f5d0fe;
    border-color: rgba(232, 121, 249, 0.25);
}

.l1mm-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fde68a;
}

.l1mm-card--ice .l1mm-card-cta {
    color: #7dd3fc;
}

.l1mm-card--violet .l1mm-card-cta {
    color: #e9d5ff;
}

.l1mm-card-cta i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.l1mm-card:hover .l1mm-card-cta i,
.l1mm-card:focus-visible .l1mm-card-cta i {
    transform: translateX(4px);
}

/* —— Örnek bandı (#examples) —— */
.l1-examples-root {
    margin: clamp(2rem, 4vw, 3rem) 0;
    padding: clamp(1.5rem, 3vw, 2.25rem) 0;
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, transparent 100%);
}

.l1-examples-inner {
    position: relative;
    z-index: 1;
}

.l1-examples-head {
    margin-bottom: 1.35rem;
    max-width: 40rem;
}

.l1-examples-title {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f1f5f9;
    margin: 0 0 0.4rem;
}

.l1-examples-title span {
    background: linear-gradient(90deg, #7dd3fc, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.l1-examples-lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(180, 188, 218, 0.95);
}

.l1-examples-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.l1-example-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(160deg, rgba(20, 22, 40, 0.95), rgba(8, 10, 20, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.l1-example-card:hover,
.l1-example-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    outline: none;
}

.l1-example-card pre {
    margin: 0;
    padding: 0.85rem 1rem;
    font-size: 0.72rem;
    line-height: 1.5;
    background: rgba(4, 6, 14, 0.9);
    border-bottom: 1px solid rgba(71, 85, 105, 0.35);
    color: #cbd5e1;
    overflow-x: auto;
}

.l1-example-card-body {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.l1-example-card-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(165, 180, 252, 0.9);
}

.l1-example-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

.l1-example-card-meta {
    margin-top: auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: #93c5fd;
}

/* Journey — Katman 2 CTA */
.layer1-index-page .journey-future-block {
    position: relative;
}

.layer1-index-page .journey-future-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    color: #0f172a;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 8px 28px rgba(251, 191, 36, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.layer1-index-page .journey-future-cta:hover,
.layer1-index-page .journey-future-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(251, 191, 36, 0.28);
    outline: none;
}

.layer1-index-page .journey-future-cta i {
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .l1mm-grid {
        grid-template-columns: 1fr;
    }

    .l1mm-rail {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 14px;
    }

    .l1mm-rail-line {
        display: none;
    }

    .l1-examples-grid {
        grid-template-columns: 1fr;
    }
}