/* ─────────────── Anadolu İnşaat — base styles ─────────────── */

:root {
  --bg: oklch(0.15 0.005 80);
  --bg-2: oklch(0.19 0.006 80);
  --surface: oklch(0.22 0.007 80);
  --surface-2: oklch(0.27 0.008 80);
  --line: oklch(0.32 0.008 80);
  --line-strong: oklch(0.42 0.01 80);
  --text: oklch(0.96 0.005 85);
  --text-mute: oklch(0.72 0.008 80);
  --text-dim: oklch(0.55 0.008 80);
  --accent: oklch(0.74 0.13 78);
  --accent-2: oklch(0.62 0.16 50);
  --danger: oklch(0.62 0.18 27);
  --radius: 2px;
  --radius-lg: 4px;
  --dur: 0.45s;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pad: 24px;
  --gap: 24px;
  --container: 1320px;
  --font-display: "Oswald", "Saira Condensed", "Bebas Neue", sans-serif;
  --font-body: "Manrope", "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="light"] {
  --bg: oklch(0.97 0.004 85);
  --bg-2: oklch(0.93 0.005 85);
  --surface: oklch(0.99 0.003 85);
  --surface-2: oklch(0.95 0.004 85);
  --line: oklch(0.85 0.006 85);
  --line-strong: oklch(0.72 0.008 85);
  --text: oklch(0.18 0.006 80);
  --text-mute: oklch(0.42 0.008 80);
  --text-dim: oklch(0.58 0.008 80);
  --accent: oklch(0.58 0.15 60);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* concrete grain noise overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.4 0 0 0 0 0.4 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}
.eyebrow.no-rule::before { display: none; }

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.92;
  margin: 0;
}
.h-display.x1 { font-size: clamp(54px, 8.5vw, 132px); }
.h-display.x2 { font-size: clamp(40px, 5.5vw, 86px); }
.h-display.x3 { font-size: clamp(28px, 3vw, 48px); }
.h-display.x4 { font-size: clamp(20px, 2vw, 28px); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tag.accent { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 35%, var(--line)); }

.idx {
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* button */
.btn {
  --bc: var(--text);
  --bbg: transparent;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font: 500 12.5px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bc);
  background: var(--bbg);
  border: 1px solid var(--bc);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn.accent { --bc: var(--accent); }
.btn.accent:hover { background: var(--accent); color: var(--bg); }
.btn.solid { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn.solid:hover { background: transparent; color: var(--accent); }
.btn.ghost { border-color: var(--line-strong); color: var(--text-mute); }
.btn.ghost:hover { color: var(--text); border-color: var(--text); background: transparent; }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

/* placeholder image */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      oklch(0.28 0.008 80) 0 12px,
      oklch(0.24 0.008 80) 12px 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
}
[data-theme="light"] .ph {
  background:
    repeating-linear-gradient(135deg,
      oklch(0.88 0.005 80) 0 12px,
      oklch(0.82 0.005 80) 12px 24px);
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 70% 20%, transparent 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
[data-theme="light"] .ph::after {
  background: radial-gradient(120% 80% at 70% 20%, transparent 0%, rgba(0,0,0,0.05) 100%);
}
.ph > span {
  position: relative; z-index: 1;
  padding: 6px 10px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--line);
}
[data-theme="light"] .ph > span { background: rgba(255,255,255,0.7); }

/* section */
.section { padding: clamp(72px, 9vw, 140px) 0; position: relative; }
.section.compact { padding: clamp(48px, 6vw, 84px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-head .sh-lead { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.section-head .sh-meta { color: var(--text-mute); max-width: 360px; font-size: 14px; }

/* divider line */
.rule {
  height: 1px; background: var(--line); width: 100%; margin: 0;
}
.rule.thick { background: var(--line-strong); }

/* density */
[data-density="compact"] { --pad: 18px; --gap: 16px; }
[data-density="comfy"] { --pad: 32px; --gap: 32px; }

/* corner radius variants */
[data-radius="sharp"] { --radius: 0px; --radius-lg: 0px; }
[data-radius="soft"] { --radius: 4px; --radius-lg: 8px; }
[data-radius="round"] { --radius: 10px; --radius-lg: 18px; }

/* anim intensity */
[data-anim="low"] * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
[data-anim="high"] { --dur: 0.7s; }

/* fade-in scroll observer */
.fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade.in { opacity: 1; transform: none; }
[data-anim="low"] .fade { opacity: 1; transform: none; }

/* utility */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.stack { display: flex; flex-direction: column; }
.grow { flex: 1; }

/* responsive */
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; }
}
