/* ==========================================================================
   Majder Bilişim — site stilleri
   Mobil öncelikli. Renkler :root üzerinde token olarak tanımlı;
   koyu tema hem sistem tercihine hem de data-theme="dark" seçimine bağlı.
   ========================================================================== */

:root {
  --bg: #f6f7fb;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f2f4fa;
  --text: #0e1424;
  --text-soft: #2c3550;
  --muted: #5d667c;
  --border: #e1e5ef;
  --border-strong: #cdd3e1;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: rgba(79, 70, 229, .1);
  --cyan: #0891b2;
  --warm: #ea580c;
  --warm-soft: rgba(234, 88, 12, .1);
  --success: #059669;
  --danger: #dc2626;

  --grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 45%, #0891b2 100%);
  --grad-warm: linear-gradient(120deg, #ea580c 0%, #db2777 100%);
  --glow-1: rgba(79, 70, 229, .16);
  --glow-2: rgba(8, 145, 178, .12);
  --grid-line: rgba(14, 20, 36, .05);

  --code-bg: #0f1424;
  --code-text: #d7dcf0;

  --shadow-sm: 0 1px 2px rgba(14, 20, 36, .06);
  --shadow: 0 10px 30px -12px rgba(14, 20, 36, .18);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, .28);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 68px;
  --container: 1200px;
  --gutter: 16px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080b14;
    --bg-alt: #0c1020;
    --surface: #10162a;
    --surface-2: #151c33;
    --text: #e8ebf5;
    --text-soft: #c5cbe0;
    --muted: #8e98b3;
    --border: #1f2842;
    --border-strong: #2c3757;
    --primary: #818cf8;
    --primary-hover: #a5b4fc;
    --primary-soft: rgba(129, 140, 248, .14);
    --cyan: #22d3ee;
    --warm: #fb923c;
    --warm-soft: rgba(251, 146, 60, .14);
    --success: #34d399;
    --danger: #f87171;
    --grad: linear-gradient(120deg, #818cf8 0%, #c084fc 45%, #22d3ee 100%);
    --grad-warm: linear-gradient(120deg, #fb923c 0%, #f472b6 100%);
    --glow-1: rgba(99, 102, 241, .22);
    --glow-2: rgba(34, 211, 238, .12);
    --grid-line: rgba(255, 255, 255, .04);
    --code-bg: #0b0f1d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #080b14;
  --bg-alt: #0c1020;
  --surface: #10162a;
  --surface-2: #151c33;
  --text: #e8ebf5;
  --text-soft: #c5cbe0;
  --muted: #8e98b3;
  --border: #1f2842;
  --border-strong: #2c3757;
  --primary: #818cf8;
  --primary-hover: #a5b4fc;
  --primary-soft: rgba(129, 140, 248, .14);
  --cyan: #22d3ee;
  --warm: #fb923c;
  --warm-soft: rgba(251, 146, 60, .14);
  --success: #34d399;
  --danger: #f87171;
  --grad: linear-gradient(120deg, #818cf8 0%, #c084fc 45%, #22d3ee 100%);
  --grad-warm: linear-gradient(120deg, #fb923c 0%, #f472b6 100%);
  --glow-1: rgba(99, 102, 241, .22);
  --glow-2: rgba(34, 211, 238, .12);
  --grid-line: rgba(255, 255, 255, .04);
  --code-bg: #0b0f1d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

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

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

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

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.icon { flex-shrink: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 640px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem;
  font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.2;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px var(--primary); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #0b0f1d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #0b0f1d; } }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-warm { background: var(--warm); color: #fff; box-shadow: 0 8px 20px -8px var(--warm); }
.btn-warm:hover { filter: brightness(1.08); color: #fff; }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; }
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
/* Bulanık zemin ayrı katmanda: backdrop-filter header'a verilirse
   içindeki position:fixed mobil menüyü header'ın içine hapseder. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav-open .site-header::before { background: var(--bg); }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 12px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -.02em; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.08rem; }
.brand-text small { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.main-nav ul { display: flex; gap: 2px; }
.main-nav li > a {
  display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--text-soft); font-weight: 550; font-size: .95rem;
  transition: background-color .15s ease, color .15s ease;
}
.main-nav li > a:hover { background: var(--surface-2); color: var(--text); }
.main-nav li > a.active { color: var(--primary); background: var(--primary-soft); }
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft); cursor: pointer; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.lang-switch { display: inline-flex; padding: 3px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); }
.lang-switch a { padding: 6px 9px; border-radius: 8px; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; line-height: 1.2; }
.lang-switch a.active { background: var(--primary-soft); color: var(--primary); }

.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1079px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--bg);
    padding: 16px var(--gutter) 32px;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav li > a { padding: 14px 16px; font-size: 1.1rem; border-radius: 12px; }
  .nav-mobile-extra { display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
  .header-cta { display: none; }
}
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .main-nav { margin-right: 8px; }
}
@media (max-width: 340px) {
  .brand-text small { display: none; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ---------- Bölümler ---------- */
.section { padding: clamp(64px, 10vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow.warm { color: var(--warm); }

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

/* ---------- Kartlar ---------- */
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px;
  background: var(--primary-soft); color: var(--primary);
}
.card-icon.warm { background: var(--warm-soft); color: var(--warm); }
.card-icon.cyan { background: color-mix(in srgb, var(--cyan) 14%, transparent); color: var(--cyan); }

.check-list { display: grid; gap: 10px; margin-top: 18px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); }
.check-list .icon { color: var(--success); margin-top: 3px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .85rem; font-weight: 600; color: var(--text-soft);
}
.tag.mono { font-family: var(--font-mono); font-size: .8rem; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--primary-soft); color: var(--primary);
}
.badge.live { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.badge.warm { background: var(--warm-soft); color: var(--warm); }

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

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 104px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: -20% -10% auto;
  height: 120%;
  background: radial-gradient(40% 40% at 25% 30%, var(--glow-1), transparent 70%), radial-gradient(35% 35% at 80% 25%, var(--glow-2), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.hero h1 { margin-bottom: 20px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }

/* Kod penceresi */
.code-wrap { position: relative; }
.code-window {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--code-bg); color: var(--code-text);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono); font-size: clamp(.72rem, 2.3vw, .86rem); line-height: 1.75;
}
.code-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.code-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #3a4160; }
.code-bar .dot:nth-child(1) { background: #ff5f57; }
.code-bar .dot:nth-child(2) { background: #febc2e; }
.code-bar .dot:nth-child(3) { background: #28c840; }
.code-tab { margin-left: 10px; font-size: .78rem; color: #8b93b5; }
.code-body { padding: 18px 0; overflow-x: auto; }
.code-line { display: flex; padding: 0 18px 0 0; white-space: pre; }
.code-line .ln { width: 42px; flex-shrink: 0; text-align: right; padding-right: 16px; color: #4a5275; user-select: none; }
.tk-c { color: #6b7499; font-style: italic; }
.tk-k { color: #c792ea; }
.tk-t { color: #7fdbca; }
.tk-f { color: #82aaff; }
.tk-s { color: #c3e88d; }
.tk-n { color: #f78c6c; }
.tk-ok { color: #34d399; }
.code-status {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, .06); background: rgba(52, 211, 153, .07);
  color: #34d399; font-size: .78rem;
}
.code-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.js .code-line { opacity: 0; transform: translateX(-6px); animation: codeIn .45s ease forwards; }
@keyframes codeIn { to { opacity: 1; transform: none; } }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: .85rem; font-weight: 650; color: var(--text);
  animation: float 6s ease-in-out infinite;
}
.float-chip .card-icon { width: 34px; height: 34px; border-radius: 10px; }
.float-chip.bottom-left { left: -14px; bottom: -22px; }
.float-chip.top-right { right: -10px; top: -20px; animation-delay: -3s; }
@media (max-width: 640px) {
  .float-chip.bottom-left { left: 8px; }
  .float-chip.top-right { right: 8px; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* İstatistikler */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 22px 20px; }
.stat-value { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat-label { margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.4; }

/* Hizmet kartları (ana sayfa) */
.services-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .services-grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; } .services-grid .card-featured { grid-row: span 2; } }
.card-featured {
  padding: clamp(26px, 4vw, 38px);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
}
.card-featured h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
.card-featured .card-icon { width: 56px; height: 56px; }
.card-link { margin-top: 20px; }
.card .card-link { display: inline-flex; }

/* Öne çıkan proje */
.feature-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .feature-split { grid-template-columns: 1fr 1fr; gap: 64px; } .feature-split.reverse > :first-child { order: 2; } }

/* Uygulama maketi (ekran görüntüsü yerine) */
.mock {
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-url { flex: 1; margin-left: 8px; padding: 5px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: .78rem; color: var(--muted); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-row { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.mock-tile { border-radius: 12px; border: 1px solid var(--border); padding: 12px; display: grid; gap: 8px; background: var(--bg); }
.mock-tile .card-icon { width: 30px; height: 30px; border-radius: 9px; }
.mock-tile-label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; line-height: 1.2; }
.sk { height: 9px; border-radius: 6px; background: var(--border); }
.sk.w40 { width: 40%; } .sk.w60 { width: 60%; } .sk.w80 { width: 80%; } .sk.strong { background: var(--border-strong); height: 12px; }
.mock-chart { height: 110px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); display: flex; align-items: flex-end; gap: 6%; padding: 14px 16px 0; }
.mock-chart span { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad); opacity: .85; }
.mock-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-product { border-radius: 10px; border: 1px solid var(--border); overflow: hidden; background: var(--bg); }
.mock-product .img { aspect-ratio: 1; background: linear-gradient(135deg, color-mix(in srgb, var(--warm) 30%, transparent), color-mix(in srgb, var(--primary) 30%, transparent)); }
.mock-product:nth-child(2) .img { background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 35%, transparent), color-mix(in srgb, var(--success) 25%, transparent)); }
.mock-product:nth-child(3) .img { background: linear-gradient(135deg, color-mix(in srgb, #db2777 30%, transparent), color-mix(in srgb, var(--warm) 30%, transparent)); }
.mock-product .meta { padding: 8px; display: grid; gap: 6px; }
.mock-hero-strip { height: 70px; border-radius: 12px; background: var(--grad); opacity: .9; }

/* Neden biz */
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item h3 { margin: 0 0 6px; font-size: 1.08rem; }
.why-item p { color: var(--muted); margin: 0; }

/* Süreç adımları */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-mono); font-weight: 700; font-size: .9rem;
  color: var(--primary); margin-bottom: 14px;
}
.steps.warm .step::before { color: var(--warm); }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* CTA bandı */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px);
  background: var(--code-bg); color: #e8ebf5;
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 0% 0%, rgba(99, 102, 241, .45), transparent 70%), radial-gradient(40% 70% at 100% 100%, rgba(34, 211, 238, .3), transparent 70%);
}
.cta-band.warm::before { background: radial-gradient(50% 80% at 0% 0%, rgba(234, 88, 12, .45), transparent 70%), radial-gradient(40% 70% at 100% 100%, rgba(219, 39, 119, .3), transparent 70%); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #b9c0d8; margin: 0; max-width: 560px; }
.cta-band .btn-primary { background: #fff; color: #0b0f1d; box-shadow: none; }
.cta-band .btn-primary:hover { background: #e8ebf5; color: #0b0f1d; }

/* ---------- İç sayfa başlığı ---------- */
.page-hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); max-width: 860px; }
.page-hero .lead { max-width: 720px; }
.page-hero.warm .hero-bg::after { background: radial-gradient(40% 40% at 20% 30%, var(--warm-soft), transparent 70%), radial-gradient(35% 35% at 85% 20%, color-mix(in srgb, #db2777 12%, transparent), transparent 70%); }
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .page-hero-grid { grid-template-columns: 1.2fr .8fr; } }

/* ---------- 3D yazıcı animasyonu ---------- */
.printer {
  position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; overflow: hidden;
}
.printer-frame { position: relative; width: 74%; height: 74%; border: 3px solid var(--border-strong); border-bottom: 0; border-radius: 12px 12px 0 0; }
.printer-gantry { position: absolute; left: -3px; right: -3px; top: 22%; height: 8px; border-radius: 4px; background: var(--border-strong); animation: gantry 9s ease-in-out infinite; }
.printer-head { position: absolute; top: -9px; width: 30px; height: 26px; border-radius: 6px; background: var(--text-soft); animation: head 1.4s ease-in-out infinite alternate; }
.printer-head::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 8px; height: 9px; margin-left: -4px; background: var(--warm); clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%); }
.printer-bed { position: absolute; left: 8%; right: 8%; bottom: 0; height: 8px; border-radius: 4px; background: var(--text-soft); }
.printer-object { position: absolute; left: 50%; bottom: 8px; width: 46%; transform: translateX(-50%); display: flex; flex-direction: column-reverse; }
.printer-object span { display: block; height: 10px; margin: 0 auto 1px; border-radius: 3px; background: var(--grad-warm); transform-origin: left; animation: layer 9s ease-in-out infinite; opacity: 0; }
.printer-object span:nth-child(1) { width: 100%; animation-delay: 0s; }
.printer-object span:nth-child(2) { width: 96%; animation-delay: .6s; }
.printer-object span:nth-child(3) { width: 90%; animation-delay: 1.2s; }
.printer-object span:nth-child(4) { width: 82%; animation-delay: 1.8s; }
.printer-object span:nth-child(5) { width: 72%; animation-delay: 2.4s; }
.printer-object span:nth-child(6) { width: 60%; animation-delay: 3s; }
.printer-object span:nth-child(7) { width: 46%; animation-delay: 3.6s; }
.printer-object span:nth-child(8) { width: 30%; animation-delay: 4.2s; }
@keyframes layer { 0% { opacity: 0; transform: scaleX(0); } 6% { opacity: 1; transform: scaleX(1); } 85% { opacity: 1; transform: scaleX(1); } 95%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes head { from { left: 10%; } to { left: calc(90% - 30px); } }
@keyframes gantry { 0% { top: 82%; } 50% { top: 48%; } 85% { top: 48%; } 100% { top: 82%; } }
.printer-label { position: absolute; left: 14px; top: 12px; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.printer-progress { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.printer-progress::after { content: ""; display: block; height: 100%; width: 100%; background: var(--grad-warm); transform-origin: left; animation: progress 9s linear infinite; }
@keyframes progress { 0% { transform: scaleX(0); } 85%, 100% { transform: scaleX(1); } }

/* Atölye sayacı */
.workshop { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .workshop { grid-template-columns: 1fr 1fr; gap: 64px; } }
.printer-farm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.farm-unit {
  aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; position: relative; color: var(--muted);
}
.farm-unit::after { content: ""; position: absolute; right: 10px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
.farm-unit:nth-child(3n+2)::after { animation-delay: .7s; }
.farm-unit:nth-child(3n)::after { animation-delay: 1.4s; }
.farm-unit .num { position: absolute; left: 10px; bottom: 8px; font-family: var(--font-mono); font-size: .72rem; }

/* ---------- Projeler ---------- */
.project { display: grid; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 48px) 0; }
.project + .project { border-top: 1px solid var(--border); }
@media (min-width: 960px) { .project { grid-template-columns: 1fr 1fr; gap: 64px; } .project:nth-child(even) .project-visual { order: 2; } }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.project h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.project-client { font-weight: 650; color: var(--text-soft); margin-bottom: 12px; }
.project p { color: var(--muted); }
.project-visual-3d { display: grid; place-items: center; aspect-ratio: 4/3; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); }

/* ---------- Hakkımızda ---------- */
.timeline { display: grid; gap: 0; position: relative; }
.timeline-item { position: relative; padding: 0 0 28px 34px; }
.timeline-item::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: -8px; width: 2px; background: var(--border); }
.timeline-item:last-child::before { display: none; }
.timeline-item::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.timeline-item:last-child::after { background: var(--primary); }
.timeline-year { font-family: var(--font-mono); font-size: .85rem; font-weight: 700; color: var(--primary); }
.timeline-text { font-weight: 650; color: var(--text); }

.founder {
  display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.founder-avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; flex-shrink: 0; }
.founder-name { font-weight: 750; font-size: 1.1rem; }
.founder-role { color: var(--muted); font-size: .92rem; }

.prose p { color: var(--text-soft); font-size: 1.05rem; }
.prose h2 { margin-top: 1.4em; font-size: 1.4rem; }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; } }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .2s; }
a.contact-card:hover { border-color: var(--primary); color: var(--text); }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { font-weight: 650; word-break: break-word; }

.form-card { padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--text-soft); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 16px; /* iOS yakınlaştırmasını engeller */
  color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
textarea.input { min-height: 150px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238e98b3' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input.input-validation-error { border-color: var(--danger); }
.field-validation-error { display: block; margin-top: 6px; color: var(--danger); font-size: .86rem; font-weight: 550; }
.validation-summary-errors ul { padding: 0; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--text-soft); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 550; }
.alert-success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.alert-success strong { display: block; }
.alert-error { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-about p { color: var(--muted); margin-top: 14px; max-width: 340px; }
.footer-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-links span { color: var(--text-soft); display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--primary); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.footer-bottom a { color: var(--muted); }

/* WhatsApp butonu (mobilde önemli) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
}
.wa-float:hover { color: #fff; transform: scale(1.05); }

/* ---------- Hata sayfası ---------- */
.error-page { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.error-code { font-family: var(--font-mono); font-size: clamp(4rem, 16vw, 8rem); font-weight: 800; line-height: 1; margin-bottom: 16px; }

/* ---------- Görünürken beliren öğeler ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .code-line { opacity: 1; transform: none; }
}

/* ---------- Ek düzenlemeler ---------- */
.hero-stats { margin-top: clamp(48px, 8vw, 80px); }
a.card { display: block; color: inherit; }
a.card:hover { color: inherit; }
.icon.inline { display: inline-block; vertical-align: -2px; margin-left: 4px; }
@media (max-width: 480px) {
  .code-window { font-size: .7rem; }
  .code-line .ln { width: 30px; padding-right: 10px; }
}
.validation-summary-valid { display: none; }
.project-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface-2); }
