/* ZelixOS — monochrome base stylesheet */

:root {
  --bg: #0b0b0c;
  --surface: #131314;
  --surface-2: #101011;
  --line: #26262a;
  --line-strong: #3a3a3f;
  --fg: #f2f2f3;
  --muted: #a1a1a6;
  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--fg); }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .container {
  min-height: 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--fg); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 28px; font-size: 15px; }
.nav-links a[aria-current="page"] { color: var(--fg); border-bottom: 1px solid var(--fg); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px; border-radius: 4px;
  font-family: inherit; font-size: 16px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-lg { height: 52px; padding: 0 32px; }
.btn-primary, .btn-primary:hover { background: var(--fg); color: var(--bg); font-weight: 600; }
.btn-primary:hover { background: #fff; }
.btn-outline, .btn-outline:hover { color: var(--fg); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--fg); }
.btn-outline-strong, .btn-outline-strong:hover { color: var(--fg); border-color: var(--fg); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.site-language-toggle { min-width: 48px; padding: 0 12px; font-family: var(--mono); font-size: 13px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.pill {
  align-self: flex-start; display: inline-block;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.display {
  font-size: clamp(40px, 7vw, 88px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance;
}
.display-md { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; max-width: 900px; }
.title {
  font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance;
}
.title-sm { font-size: clamp(28px, 4vw, 40px); }
.lead { max-width: 62ch; font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.policy-language { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.policy-language .eyebrow { margin-right: 8px; }
.policy-updated { margin-top: 16px; color: var(--muted); font-size: 14px; }
.policy-intro { max-width: 75ch; color: var(--muted); font-size: 18px; }
.policy-content .card h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.policy-content .card p + p { margin-top: 12px; }
.policy-content .card a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.policy-content .card a:hover { color: #fff; }
[data-policy-language][hidden] { display: none !important; }

/* ---------- Layout ---------- */
.band { border-bottom: 1px solid var(--line); }
.band-alt { background: var(--surface-2); }
.section { padding: 96px 0; }
.section-md { padding: 80px 0; }
.hero { padding: 96px 0 72px; }
.page-head { padding: 88px 0 64px; }
.stack { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-28 { gap: 28px; }
.gap-48 { gap: 48px; } .gap-56 { gap: 56px; } .gap-64 { gap: 64px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 860px; }
.hero-copy .lead { max-width: 60ch; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner > div { display: flex; flex-direction: column; gap: 12px; max-width: 620px; min-width: 0; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 16px; }
.grid-250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-gallery { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--muted); }
.card .icon { width: 28px; height: 28px; margin-bottom: 4px; fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-link { color: var(--fg); }
.card-link:hover { color: var(--fg); border-color: var(--line-strong); }
.card-link .url { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.facts > div { padding: 32px 24px 32px 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.facts { margin: 0; }

/* ---------- Panels & spec tables ---------- */
.panel { border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel-strong { border-color: var(--fg); }
.panel-surface { background: var(--surface); padding: 32px; }
.panel h2, .panel h3 { font-weight: 600; letter-spacing: -0.02em; }
.panel h2 { font-size: 24px; }
.panel h3 { font-size: 20px; }
.panel .sub { font-size: 15px; color: var(--muted); }
.panel p { font-size: 15px; color: var(--muted); }
.panel-head { display: flex; flex-direction: column; gap: 4px; }

.specs { margin: 0; display: flex; flex-direction: column; }
.specs > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.specs dt { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-size: 15px; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.split > * { min-width: 0; }
.split-2-1 > :first-child { flex: 2 1 520px; }
.split-2-1 > :last-child { flex: 1 1 280px; }
.split-eq > * { flex: 1 1 420px; }
.panel-cta { justify-content: space-between; gap: 32px; }

/* ---------- Mission ---------- */
.mission { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.mission > :first-child { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mission > :last-child { flex: 2 1 460px; min-width: 0; max-width: 68ch; display: flex; flex-direction: column; gap: 20px; }
.mission p { font-size: 18px; color: var(--muted); }

/* ---------- Screenshots ---------- */
.window { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-bar span { margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.shot { width: 100%; aspect-ratio: 20 / 11; object-fit: cover; background: var(--surface); }
.gallery-item { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gallery-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.image-zoom { position: relative; display: block; overflow: hidden; border-radius: 6px; }
.image-zoom img { transition: transform .2s ease, border-color .2s ease; }
.image-zoom::after { content: 'View image ↗'; position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: rgb(11 11 12 / 88%); color: var(--fg); font-size: 13px; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
html[lang="tr"] .image-zoom::after { content: 'Görseli aç ↗'; }
.image-zoom:hover img, .image-zoom:focus-visible img { transform: scale(1.02); border-color: var(--line-strong); }
.image-zoom:hover::after, .image-zoom:focus-visible::after { opacity: 1; transform: translateY(0); }
.lightbox { position: fixed; width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 48px 24px 20px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); color: var(--fg); }
.lightbox::backdrop { background: rgb(0 0 0 / 88%); backdrop-filter: blur(5px); }
.lightbox-image { width: 100%; max-height: calc(100vh - 170px); object-fit: contain; margin: 0 auto; }
.lightbox-caption { margin-top: 12px; text-align: center; color: var(--fg); }
.lightbox-hint { display: block; margin-top: 4px; text-align: center; color: var(--muted); font-size: 13px; }
.lightbox-close { position: absolute; top: 8px; right: 12px; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 4px; background: transparent; color: var(--fg); font: inherit; font-size: 24px; cursor: pointer; }
.lightbox-close:hover { background: var(--line); }
.gallery-item strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.gallery-item span { font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer .container { padding-top: 72px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 56px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px 64px; justify-content: space-between; }
.footer-about { display: flex; flex-direction: column; gap: 12px; max-width: 340px; min-width: 0; }
.footer-about strong { font-size: 18px; font-weight: 600; }
.footer-about p { font-size: 15px; color: var(--muted); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.footer-cols ul { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-cols h4 { margin: 0 0 4px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.copyright { border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; color: var(--muted); }

@media (max-width: 950px) {
  .site-header .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 10px; }
  .brand, .header-actions { flex: 0 0 auto; }
  .header-actions { order: 2; }
  .nav-links { order: 3; flex: 1 0 100%; justify-content: center; padding-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .page-head { padding: 56px 0 40px; }
  .facts > div { padding-right: 16px; }
}
