/* ==========================================================================
   Kodvanta — site stilleri
   Kurumsal BT dili: beyaz zemin, tam genişlikte görsel bloklar, tek kurumsal
   mavi vurgu, gri zeminde beyaz kartlar, koyu lacivert alt bilgi.
   ========================================================================== */

@layer reset, base, layout, components, utilities;

/* --------------------------------------------------------------------------
   Belirteçler
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Marka */
  --brand:       #0C50B4;
  --brand-dark:  #093C87;
  --brand-light: #2E7BE0;
  --brand-tint:  #EDF3FC;
  --navy:        #0A1A2F;
  --navy-2:      #12283F;

  /* Nötrler */
  --white:  #FFFFFF;
  --grey:   #F4F5F7;
  --grey-2: #E9EBEF;
  --line:   #DFE3E9;
  --ink:    #101828;
  --ink-2:  #4A5567;
  --ink-3:  #7C8698;

  --ok:     #12805C;
  --warn:   #B4530A;

  /* Tipografi */
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --t--2: 0.75rem;
  --t--1: 0.875rem;
  --t-0:  1rem;
  --t-1:  1.0625rem;
  --t-2:  clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-3:  clamp(1.6rem, 1.4rem + 0.9vw, 2.1rem);
  --t-4:  clamp(1.9rem, 1.6rem + 1.5vw, 2.75rem);
  --t-5:  clamp(2.2rem, 1.7rem + 2.6vw, 3.9rem);

  /* Ölçü */
  --shell:   80rem;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --section: clamp(3.5rem, 6vw, 6rem);
  --radius:  6px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow:    0 4px 16px -4px rgba(16, 24, 40, 0.10), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 18px 40px -16px rgba(16, 24, 40, 0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
@layer reset {
  html { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
  *, ::before, ::after { box-sizing: inherit; }

  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
  ul[class], ol[class] { padding: 0; list-style: none; }

  img, svg, video { display: block; max-inline-size: 100%; }
  img { block-size: auto; }
  [hidden] { display: none; }

  button, input, select, textarea { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }

  a { color: inherit; text-decoration: none; }
  table { inline-size: 100%; border-collapse: collapse; }
}

/* --------------------------------------------------------------------------
   Temel
   -------------------------------------------------------------------------- */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-block-start: 5.5rem; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    background: var(--white);
    color: var(--ink-2);
    font-family: var(--font);
    font-size: var(--t-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.022em;
    text-wrap: balance;
  }
  h1 { font-size: var(--t-5); line-height: 1.08; letter-spacing: -0.03em; }
  h2 { font-size: var(--t-4); line-height: 1.12; letter-spacing: -0.026em; }
  h3 { font-size: var(--t-2); }
  h4 { font-size: var(--t-1); }

  p { text-wrap: pretty; overflow-wrap: break-word; }

  ::selection { background: var(--brand); color: #fff; }

  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 3px;
  }
}

/* --------------------------------------------------------------------------
   Yerleşim
   -------------------------------------------------------------------------- */
@layer layout {
  .shell {
    inline-size: min(100% - var(--gutter) * 2, var(--shell));
    margin-inline: auto;
  }
  .shell--wide { inline-size: min(100% - var(--gutter) * 2, 90rem); }

  .section { padding-block: var(--section); }
  .section--grey { background: var(--grey); }
  .section--tint { background: var(--brand-tint); }
  .section--tight { padding-block: clamp(2.5rem, 4vw, 3.5rem); }
  .section--flush { padding-block-end: 0; }

  .grid { display: grid; gap: clamp(1.25rem, 2vw, 1.75rem); }
  .grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
  .grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20.5rem), 1fr)); }
  .grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

  .skip-link {
    position: absolute;
    inset-block-start: -100%;
    inset-inline-start: 1rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--brand);
    color: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 600;
  }
  .skip-link:focus { inset-block-start: 0; }
}

/* --------------------------------------------------------------------------
   Bileşenler
   -------------------------------------------------------------------------- */
