/* =========================================================
   Carba PDKS — tanıtım sitesi (carbatakvim.com.tr)
   Mobil öncelikli, koyu tema destekli, bağımlılıksız saf CSS
   ========================================================= */

:root {
  --brand: #0f766e;
  --brand-600: #0d9488;
  --brand-700: #115e59;
  --brand-soft: rgba(15, 118, 110, 0.09);
  --bg: #f6faf9;
  --surface: #ffffff;
  --surface-2: #f1f6f5;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #dbe6e4;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --live: #dc2626;
  --live-soft: #fef2f2;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --maxw: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

img, svg { max-width: 100%; }

/* Karanlık tema (sistem tercihi) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111c2e;
    --surface-2: #0f1a2b;
    --ink: #f8fafc;
    --ink-2: #cbd5e1;
    --muted: #94a3b8;
    --line: #1f2e44;
    --brand-soft: rgba(45, 212, 191, .1);
    --ok-soft: rgba(5, 150, 105, .12);
    --warn-soft: rgba(180, 83, 9, .14);
    --live-soft: rgba(220, 38, 38, .14);
    --blue-soft: rgba(37, 99, 235, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

/* Erişilebilirlik */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:where(a, button, summary, .nav__burger):focus-visible {
  outline: 3px solid var(--brand-600); outline-offset: 2px; border-radius: 8px;
}

/* ---------- Ortak ---------- */
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(30px, 5.2vw, 50px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 750; }
p { margin: 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
  font-weight: 750; color: var(--brand-600); margin-bottom: 8px;
}
.hl { color: var(--brand-600); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, .28);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-600); color: var(--brand-700); }
.btn--light { background: #fff; color: var(--brand-700); }
.btn--sm { padding: 8px 14px; font-size: 13.5px; min-height: 38px; border-radius: 10px; }

.tag {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 750; white-space: nowrap;
}
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--live { background: var(--live-soft); color: var(--live); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.brand__text { font-weight: 800; font-size: 16.5px; }
.brand__text b { color: var(--brand-600); }

.nav__toggle { display: none; }
.nav__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; margin-left: auto; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  cursor: pointer;
}
.nav__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

.nav__menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__menu a:not(.nav__cta) {
  padding: 8px 11px; border-radius: 9px; font-size: 14px; font-weight: 650;
  color: var(--ink-2); text-decoration: none;
}
.nav__menu a:not(.nav__cta):hover { background: var(--surface-2); color: var(--brand-700); }
.nav__cta { margin-left: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 340px at 88% -10%, rgba(13, 148, 136, .13), transparent 60%),
    radial-gradient(560px 300px at -8% 12%, rgba(15, 118, 110, .09), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(38px, 6vw, 84px) 20px;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(26px, 4vw, 56px); align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
  background: var(--brand-soft); color: var(--brand-700);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 999px; font-size: 12.5px; font-weight: 700; margin-bottom: 18px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-600); }

.lead { font-size: clamp(15.5px, 1.9vw, 17.5px); color: var(--ink-2); margin: 18px 0 26px; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--muted); }

