/* ==========================================================================
   MDFCAD — marketing site styles
   Handcrafted, no frameworks, no external fonts/CDNs. Single stylesheet.
   Palette: dark slate + electric blue, light content surfaces.
   ========================================================================== */

:root {
  /* Renkler */
  --ink: #0f172a;
  --ink-2: #1e293b;
  --slate: #334155;
  --muted: #475569;
  --muted-2: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #f8fafc;
  --surface: #ffffff;
  --accent: #1a64e4;
  --accent-strong: #1d4ed8;
  --accent-soft: #e8eefc;
  --accent-border: #bfdbfe;
  --ok: #15803d;
  --dark: #0f172a;
  --on-dark: #cbd5e1;
  --on-dark-muted: #94a3b8;

  /* Ölçü ve gölge */
  --header-h: 64px;
  --radius-sm: 8px;
  --radius: 12px;
  --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 10px 24px rgba(15, 23, 42, 0.08);
  --container: 1200px;

  /* Tipografi: sistem font yığını — harici font yok */
  --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;
}

/* --- Reset / temel ------------------------------------------------------- */

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

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 1.15rem + 2.7vw, 3.125rem);
}

h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.125rem);
}

h3 {
  font-size: 1.0625rem;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
}

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

section[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* --- Yardımcı sınıflar --------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-kicker {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.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-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

#icerik:focus {
  outline: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  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;
}

.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);
  border-color: var(--on-dark-muted);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary[disabled]:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* --- Marka --------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand:focus-visible,
.nav-link:focus-visible,
.footer-list a:focus-visible,
.contact-link:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- Üst menü ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.nav-wrap {
  margin-left: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - var(--header-h));
  padding: 12px 16px 20px;
  overflow-y: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.nav-wrap[open] .site-nav {
  display: flex;
}

.nav-wrap[open] .nav-toggle-bars {
  background: transparent;
}

.nav-wrap[open] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-wrap[open] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--bg);
  color: var(--ink);
}

.nav-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.header-actions {
  display: none;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding: 72px 0 64px;
  background: var(--surface);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--accent-strong);
}

.hero .section-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  max-width: 860px;
}

.hero .hl {
  color: var(--accent);
}

.hero-lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-notes .check {
  color: var(--ok);
}

/* Tarayıcı çerçevesi (ürün ekran görüntüsü) */
.window {
  width: 100%;
  margin-top: 28px;
  overflow: hidden;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  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: var(--bg);
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
}

.window-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.window-url {
  min-width: 0;
  max-width: 320px;
  padding: 2px 12px;
  overflow: hidden;
  background: var(--surface);
  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;
}

.window-img {
  width: 100%;
}

/* --- Güven şeridi -------------------------------------------------------- */

.trust {
  padding: 30px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.trust-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.trust-text {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* --- Özellik ızgarası ---------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

.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-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Ekran görüntüleri --------------------------------------------------- */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.shot {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.shot-wide {
  grid-column: 1 / -1;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg);
}

.shot figcaption {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}

.shot figcaption strong {
  display: block;
  font-size: 0.9375rem;
}

.shot figcaption span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.875rem;
}

/* --- Nasıl çalışır ------------------------------------------------------- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.875rem;
  font-weight: 700;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Paketler ------------------------------------------------------------ */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  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.75rem;
  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: 3px;
  color: var(--ok);
}

.plan .btn {
  margin-top: auto;
}

.plan-note {
  max-width: 720px;
  margin: 28px auto 0;
  color: var(--muted-2);
  font-size: 0.9rem;
  text-align: center;
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.faq {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.faq[open] {
  border-color: var(--accent-border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 2px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq[open] summary::after {
  transform: rotate(-135deg);
}

.faq summary:hover {
  background: var(--bg);
}

.faq-body {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 1rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-card .btn {
  align-self: stretch;
  margin-top: auto;
}

.contact-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  text-decoration: underline;
}

/* --- Alt bilgi ----------------------------------------------------------- */

.site-footer {
  padding: 56px 0 28px;
  background: var(--dark);
  color: var(--on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand p {
  max-width: 380px;
  margin-top: 14px;
  color: var(--on-dark);
  font-size: 0.9375rem;
}

.footer-title {
  margin-bottom: 14px;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  color: var(--on-dark);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-brand .brand:focus-visible,
.footer-list a:focus-visible {
  outline-color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.footer-bottom p {
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   Duyarlı (responsive) düzen — masaüstü 1920/2560, dizüstü 1366, mobil
   ========================================================================== */

@media (max-width: 1099px) {
  .feature-grid,
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .plan-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan .btn {
    width: 100%;
  }
}

@media (max-width: 799px) {
  .showcase-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot-wide {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 679px) {
  .section {
    padding: 56px 0;
  }

  .feature-grid,
  .step-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .hero {
    padding: 52px 0 48px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 559px) {
  .container {
    padding-inline: 16px;
  }

  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

/* --- Masaüstü üst menü --------------------------------------------------- */

@media (min-width: 980px) {
  .nav-wrap {
    display: contents;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 2px;
    margin-right: 8px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.9375rem;
  }

  .nav-link:hover {
    background: transparent;
    color: var(--ink);
  }

  .nav-cta {
    display: none;
  }

  .header-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }
}

/* --- Erişilebilirlik: hareket azaltma ------------------------------------ */

@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;
  }
}
