/* =========================================================
   Qalitas Technology Studio — Site stilleri
   Tailwind utility'lerine ek olarak marka bileşenleri
   ========================================================= */
:root {
  --brand: #31A8C8;
  --brand-600: #2690AE;
  --brand-700: #20738A;
  --brand-800: #1C5E6A;
  --brand-900: #16454F;
  --brand-950: #0F2E35;
  --brand-50: #EEF8FB;
  --ink: #4D4D4D;
  --ink-soft: #6B7275;
  --ink-dark: #2B3133;
  --line: #E3EAEC;
  --mist: #F4F7F8;
  --header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: #fff;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arimo, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--brand); color: #fff; }

/* Header yer tutucu: JS yüklenene kadar kayma olmasın */
#site-header { min-height: calc(var(--header-h) + 4px); }

/* ---------- Marka çizgisi (kartvizitteki turkuaz şerit) ---------- */
.brand-strip { height: 4px; background: var(--brand); }

/* ---------- Üçgen motif (logodaki A harfinden) ---------- */
.tri {
  display: inline-block; width: 0; height: 0;
  border-left: .42em solid transparent; border-right: .42em solid transparent;
  border-bottom: .72em solid var(--brand);
}
.tri-right {
  display: inline-block; width: 0; height: 0;
  border-top: .42em solid transparent; border-bottom: .42em solid transparent;
  border-left: .72em solid var(--brand);
}

/* ---------- Eyebrow (TECHNOLOGY STUDIO harf aralığı) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: ""; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 9px solid var(--brand);
}
.on-dark .eyebrow, .eyebrow.on-dark { color: #7FCBE0; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: .6rem; font-weight: 700; font-size: .95rem;
  line-height: 1.2; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
  white-space: nowrap; cursor: pointer;
}
.btn:focus-visible { outline: 3px solid rgba(49,168,200,.45); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px rgba(49,168,200,.6); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn-dark { background: var(--brand-950); color: #fff; }
.btn-dark:hover { background: var(--brand-800); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink-dark); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.3); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--brand-700); }
.link-arrow:hover { color: var(--brand-900); }

/* ---------- İkonlar ---------- */
[data-icon] { display: inline-flex; flex-shrink: 0; }
[data-icon] svg { width: 100%; height: 100%; }
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: .8rem;
  background: var(--brand-50); color: var(--brand-700);
}
.icon-tile [data-icon] { width: 1.5rem; height: 1.5rem; }

/* ---------- Kartlar ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
a.card:hover, .card.hoverable:hover {
  border-color: rgba(49,168,200,.55); transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(15,46,53,.05), 0 20px 40px -16px rgba(15,46,53,.22);
}

/* ---------- Rozetler ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 999px; white-space: nowrap;
}
.badge-active { background: #E3F6EC; color: #1E7A4C; }
.badge-active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2FB36D; box-shadow: 0 0 0 3px rgba(47,179,109,.2); }
.badge-soon { background: #F1F3F4; color: #5E6669; }
.badge-wait { background: var(--brand-50); color: var(--brand-700); }

/* ---------- Koyu bölüm ve Q gradyanı ---------- */
.bg-ribbon {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(49,168,200,.35), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(49,168,200,.18), transparent 60%),
    linear-gradient(160deg, #13404A 0%, #0F2E35 55%, #0C252B 100%);
}
.text-ribbon {
  background: linear-gradient(100deg, #31A8C8 0%, #2AA8BE 40%, #1C5E6A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.on-dark .text-ribbon { background: linear-gradient(100deg, #7FE0F2 0%, #31A8C8 70%); -webkit-background-clip: text; background-clip: text; }
.q-watermark {
  position: absolute; pointer-events: none; user-select: none;
  background: url("../img/logo-mark.png") no-repeat center / contain;
}
.grid-lines {
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.dot-grid {
  background-image: radial-gradient(rgba(49,168,200,.22) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Header ---------- */
.site-header { transition: box-shadow .25s, background-color .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(15,46,53,.25); }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .25rem;
  padding: .5rem .7rem; border-radius: .5rem; font-size: .925rem; font-weight: 600; color: var(--ink-dark);
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-item.open > .nav-link { color: var(--brand-700); background: var(--brand-50); }
.nav-link.is-active { color: var(--brand-700); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 8px solid var(--brand);
}
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; opacity: .6; }
.nav-item.open > .nav-link .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
  background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  box-shadow: 0 24px 60px -20px rgba(15,46,53,.35);
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown.dd-start { left: -1rem; transform: translateY(6px); }
.nav-item.open > .dropdown.dd-start { transform: none; }
.dd-link { display: flex; gap: .85rem; padding: .7rem .8rem; border-radius: .7rem; transition: background-color .15s; }
.dd-link:hover, .dd-link:focus-visible { background: var(--mist); outline: none; }
.dd-link .dd-title { font-weight: 700; color: var(--ink-dark); font-size: .925rem; }
.dd-link:hover .dd-title { color: var(--brand-700); }
.dd-link .dd-desc { font-size: .8rem; color: var(--ink-soft); line-height: 1.4; margin-top: .1rem; }

/* Mobil menü */
.mobile-panel { transform: translateX(100%); transition: transform .3s ease; }
.mobile-open .mobile-panel { transform: translateX(0); }
.mobile-overlay { opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mobile-open .mobile-overlay { opacity: 1; visibility: visible; }
.mobile-open { overflow: hidden; }
.m-group > button .chev { transition: transform .2s; }
.m-group.open > button .chev { transform: rotate(180deg); }

/* ---------- Breadcrumb ---------- */
.crumbs a { color: rgba(255,255,255,.7); }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .4; margin: 0 .5rem; }

/* ---------- Yol haritası ---------- */
.roadmap-step { position: relative; }
.roadmap-dot {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; background: #fff; border: 2px solid var(--line); color: var(--ink-soft);
  position: relative; z-index: 1;
}
.roadmap-step.is-active .roadmap-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 6px rgba(49,168,200,.18); }

/* ---------- Akordeon ---------- */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.15rem 0; font-weight: 700; color: var(--ink-dark); }
.acc-btn:hover { color: var(--brand-700); }
.acc-btn .plus { width: 1.75rem; height: 1.75rem; border-radius: 999px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .25s, background-color .2s, border-color .2s; }
.acc-item.open .acc-btn .plus { transform: rotate(45deg); background: var(--brand); border-color: var(--brand); color: #fff; }
.acc-panel { display: none; padding-bottom: 1.25rem; }

/* ---------- Sekmeler ---------- */
.tab-btn { padding: .75rem 1.1rem; font-weight: 700; color: var(--ink-soft); border-radius: .6rem; transition: all .2s; }
.tab-btn:hover { color: var(--brand-700); }
.tab-btn.is-active { background: #fff; color: var(--brand-700); box-shadow: 0 4px 14px -6px rgba(15,46,53,.25); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .35s ease; }

/* ---------- Formlar ---------- */
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-dark); margin-bottom: .4rem; }
.field label .req { color: var(--brand-600); }
.input, .select, .textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: .6rem; background: #fff;
  padding: .75rem .9rem; font-size: .95rem; color: var(--ink-dark); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7275' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.5rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(49,168,200,.15); }
.input::placeholder, .textarea::placeholder { color: #9AA3A6; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #D9534F; }
.field .error-msg { display: none; font-size: .8rem; color: #C0392B; margin-top: .35rem; }
.field.has-error .error-msg { display: block; }
.check, .field label.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .875rem; line-height: 1.5; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--brand); flex-shrink: 0; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; padding: .5rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .875rem; font-weight: 600; cursor: pointer; transition: all .15s; user-select: none; }
.chip-check input:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--brand-700); }
.chip-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(49,168,200,.3); }
.form-success { display: none; }
.is-submitted .form-body { display: none; }
.is-submitted .form-success { display: block; animation: fadeUp .4s ease; }