@layer components {

  /* --- Üst bar ----------------------------------------------------------- */
  .site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 100;
    background: var(--white);
    border-block-end: 1px solid var(--line);
  }
  .header-inner {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.75rem);
    min-block-size: 4.75rem;
  }

  .logo { display: inline-flex; align-items: center; gap: 0.55rem; flex: none; }
  .logo__mark {
    inline-size: 2.05rem;
    block-size: 2.05rem;
    flex: none;
    color: var(--brand);
  }
  .logo__mark svg { inline-size: 100%; block-size: 100%; }
  .logo__text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.038em;
    color: var(--ink);
    line-height: 1;
  }

  .nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.9rem); margin-inline-end: auto; }
  .nav a {
    position: relative;
    font-size: var(--t--1);
    font-weight: 600;
    color: var(--ink-2);
    padding-block: 1.65rem;
    transition: color 0.16s;
  }
  .nav a::after {
    content: "";
    position: absolute;
    inset-block-end: -1px;
    inset-inline: 0;
    block-size: 3px;
    background: var(--brand);
    scale: 0 1;
    transform-origin: center;
    transition: scale 0.2s var(--ease);
  }
  .nav a:hover { color: var(--ink); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { scale: 1 1; }
  .nav a[aria-current="page"] { color: var(--brand); }

  .header-end { display: flex; align-items: center; gap: 1rem; flex: none; }
  .header-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--t--1);
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
  }
  .header-tel svg { inline-size: 1rem; block-size: 1rem; color: var(--brand); }
  .header-tel:hover { color: var(--brand); }

  /* --- Düğmeler ---------------------------------------------------------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-block-size: 2.85rem;
    padding: 0.7rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: var(--t--1);
    font-weight: 700;
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition: background-color 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  }
  .btn svg { inline-size: 1.05em; block-size: 1.05em; flex: none; }
  .btn:disabled { opacity: 0.5; cursor: not-allowed; }

  .btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
  .btn--primary:hover:not(:disabled) { background: var(--brand-dark); box-shadow: var(--shadow); }

  .btn--outline { border-color: var(--line); color: var(--ink); background: var(--white); }
  .btn--outline:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }

  .btn--ghost-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
  .btn--ghost-light:hover:not(:disabled) { background: #fff; color: var(--ink); border-color: #fff; }

  .btn--sm { min-block-size: 2.4rem; padding: 0.45rem 1.1rem; font-size: var(--t--2); }
  .btn--lg { min-block-size: 3.25rem; padding: 0.85rem 1.9rem; font-size: var(--t-0); }
  .btn--block { inline-size: 100%; }

  .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

  /* --- Metin bağlantısı -------------------------------------------------- */
  .link-more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--t--1);
    font-weight: 700;
    color: var(--brand);
    transition: gap 0.18s var(--ease);
  }
  .link-more::after { content: "→"; }
  .link-more:hover { gap: 0.8rem; }

  /* --- Mobil menü -------------------------------------------------------- */
  .nav-toggle {
    display: none;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
  }
  .nav-toggle span {
    display: block;
    inline-size: 1.15rem;
    block-size: 2px;
    background: currentColor;
    position: relative;
    transition: background-color 0.2s;
  }
  .nav-toggle span::before, .nav-toggle span::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    block-size: 2px;
    background: currentColor;
    transition: translate 0.22s var(--ease), rotate 0.22s var(--ease);
  }
  .nav-toggle span::before { translate: 0 -6px; }
  .nav-toggle span::after { translate: 0 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { translate: 0 0; rotate: 45deg; }
  .nav-toggle[aria-expanded="true"] span::after { translate: 0 0; rotate: -45deg; }

  .drawer {
    position: fixed;
    inset: 4.75rem 0 0;
    z-index: 99;
    background: var(--white);
    padding: 1.5rem var(--gutter) 3rem;
    overflow-y: auto;
    translate: 0 -100%;
    visibility: hidden;
    transition: translate 0.3s var(--ease), visibility 0.3s;
  }
  .drawer[data-open] { translate: 0 0; visibility: visible; }
  .drawer a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
    border-block-end: 1px solid var(--line);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
  }
  .drawer a:not(.btn)::after { content: "→"; color: var(--brand); }
  .drawer .btn { margin-block-start: 1.5rem; }

  /* --- Kahraman ---------------------------------------------------------- */
  .hero {
    position: relative;
    display: grid;
    align-items: center;
    min-block-size: min(72vh, 40rem);
    padding-block: clamp(3.5rem, 8vw, 6rem);
    background: linear-gradient(120deg, var(--navy) 0%, var(--brand-dark) 55%, var(--brand) 100%);
    color: #fff;
    isolation: isolate;
    overflow: hidden;
  }
  .hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(10, 26, 47, 0.94) 0%, rgba(10, 26, 47, 0.78) 45%, rgba(12, 80, 180, 0.42) 100%);
  }

  /* Fotoğraf yüklenmediğinde: teknik ağ deseni.
     Panelden bir kahraman görseli yüklendiğinde desen gizlenir. */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
      radial-gradient(circle, rgba(255, 255, 255, 0.5) 1.5px, transparent 1.6px),
      linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 5rem 5rem, 5rem 5rem, 5rem 5rem;
    background-position: -0.75px -0.75px, 0 0, 0 0;
    mask-image: radial-gradient(ellipse 65% 90% at 88% 45%, #000 5%, transparent 72%);
    opacity: 0.75;
  }
  .hero:has(.hero__bg)::before { display: none; }

  /* Sağ alt köşede yumuşak marka parıltısı */
  .hero__glow {
    position: absolute;
    inset-block-start: -20%;
    inset-inline-end: -10%;
    z-index: -1;
    inline-size: min(55rem, 70vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 123, 224, 0.45) 0%, transparent 62%);
    pointer-events: none;
  }
  .hero:has(.hero__bg) .hero__glow { display: none; }
  .hero__inner { max-inline-size: 44rem; }
  .hero__eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    margin-block-end: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 99px;
    font-size: var(--t--2);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    backdrop-filter: blur(4px);
  }
  .hero h1 { color: #fff; }
  .hero__sub {
    margin-block-start: 1.4rem;
    max-inline-size: 38rem;
    font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
  }
  .hero .actions { margin-block-start: 2.25rem; }

  /* Kahraman altındaki güven şeridi */
  .trust {
    border-block-end: 1px solid var(--line);
    background: var(--white);
  }
  .trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(50%, 11rem), 1fr));
  }
  .trust__item {
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
    border-inline-start: 1px solid var(--line);
  }
  .trust__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .trust__value {
    font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--brand);
  }
  .trust__label {
    margin-block-start: 0.5rem;
    font-size: var(--t--1);
    font-weight: 600;
    color: var(--ink-2);
  }
  @media (width < 40rem) {
    .trust__item:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
    .trust__item:nth-child(n+3) { border-block-start: 1px solid var(--line); }
  }

  /* --- Bölüm başlığı ----------------------------------------------------- */
  .section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-block-end: clamp(1.75rem, 3vw, 2.75rem);
  }
  .section-head__text { max-inline-size: 44rem; }
  .section-head p { margin-block-start: 0.85rem; font-size: var(--t-1); }
  .section-head--center { justify-content: center; text-align: center; }
  .section-head--center .section-head__text { margin-inline: auto; }
  .eyebrow {
    display: block;
    margin-block-end: 0.7rem;
    font-size: var(--t--2);
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--brand);
  }

  /* --- Görsel bloklar (öne çıkan projeler / blog) ------------------------ */
  .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
  .tiles--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
  .tiles--2 .tile { min-block-size: clamp(17rem, 26vw, 23rem); }

  .tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Kapaklar site ekran görüntüsü (16:10) — kutu oranı görsele yakın tutulur
       ki ekran görüntüsü kırpılmadan görünsün. */
    min-block-size: clamp(16rem, 24vw, 20.5rem);
    padding: clamp(1.35rem, 2.4vw, 1.9rem);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background: var(--navy);
  }
  .tile__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    /* Kapaklar site ekran görüntüsü: tanınabilir olan üst kısımdır */
    object-position: top center;
    transition: scale 0.6s var(--ease);
  }
  .tile:hover .tile__img { scale: 1.05; }
  .tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Ekran görüntüleri parlak ve yoğun olabildiği için katman güçlü tutuluyor */
    background: linear-gradient(180deg, rgba(10, 26, 47, 0.42) 0%, rgba(10, 26, 47, 0.72) 45%, rgba(10, 26, 47, 0.93) 100%);
    transition: background-color 0.3s;
  }
  .tile:hover::after { background-color: rgba(12, 80, 180, 0.18); }

  /* Görsel yoksa: markalı desenli yer tutucu */
  .tile--blank { background: linear-gradient(145deg, var(--navy) 0%, var(--brand-dark) 100%); }
  .tile--blank::before {
    content: attr(data-initials);
    position: absolute;
    inset-block-start: -0.15em;
    inset-inline-end: 0.1em;
    z-index: -1;
    font-size: 13rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    pointer-events: none;
  }

  .tile__tag {
    display: inline-block;
    align-self: flex-start;
    margin-block-end: auto;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    font-size: var(--t--2);
    font-weight: 700;
    letter-spacing: 0.03em;
  }
  .tile h3 { color: #fff; font-size: var(--t-2); }
  .tile p {
    margin-block-start: 0.6rem;
    font-size: var(--t--1);
    color: rgba(255, 255, 255, 0.82);
    max-inline-size: 26rem;
  }
  .tile .btn { margin-block-start: 1.25rem; align-self: flex-start; }
  .tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .tile__meta {
    margin-block-start: 0.75rem;
    font-size: var(--t--2);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
  }

  /* --- Çözümler: dikey sekmeler ------------------------------------------ */
  .solutions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }
  .solutions__list { display: grid; }
  .solutions__list button {
    display: block;
    inline-size: 100%;
    padding: 1rem 1.5rem 1rem 0;
    text-align: end;
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink-3);
    border-inline-end: 2px solid var(--line);
    transition: color 0.18s, border-color 0.18s;
  }
  .solutions__list button:hover { color: var(--ink-2); }
  .solutions__list button[aria-selected="true"] {
    color: var(--ink);
    border-inline-end-color: var(--brand);
    border-inline-end-width: 3px;
  }

  .solutions__panel { padding-block-start: 0.75rem; }
  .solutions__panel[hidden] { display: none; }
  .solutions__icon {
    inline-size: 3.25rem;
    block-size: 3.25rem;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--brand-tint);
    color: var(--brand);
    margin-block-end: 1.25rem;
  }
  .solutions__icon svg { inline-size: 1.6rem; block-size: 1.6rem; }
  .solutions__panel h3 { margin-block-end: 0.75rem; }
  .solutions__panel p { max-inline-size: 34rem; }

  .checklist { display: grid; gap: 0.6rem; margin-block-start: 1.5rem; }
  .checklist li {
    display: grid;
    grid-template-columns: 1.35rem 1fr;
    gap: 0.6rem;
    align-items: start;
    font-size: var(--t--1);
  }
  .checklist li::before {
    content: "";
    inline-size: 1.05rem;
    block-size: 1.05rem;
    margin-block-start: 0.28rem;
    border-radius: 50%;
    background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C50B4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 0.65rem no-repeat;
  }

  @media (width < 56rem) {
    .solutions { grid-template-columns: minmax(0, 1fr); }
    .solutions__list {
      display: flex;
      gap: 0.5rem;
      overflow-x: auto;
      padding-block-end: 0.5rem;
      scrollbar-width: thin;
    }
    .solutions__list button {
      inline-size: auto;
      flex: none;
      padding: 0.65rem 1.1rem;
      text-align: center;
      font-size: var(--t--1);
      border: 1px solid var(--line);
      border-radius: 99px;
    }
    .solutions__list button[aria-selected="true"] {
      background: var(--brand);
      border-color: var(--brand);
      color: #fff;
    }
  }

  /* --- Kart -------------------------------------------------------------- */
  .card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.4rem, 2.5vw, 1.9rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s var(--ease);
  }
  .card:hover { box-shadow: var(--shadow); border-color: var(--grey-2); transform: translateY(-2px); }
  .card__top { display: flex; align-items: flex-start; gap: 0.9rem; margin-block-end: 1rem; }
  .card__icon {
    inline-size: 2.75rem;
    block-size: 2.75rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
  }
  .card__icon svg { inline-size: 1.35rem; block-size: 1.35rem; }
  .card h3 { font-size: var(--t-1); line-height: 1.35; }
  .card p { font-size: var(--t--1); }
  .card__foot {
    margin-block-start: auto;
    padding-block-start: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .card--plain:hover { transform: none; }

  /* --- Etiket ------------------------------------------------------------ */
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    background: var(--grey);
    font-size: var(--t--2);
    font-weight: 700;
    color: var(--ink-2);
    white-space: nowrap;
  }
  .pill--brand { background: var(--brand-tint); color: var(--brand); }
  .pill--ok { background: #E7F5EF; color: var(--ok); }
  .pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

  /* --- Müşteri şeridi ---------------------------------------------------- */
  .clients {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(50%, 12rem), 1fr));
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .client {
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 3vw, 2.25rem) 1rem;
    border-inline-start: 1px solid var(--line);
    font-size: var(--t-1);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink-3);
    text-align: center;
    transition: color 0.2s;
  }
  .client:first-child { border-inline-start: 0; }
  .client:hover { color: var(--brand); }
  .client img { max-block-size: 2.5rem; inline-size: auto; filter: grayscale(1); opacity: 0.7; }

  /* --- Proje kartı (liste) ----------------------------------------------- */
  .work {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.22s, transform 0.22s var(--ease);
  }
  .work:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
  .work__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, var(--navy) 0%, var(--brand-dark) 100%);
    overflow: hidden;
  }
  .work__media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    object-position: top center;
    transition: scale 0.5s var(--ease);
  }
  .work:hover .work__media img { scale: 1.04; }
  .work__media--blank { display: grid; place-items: center; }
  .work__media--blank span {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.18);
  }
  .work__tag { position: absolute; inset-block-start: 0.85rem; inset-inline-start: 0.85rem; z-index: 2; background: rgba(255,255,255,.92); }
  .work__body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
  .work__client { font-size: var(--t--2); font-weight: 700; color: var(--brand); margin-block-end: 0.5rem; }
  .work h3 { font-size: var(--t-1); line-height: 1.35; }
  .work h3 a::after { content: ""; position: absolute; inset: 0; }
  .work p { font-size: var(--t--1); margin-block-start: 0.5rem; }
  .work__foot { margin-block-start: auto; padding-block-start: 1.15rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

  /* --- Süreç ------------------------------------------------------------- */
  .steps { display: grid; gap: 0; counter-reset: step; }
  .step {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 8rem);
    gap: clamp(1rem, 3vw, 2rem);
    padding-block: clamp(1.4rem, 2.5vw, 2rem);
    border-block-start: 1px solid var(--line);
    align-items: baseline;
  }
  .step:first-child { border-block-start: 0; padding-block-start: 0; }
  .step__num {
    font-size: var(--t--1);
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 0.02em;
  }
  .step h3 { font-size: var(--t-1); margin-block-end: 0.4rem; }
  .step p { font-size: var(--t--1); max-inline-size: 42rem; }
  .step__when { font-size: var(--t--2); font-weight: 700; color: var(--ink-3); text-align: end; white-space: nowrap; }
  @media (width < 44rem) {
    .step { grid-template-columns: 2.75rem minmax(0, 1fr); }
    .step__when { grid-column: 2; text-align: start; margin-block-start: 0.5rem; }
  }

  /* --- Alıntı ------------------------------------------------------------ */
  .quote {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 2.5vw, 2.1rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .quote::before {
    content: "”";
    font-size: 3.5rem;
    line-height: 0.6;
    color: var(--brand);
    opacity: 0.35;
    margin-block-end: 0.5rem;
  }
  .quote blockquote { font-size: var(--t-1); color: var(--ink); line-height: 1.55; }
  .quote__by { margin-block-start: auto; padding-block-start: 1.4rem; display: flex; align-items: center; gap: 0.85rem; }
  .quote__avatar {
    inline-size: 2.75rem;
    block-size: 2.75rem;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-tint);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--brand);
  }
  .quote__name { display: block; font-weight: 700; color: var(--ink); font-size: var(--t--1); }
  .quote__role { display: block; font-size: var(--t--2); color: var(--ink-3); }

  /* --- Ekip -------------------------------------------------------------- */
  .person { text-align: center; }
  .person__photo {
    inline-size: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--brand-tint);
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    margin-block-end: 1rem;
  }
  .person h3 { font-size: var(--t-1); }
  .person__role { font-size: var(--t--1); font-weight: 600; color: var(--brand); margin-block-start: 0.25rem; }
  .person p { font-size: var(--t--1); margin-block-start: 0.7rem; }

  /* --- SSS --------------------------------------------------------------- */
  .faq {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-block-end: 0.75rem;
  }
  .faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.15rem 1.35rem;
    cursor: pointer;
    list-style: none;
    font-size: var(--t-1);
    font-weight: 700;
    color: var(--ink);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary:hover { color: var(--brand); }
  .faq summary::after {
    content: "";
    flex: none;
    inline-size: 0.65rem;
    block-size: 0.65rem;
    border-inline-end: 2px solid var(--brand);
    border-block-end: 2px solid var(--brand);
    rotate: 45deg;
    translate: 0 -0.15rem;
    transition: rotate 0.25s var(--ease);
  }
  .faq[open] summary::after { rotate: -135deg; translate: 0 0.15rem; }
  .faq[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
  .faq__answer { padding: 0 1.35rem 1.35rem; max-inline-size: 52rem; }

  /* --- Yazı gövdesi ------------------------------------------------------ */
  .prose { max-inline-size: 44rem; font-size: var(--t-1); line-height: 1.75; }
  .prose > * + * { margin-block-start: 1.35rem; }
  .prose h2 { font-size: var(--t-3); margin-block-start: 2.5rem; }
  .prose h3 { font-size: var(--t-2); margin-block-start: 2rem; }
  .prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 0.2em; }
  .prose ul, .prose ol { padding-inline-start: 1.4rem; display: grid; gap: 0.55rem; }
  .prose ul { list-style: none; }
  .prose ul li { position: relative; }
  .prose ul li::before {
    content: "";
    position: absolute;
    inset-inline-start: -1.15rem;
    inset-block-start: 0.72em;
    inline-size: 0.4rem;
    block-size: 0.4rem;
    border-radius: 50%;
    background: var(--brand);
  }
  .prose ol li::marker { color: var(--brand); font-weight: 700; }
  .prose blockquote {
    padding: 1rem 1.35rem;
    border-inline-start: 3px solid var(--brand);
    background: var(--brand-tint);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--ink);
  }
  .prose code { font-family: ui-monospace, monospace; font-size: 0.87em; background: var(--grey); padding: 0.12em 0.4em; border-radius: 3px; }
  .prose pre { padding: 1.15rem; background: var(--navy); color: #E6EAF2; border-radius: var(--radius); overflow-x: auto; font-size: var(--t--1); }
  .prose pre code { background: none; padding: 0; color: inherit; }
  .prose img { border-radius: var(--radius); }
  .prose hr { border: 0; border-block-start: 1px solid var(--line); margin-block: 2.25rem; }

  /* --- Formlar ----------------------------------------------------------- */
  .form { display: grid; gap: 1.2rem; }
  .form__row { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }

  .field { display: grid; gap: 0.4rem; }
  .field > label { font-size: var(--t--1); font-weight: 700; color: var(--ink); }
  .field :is(input, select, textarea) {
    inline-size: 100%;
    min-block-size: 2.9rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--white);
    color: var(--ink);
    transition: border-color 0.16s, box-shadow 0.16s;
  }
  .field textarea { min-block-size: 8.5rem; resize: vertical; line-height: 1.6; }
  .field :is(input, select, textarea)::placeholder { color: var(--ink-3); }
  .field :is(input, select, textarea):hover { border-color: var(--ink-3); }
  .field :is(input, select, textarea):focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(12, 80, 180, 0.14);
  }
  .field :is(input, textarea):user-invalid { border-color: #C4342A; }
  .field__hint { font-size: var(--t--2); color: var(--ink-3); }
  .field__hint--error { color: #C4342A; }
  .field select {
    appearance: none;
    cursor: pointer;
    padding-inline-end: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5567' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 0.85rem center;
    background-size: 1.05rem;
    background-repeat: no-repeat;
  }

  .honeypot { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  .notice {
    display: flex;
    gap: 0.75rem;
    padding: 0.95rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid;
    font-size: var(--t--1);
  }
  .notice--success { background: #E7F5EF; border-color: #B9E2D2; color: #0B5B41; }
  .notice--error { background: #FDECEA; border-color: #F5C6C0; color: #8E241B; }
  .notice strong { display: block; }

  /* --- Sayfa başlığı ----------------------------------------------------- */
  .page-head {
    position: relative;
    padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(120deg, var(--navy) 0%, var(--brand-dark) 100%);
    color: rgba(255, 255, 255, 0.85);
  }
  .page-head h1 { color: #fff; font-size: var(--t-4); max-inline-size: 24ch; }
  .page-head p { margin-block-start: 1.1rem; font-size: var(--t-1); max-inline-size: 46rem; color: rgba(255, 255, 255, 0.82); }
  .page-head .actions { margin-block-start: 1.85rem; }

  .crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: var(--t--2);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin-block-end: 1.1rem;
  }
  .crumbs ol, .crumbs li { display: contents; }
  .crumbs a:hover { color: #fff; }
  .crumbs li + li::before { content: "/"; color: rgba(255, 255, 255, 0.35); }

  /* --- Filtreler --------------------------------------------------------- */
  .filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-end: clamp(1.75rem, 3vw, 2.5rem); }
  .filters a {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 99px;
    font-size: var(--t--1);
    font-weight: 600;
    color: var(--ink-2);
    background: var(--white);
    transition: border-color 0.16s, color 0.16s, background-color 0.16s;
  }
  .filters a:hover { border-color: var(--brand); color: var(--brand); }
  .filters a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

  /* --- Sayfalama --------------------------------------------------------- */
  .pager { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-block-start: 2.75rem; }
  .pager a, .pager span {
    min-inline-size: 2.6rem;
    min-block-size: 2.6rem;
    display: grid;
    place-items: center;
    padding-inline: 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: var(--t--1);
    font-weight: 600;
    background: var(--white);
  }
  .pager a:hover { border-color: var(--brand); color: var(--brand); }
  .pager [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

  /* --- Boş durum --------------------------------------------------------- */
  .empty {
    padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
    text-align: center;
    background: var(--grey);
    border-radius: var(--radius);
  }
  .empty h3 { margin-block-end: 0.6rem; }
  .empty p { max-inline-size: 34rem; margin-inline: auto; }
  .empty .actions { justify-content: center; margin-block-start: 1.5rem; }

  /* --- Çağrı bandı ------------------------------------------------------- */
  .cta {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem);
    border-radius: var(--radius);
    background: linear-gradient(115deg, var(--navy) 0%, var(--brand-dark) 65%, var(--brand) 100%);
    color: rgba(255, 255, 255, 0.85);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    overflow: hidden;
  }
  .cta h2 { color: #fff; font-size: var(--t-3); }
  .cta p { margin-block-start: 0.85rem; max-inline-size: 34rem; }
  .cta .actions { justify-content: flex-end; }
  @media (width < 52rem) {
    .cta { grid-template-columns: minmax(0, 1fr); }
    .cta .actions { justify-content: flex-start; }
  }

  /* --- İletişim bilgileri ------------------------------------------------ */
  .contact-list { display: grid; gap: 1.35rem; }
  .contact-item { display: flex; gap: 0.9rem; align-items: flex-start; }
  .contact-item .card__icon { inline-size: 2.5rem; block-size: 2.5rem; }
  .contact-item dt { font-size: var(--t--2); font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
  .contact-item dd { margin: 0.15rem 0 0; color: var(--ink); font-weight: 600; }
  .contact-item dd a:hover { color: var(--brand); }

  /* --- Alt bilgi --------------------------------------------------------- */
  .site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding-block: clamp(3rem, 5vw, 4.5rem) 1.75rem;
  }
  .footer-grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  }
  .site-footer .logo__text { color: #fff; }
  .site-footer .logo__mark { color: #fff; }
  .footer-about p { font-size: var(--t--1); margin-block-start: 1rem; max-inline-size: 24rem; }
  .footer-col h4 {
    font-size: var(--t--2);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-block-end: 1.1rem;
  }
  .footer-col ul { display: grid; gap: 0.65rem; padding: 0; list-style: none; }
  .footer-col a { font-size: var(--t--1); transition: color 0.16s; }
  .footer-col a:hover { color: #fff; }
  .footer-bottom {
    margin-block-start: clamp(2.5rem, 4vw, 3.5rem);
    padding-block-start: 1.5rem;
    border-block-start: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    font-size: var(--t--2);
    color: rgba(255, 255, 255, 0.55);
  }
  .social { display: flex; gap: 0.5rem; }
  .social a {
    inline-size: 2.35rem;
    block-size: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.18s, color 0.18s;
  }
  .social a:hover { background: var(--brand); color: #fff; }
  .social svg { inline-size: 1.05rem; block-size: 1.05rem; }

  /* --- Yüzen iletişim düğmesi -------------------------------------------- */
  .float-cta {
    position: fixed;
    inset-block-end: 1.5rem;
    inset-inline-end: 1.5rem;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.35rem;
    border-radius: 99px;
    background: var(--brand);
    color: #fff;
    font-size: var(--t--1);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: background-color 0.18s, transform 0.18s var(--ease);
  }
  .float-cta:hover { background: var(--brand-dark); transform: translateY(-2px); }
  .float-cta svg { inline-size: 1.1rem; block-size: 1.1rem; }
  @media (width < 30rem) {
    .float-cta { inset-inline-end: 1rem; inset-block-end: 1rem; padding: 0.75rem 1rem; }
    .float-cta span { display: none; }
  }
}

/* --------------------------------------------------------------------------
   Yardımcılar
   -------------------------------------------------------------------------- */
@layer utilities {
  .visually-hidden {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .muted { color: var(--ink-3); }
  .mt { margin-block-start: clamp(1.75rem, 3vw, 2.5rem); }
  .mt-sm { margin-block-start: 1rem; }
  .text-center { text-align: center; }

  .reveal {
    opacity: 0;
    translate: 0 18px;
    transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.is-visible { opacity: 1; translate: 0 0; }
  .no-js .reveal { opacity: 1; translate: 0 0; }
}

/* --------------------------------------------------------------------------
   Duyarlı
   -------------------------------------------------------------------------- */
@media (width < 64rem) {
  .nav, .header-end .btn { display: none; }
  .nav-toggle { display: grid; }
  .header-inner { justify-content: space-between; }
}

@media (width < 44rem) {
  .header-tel span { display: none; }
}

/* --------------------------------------------------------------------------
   Erişilebilirlik ve baskı
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; translate: none; }
}

@media (forced-colors: active) {
  .card, .work, .quote, .faq { border: 1px solid CanvasText; }
  .btn--primary { border: 1px solid ButtonText; }
}

@media print {
  .site-header, .site-footer, .float-cta, .drawer, .cta, .actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 10pt; }
  .hero, .page-head { background: none !important; color: #000; }
  .hero h1, .page-head h1 { color: #000; }
}
