/* ============================================================
   ProEmbeddedSystems — Homepage (first design language)
   ============================================================ */

.pes-home {
    --pes-navy-950: #06101f;
    --pes-navy-900: #0a1628;
    --pes-navy-800: #0f2440;
    --pes-navy-700: #16325a;
    --pes-steel: #3d7ab5;
    --pes-sky: #6eb6ef;
    --pes-ice: #e8f1f8;
    --pes-snow: #f7fafc;
    --pes-muted: #5a6f86;
    --pes-line: rgba(15, 36, 64, 0.12);
}

/* ---------- Hero ---------- */
.pes-hero {
    position: relative;
    min-height: min(88svh, 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #06101f;
    -webkit-user-select: none;
    user-select: none;
}
.pes-hero a,
.pes-hero button {
    -webkit-user-select: none;
    user-select: none;
}

.pes-hero-aurora {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 45% 40% at 20% 30%, rgba(61, 122, 181, 0.35), transparent 60%),
        radial-gradient(ellipse 40% 45% at 78% 40%, rgba(110, 182, 239, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 35% at 50% 100%, rgba(30, 68, 120, 0.45), transparent 60%),
        linear-gradient(155deg, #06101f 0%, #0a1628 48%, #0f2440 100%);
    animation: pesAurora 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pesAurora {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to { transform: scale(1.06) translate3d(-1.5%, 1%, 0); }
}

.pes-hero-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(110, 182, 239, 0.07) 48%,
        transparent 62%
    );
    background-size: 220% 100%;
    animation: pesScan 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pesScan {
    0%, 100% { background-position: 100% 0; opacity: 0.35; }
    50% { background-position: 0% 0; opacity: 0.85; }
}

.pes-hero-stage {
    position: relative;
    z-index: 2;
    width: min(100% - 48px, 1140px);
    margin: 0 auto;
    padding: 72px 0 100px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.pes-hero-copy {
    max-width: 34rem;
}

.pes-hero-brand {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.pes-hero-wordmark {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pes-hero-wordmark strong {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
}
.pes-hero-wordmark small {
    font-family: var(--font-body);
    font-size: clamp(0.52rem, 1vw, 0.62rem);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}
.pes-hero-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    overflow: hidden;
    background: transparent;
    box-shadow:
        0 0 0 1px rgba(110, 182, 239, 0.22),
        0 4px 12px rgba(6, 16, 31, 0.35);
    flex-shrink: 0;
}

.pes-hero-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pes-hero-title {
    margin: 28px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: rgba(255, 255, 255, 0.96);
    text-wrap: balance;
}

.pes-hero-lead {
    margin: 18px 0 0;
    max-width: 30rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
}

.pes-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.pes-hero-visual {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    width: 100%;
}

.pes-board {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 420 / 360;
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(15, 36, 64, 0.95) 0%, rgba(10, 22, 40, 0.98) 100%);
    border: 1px solid rgba(110, 182, 239, 0.22);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
    animation: pesFloat 6s ease-in-out infinite;
}

@keyframes pesFloat {
    0%, 100% { transform: perspective(900px) rotateY(-8deg) rotateX(4deg) translateY(0); }
    50% { transform: perspective(900px) rotateY(-5deg) rotateX(2deg) translateY(-10px); }
}

.pes-board__glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 55% 40%, rgba(110, 182, 239, 0.28), transparent 45%);
    pointer-events: none;
}

.pes-board__traces {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pes-t {
    stroke: rgba(110, 182, 239, 0.55);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 480;
    stroke-dashoffset: 480;
    animation: pesTrace 3.2s ease forwards;
}
.pes-t2 { animation-delay: 0.25s; stroke: rgba(61, 122, 181, 0.7); }
.pes-t3 { animation-delay: 0.45s; }
.pes-t-pwm {
    stroke: rgba(110, 182, 239, 0.35);
    stroke-width: 2.4;
    animation:
        pesTrace 2.2s ease forwards,
        pesPwmOn 0.35s ease 5.4s forwards,
        pesBusPulse 0.55s ease-in-out infinite 5.8s;
}

@keyframes pesTrace {
    to { stroke-dashoffset: 0; }
}

@keyframes pesBusPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

@keyframes pesPwmOn {
    to { stroke: rgba(110, 182, 239, 1); stroke-width: 3; }
}

.pes-pad {
    fill: #6eb6ef;
    opacity: 0.35;
    animation: pesPad 2.4s ease-in-out infinite;
}
.pes-pad:nth-child(odd) { animation-delay: 0.4s; }

@keyframes pesPad {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}

.pes-chip {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: 110px;
    z-index: 2;
}

.pes-chip__body {
    position: relative;
    z-index: 1;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    background: linear-gradient(180deg, #16325a 0%, #0a1628 100%);
    border: 1px solid rgba(110, 182, 239, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.pes-chip__body strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.pes-chip__body em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-family: ui-monospace, monospace;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: var(--pes-sky);
}

.pes-chip__pin {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6eb6ef, transparent);
    transform: translateY(-50%);
}
.pes-chip__pin--l { left: -28px; }
.pes-chip__pin--r { right: -28px; }

/* Memory chips */
.pes-mem {
    position: absolute;
    z-index: 2;
    min-width: 72px;
    border-radius: 10px;
    padding: 8px 10px 10px;
    background: rgba(6, 16, 31, 0.82);
    border: 1px solid rgba(110, 182, 239, 0.28);
    backdrop-filter: blur(6px);
    font-family: ui-monospace, monospace;
}

.pes-mem span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #e8f1f8;
    margin-bottom: 6px;
}

.pes-mem i {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(110, 182, 239, 0.2);
    margin-top: 3px;
    overflow: hidden;
    position: relative;
}

.pes-mem i::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    background: #6eb6ef;
    border-radius: 2px;
    animation: pesMemFill 2.4s ease-in-out infinite;
}

.pes-mem i:nth-child(2)::after { animation-delay: 0.15s; width: 70%; }
.pes-mem i:nth-child(3)::after { animation-delay: 0.35s; width: 45%; }
.pes-mem i:nth-child(4)::after { animation-delay: 0.55s; width: 85%; }
.pes-mem i:nth-child(5)::after { animation-delay: 0.75s; width: 55%; }

@keyframes pesMemFill {
    0%, 100% { transform: translateX(-10%); opacity: 0.55; }
    50% { transform: translateX(120%); opacity: 1; }
}

.pes-mem--rom {
    left: 12px;
    top: 28px;
    animation: pesMemPop 0.6s ease 0.3s both;
}
.pes-mem--ram {
    left: 12px;
    top: 108px;
    bottom: auto;
    animation: pesMemPop 0.6s ease 0.55s both;
}
.pes-mem--flash {
    left: 12px;
    top: 198px;
    bottom: auto;
    right: auto;
    animation: pesMemPop 0.6s ease 0.8s both;
}

@keyframes pesMemPop {
    from { opacity: 0; transform: scale(0.9) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Motor — spins after Motor_Start() finishes typing (~5.6s) */
.pes-motor {
    position: absolute;
    right: 16px;
    top: 22px;
    transform: none;
    width: 84px;
    height: 100px;
    z-index: 3;
    display: grid;
    place-items: center;
}

.pes-motor__rotor {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #16325a 0 28%, transparent 29%),
        conic-gradient(from 0deg, #0a1628, #3d7ab5, #0a1628, #6eb6ef, #0a1628);
    border: 2px solid rgba(110, 182, 239, 0.45);
    box-shadow: 0 0 0 6px rgba(61, 122, 181, 0.12);
    filter: grayscale(0.45);
    opacity: 0.8;
    animation:
        pesMotorWake 0.35s ease 5.55s forwards,
        pesMotorSpin 0.85s linear infinite 5.55s;
}

@keyframes pesMotorWake {
    to {
        filter: none;
        opacity: 1;
        box-shadow:
            0 0 0 6px rgba(61, 122, 181, 0.2),
            0 0 28px rgba(110, 182, 239, 0.35);
    }
}

@keyframes pesMotorSpin {
    to { transform: rotate(360deg); }
}

.pes-motor__blade {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 28px;
    margin: -28px 0 0 -5px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #6eb6ef, #1e4478);
    transform-origin: 50% 28px;
}
.pes-motor__blade:nth-child(1) { transform: rotate(0deg); }
.pes-motor__blade:nth-child(2) { transform: rotate(120deg); }
.pes-motor__blade:nth-child(3) { transform: rotate(240deg); }

.pes-motor__hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    background: #e8f1f8;
    box-shadow: inset 0 0 0 3px #0a1628;
}

.pes-motor__tag {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    font-style: normal;
    font-family: ui-monospace, monospace;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    color: rgba(232, 241, 248, 0.55);
}

.pes-motor__status {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    font-family: ui-monospace, monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    height: 1em;
}

.pes-motor__status i,
.pes-motor__status b {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    font-style: normal;
    font-weight: 700;
}

.pes-motor__status i {
    color: rgba(232, 241, 248, 0.4);
    animation: pesFadeOut 0.25s ease 5.55s forwards;
}

.pes-motor__status b {
    color: #6eb6ef;
    opacity: 0;
    text-shadow: 0 0 12px rgba(110, 182, 239, 0.55);
    animation: pesFadeIn 0.25s ease 5.55s forwards;
}

@keyframes pesFadeOut {
    to { opacity: 0; }
}
@keyframes pesFadeIn {
    to { opacity: 1; }
}

/* Typing code pane — bottom strip, away from motor (top-right) */
.pes-codepane {
    position: absolute;
    left: 96px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(6, 16, 31, 0.92);
    border: 1px solid rgba(110, 182, 239, 0.22);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    z-index: 2;
    animation: pesMemPop 0.65s ease 0.9s both;
}

.pes-codepane__bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 22, 40, 0.9);
}

.pes-codepane__bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: block;
}
.pes-codepane__bar i:nth-child(1) { background: #ff5f57; }
.pes-codepane__bar i:nth-child(2) { background: #febc2e; }
.pes-codepane__bar i:nth-child(3) { background: #28c840; }

.pes-codepane__bar em {
    margin-left: 6px;
    font-style: normal;
    font-family: ui-monospace, monospace;
    font-size: 0.62rem;
    color: rgba(232, 241, 248, 0.55);
}

.pes-codepane__type {
    margin: 0;
    padding: 10px 12px 12px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.62rem;
    line-height: 1.55;
    color: #9ec9ef;
    white-space: pre;
    overflow: hidden;
}

.pes-codepane__type span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    border-right: 1px solid transparent;
    animation: pesType 2.8s steps(22, end) forwards;
}

.pes-codepane__type .l1 { animation-delay: 1.1s; color: #6eb6ef; }
.pes-codepane__type .l2 { animation-delay: 1.9s; color: #c7dff5; }
.pes-codepane__type .l3 { animation-delay: 2.8s; color: #e8f1f8; }
.pes-codepane__type .l4 { animation-delay: 3.7s; color: #6eb6ef; }
.pes-codepane__type .l5 { animation-delay: 4.6s; color: #c7dff5; }

@keyframes pesType {
    0% { width: 0; border-right-color: #6eb6ef; }
    90% { border-right-color: #6eb6ef; }
    100% { width: 100%; border-right-color: transparent; }
}

@media (max-width: 900px) {
    .pes-hero {
        min-height: auto;
    }
    .pes-hero-stage {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 32px 0 40px;
        width: min(100% - 24px, 1140px);
    }
    .pes-hero-visual {
        min-height: 0;
        order: -1;
    }
    .pes-board {
        width: min(100%, 380px);
        border-radius: 22px;
        transform: none;
        animation: pesFloatMobile 5.5s ease-in-out infinite;
    }
    @keyframes pesFloatMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
    }
    .pes-hero-brand {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
        gap: 10px;
    }
    .pes-hero-mark {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .pes-hero-title {
        margin-top: 18px;
        font-size: clamp(1.55rem, 6.5vw, 2.2rem);
    }
    .pes-hero-lead {
        font-size: 0.98rem;
    }
    .pes-hero-actions {
        width: 100%;
    }
    .pes-hero-actions .pes-btn {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 46px;
    }
    .pes-chip { width: 96px; }
    .pes-chip__body { padding: 12px 8px; }
    .pes-chip__body strong { font-size: 1.05rem; }
    .pes-mem {
        min-width: 58px;
        padding: 6px 8px 8px;
        transform: scale(0.92);
    }
    .pes-mem span { font-size: 0.6rem; margin-bottom: 4px; }
    .pes-motor { width: 74px; height: 74px; right: 14px; }
    .pes-motor__rotor { width: 60px; height: 60px; }
    .pes-mem--rom { top: 22px; }
    .pes-mem--ram { top: 96px; }
    .pes-mem--flash { top: 170px; }
    .pes-motor {
        top: 14px;
        right: 10px;
        width: 72px;
        height: 88px;
    }
    .pes-motor__rotor { width: 56px; height: 56px; }
    .pes-codepane {
        left: 84px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }
    .pes-codepane__type { font-size: 0.55rem; padding: 8px 10px 10px; }
}

@media (max-width: 420px) {
    .pes-mem--flash { display: none; }
    .pes-board { aspect-ratio: 340 / 360; }
    .pes-codepane { left: 12px; right: 12px; }
    .pes-motor { top: 10px; right: 8px; }
}

.pes-hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(to top, var(--pes-snow), transparent);
    pointer-events: none;
    z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
    .pes-motor__rotor,
    .pes-codepane__type span,
    .pes-hero-aurora,
    .pes-hero-scan,
    .pes-board {
        animation: none !important;
    }
    .pes-motor__status i { opacity: 0; }
    .pes-motor__status b { opacity: 1; }
    .pes-codepane__type span { width: 100%; }
}

/* Buttons */
.pes-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.pes-btn:hover { transform: translateY(-2px); }
.pes-btn-light {
    background: #fff;
    color: var(--pes-navy-900);
}
.pes-btn-light:hover { background: var(--pes-ice); }
.pes-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}
.pes-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.pes-btn-ghost i { color: var(--pes-sky); }

/* Sections */
.pes-section {
    padding: 64px 0;
}

.pes-expertise-grid--simple {
    margin-top: 0;
}

.pes-expertise-grid--simple .pes-expertise-card {
    text-align: center;
    padding: 20px 16px;
}

.pes-expertise-grid--simple .pes-expertise-card h3 {
    margin: 0 0 6px;
}

.pes-expertise-grid--simple .pes-expertise-card p {
    font-size: 0.88rem;
}

.pes-section-soft {
    background:
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(61, 122, 181, 0.08), transparent 55%),
        linear-gradient(180deg, var(--pes-snow) 0%, var(--pes-ice) 100%);
}

.pes-section-head {
    max-width: 36rem;
}

.pes-section-head h2 {
    margin: 8px 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--pes-navy-900);
    line-height: 1.15;
}

.pes-section-head p:last-child {
    margin: 0;
    color: var(--pes-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.pes-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pes-steel);
}

.pes-eyebrow-sky { color: var(--pes-sky); }

.pes-section-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}

.pes-section-row .pes-section-head { margin: 0; }

.pes-text-link {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--pes-navy-800);
}
.pes-text-link:hover { color: var(--pes-steel); }

/* Process: AR-GE → seri üretim */
.pes-process {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    position: relative;
}
.pes-process::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(61, 122, 181, 0.45);
    pointer-events: none;
    z-index: 0;
}
.pes-process-step {
    position: relative;
    z-index: 1;
    padding: 0 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pes-process-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 50%;
    border: 1px solid rgba(61, 122, 181, 0.35);
    background: linear-gradient(180deg, #fff, var(--pes-ice));
    color: var(--pes-steel);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 0 0 6px var(--pes-snow);
    position: relative;
    z-index: 1;
}
.pes-process-step strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pes-navy-900);
}
.pes-process-step p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--pes-muted);
    max-width: 16ch;
}

