/* ==========================================================================
   MDFCAD — ana sayfa demo (açık tema, tek varyant)
   Sade kurumsal düzen; harici font/CDN yok. Three.js yalnız 3D bölümünde,
   görünür olduğunda yüklenir.
   ========================================================================== */

:root {
  --ink: #111827;
  --slate: #334155;
  --muted: #5f6b7a;
  --muted-2: #8a94a3;
  --line: #e6e9ee;
  --line-2: #d3d9e0;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --surface: #ffffff;
  --accent: #1a64e4;
  --accent-strong: #1453c4;
  --accent-soft: #eef3fe;
  --accent-border: #c9d8fb;
  --ok: #15803d;
  --bar-h: 40px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 700; }

::selection { background: var(--accent-soft); color: var(--ink); }

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

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 820px; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

/* --- Önizleme şeridi ------------------------------------------------------ */

.demo-bar {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bar-h);
  padding: 6px 20px;
  background: #f1f3f6;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}
.demo-label { color: var(--ink); font-weight: 700; }
.demo-note { letter-spacing: 0.02em; }

/* --- Butonlar ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1;
  text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-sm { height: 38px; padding: 0 15px; font-size: 0.875rem; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-secondary { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { background: var(--bg-alt); border-color: var(--muted-2); }

/* --- Header: ortak üst bar assets/header.css içindedir (tüm sayfalarda aynı) --- */

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; letter-spacing: 0.01em; text-decoration: none;
}
.brand-name { font-size: 1.125rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff;
  font-size: 1.125rem; font-weight: 800;
}

/* --- Eski sayfa-özel menü kaldırıldı (ortak header kullanılır) --- */

/* --- Tanıtım -------------------------------------------------------------- */

.hero { padding: 64px 0 60px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 42px; align-items: center; }
.hero-copy .kicker { margin-bottom: 16px; }
.hero-lead { max-width: 560px; margin-top: 18px; color: var(--muted); font-size: 1.0625rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--muted); font-size: 0.875rem; }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes svg { color: var(--ok); flex: 0 0 auto; }

.window {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.window-bar {
  display: flex; align-items: center; gap: 12px;
  height: 42px; padding: 0 14px;
  background: #f3f4f6; border-bottom: 1px solid var(--line);
}
.window-dots { display: inline-flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.window-url {
  max-width: 320px; padding: 2px 12px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted-2); font-family: var(--mono); font-size: 0.75rem;
  text-overflow: ellipsis; white-space: nowrap;
}
.visual-caption { margin-top: 12px; color: var(--muted-2); font-size: 0.8125rem; text-align: center; }

/* --- Bölüm başlıkları ----------------------------------------------------- */

.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.kicker {
  margin-bottom: 12px;
  color: var(--accent); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; }

/* --- Özellikler ----------------------------------------------------------- */

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover { border-color: var(--line-2); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 14px;
  border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-strong);
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.9375rem; }

/* --- Ürün ekranları ------------------------------------------------------- */

.tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  width: fit-content; max-width: 100%;
  margin: 0 auto 28px;
  padding: 5px;
  background: #eef1f5;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tabs button {
  padding: 9px 16px;
  border: 0; border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit; font-size: 0.875rem; font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.showcase { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
.showcase-copy .kicker { margin-bottom: 10px; }
.showcase-copy h3 { font-size: 1.375rem; }
.showcase-copy p:not(.kicker) { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.showcase-copy .text-link { display: inline-block; margin-top: 16px; }
.text-link { color: var(--accent); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.showcase-media {
  display: block; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.showcase-media img { transition: opacity 0.25s ease; }
.showcase-media img.switching { opacity: 0; }

/* --- 3D parça görüntüleyici ----------------------------------------------- */

.viewer-layout { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
.viewer-steps { display: flex; flex-direction: column; gap: 18px; }
.viewer-steps li { display: flex; gap: 14px; }
.viewer-steps > li > span {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: 0.875rem; font-weight: 700;
}
.viewer-steps b { display: block; }
.viewer-steps p { margin-top: 3px; color: var(--muted); font-size: 0.9375rem; }
.viewer-note {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2); font-size: 0.875rem;
}

.viewer-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.viewer-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.viewer-title b { display: block; font-size: 0.9375rem; }
.viewer-title span { color: var(--muted-2); font-size: 0.8125rem; }
.viewer-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--surface); color: var(--ink);
  font-size: 1rem; line-height: 1; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { background: var(--bg-alt); border-color: var(--muted-2); }
.spin-btn {
  height: 36px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--surface); color: var(--muted);
  font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.spin-btn:hover { background: var(--bg-alt); }
.spin-btn[aria-pressed="true"] {
  background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-strong);
}

.viewer-stage {
  position: relative;
  height: 480px;
  background: radial-gradient(circle at 50% 28%, #ffffff 0%, #eef1f5 78%);
}
.viewer-stage canvas { cursor: grab; }
.viewer-stage canvas:active { cursor: grabbing; }
.viewer-loading {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--muted); font-size: 0.875rem;
}
.viewer-stage[data-state="ready"] .viewer-loading { display: none; }
.viewer-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 24px; text-align: center;
}
.viewer-fallback p { max-width: 420px; color: var(--muted); font-size: 0.9375rem; }
.viewer-fallback img { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; max-height: 260px; width: auto; }

.viewer-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 4px;
}
.part-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.part-chips button {
  padding: 7px 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.part-chips button:hover { border-color: var(--muted-2); color: var(--ink); }
.part-chips button[aria-pressed="true"] {
  background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-strong);
}
.part-info { min-width: 220px; font-size: 0.8125rem; color: var(--muted); text-align: right; }
.part-info b { display: block; color: var(--ink); font-size: 0.875rem; }
.part-info span { font-variant-numeric: tabular-nums; }
.viewer-hint { padding: 10px 14px 14px; color: var(--muted-2); font-size: 0.75rem; }

