/* ==========================================================================
   Zyronhost — temel katman: tasarım token'ları, sıfırlama, tipografi
   Siyah + metalik gümüş + gold: logodaki üç malzeme sitenin tamamında kullanılır.
   ========================================================================== */

:root {
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(1.9rem, 1.35rem + 1.7vw, 2.75rem);
  --fs-hero: clamp(2.55rem, 1.3rem + 4.4vw, 5.1rem);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --cut: 12px; /* logodaki kesik köşe (chamfer) */

  --container: 1240px;
  --gutter: 16px;
  --header-h: 76px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Gold — admin tema ayarları satır içi <style> ile ezer */
  --gold: #D4AF37;
  --gold-rgb: 212, 175, 55;
  --gold-bright: #FFD76A;
  --gold-soft: #C99A2E;
  --gold-ink: #8A6A1C;
  --glow: .6;

  --success: #3DD68C;
  --warning: #F5B83D;
  --danger: #FF6B5E;
  --info: #7CB8FF;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050505;
  --bg-rgb: 5, 5, 5;
  --bg-2: #0A0A0A;
  --surface: #101010;
  --surface-2: #151515;
  --surface-3: #1C1C1C;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #F7F7F7;
  --text-2: #C9C9CB;
  --muted: #9B9B9B;
  --gold-text: var(--gold-bright);
  --on-gold: #140F02;
  --glass: rgba(14, 14, 14, .62);
  --glass-strong: rgba(10, 10, 10, .86);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .9);
  --shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, .8);
  --metal-silver: linear-gradient(176deg, #FFFFFF 8%, #E2E3E7 34%, #9A9CA3 56%, #F1F2F4 74%, #B5B7BD 100%);
  --metal-gold: linear-gradient(176deg, #FFF0C2 0%, #FFD76A 26%, #D4AF37 54%, #A27E22 78%, #EBC968 100%);
  --metal-gold-btn: linear-gradient(170deg, #FFE7A1 0%, var(--gold-bright) 22%, var(--gold) 58%, var(--gold-soft) 100%);
  --success-bg: rgba(61, 214, 140, .12);
  --warning-bg: rgba(245, 184, 61, .12);
  --danger-bg: rgba(255, 107, 94, .12);
  --info-bg: rgba(124, 184, 255, .12);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #F8F5EE;
  --bg-rgb: 248, 245, 238;
  --bg-2: #F1ECE1;
  --surface: #FFFFFF;
  --surface-2: #FCFAF6;
  --surface-3: #F2EDE2;
  --line: rgba(32, 26, 12, .10);
  --line-strong: rgba(32, 26, 12, .2);
  --text: #15130E;
  --text-2: #3D392F;
  --muted: #6E685B;
  --gold-text: var(--gold-ink);
  --on-gold: #140F02;
  --glass: rgba(255, 253, 248, .74);
  --glass-strong: rgba(255, 253, 248, .92);
  --shadow: 0 22px 50px -28px rgba(70, 52, 12, .38);
  --shadow-sm: 0 10px 22px -16px rgba(70, 52, 12, .4);
  --metal-silver: linear-gradient(176deg, #34353A 0%, #1A1B1E 46%, #4B4D53 72%, #222327 100%);
  --metal-gold: linear-gradient(176deg, #B98C22 0%, var(--gold-ink) 55%, #5E460A 100%);
  --metal-gold-btn: linear-gradient(170deg, #FFE7A1 0%, var(--gold-bright) 22%, var(--gold) 58%, var(--gold-soft) 100%);
  --success: #12965A;
  --warning: #A86A00;
  --danger: #C8382B;
  --info: #2368C4;
  --success-bg: rgba(18, 150, 90, .1);
  --warning-bg: rgba(168, 106, 0, .1);
  --danger-bg: rgba(200, 56, 43, .09);
  --info-bg: rgba(35, 104, 196, .09);
}

/* ---------------------------------------------------------------- reset */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

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

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; height: 1px; background: var(--line); margin: 24px 0; }
[hidden] { display: none !important; }

::selection { background: var(--gold); color: #0A0A0A; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
html[data-theme="light"] :focus-visible { outline-color: var(--gold-ink); }

/* İnce gold kaydırma çubuğu */
* { scrollbar-width: thin; scrollbar-color: rgba(var(--gold-rgb), .45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(var(--gold-rgb), .38); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------- tipografi */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--text);
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); line-height: 1.2; }
h4 { font-size: var(--fs-md); font-weight: 600; }

.lead { font-size: var(--fs-md); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.text-gold { color: var(--gold-text); }
.nowrap { white-space: nowrap; }

/* Logodaki gümüş/gold yüzeyleri yazıya taşır */
.metal-silver,
.metal-gold {
  background: var(--metal-silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.metal-gold { background-image: var(--metal-gold); }

/* ---------------------------------------------------------------- yardımcılar */

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: #0A0A0A;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.18em;
}
.icon--fill { fill: currentColor; stroke: none; }

.section { padding-block: clamp(64px, 5vw + 32px, 112px); position: relative; }
.section--tight { padding-block: clamp(40px, 3vw + 24px, 72px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.section-head__text { max-width: 640px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { margin: 0; color: var(--text-2); font-size: var(--fs-md); }

@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

body.no-scroll { overflow: hidden; }
