/* ============ TOKENS ============ */
/* Renk teması: koyu mavi + beyaz. Koyu temada beyaz yüzeyler siyaha döner.
   Marka renkleri: --navy (menü, başlık kartları), --primary (düğme, bağlantı), --accent (vurgu). */
:root {
  --bg: #ffffff;
  --bg-alt: #f1f5fb;
  --surface: #ffffff;
  --text: #0b1b3a;
  --muted: #4b5a77;
  --border: #dbe3ef;
  --primary: #1e3a8a;
  --primary-ink: #ffffff;
  --primary-soft: #e3eafa;
  --accent: #2563eb;
  --accent-soft: #dbe7fe;
  --navy: #0b1f4d;
  --navy-2: #1e3a8a;
  --green: #0f6e4f;
  --green-soft: #ddf3ea;
  --amber: #8a4b00;
  --amber-soft: #fdf0d9;
  --live: #b8213b;
  --shadow: 0 1px 2px rgba(11, 27, 58, .06), 0 8px 24px rgba(11, 27, 58, .08);
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #0e0f12; --surface: #08090b; --text: #f2f5fb; --muted: #9aa6bd;
    --border: #23272f; --primary: #60a5fa; --primary-ink: #000000; --primary-soft: #0d1d3a;
    --accent: #93c5fd; --accent-soft: #0b1a33; --navy: #0a1a40; --navy-2: #1e3a8a;
    --green: #4fd1a0; --green-soft: #0c2a1f;
    --amber: #f3b452; --amber-soft: #2a1f0c; --live: #ff5c73;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #0e0f12; --surface: #08090b; --text: #f2f5fb; --muted: #9aa6bd;
  --border: #23272f; --primary: #60a5fa; --primary-ink: #000000; --primary-soft: #0d1d3a;
  --accent: #93c5fd; --accent-soft: #0b1a33; --navy: #0a1a40; --navy-2: #1e3a8a;
  --green: #4fd1a0; --green-soft: #0c2a1f;
  --amber: #f3b452; --amber-soft: #2a1f0c; --live: #ff5c73;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }
.center { text-align: center; margin-top: 32px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent);} 100%{ box-shadow: 0 0 0 10px transparent; } }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.3rem; }
.logo-mark {
  width: 36px; height: 36px; display: block; flex-shrink: 0; object-fit: contain; background: none;
}
/* Açık zeminde beyaz F'nin kenarını belirginleştir (koyu tema ve koyu menüde gerek yok) */
:root[data-theme="light"] :is(.logo-mark, .tb-logo img) { filter: drop-shadow(0 0 .5px #2580cd) drop-shadow(0 0 .5px #2580cd); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) :is(.logo-mark, .tb-logo img) { filter: drop-shadow(0 0 .5px #2580cd) drop-shadow(0 0 .5px #2580cd); } }
.sidebar .logo-mark, .logo-light .logo-mark { filter: none !important; }
.logo-text { font-weight: 500; }
.logo-text strong { font-weight: 800; color: var(--primary); }
.main-nav { display: flex; gap: 4px; margin-left: 16px; }
.main-nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.main-nav a:hover { background: var(--primary-soft); color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ============ HERO ============ */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem;
  color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
.hl { color: var(--accent); position: relative; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px; }
.hero-stats strong { display: block; font-size: 1.5rem; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

.hero-visual { position: relative; min-height: 400px; }
.hero-blob {
  position: absolute; inset: 10% 5%; border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 60%), var(--primary-soft); z-index: 0;
}
.float-card {
  position: absolute; z-index: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 6px; min-width: 210px;
  animation: float 6s ease-in-out infinite;
}
.float-card small { color: var(--muted); }
.fc-1 { top: 8%; left: 2%; }
.fc-2 { top: 42%; right: 0; animation-delay: -2s; }
.fc-3 { bottom: 6%; left: 14%; animation-delay: -4s; }
.greet { font-weight: 800; font-size: 1.1rem; }
.progress { height: 6px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ============ BADGES ============ */
.badge { justify-self: start; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.badge-doc { background: var(--primary-soft); color: var(--primary); }
.badge-int { background: var(--amber-soft); color: var(--amber); }
.badge-video { background: var(--green-soft); color: var(--green); }
.badge-live { background: var(--accent-soft); color: var(--live); }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
/* Ekran dışındaki bölümler kaydırılınca çizilsin (ilk açılış hızlanır) */
.section { content-visibility: auto; contain-intrinsic-size: auto 700px; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 36px; max-width: 640px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head h2, .live-grid h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ============ TABS ============ */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.tabs [role="tab"] {
  text-align: left; padding: 14px 18px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: var(--surface); font-weight: 700; display: grid; gap: 2px; transition: border-color .15s, background .15s;
}
.tabs [role="tab"] small { font-weight: 500; color: var(--muted); }
.tabs [role="tab"]:hover { border-color: var(--primary); }
.tabs [role="tab"][aria-selected="true"] { border-color: var(--primary); background: var(--primary-soft); }
.tab-panel {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.tab-panel[hidden] { display: none; }
.panel-copy p { color: var(--muted); }
.panel-copy h3 { font-size: 1.6rem; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 6px; }
.panel-art { aspect-ratio: 4/3; border-radius: var(--radius); display: grid; place-items: center; font-size: 5rem; }
.art-oo { background: var(--accent-soft); } .art-ilk { background: var(--amber-soft); }
.art-orta { background: var(--green-soft); } .art-lise { background: var(--primary-soft); }

/* ============ ERİŞİLEBİLİRLİK ============ */
.a11y-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.a11y-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.a11y-card h3 { font-size: 1.1rem; margin: 0 0 6px; }
.a11y-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.a11y-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; background: var(--primary-soft); }
@media (max-width: 900px) { .a11y-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .a11y-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============ SIK SORULAN SORULAR ============ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; }
.faq details[open] { border-color: var(--primary); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 700; color: var(--primary); flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
.faq summary h3 { font-size: 1.05rem; margin: 0; }
.faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.7; }

/* ============ ROLE CARDS ============ */
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.role-card {
  text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.role-card p { color: var(--muted); flex: 1; }
.role-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 18px; }
.ri-1 { background: var(--primary-soft); } .ri-2 { background: var(--accent-soft); } .ri-3 { background: var(--green-soft); }
.arrow-link { font-weight: 700; color: var(--primary); }

/* ============ CONTENT GRID ============ */
.filters, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .9rem;
}
.chip:hover { border-color: var(--primary); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.content-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.content-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.content-card[hidden] { display: none; }
.thumb { aspect-ratio: 16/10; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; }
.t-tr { background: var(--accent-soft); color: var(--accent); }
.t-fen { background: var(--green-soft); color: var(--green); }
.t-mat { background: var(--primary-soft); color: var(--primary); }
.t-en { background: var(--amber-soft); color: var(--amber); }
.cc-body { padding: 14px 16px 18px; display: grid; gap: 6px; }
.cc-body h3 { font-size: 1rem; margin: 0; }
.cc-body small { color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 32px; }

/* ============ LIVE ============ */
.live-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 800;
}
.steps span { color: var(--muted); }
.live-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  display: grid; gap: 8px;
}
.live-form label { font-weight: 700; }
.live-form input {
  font: inherit; font-size: 1.3rem; letter-spacing: .25em; text-transform: uppercase; padding: 14px 16px;
  border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--bg); color: var(--text);
}
.live-form input:focus { border-color: var(--primary); outline: none; }
.live-form input[aria-invalid="true"] { border-color: var(--live); }
.vp-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.vp-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-alt); }
.vp-list div { display: grid; line-height: 1.3; }
.vp-list small { color: var(--muted); }
.vp-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--primary-soft); color: var(--primary); }
.help { color: var(--muted); }
.error { color: var(--live); font-weight: 600; min-height: 1.2em; }
.text-link { text-align: center; color: var(--primary); font-weight: 600; margin-top: 6px; }

