/* ============================================================
   SİYAH LABS — Tasarım Sistemi
   Karanlık · minimal · elektrik indigo aksan
   ============================================================ */

:root {
  --bg:        #08080b;
  --bg-2:      #0d0d13;
  --bg-3:      #12121a;
  --ink:       #f4f4f7;
  --ink-2:     #c7c7d1;
  --muted:     #8a8a99;
  --faint:     #5a5a6a;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);
  --accent:    #6d5efc;
  --accent-2:  #9c8cff;
  --accent-ink:#ffffff;
  --glow:      rgba(109, 94, 252, 0.45);

  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --container: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain + glow atmosfer */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }
img, svg, iframe { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 110px 0; position: relative; }
.section.tight { padding: 72px 0; }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Tipografi ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 60ch; line-height: 1.65; }
.muted { color: var(--muted); }
.accent { color: var(--accent-2); }

.h-display { font-size: clamp(40px, 8vw, 92px); letter-spacing: -0.04em; line-height: 0.98; }
.h-2 { font-size: clamp(30px, 5vw, 52px); }
.h-3 { font-size: clamp(22px, 3vw, 30px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--line-2); cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn .ar { transition: transform 0.25s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 0 0 var(--glow); }
.btn-primary:hover { box-shadow: 0 12px 40px -8px var(--glow); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 8, 11, 0.7); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.brand .b1 { color: var(--ink); }
.brand .b2 { color: var(--accent-2); font-weight: 500; font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; align-self: center; margin-left: 4px; }
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; box-shadow: 0 0 12px var(--glow); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--ink-2); position: relative; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1.5px; background: var(--accent); }
.nav-cta { display: inline-flex; }
.nav-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; place-items: center; }
.nav-burger span { display: block; width: 18px; height: 1.6px; background: var(--ink); margin: 3px auto; transition: 0.25s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 90px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%); opacity: 0.5; filter: blur(20px);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { margin: 22px 0 26px; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.hero-meta { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-meta .k { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--ink); }
.hero-meta .v { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

/* ---------- Section header ---------- */
.sec-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { max-width: 14ch; }
.sec-head .blurb { color: var(--ink-2); font-size: 16.5px; max-width: 48ch; }

/* ---------- Service / feature cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--bg-3); }
.card .idx { font-family: var(--mono); font-size: 12px; color: var(--accent-2); letter-spacing: 0.12em; }
.card h3 { font-size: 21px; margin: 16px 0 10px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.card .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }

/* ---------- Work cards (canlı iframe önizleme) ---------- */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.work {
  position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 11;
  container-type: inline-size; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.work:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 60px -24px var(--glow); }
.work iframe {
  position: absolute; top: 0; left: 0; width: 1440px; height: 990px; border: 0;
  max-width: none; /* global iframe{max-width:100%}'i ez — masaüstü genişliğinde render etsin */
  transform-origin: top left; transform: scale(0.42); pointer-events: none;
}
@supports (container-type: inline-size) { .work iframe { transform: scale(calc(100cqi / 1440px)); } }
.work .veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,8,11,0.05) 40%, rgba(8,8,11,0.92) 100%); pointer-events: none; }
.work .tag-live { position: absolute; top: 0; left: 0; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 6px 12px; display: inline-flex; align-items: center; gap: 7px; }
.work .tag-live .pulse { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
.work .cap { position: absolute; left: 22px; right: 56px; bottom: 20px; z-index: 2; }
.work .cap h4 { font-size: 20px; }
.work .cap p { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-top: 5px; letter-spacing: 0.03em; }
.work .go { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--mono); transition: transform 0.25s var(--ease); }
.work:hover .go { transform: translateX(3px) translateY(-3px); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 30px; border-right: 1px solid var(--line); }
.step:last-child { border-right: none; }
.step .no { font-family: var(--mono); font-size: 13px; color: var(--accent-2); }
.step h4 { font-size: 18px; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, var(--glow) 0%, transparent 55%); opacity: 0.5; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--ink-2); max-width: 50ch; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer .brand { font-size: 22px; }
.footer-about { color: var(--muted); font-size: 14.5px; max-width: 38ch; margin-top: 18px; }
.footer h5 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: var(--ink-2); font-size: 14.5px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom p { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---------- Forms (iletişim) ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; color: var(--ink); font-family: var(--body); font-size: 15px; transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-3); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Reveal animation ---------- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Mobile menu panel ---------- */
.mobile-panel { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(4.6px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-4.6px) rotate(-45deg); }
  .mobile-panel { display: block; position: fixed; inset: 72px 0 0; z-index: 90; background: var(--bg); transform: translateY(-110%); transition: transform 0.4s var(--ease); padding: 24px; border-top: 1px solid var(--line); }
  .mobile-panel.open { transform: none; }
  .mobile-panel a { display: block; font-family: var(--display); font-size: 28px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-panel .btn { margin-top: 24px; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .grid-2, .grid-3, .works { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 76px 0; }
  .cta-band { padding: 44px 24px; }
}
@media (max-width: 560px) {
  .hero-meta { gap: 24px; }
  .hero-meta .k { font-size: 24px; }
  .wrap { padding: 0 18px; }
}

/* ---------- Case study (İşler vaka çalışması) ---------- */
.case { border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); overflow: hidden; margin-bottom: 26px; transition: border-color 0.3s var(--ease); }
.case:hover { border-color: var(--line-2); }
.case-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px 24px; padding: 22px 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.case-head .t h3 { font-size: 23px; }
.case-head .t .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; }
.case-head .visit { font-family: var(--mono); font-size: 13px; color: var(--accent-2); display: inline-flex; gap: 8px; align-items: center; transition: color 0.2s, gap 0.2s var(--ease); }
.case-head .visit:hover { color: var(--ink); gap: 12px; }
.case-previews { display: grid; grid-template-columns: 1fr 250px; }
.pv { position: relative; container-type: inline-size; overflow: hidden; background: #0e0e10; }
.pv .badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(8,8,11,0.72); color: var(--ink-2); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); backdrop-filter: blur(4px); }
.pv-desktop { aspect-ratio: 16 / 10; border-right: 1px solid var(--line); }
.pv-desktop iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; max-width: none; border: 0; transform-origin: top left; transform: scale(calc(100cqi / 1440px)); pointer-events: none; }
.pv-mobile { display: flex; align-items: center; justify-content: center; padding: 22px 0; }
.phone { width: 196px; height: 400px; border-radius: 26px; border: 6px solid #16161d; background: #000; overflow: hidden; position: relative; container-type: inline-size; box-shadow: 0 24px 60px -28px rgba(0,0,0,0.7); }
.phone iframe { position: absolute; top: 0; left: 0; width: 390px; height: 800px; max-width: none; border: 0; transform-origin: top left; transform: scale(calc(100cqi / 390px)); pointer-events: none; }
.brand-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 18px 26px; border-top: 1px solid var(--line); background: var(--bg); }
.brand-logo { width: 92px; height: 54px; border-radius: 10px; background: #f4f4f7; display: flex; align-items: center; justify-content: center; padding: 9px; flex-shrink: 0; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-colors { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.swatch i { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); display: block; }
.swatch span { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.02em; }
.brand-type { text-align: right; }
.brand-type .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.brand-type .fonts { font-family: var(--display); font-size: 16px; color: var(--ink); margin-top: 5px; }
@media (max-width: 760px) {
  .case-previews { grid-template-columns: 1fr; }
  .pv-desktop { border-right: none; border-bottom: 1px solid var(--line); }
  .brand-strip { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .brand-type { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