/* Expertise */
.pes-expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.pes-expertise-card {
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--pes-line);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
}

.pes-expertise-card i {
    color: var(--pes-steel);
    font-size: 1.25rem;
}

.pes-expertise-card h3 {
    margin: 14px 0 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pes-navy-900);
}

.pes-expertise-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--pes-muted);
}

/* Projects */
.pes-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pes-project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid var(--pes-line);
    background: #fff;
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pes-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(10, 22, 40, 0.12);
}

.pes-project-media {
    aspect-ratio: 16 / 10;
    background: var(--paper-2, #eef3f9);
    overflow: hidden;
}

.pes-project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.pes-project-card:hover .pes-project-media img {
    transform: scale(1.04);
}

.pes-project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}

.pes-project-body em {
    display: block;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pes-steel);
}

.pes-project-card h3 {
    margin: 8px 0 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--pes-navy-900);
    letter-spacing: -0.02em;
}

.pes-project-body p {
    margin: 12px 0 0;
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--pes-muted);
}

.pes-pill {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--pes-ice);
    color: var(--pes-navy-700);
    font-size: 0.7rem;
    font-weight: 700;
}

.pes-more {
    margin-top: 18px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pes-navy-800);
}

/* Lab / Editor */
.pes-lab {
    background: var(--pes-navy-950);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pes-lab .pes-section-head h2 { color: #fff; }
.pes-lab .pes-section-head p:last-child { color: rgba(255, 255, 255, 0.6); }

.pes-editor {
    margin-top: 36px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a1628;
    box-shadow: 0 30px 80px rgba(6, 16, 31, 0.45);
    overflow: hidden;
}

.pes-editor-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pes-dots {
    display: inline-flex;
    gap: 6px;
    margin-right: 4px;
}
.pes-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}
.pes-dots i:nth-child(1) { background: #ff5f57; }
.pes-dots i:nth-child(2) { background: #febc2e; }
.pes-dots i:nth-child(3) { background: #28c840; }

.pes-editor-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}
.pes-editor-title i { color: var(--pes-sky); }

.pes-editor-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.pes-tab {
    border: 0;
    border-radius: 6px;
    padding: 6px 10px;
    font-family: ui-monospace, monospace;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}
.pes-tab.active,
.pes-tab:hover {
    background: var(--pes-steel);
    color: #fff;
}

.pes-copy {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 6px 10px;
    background: rgba(10, 22, 40, 0.9);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    cursor: pointer;
}
.pes-copy:hover { background: var(--pes-navy-800); }

.pes-editor-body {
    min-height: 280px;
    background: #06101f;
}

.pes-code {
    display: none;
    margin: 0;
    padding: 22px 20px;
    overflow: auto;
    max-height: 360px;
    font-family: ui-monospace, "JetBrains Mono", monospace;
    font-size: 0.84rem;
    line-height: 1.65;
    color: #d7e6f5;
    white-space: pre;
}

.pes-code.active { display: block; }
.pes-code code {
    font: inherit;
    color: inherit;
    background: none;
}

/* Blog */
.pes-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pes-blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid var(--pes-line);
    background: #fff;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pes-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(10, 22, 40, 0.08);
}

.pes-blog-cover {
    position: relative;
    height: 160px;
    background: #0a1628;
    overflow: hidden;
}

.pes-blog-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.pes-blog-card:hover .pes-blog-cover img {
    transform: scale(1.04);
}

.pes-blog-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 16, 31, 0.72) 0%, transparent 55%);
    pointer-events: none;
}