/* ============ FEATURES ============ */
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-grid a {
  display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 700; transition: border-color .15s, transform .15s;
}
.feature-grid a:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature-grid span { font-size: 1.5rem; }

/* ============ FOOTER ============ */
.site-footer { background: #0b1f4d; color: #c8d3ea; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 1rem; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-grid nav a { text-decoration: none; }
.footer-grid nav a:hover { color: #fff; text-decoration: underline; }
.logo-light { color: #fff; margin-bottom: 12px; }
.logo-light .logo-text strong { color: #93c5fd; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #1a3268; margin-top: 40px; padding-top: 20px; }

/* ============ BOTTOM NAV (mobile) ============ */
.bottom-nav { display: none; }

/* ============ SEARCH ============ */
.search-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 10, 20, .55); backdrop-filter: blur(4px);
  display: grid; justify-items: center; align-items: start; padding: 10vh 16px 16px;
}
.search-overlay[hidden] { display: none; }
.search-box { width: min(640px, 100%); background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.search-input-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 16px; }
.search-input-row > svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-input-row input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.1rem; color: var(--text); outline: none; min-width: 0; }
.search-box h4 { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.search-results { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 4px; }
.search-results li { padding: 10px 12px; border-radius: 8px; display: flex; justify-content: space-between; gap: 12px; }
.search-results li:hover { background: var(--bg-alt); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .content-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .live-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
}
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  /* Telefonda bulanıklık efekti kaydırmayı yavaşlatır: düz arka plan kullan */
  .site-header { backdrop-filter: none; background: var(--bg); }
  .main-nav, .header-actions .btn-ghost, #searchOpen { display: none; }
  .hero { padding-top: 32px; padding-bottom: 24px; }
  .hero-ctas { display: grid; gap: 10px; margin: 22px 0 28px; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { min-height: 250px; margin-top: 8px; }
  .float-card { padding: 12px 14px; min-width: 0; }
  .fc-1 { top: 0; left: 0; } .fc-2 { top: 34%; right: 0; } .fc-3 { bottom: 0; left: 8%; }
  .hero-stats { gap: 22px; }
  .section { padding: 56px 0; }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .tab-panel { grid-template-columns: 1fr; padding: 24px; }
  .panel-art { display: none; }
  .role-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button {
    display: grid; place-items: center; font-size: .78rem; font-weight: 700; text-decoration: none; text-align: center;
    background: none; border: 0; padding: 12px 2px; border-radius: 10px; color: var(--muted);
  }
  .bottom-nav span { font-size: 1.2rem; }
  .bottom-nav [aria-current="page"] { color: var(--primary); }
}
@media (max-width: 420px) {
  .content-grid, .feature-grid { grid-template-columns: 1fr; }
  .float-card { min-width: 0; max-width: 62%; }
  .hero-stats strong { font-size: 1.3rem; }
}

/* Tablet: üst menü bağlantıları sığmıyorsa gizle; düğmeler kalır */
@media (max-width: 980px) { .site-header .main-nav { display: none; } }