/* ---------- Metin içerik (blog, yasal) ---------- */
.prose-q { color: var(--ink); line-height: 1.8; font-size: 1.05rem; }
.prose-q h2 { font-size: 1.5rem; font-weight: 700; color: var(--ink-dark); margin: 2.5rem 0 1rem; line-height: 1.3; }
.prose-q h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink-dark); margin: 1.75rem 0 .6rem; }
.prose-q p { margin: 0 0 1.1rem; }
.prose-q ul, .prose-q ol { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.prose-q ul li { list-style: none; position: relative; margin-bottom: .5rem; }
.prose-q ul li::before { content: ""; position: absolute; left: -1.2rem; top: .62em; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid var(--brand); }
.prose-q ol li { list-style: decimal; margin-bottom: .5rem; }
.prose-q a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.prose-q strong { color: var(--ink-dark); }
.prose-q blockquote { border-left: 3px solid var(--brand); padding: .25rem 0 .25rem 1.25rem; margin: 1.5rem 0; color: var(--ink-dark); font-size: 1.15rem; font-style: italic; }
.prose-q table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.prose-q th, .prose-q td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose-q th { background: var(--mist); color: var(--ink-dark); }

/* prose dışı bloklar */
.prose-q .not-prose a { text-decoration: none; }
.prose-q .not-prose a.link-arrow { color: var(--brand-700); }

/* ---------- Kontrol listesi ---------- */
.check-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: .1rem; border-radius: 999px;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2320738A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
}
.on-dark .check-list li::before { background-color: rgba(49,168,200,.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237FE0F2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Blog filtresi ---------- */
.filter-btn { padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .875rem; font-weight: 700; color: var(--ink-soft); transition: all .15s; }
.filter-btn:hover { border-color: var(--brand); color: var(--brand-700); }
.filter-btn.is-active { background: var(--brand-950); border-color: var(--brand-950); color: #fff; }

/* ---------- Kaydırma animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes floatQ { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.float-q { animation: floatQ 9s ease-in-out infinite; }

/* ---------- Çerez bandı ---------- */
.cookie-bar { transform: translateY(140%); transition: transform .4s ease; }
.cookie-bar.show { transform: translateY(0); }

/* ---------- Yukarı çık ---------- */
.to-top { opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-q { animation: none; }
}

/* Yazdırma */
@media print {
  #site-header, #site-footer, .cookie-bar, .to-top { display: none !important; }
}

/* Koyu zeminlerde beyaz Q filigranı (kartvizitteki %5 opak filigran) */
.on-dark .q-watermark, .bg-ribbon .q-watermark, .bg-brand-950 .q-watermark, .q-watermark.is-light {
  background-image: url("../img/logo-mark-white.png");
}