.pes-blog-cover--empty::after {
    background: none;
}

.pes-blog-cover span {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 1;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(6, 16, 31, 0.55);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
}

.pes-blog-body {
    padding: 18px 20px 22px;
}

.pes-blog-body em {
    display: block;
    font-style: normal;
    font-size: 0.75rem;
    color: var(--pes-muted);
}

.pes-blog-body h3 {
    margin: 8px 0 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--pes-navy-900);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.pes-blog-body p {
    margin: 10px 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--pes-muted);
}

/* Stack */
.pes-stack {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.pes-stack-col {
    padding: 28px 26px;
    border: 1px solid var(--pes-line);
    border-radius: 16px;
    background: #fff;
}
.pes-stack-col h3 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pes-navy-900);
}
.pes-stack-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.pes-stack-col li {
    position: relative;
    padding-left: 16px;
    color: var(--pes-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.pes-stack-col li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pes-steel);
}

/* FAQ */
.pes-faq {
    margin-top: 28px;
    display: grid;
    gap: 10px;
    max-width: 820px;
}
.pes-faq-item {
    border: 1px solid var(--pes-line);
    border-radius: 12px;
    background: #fff;
    padding: 0 18px;
}
.pes-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-weight: 700;
    color: var(--pes-navy-900);
    font-family: var(--font-display);
}
.pes-faq-item summary::-webkit-details-marker { display: none; }
.pes-faq-item p {
    margin: 0 0 16px;
    color: var(--pes-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Teklif */
.pes-cta-wrap { padding-top: 24px; padding-bottom: 100px; }

.pes-teklif {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: stretch;
    border-radius: 20px;
    padding: clamp(28px, 4vw, 40px);
    color: #fff;
    background: linear-gradient(135deg, #0a1628 0%, #0f2440 55%, #16325a 100%);
}

.pes-teklif-copy h2 {
    margin: 8px 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pes-teklif-copy > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    max-width: 34rem;
}

.pes-teklif-steps {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.pes-teklif-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.pes-teklif-steps strong {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(110, 182, 239, 0.2);
    color: var(--pes-sky);
    font-size: 0.8rem;
}

.pes-teklif-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 22px;
}

.pes-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.pes-teklif-stages {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.pes-teklif-stages legend {
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.pes-teklif-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pes-teklif-chip {
    display: block;
    cursor: pointer;
}

.pes-teklif-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pes-teklif-chip span {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 16, 31, 0.35);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pes-teklif-chip strong {
    display: block;
    font-size: 0.88rem;
    color: #fff;
}

.pes-teklif-chip em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.35;
}

.pes-teklif-chip input:checked + span {
    border-color: rgba(110, 182, 239, 0.7);
    background: rgba(61, 122, 181, 0.28);
}

.pes-teklif-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.pes-teklif-fields label {
    display: grid;
    gap: 6px;
}

.pes-teklif-fields label span {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
}

.pes-teklif-fields input,
.pes-teklif-fields textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(6, 16, 31, 0.45);
    color: #fff;
    padding: 10px 12px;
    font: inherit;
}

.pes-teklif-fields input::placeholder,
.pes-teklif-fields textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.pes-teklif-fields input:focus,
.pes-teklif-fields textarea:focus {
    outline: 2px solid rgba(110, 182, 239, 0.45);
    outline-offset: 1px;
}

.pes-teklif-full { grid-column: 1 / -1; }

.pes-teklif-file span em {
    font-style: normal;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
}

.pes-teklif-file input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(6, 16, 31, 0.35);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
}

.pes-teklif-form .pes-btn {
    width: 100%;
    justify-content: center;
}

/* Responsive */
@media (max-width: 980px) {
    .pes-expertise-grid,
    .pes-project-grid,
    .pes-blog-grid,
    .pes-stack,
    .pes-teklif {
        grid-template-columns: 1fr;
    }
    .pes-process {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 12px;
    }
    .pes-process::before { display: none; }
    .pes-process-step { padding: 0; }
    .pes-hero-circuit { opacity: 0.22; width: 70vw; }
}

@media (max-width: 640px) {
    .pes-section {
        padding: 28px 0;
    }
    .pes-section-row {
        margin-bottom: 14px;
        gap: 8px;
    }
    .pes-section-head {
        max-width: none;
    }
    .pes-section-head h2 {
        margin: 4px 0 6px;
        font-size: 1.35rem;
    }
    .pes-section-head p:last-child {
        font-size: 0.88rem;
        line-height: 1.45;
    }
    .pes-eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.14em;
    }
    /* Yan yana gridler — tek sütun yerine 2 sütun */
    .pes-expertise-grid,
    .pes-expertise-grid--simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 12px;
    }
    .pes-expertise-grid--simple .pes-expertise-card {
        padding: 12px 10px;
    }
    .pes-expertise-grid--simple .pes-expertise-card h3 {
        font-size: 0.82rem;
        margin-bottom: 2px;
    }
    .pes-expertise-grid--simple .pes-expertise-card p {
        font-size: 0.72rem;
        line-height: 1.35;
    }
    .pes-expertise-card {
        padding: 14px 12px;
    }
    .pes-expertise-card h3 {
        margin: 8px 0 4px;
        font-size: 0.9rem;
    }
    .pes-expertise-card p {
        font-size: 0.78rem;
        line-height: 1.4;
    }
    .pes-stack {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 12px;
    }
    .pes-stack-col {
        padding: 14px 12px;
    }
    .pes-stack-col h3 {
        font-size: 0.88rem;
        margin-bottom: 8px;
    }
    .pes-stack-col ul {
        font-size: 0.72rem;
        line-height: 1.4;
        padding-left: 14px;
    }
    .pes-stack-col li {
        margin-bottom: 4px;
    }
    .pes-process {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 8px;
        margin-top: 12px;
    }
    .pes-process-num {
        width: 32px;
        height: 32px;
        font-size: 0.65rem;
        margin-bottom: 6px;
    }
    .pes-process-step strong {
        font-size: 0.82rem;
        margin-bottom: 2px;
    }
    .pes-process-step p {
        font-size: 0.72rem;
        line-height: 1.35;
        max-width: none;
    }
    .pes-project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .pes-project-card {
        border-radius: 10px;
    }
    .pes-project-media {
        aspect-ratio: 16 / 10;
    }
    .pes-project-body {
        padding: 10px 10px 12px;
    }
    .pes-project-body em {
        font-size: 0.58rem;
    }
    .pes-project-body h3 {
        font-size: 0.82rem;
        margin: 4px 0;
        line-height: 1.25;
    }
    .pes-project-body p {
        display: none;
    }
    .pes-more {
        font-size: 0.72rem;
        margin-top: 4px;
    }
    .pes-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .pes-blog-cover {
        height: 88px;
    }
    .pes-blog-body {
        padding: 10px 10px 12px;
    }
    .pes-blog-body h3 {
        font-size: 0.82rem;
        line-height: 1.25;
    }
    .pes-blog-body p {
        display: none;
    }
    .pes-faq {
        gap: 6px;
        margin-top: 12px;
    }
    .pes-faq-item summary {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .pes-faq-item p {
        padding: 0 12px 10px;
        font-size: 0.82rem;
        line-height: 1.45;
    }
    .pes-faq-more {
        margin-top: 10px;
    }
    .pes-teklif {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 14px;
    }
    .pes-teklif-copy h2 {
        font-size: 1.25rem;
    }
    .pes-teklif-copy > p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    .pes-teklif-steps {
        gap: 6px;
        font-size: 0.78rem;
    }
    .pes-teklif-chips {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .pes-teklif-chip span {
        padding: 8px 8px;
    }
    .pes-teklif-chip strong {
        font-size: 0.75rem;
    }
    .pes-teklif-chip em {
        display: none;
    }
    .pes-teklif-fields {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .pes-teklif-fields textarea,
    .pes-teklif-full {
        grid-column: 1 / -1;
    }
    .pes-teklif-fields textarea {
        min-height: 72px;
    }
    .pes-hero-inner { padding: 48px 0 80px; }
    .pes-editor-tabs { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
    .pes-hero-stage {
        padding: 24px 0 36px;
        gap: 16px;
        width: min(100% - 20px, 1140px);
    }
    .pes-hero-visual {
        display: none;
    }
    .pes-hero-title {
        margin-top: 10px;
        font-size: 1.45rem;
    }
    .pes-hero-lead {
        margin-top: 8px;
        font-size: 0.88rem;
        line-height: 1.5;
    }
    .pes-hero-actions {
        margin-top: 14px;
        gap: 8px;
    }
    .pes-hero-actions .pes-btn {
        min-height: 40px;
        padding: 10px 14px;
        font-size: 0.82rem;
    }
    .pes-hero-fade {
        height: 48px;
    }
    .pes-section {
        padding: 22px 0;
    }
}