/* --- Demo giriş kartı ----------------------------------------------------- */

.cred-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: left;
}
.cred-card h2 { font-size: 1.125rem; }
.cred-hint { margin-top: 6px; color: var(--muted); font-size: 0.875rem; }
.cred-row {
  display: flex; align-items: flex-end; gap: 10px;
  margin-top: 16px;
}
.cred-row > div { flex: 1 1 auto; min-width: 0; }
.cred-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.cred-value {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--ink);
  font-family: var(--mono); font-size: 0.9375rem;
}
.cred-note { min-height: 1.4em; margin-top: 10px; color: var(--muted); font-size: 0.8125rem; }
.cred-card .btn-block { margin-top: 6px; }

/* --- Nasıl çalışır (dört adım) -------------------------------------------- */

.step-grid { display: grid; grid-template-columns: 1fr; gap: 14px; counter-reset: step; }
.step {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-family: var(--mono); font-size: 0.875rem; font-weight: 700;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.9375rem; }

/* --- Fiyatlandırma -------------------------------------------------------- */

.plan-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.plan-featured { border-color: var(--accent-border); box-shadow: 0 10px 28px rgba(26, 100, 228, 0.12); }
.plan-badge {
  position: absolute; top: -12px; left: 24px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.plan h3 { font-size: 1.125rem; }
.plan-for { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }
.plan-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; color: var(--slate); font-size: 0.9375rem; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; }
.plan-list .check { flex: 0 0 auto; margin-top: 4px; color: var(--ok); }
.plan .btn { margin-top: auto; }
.plan-note { max-width: 720px; margin: 24px auto 0; color: var(--muted-2); font-size: 0.875rem; text-align: center; }

/* --- Eğitim --------------------------------------------------------------- */

.training-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.training-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.training-card:hover { border-color: var(--line-2); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07); }
.training-card img { aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.training-card > div { padding: 18px 20px 22px; }
.training-tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.training-card h3 { margin-bottom: 6px; }
.training-card p { color: var(--muted); font-size: 0.9375rem; }

.training-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 24px; padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.training-note b { display: block; margin-bottom: 4px; }
.training-note p { color: var(--muted); font-size: 0.9375rem; }
.training-note-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- SSS ------------------------------------------------------------------ */

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.faq-list details[open] { border-color: var(--accent-border); }
.faq-list summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute; right: 20px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted-2); border-bottom: 2px solid var(--muted-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list summary:hover { background: var(--bg-alt); }
.faq-list details > div { padding: 0 18px 18px; color: var(--muted); font-size: 0.9375rem; }

/* --- İletişim / footer ---------------------------------------------------- */

.contact-card {
  display: grid; grid-template-columns: 1fr; gap: 22px;
  align-items: center;
  padding: 36px 32px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-card h2 { font-size: 1.625rem; }
.contact-card p:not(.kicker) { max-width: 520px; margin-top: 12px; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-grid > div > p { max-width: 360px; margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }
.footer-grid h2 {
  margin-bottom: 12px;
  color: var(--muted-2); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: var(--slate); font-size: 0.9375rem; text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2); font-size: 0.8125rem;
}

/* --- Duyarlı -------------------------------------------------------------- */

@media (min-width: 700px) {
  .feature-grid, .training-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { grid-template-columns: 1.4fr auto; }
}

@media (min-width: 980px) {
  .step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .hero { padding: 80px 0 72px; }
  .hero-inner { grid-template-columns: 1fr 1.08fr; gap: 56px; }
  .showcase { grid-template-columns: 1fr 2.05fr; gap: 40px; }
  .viewer-layout { grid-template-columns: 0.92fr 1.5fr; gap: 48px; }
  .contact-card { padding: 40px; }
  .contact-actions { justify-content: flex-end; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 1160px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .training-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  .demo-note { display: none; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 30px; }
  .hero { padding: 44px 0 44px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .tabs { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .tabs button { white-space: nowrap; }
  .viewer-stage { height: 380px; }
  .viewer-toolbar { align-items: flex-start; }
  .viewer-footer { align-items: flex-start; }
  .part-info { text-align: left; }
  .training-note .btn { width: 100%; }
  .training-note-actions { width: 100%; flex-direction: column; }
}

@media print {
  .demo-bar, .mheader, .viewer-card { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