/* Hero görseli (saf CSS mock) */
.hero__art { display: flex; justify-content: center; }
.mock {
  width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(-.4deg);
}
.mock__bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: #fca5a5; }
.mock__dot.y { background: #fcd34d; } .mock__dot.g { background: #86efac; }
.mock__title { margin-left: 8px; font-size: 12px; font-weight: 750; color: var(--muted); }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.mock__stat { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.mock__stat div { display: flex; flex-direction: column; }
.mock__stat b { font-size: 14.5px; }
.mock__stat small { font-size: 10.5px; color: var(--muted); }
.mock__stat-ico { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.mock__stat-ico.em { background: var(--ok-soft); color: var(--ok); }
.mock__stat-ico.am { background: var(--warn-soft); color: var(--warn); }
.mock__stat-ico.bl { background: var(--blue-soft); color: var(--blue); }
.mock__row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13px;
}
.mock__row small { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mock__row.is-live { background: var(--live-soft); }

/* ---------- Değer şeridi ---------- */
.strip {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  transform: translateY(-24px);
}
.strip__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px;
}
.strip__item b { font-size: 19px; color: var(--brand-700); }
.strip__item span { font-size: 12.5px; color: var(--muted); }

/* ---------- Bölümler ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(44px, 6vw, 76px) 20px; }
.section--tint { max-width: none; background: var(--surface-2); border-block: 1px solid var(--line); }
.section--tint .section__head, .section--tint > :not(.section__head) { max-width: var(--maxw); margin-inline: auto; }
.section__head { max-width: 68ch; margin-bottom: 34px; }
.section__lead { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* Özellik kartları */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card__ico {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 21px; flex: none;
}
.card__ico.em { background: var(--ok-soft); } .card__ico.am { background: var(--warn-soft); }
.card__ico.bl { background: var(--blue-soft); } .card__ico.ti { background: var(--brand-soft); }
.card__ico.gr { background: var(--brand-soft); } .card__ico.pu { background: var(--blue-soft); }
.card p { color: var(--ink-2); font-size: 14.5px; }
.card__list { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: grid; gap: 4px; }
.card__list li::marker { color: var(--brand-600); }

/* Adımlar */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px;
}
.step__num {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; flex: none;
}
.step p { color: var(--muted); font-size: 14px; }

/* Ekranlar */
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.screen {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.screen__top {
  padding: 13px 18px; font-weight: 800; font-size: 14.5px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
}
.screen > p { padding: 16px 18px 0; color: var(--ink-2); font-size: 14.5px; }
.screen__list { padding: 12px 18px 18px; margin: 0; list-style: none; display: grid; gap: 8px; }
.screen__list li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--muted); }
.screen__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px;
  background: var(--brand-soft); color: var(--brand-600); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
}

/* Güvenlik (koyu bant) */
.section--dark { max-width: none; background: #0b1220; color: #e2e8f0; }
.section--dark .section__lead { color: #94a3b8; }
.section--dark .eyebrow { color: #5eead4; }
.sec { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.sec__item {
  border: 1px solid #1f2e44; border-radius: var(--radius-lg); padding: 22px;
  background: rgba(255, 255, 255, .025); display: flex; flex-direction: column; gap: 8px;
}
.sec__item h3 { color: #fff; }
.sec__item p { color: #94a3b8; font-size: 14.5px; }

/* SSS */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; font-weight: 700; color: var(--brand-600); flex: none;
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
}
.faq details[open] summary::after { content: "–"; }
.faq__body { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

/* CTA */
.cta { padding: 0 20px clamp(44px, 6vw, 80px); max-width: var(--maxw); margin: 0 auto; }
.cta__box {
  background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 46px);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta__box h2 { font-size: clamp(22px, 3vw, 30px); }
.cta__box p { margin-top: 10px; color: rgba(255, 255, 255, .85); max-width: 52ch; }

/* Alt bilgi */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 34px 20px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
}
.foot__brand { display: flex; align-items: center; gap: 10px; }
.foot__brand b { display: block; line-height: 1.25; }
.foot__brand small { color: var(--muted); font-size: 12.5px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; }
.foot__nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 650; padding: 6px 4px; }
.foot__nav a:hover { color: var(--brand-700); }
.foot__note { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 18px; margin: 6px 0 0; }

/* =========================================================
   Kırılım noktaları (breakpoints)
   ========================================================= */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: 2; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__burger { display: flex; }
  .nav__menu {
    display: none; width: 100%; margin: 6px 0 4px;
    flex-direction: column; align-items: stretch; gap: 4px;
    border-top: 1px solid var(--line); padding-top: 10px;
  }
  .nav__toggle:checked ~ .nav__menu { display: flex; }
  .nav__menu a:not(.nav__cta) { padding: 11px 12px; }
  .nav__cta { margin: 6px 0 4px; }
  .cta__box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .strip { grid-template-columns: 1fr; transform: translateY(-16px); }
  .mock__stats { grid-template-columns: 1fr 1fr; }
  .mock__stat:last-child { grid-column: 1 / -1; }
  .foot__inner { grid-template-columns: 1fr; }
  .foot__nav { justify-content: flex-start; }
  .hero__points { gap: 8px 14px; }
  .section { padding-left: 16px; padding-right: 16px; }
  .hero__grid { padding-left: 16px; padding-right: 16px; }
  .card, .step, .screen, .faq details { padding-left: 16px; padding-right: 16px; }
  .screen > p, .screen__list { padding-left: 0; padding-right: 0; }
  .screen__list { padding-bottom: 16px; }
  .faq summary, .faq__body { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 400px) {
  .mock__stats { grid-template-columns: 1fr; }
  .mock__stat:last-child { grid-column: auto; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
