/* ── Inter · self-hosted (SIL OFL 1.1) · variable font · ağırlık 300–700 · latin + latin-ext (Türkçe)
 *    Google Fonts CDN yerine · gizlilik (IP yok) + CSP 'self' + hız · Google'ın aynı variable woff2'si · render birebir ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ────────────────────────────────────────────────
 * TreScout · paylaşılan site iskeleti (standart)
 * Tokens + reset + nav + buttons + footer · index.html'in iskeletinden çıkarıldı.
 * İkincil sayfalar (rapor arşivi vb.) bunu link'ler · aynı logo/menü/footer/yerleşim.
 * Not: index.html bunu (iskelet) + assets/index.css'i (sayfa-özel) link'ler.
 * Artık index.html'de inline CSS yok · CSP style-src 'unsafe-inline' kaldırıldı.
 * ──────────────────────────────────────────────── */

/* ---------- TOKENS ---------- */
:root {
  --brand: #1B4965;
  --brand-light: #5FA8D3;
  --accent: #F4D35E;
  --bg: #0F1929;
  --bg-elevated: #1B2A40;
  --border: #1B4965;
  --ink: #E8F1F5;
  --ink-muted: #A8C0D0;
  --success: #4DBE89;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }

/* ---------- A11Y · Skip-to-content ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03', 'kern';
  font-variation-settings: 'opsz' 32;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  max-width: 100vw;
}

/* Full-page background arcs · logo'dan ilham · subtle radar dalgaları (site geneli) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(95, 168, 211, 0.03) 0%, transparent 12%),
    radial-gradient(circle at 15% 30%, transparent 12%, rgba(95, 168, 211, 0.025) 14%, transparent 16%),
    radial-gradient(circle at 15% 30%, transparent 18%, rgba(95, 168, 211, 0.02) 20%, transparent 22%),
    radial-gradient(circle at 85% 70%, rgba(95, 168, 211, 0.03) 0%, transparent 12%),
    radial-gradient(circle at 85% 70%, transparent 12%, rgba(95, 168, 211, 0.025) 14%, transparent 16%),
    radial-gradient(circle at 85% 70%, transparent 18%, rgba(95, 168, 211, 0.02) 20%, transparent 22%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }
nav, main, footer { position: relative; z-index: 2; }

::selection { background: rgba(244, 211, 94, 0.3); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(15, 25, 41, 0.72);
  border-bottom: 1px solid rgba(95, 168, 211, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}
nav.scrolled {
  background: rgba(15, 25, 41, 0.92);
  border-bottom-color: rgba(95, 168, 211, 0.22);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  min-height: 76px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  transition: opacity 0.18s ease;
}
.logo-link:hover { opacity: 0.85; }
.logo-link svg { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.logo-link:hover svg { transform: rotate(-4deg) scale(1.05); }
.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .logo-link { gap: 8px; }
  /* Mobilde nav taşmasın: bölüm linkleri (ghost) gizlenir, birincil CTA kalır · tüm bölümler footer'da */
  .nav-actions { gap: 6px; }
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.18s ease,
              background 0.18s ease,
              color 0.18s ease;
  white-space: nowrap;
  position: relative;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(180deg, #F8DC72 0%, #F4D35E 100%);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
              0 4px 12px rgba(244, 211, 94, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset,
              0 12px 28px rgba(244, 211, 94, 0.32);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset,
              0 4px 10px rgba(244, 211, 94, 0.2);
}
.btn-ghost { color: var(--ink-muted); }
.btn-ghost:hover { color: var(--ink); }

/* ---------- SIGNUP CTA · rapor sayfaları (erken erişim dönüşümü) ---------- */
.signup-cta {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid rgba(244, 211, 94, 0.28);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.signup-cta p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); max-width: 58ch; }
.signup-cta strong { color: var(--accent); font-weight: 700; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid rgba(95, 168, 211, 0.15);
  background: linear-gradient(180deg, transparent 0%, rgba(15, 25, 41, 0.4) 100%);
  padding: 64px 0 32px;
  color: var(--ink-muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-block { max-width: 320px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: var(--ink-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(95, 168, 211, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-muted);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-meta { font-style: italic; opacity: 0.8; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-block { grid-column: 1 / -1; max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
