/* ==========================================================================
   Teknoloji · Donanım. Ürün odaklı, dinamik görünüm: siyah başlık/manşet/altbilgi, yarış
   kırmızısı, büyük harfli dar (endüstriyel) başlıklar, eğik kesimler (manşet alt kenarı,
   paralelkenar görsel, köşesi kesik düğmeler), köşesinde kırmızı üçgen bayrak olan kartlar.
   Üst temanın (teknoloji) çözüm kartları, fiyat tablosu ve eylem çubuğu korunur, bu katmanda
   yeniden giydirilir. Eğik kesimler sağdan sola dillerde aynalanır. Yeni sınıflar: .hdr-hw, .hero-hw.
   ========================================================================== */
@layer reset, tokens, base, components, utilities, theme;

@layer theme {
    body { background: var(--surface); }

    /* ---- Yazı: büyük harf, dar ------------------------------------------------ */
    .section-title, .page__title, .content-page__title, .tk-card__title, .tk-plan__name, .tk-plan__price,
    .promise__title, .dz-heading:is(h1, h2, h3), .brand__name, .banner__title, .about-hero__title {
        font-family: var(--font-display); font-weight: 700; letter-spacing: 0.005em;
    }
    .section-title, .page__title, .content-page__title, .tk-plan__name, .promise__title, .dz-heading:is(h1, h2) { text-transform: uppercase; }
    .section-title, .dz-heading:is(h1, h2) { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1; }
    .section-title .hero-title__accent, .dz-heading .hero-title__accent { color: var(--brand); }
    .section-head .section-title::before, .tk-pricing__head .section-title::before {
        content: ""; display: block; width: 44px; height: 8px; margin-bottom: var(--space-3); background: var(--brand); transform: skewX(-24deg);
    }
    .section--hizmet .section-head .section-title::before, .tk-pricing__head .section-title::before { margin-inline: auto; }
    .section-head__link { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

    /* ---- Düğmeler: köşesi kesik (odakta kesim kalkar, halka görünür) ------------ */
    .button {
        border-radius: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
        clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); padding-inline: var(--space-8);
    }
    [dir="rtl"] .button { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% 100%, var(--cut) 100%); }
    .button:focus-visible, [dir="rtl"] .button:focus-visible { clip-path: none; }
    .button--primary:hover { background: color-mix(in oklab, var(--brand) 82%, #000000); }
    .button--secondary { background: var(--ink); color: #ffffff; border: 0; }
    .button--secondary:hover { background: #2c2c30; color: #ffffff; }

    /* ---- Başlık: siyah çubuk ------------------------------------------------------- */
    .hdr-hw {
        --hdr-ink: #ffffff; --hdr-muted: #b4b4bb; --hdr-line: #2c2c30; --hdr-panel: #1a1a1e; --hdr-hover: #2c2c30; --hdr-panel-radius: 2px;
        background: var(--night); backdrop-filter: none; border-bottom: 3px solid var(--brand); color: #ffffff;
    }
    .hdr-hw :focus-visible { outline-color: #ffffff; }
    .hdr-hw__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-4); min-height: var(--header-height); }
    .hdr-hw .brand { flex: 0 1 auto; min-width: 0; margin-inline-end: auto; color: #ffffff; font-size: 1.3rem; text-transform: uppercase; }
    .hdr-hw .brand__name { color: #ffffff; }
    .hdr-hw .brand__mark { width: 30px; height: 20px; border-radius: 0; background: var(--brand); mask: none; clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
    .hdr-hw__actions { display: flex; align-items: center; gap: 2px; flex: none; }
    .hdr-hw__search, .hdr-hw .lang-switch--globe .lang-switch__current { color: #ffffff; }
    .hdr-hw .icon-button:hover, .hdr-hw .lang-switch__current:hover { background: #2c2c30; }
    .hdr-hw__cta {
        position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
        margin-inline-start: var(--space-3); padding-inline: var(--space-6); color: #ffffff;
        font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
    }
    .hdr-hw__cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand); transform: skewX(-14deg); transition: background-color 0.15s var(--ease); }
    [dir="rtl"] .hdr-hw__cta::before { transform: skewX(14deg); }
    .hdr-hw__cta:hover { color: #ffffff; }
    .hdr-hw__cta:hover::before { background: color-mix(in oklab, var(--brand) 80%, #000000); }
    .hdr-hw__cta .icon { width: 18px; height: 18px; }
    @media (max-width: 599px) {
        .hdr-hw__bar { gap: 0 var(--space-2); }
        .hdr-hw__search { display: none; }
        .hdr-hw__cta { width: 48px; justify-content: center; padding: 0; margin-inline-start: var(--space-2); }
        .hdr-hw__cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
        .hdr-hw .lang-switch--globe .lang-switch__current span { display: none; }
        .hdr-hw .lang-switch--globe .lang-switch__current { padding-inline: 0; }
    }
    /* ---- Ana menü: dar ekranda düğmeyle açılan liste, >= 1280px satır içi -------------- */
    /* Renkler başlığın yerel değişkenlerinden: --hdr-ink, --hdr-muted, --hdr-line, --hdr-panel, --hdr-hover. */
    .hdr-hw .menu-toggle { display: inline-flex; margin-inline-start: calc(var(--space-2) * -1); color: var(--hdr-ink, var(--ink)); }
    .hdr-hw__nav { order: 10; flex: 1 0 100%; display: none; min-width: 0; border-top: 1px solid var(--hdr-line, var(--line)); }
    .hdr-hw__nav.is-open { display: block; }
    .hdr-hw__nav .site-nav__list { display: grid; gap: 0; max-width: none; margin: 0; padding: var(--space-2) 0 var(--space-3); }
    .hdr-hw__nav .site-nav__link { display: flex; align-items: center; min-height: 44px; padding: var(--space-2) var(--space-1); color: var(--hdr-ink, var(--ink)); font-size: 1rem; }
    .hdr-hw__nav .site-nav__item.has-mega > .site-nav__link::after { content: none; }
    .hdr-hw__nav .mega { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: transparent; }
    .hdr-hw__nav .mega::before { content: none; }
    .hdr-hw__nav .mega__inner { max-height: none; padding: 0 0 var(--space-2); }
    .hdr-hw__nav .mega__cols { display: flex; flex-wrap: wrap; grid-template-rows: none; gap: 0 var(--space-4); padding: 0; }
    .hdr-hw__nav .mega__heading { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 var(--space-2); color: var(--hdr-muted, var(--ink-muted)); font-size: 0.9375rem; }
    .hdr-hw__nav .mega__heading:hover { background: none; color: var(--hdr-ink, var(--ink)); text-decoration: underline; }
    @media (min-width: 1280px) {
        .hdr-hw .menu-toggle { display: none; }
        .hdr-hw__nav { order: 0; flex: 0 1 auto; display: block; border-top: 0; }
        .hdr-hw__nav .site-nav__list { display: flex; flex-wrap: nowrap; align-items: center; padding: 0; }
        .hdr-hw__nav .site-nav__link { white-space: nowrap; }
        .hdr-hw__nav .site-nav__item.has-mega { position: relative; }
        .hdr-hw__nav .mega {
            position: absolute; inset-inline: 0 auto; top: calc(100% + 12px); z-index: 60; min-width: 260px;
            border: 1px solid var(--hdr-line, var(--line)); border-radius: var(--hdr-panel-radius, var(--radius));
            background: var(--hdr-panel, var(--surface-raised)); box-shadow: 0 18px 44px rgb(0 0 0 / 0.16);
            opacity: 0; visibility: hidden; transform: translateY(6px);
        }
        .hdr-hw__nav .mega::before { content: ""; height: 14px; }
        .hdr-hw__nav .site-nav__item.has-mega:hover > .mega,
        .hdr-hw__nav .site-nav__item.has-mega:focus-within > .mega,
        .hdr-hw__nav .site-nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
        .hdr-hw__nav .site-nav__item.has-mega.is-dismissed:not(:hover) > .mega { opacity: 0; visibility: hidden; }
        .hdr-hw__nav .mega__inner { padding: var(--space-2); }
        .hdr-hw__nav .mega__cols { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; gap: 2px; }
        .hdr-hw__nav .mega__heading { display: flex; width: 100%; padding: 0 var(--space-3); border-radius: calc(var(--hdr-panel-radius, var(--radius)) * 0.6); color: var(--hdr-ink, var(--ink)); }
        .hdr-hw__nav .mega__heading:hover { background: var(--hdr-hover, var(--surface-band)); color: var(--hdr-ink, var(--ink)); text-decoration: none; }
    }
    .hdr-hw__nav .site-nav__link { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
    @media (max-width: 1279px) { .hdr-hw__nav .site-nav__link { font-size: 1.25rem; } }
    @media (min-width: 1280px) {
        .hdr-hw__nav .site-nav__link { position: relative; min-height: var(--header-height); padding: 0 10px; font-size: 0.9375rem; }
        .hdr-hw__nav .site-nav__link::before {
            content: ""; position: absolute; inset-inline: 10px; bottom: 16px; height: 3px; background: var(--brand);
            transform: skewX(-24deg) scaleX(0); transition: transform 0.18s var(--ease);
        }
        .hdr-hw__nav .site-nav__link:hover::before,
        .hdr-hw__nav .site-nav__item.has-mega:is(:hover, :focus-within, .is-open) > .site-nav__link::before { transform: skewX(-24deg) scaleX(1); }
        .hdr-hw__nav .mega { top: calc(100% + 3px); }
    }

    /* ---- Manşet: siyah, eğik bant, çapraz alt kenar -------------------------------------- */
    .hero-hw {
        position: relative; isolation: isolate; overflow: hidden;
        padding-block: clamp(40px, 6vw, 88px) clamp(80px, 9vw, 136px);
        background: radial-gradient(60rem 30rem at 80% 30%, #26262b, transparent 70%), var(--night); color: #ffffff;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(28px, 4vw, 64px)), 0 100%);
    }
    [dir="rtl"] .hero-hw { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - clamp(28px, 4vw, 64px))); }
    /* Eğik kırmızı bant yalnız iki sütunlu düzende, görselin arkasında (yazının arkasına düşmez). */
    @media (min-width: 1024px) {
        .hero-hw--media::before {
            content: ""; position: absolute; z-index: -1; inset-block: -10%; inset-inline-end: 8%; width: 26%;
            background: linear-gradient(180deg, var(--brand), color-mix(in oklab, var(--brand) 65%, #000000)); transform: skewX(-14deg);
        }
        [dir="rtl"] .hero-hw--media::before { transform: skewX(14deg); }
    }
    .hero-hw :focus-visible { outline-color: #ffffff; }
    .hero-hw__grid { display: grid; gap: var(--space-8); align-items: center; }
    @media (min-width: 1024px) {
        .hero-hw--media .hero-hw__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "copy media" "tag media"; column-gap: var(--space-12); row-gap: var(--space-8); }
        .hero-hw--media .hero-hw__copy { grid-area: copy; align-self: end; }
        .hero-hw--media .hero-hw__media { grid-area: media; }
        .hero-hw--media .hero-hw__tag { grid-area: tag; align-self: start; }
        .hero-hw:not(.hero-hw--media) .hero-hw__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
    }
    .hero-hw__copy { display: grid; gap: var(--space-6); justify-items: start; max-width: 680px; }
    .hero-hw__eyebrow {
        display: inline-flex; align-items: center; gap: var(--space-3); margin: 0; color: #ffffff;
        font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    }
    .hero-hw__eyebrow::before { content: ""; width: 36px; height: 6px; background: var(--brand); transform: skewX(-24deg); }
    .hero-hw__title {
        margin: 0; color: #ffffff; font-family: var(--font-display);
        font-size: clamp(2.6rem, 1.4rem + 5vw, 5.75rem); font-weight: 700; line-height: 0.94; letter-spacing: 0; text-transform: uppercase;
        overflow-wrap: anywhere; hyphens: auto;
    }
    .hero-hw__title .hero-title__accent { display: block; color: #ff3b52; font-style: italic; }
    .hero-hw__lead { max-width: 50ch; color: #cfcfd4; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; }
    .hero-hw__lead p { margin: 0; }
    .hero-hw__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
    .hero-hw__primary, .hero-hw__secondary { min-height: 56px; padding-inline: var(--space-8) calc(var(--space-8) + 4px); }
    .hero-hw__primary { background: var(--brand); color: #ffffff; }
    .hero-hw__primary:hover { background: #ffffff; color: var(--night); }
    .hero-hw__secondary { background: #ffffff; color: var(--night); }
    .hero-hw__secondary:hover { background: #cfcfd4; color: var(--night); }

    .hero-hw__media { position: relative; }
    .hero-hw__media picture { display: block; }
    .hero-hw__media img {
        display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
        clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
    }
    [dir="rtl"] .hero-hw__media img { clip-path: polygon(0 0, 88% 0, 100% 100%, 12% 100%); }
    @media (min-width: 1024px) { .hero-hw__media img { aspect-ratio: 5 / 4; } }

    .hero-hw__tag {
        position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4);
        max-width: 560px; padding: var(--space-4) var(--space-8); color: #ffffff; text-decoration: none;
    }
    .hero-hw__tag::before {
        content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand); transform: skewX(-10deg);
        box-shadow: 10px 10px 0 rgb(255 255 255 / 0.08); transition: background-color 0.15s var(--ease);
    }
    [dir="rtl"] .hero-hw__tag::before { transform: skewX(10deg); box-shadow: -10px 10px 0 rgb(255 255 255 / 0.08); }
    a.hero-hw__tag:hover { color: #ffffff; }
    a.hero-hw__tag:hover::before { background: color-mix(in oklab, var(--brand) 82%, #000000); }
    .hero-hw__tag-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid #ffffff; }
    .hero-hw__tag-icon .icon { width: 20px; height: 20px; }
    .hero-hw__tag-body { display: grid; gap: 2px; min-width: 0; }
    .hero-hw__tag-label { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
    .hero-hw__tag-title { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); font-weight: 700; line-height: 1.15; text-transform: uppercase; overflow-wrap: anywhere; }
    .hero-hw__tag-text { font-size: 0.9rem; line-height: 1.45; }
    .hero-hw__tag-go { display: grid; place-items: center; width: 40px; height: 40px; background: #ffffff; color: var(--brand); }
    .hero-hw__tag-go .icon { width: 18px; height: 18px; }
    @media (max-width: 479px) {
        .hero-hw__tag { grid-template-columns: minmax(0, 1fr); padding-inline: var(--space-6); }
        .hero-hw__tag-icon, .hero-hw__tag-go { display: none; }
    }

    /* ---- Kartlar: köşede kırmızı üçgen bayrak ------------------------------------------------ */
    .tk-solutions__cats { border-radius: var(--radius); border-color: var(--line); }
    .tk-solutions__cat { border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
    .tk-solutions__cat[aria-current] { background: var(--night); color: #ffffff; box-shadow: inset 4px 0 0 var(--brand); }
    [dir="rtl"] .tk-solutions__cat[aria-current] { box-shadow: inset -4px 0 0 var(--brand); }
    .tk-solutions__cat[aria-current] .tk-solutions__count { background: var(--brand); color: #ffffff; }
    .tk-card, .tk-plan, .promise, .entry-card, .faq__item { position: relative; border-radius: var(--radius); }
    .tk-card { border-color: var(--line); transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
    .tk-card::after, .promise::after {
        content: ""; position: absolute; inset-block-start: -1px; inset-inline-end: -1px; width: 0; height: 0;
        border-style: solid; border-width: 0 26px 26px 0; border-color: transparent var(--brand) transparent transparent;
    }
    [dir="rtl"] :is(.tk-card, .promise)::after { border-width: 0 0 26px 26px; border-color: transparent transparent transparent var(--brand); }
    .tk-card--more::after { content: none; }
    .tk-card:hover { border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--brand), var(--shadow-raised); }
    .tk-card__tag { border-radius: 0; background: var(--night); color: #ffffff; }
    .tk-card__title { text-transform: uppercase; font-size: 1.45rem; }
    .tk-card__cta { border-radius: 0; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-inline: var(--space-6); font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
    [dir="rtl"] .tk-card__cta { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%); }
    .tk-card__cta:focus-visible { clip-path: none; }
    .tk-card--more { border-radius: var(--radius); }
    .tk-card__more-plus { border-radius: 0; background: var(--night); color: #ffffff; }
    .tk-checks .icon { border-radius: 0; background: var(--brand-tint); color: var(--brand); }

    .tk-plan { border-color: var(--line); }
    .tk-plan--featured { background: var(--night); border-color: var(--night); box-shadow: inset 0 5px 0 var(--brand), 0 24px 48px rgb(14 14 16 / 0.25); }
    .tk-plan--featured .tk-checks .icon { background: var(--brand); color: #ffffff; }
    .tk-plan--featured .tk-plan__list { border-top-color: #2c2c30; }
    .tk-plan__button { border-radius: 0; font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
    .tk-plan--featured .tk-plan__button { background: var(--brand); color: #ffffff; }
    .tk-plan--featured .tk-plan__button:hover { background: #ffffff; color: var(--night); }

    .promise { border-color: var(--line); }
    .promise::before { border-radius: 0; background: var(--night); color: #ffffff; clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); width: 60px; }

    .entry-card { border-color: var(--line); }
    .entry-card:hover { border-color: var(--ink); }
    .entry-card__date, .entry-card__subtitle { border-radius: 0; background: var(--night); color: #ffffff; text-transform: uppercase; letter-spacing: 0.04em; }
    .faq__question::after { border-radius: 0; background: var(--night); color: #ffffff; }
    .faq__item[open] > .faq__question::after { background: var(--brand); }
    .chip { border-radius: 0; }
    .chip[aria-current] { background: var(--night); border-color: var(--night); color: #ffffff; }

    /* ---- İç sayfa ve bloklar ---------------------------------------------------------------- */
    .page-header { border-radius: var(--radius); border-inline-start: 8px solid var(--brand); }
    .page-header :is(.page__title, .content-page__title) { letter-spacing: 0; text-transform: uppercase; }
    .banner, .stat-item, .steps__item, .testimonial, .timeline__item, .about-hero__media img { border-radius: var(--radius); }
    .stat-item { border-top: 4px solid var(--brand); }
    .stat-item__value { color: var(--ink); }
    .about-cta { background: var(--night); border-top: 4px solid var(--brand); }
    .about-cta .button--primary { background: var(--brand); border-color: var(--brand); color: #ffffff; }

    /* ---- Eylem çubuğu: siyah ------------------------------------------------------------------ */
    .tk-dock { border-color: var(--night); border-radius: var(--radius); background: var(--night); box-shadow: 0 12px 32px rgb(0 0 0 / 0.3); }
    .tk-dock__link { border-radius: 0; color: #ffffff; }
    .tk-dock__link:hover { background: #2c2c30; color: #ffffff; }
    .tk-dock__link .icon { color: #ff5a6e; }
    .tk-dock__link--primary { background: var(--brand); color: #ffffff; }
    .tk-dock__link--primary .icon { color: currentColor; }
    .tk-dock :focus-visible { outline-color: #ffffff; }

    /* ---- Altbilgi --------------------------------------------------------------------------- */
    .site-footer {
        --footer-bg: #0e0e10;
        --footer-ink: #cfcfd4;
        --footer-title: #ffffff;
        --footer-muted: #9d9da6;
        --footer-line: #2c2c30;
        --footer-accent: #ff5a6e;
        border-top: 4px solid var(--brand);
    }

    /* ---- Sağdan sola ------------------------------------------------------------------------ */
    :is([dir="rtl"], :lang(ar)) :is(.hero-hw__title, .hero-hw__eyebrow, .section-title, .page__title, .content-page__title, .tk-card__title, .tk-plan__name,
        .promise__title, .dz-heading, .brand__name, .button, .hdr-hw__cta, .hdr-hw__nav .site-nav__link, .hero-hw__tag-label, .hero-hw__tag-title,
        .tk-solutions__cat, .tk-card__cta, .tk-plan__button, .section-head__link, .entry-card__date, .entry-card__subtitle) {
        letter-spacing: 0; text-transform: none; font-style: normal;
    }
    :is([dir="rtl"], :lang(ar)) .hero-hw__title { line-height: 1.25; }

    @media (prefers-reduced-motion: reduce) {
        .hdr-hw__nav .site-nav__link::before, .tk-card, .hdr-hw__cta::before, .hero-hw__tag::before { transition: none; }
    }
}

/* Yapışkan kategori listesi başlığın gerçek yüksekliği kadar aşağıda durur (başlık bu temada tek satırdan uzun olabilir). */
@layer theme {
    @media (min-width: 1024px) { .tk-solutions__nav { top: calc(var(--header-offset, var(--header-height)) + var(--space-4)); } }
    .section--soru .section-head .section-title::before { margin-inline: auto; }
    /* İskeletin .menu-toggle { grid-area: menu } kuralı bu başlıkta tanımsız alana düşmesin. */
    .hdr-hw .menu-toggle { grid-area: auto; }
}
