/* =====================================================================
   ENPOL — Tasarım jetonları (tokens.css)
   Referans tasarım dili: lacivert + altın; açık ve koyu tema.
   Bu dosyada yalnızca değişkenler, reset ve temel yerleşim vardır.
   ===================================================================== */

/* --- 1. Jetonlar ---------------------------------------------------- */
:root {
  color-scheme: light;

  /* Marka paleti */
  --navy-900: #0B1830;
  --navy-800: #102245;
  --navy-700: #16305C;
  --navy-600: #1E3D72;
  --navy-500: #2A4C86;
  --gold-600: #A9872F;
  --gold-500: #C6A046;
  --gold-400: #D8BC6B;

  --brand: #102245;
  --accent: #C6A046;
  --accent-2: #D8BC6B;
  --accent-ink: #0B1830;

  /* Yüzeyler */
  --bg: #FFFFFF;
  --bg-2: #F6F4EF;
  --bg-3: #EFEAE0;
  --surface: #FFFFFF;
  --surface-2: #F6F4EF;

  /* Metin */
  --fg: #102245;
  --fg-soft: #54627C;
  --fg-mute: #7E8AA0;

  /* Çizgiler */
  --line: #E4DFD4;
  --line-strong: #D3CAB8;

  /* Durum */
  --danger: #B23A2E;
  --ok: #2F8F5B;

  /* Kart bağlamı (band-dark içinde otomatik değişir) */
  --card-bg: #FFFFFF;
  --card-fg: #102245;
  --card-soft: #54627C;
  --card-line: #E4DFD4;
  --card-num: #A9872F;

  /* Ölçü & biçim */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 34, 69, .06);
  --shadow: 0 24px 60px -40px rgba(16, 34, 69, .55);
  --shadow-lg: 0 40px 90px -52px rgba(16, 34, 69, .65);

  /* Tipografi */
  --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Yerleşim */
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 78px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- 2. Koyu tema (html[data-theme=dark] VE .band-dark) -------------- */
[data-theme="dark"],
.band-dark {
  color-scheme: dark;

  --brand: #E7EDF8;
  --accent: #C6A046;
  --accent-2: #D8BC6B;

  --bg: #0A1322;
  --bg-2: #0E1B2E;
  --bg-3: #0C1728;
  --surface: #101F36;
  --surface-2: #0E1B2E;

  --fg: #EEF1F6;
  --fg-soft: #A7B6CC;
  --fg-mute: #7C8CA6;

  --line: rgba(214, 224, 240, .14);
  --line-strong: rgba(214, 224, 240, .26);

  --card-bg: #101F36;
  --card-fg: #EEF1F6;
  --card-soft: #A7B6CC;
  --card-line: rgba(214, 224, 240, .14);
  --card-num: #D8BC6B;

  --shadow: 0 30px 70px -40px rgba(0, 0, 0, .8);
  --shadow-lg: 0 50px 100px -52px rgba(0, 0, 0, .85);
}

/* Koyu zeminde beyaz kartlar için açık bağlam */
.on-light,
.panel-light {
  color-scheme: light;
  --card-bg: #FFFFFF;
  --card-fg: #102245;
  --card-soft: #54627C;
  --card-line: #E4DFD4;
  --card-num: #A9872F;
  --fg: #102245;
  --fg-soft: #54627C;
  --line: #E4DFD4;
  --bg: #FFFFFF;
  --bg-2: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #F6F4EF;
}

/* --- 3. Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

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

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* --- 4. Tipografi --------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--fg);
}
h1 { font-size: clamp(32px, 4.6vw, 56px); }
h2 { font-size: clamp(27px, 3.4vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 16px; font-weight: 700; }

em { font-style: normal; color: var(--accent); }

.lede { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--fg-soft); max-width: 62ch; }
.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* --- 5. Yerleşim ---------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(44px, 6vw, 72px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- 6. Yardımcılar ------------------------------------------------- */
.band-dark { background: var(--bg); color: var(--fg); }
.band-alt  { background: var(--bg-2); }
.bg-grid {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--fg) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--fg) 7%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
}
.bg-grid-dark {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(30, 61, 114, .55), transparent 60%),
    linear-gradient(160deg, #0A1322 0%, #0E1B2E 45%, #0A1322 100%);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 7. Hareket (reveal) -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
