/* ==========================================================================
   ELIYTE — Site Tasarım Sistemi (PLAN.md §2)
   Tek CSS dosyası. Mobil-first. Harici istek yok (font kendi sunucumuzdan).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font — tek değişken Montserrat (100–900), font-display: swap
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokenlar (:root) — PLAN.md §2.1
   -------------------------------------------------------------------------- */
:root {
  /* Renk */
  --c-bg: #ffffff;              /* sayfa zemini */
  --c-bg-alt: #f8f7fc;          /* çok açık gri-mor bölüm zemini */
  --c-primary: #7c3aed;         /* ana mor */
  --c-primary-dark: #6d28d9;    /* koyu mor (hover) */
  --c-primary-light: #ede9fe;   /* açık mor (badge, soft zemin) */
  --c-grad-from: #7c3aed;       /* gradient başlangıcı */
  --c-grad-to: #8b5cf6;         /* gradient sonu (beyaz zeminde büyük metin kontrastı >= 3:1) */
  --c-text: #111827;            /* ana metin */
  --c-muted: #6b7280;           /* ikincil metin */
  --c-border: #e5e7eb;          /* 1px çizgiler */

  /* Tipografi */
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem);  /* 34 → 52px */
  --fs-h2: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem); /* 26 → 36px */
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --lh-body: 1.7;               /* ferah satır aralığı */

  /* Boşluk ve ölçü */
  --container: 1120px;
  --section-y: clamp(4rem, 3rem + 4vw, 6rem);
  --gap: 1.5rem;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Derinlik */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow-md: 0 10px 30px rgba(124, 58, 237, .12);

  /* Hareket */
  --transition: 180ms ease;
}

/* --------------------------------------------------------------------------
   3. Sıfırlama ve temel
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
}

h1, h2, h3, p, figure { margin: 0; }
ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   4. Tipografi ölçeği — PLAN.md §2.2
   -------------------------------------------------------------------------- */
h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 500;
  color: var(--c-muted);
  max-width: 65ch;
}

/* --------------------------------------------------------------------------
   5. Yerleşim yardımcıları
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.container--narrow { max-width: 780px; }

.section { padding-block: var(--section-y); }

.section--alt { background: var(--c-bg-alt); }

.section-head {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
  max-width: 46rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section__more { margin-top: 2rem; }

.text-link {
  color: var(--c-primary);
  font-size: var(--fs-small);
  font-weight: 600;
}

.text-link:hover {
  color: var(--c-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   6. Butonlar — PLAN.md §2.3 (.btn)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn--primary {
  background: linear-gradient(90deg, var(--c-grad-from), var(--c-grad-to));
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.btn--ghost {
  background: #fff;
  border-color: var(--c-border);
  color: var(--c-text);
}

.btn--ghost:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-sm);
}

.btn--inverse {
  background: #fff;
  color: var(--c-primary);
}

.btn--inverse:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.btn--inverse:focus-visible { outline-color: #fff; }

.btn--sm {
  padding: 10px 18px;
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   7. Header ve navigasyon — PLAN.md §2.3 (.nav), §7.1
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
}

.nav__logo img {
  width: 112px;
  height: 28px;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  cursor: pointer;
  transition: var(--transition);
}

.nav__toggle:hover { background: var(--c-primary-light); }

/* Mobil menü: header altında tam genişlik beyaz panel */
.nav__menu { display: none; }

body.nav-open .nav__menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.75rem 1.5rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}

.nav__menu a {
  display: block;
  padding: 0.625rem 0.5rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav__menu a:hover {
  color: var(--c-primary);
  background: var(--c-bg-alt);
}

.nav__menu a[aria-current="page"] {
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav__cta { margin-top: 0.5rem; }
.nav__cta .btn { width: 100%; }

/* --------------------------------------------------------------------------
   8. Hero — PLAN.md §4.1 + dekor (§2.3 Dekor)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-primary-light) 0%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  width: 560px;
  height: 560px;
  top: -220px;
  right: -160px;
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -200px;
  left: -160px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
}

.hero h1 {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  max-width: 21ch;
}

.hero .lede { margin-bottom: 0.5rem; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

.hero__chips-title {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-muted);
  margin-bottom: 0.75rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: var(--transition);
}

.chip:hover {
  border-color: #ddd6fe;
  color: var(--c-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   9. Rakam şeridi — PLAN.md §2.3 (.stat-strip)
   -------------------------------------------------------------------------- */
.stat-strip {
  background: var(--c-bg-alt);
  border-block: 1px solid var(--c-border);
  padding-block: 2.5rem;
}

.stat-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem var(--gap);
}

.stat {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  text-align: center;
}

.stat__num {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--c-grad-from), var(--c-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-muted);
}

.stat__sub {
  font-size: 0.8125rem;
  color: var(--c-muted);
}

/* İletişim sayfasındaki büyük e-posta linki */
.contact-email {
  font-size: clamp(1.375rem, 0.9rem + 2.8vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--c-grad-from), var(--c-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   10. Kartlar — .card / .service-card / .project-card (PLAN.md §2.3)
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #ddd6fe;
}

.card-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

/* Hizmet kartı */
.service-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: var(--c-primary-light);
  border-radius: var(--radius-sm);
  color: var(--c-primary);
}

.service-card h3 { margin-bottom: 0.5rem; }

.service-card p {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.service-card .text-link { margin-top: auto; align-self: flex-start; }

/* Proje kartı */
.project-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.project-card h3 { margin-bottom: 0.125rem; }

.project-card__domain {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-bottom: 0.75rem;
}

.project-card__desc {
  font-size: 0.9375rem;
  color: var(--c-muted);
  margin-bottom: 1.25rem;
}

.project-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Etiketler */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  font-weight: 500;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.status--live { color: var(--c-primary); }
.status--live::before { background: var(--c-primary); }

.status--offline { color: var(--c-muted); }
.status--offline::before { background: var(--c-muted); }

/* --------------------------------------------------------------------------
   11. Adımlar — PLAN.md §2.3 (.steps)
   -------------------------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  gap: 1.75rem;
}

/* Mobil: dikey bağlayıcı çizgi (dairelerin ortasından) */
.steps::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--c-border);
  transform: translateX(-50%);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 1rem;
  row-gap: 0.25rem;
}

.step__num {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-grad-from), var(--c-grad-to));
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 1.125rem;
  align-self: center;
}

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

/* --------------------------------------------------------------------------
   12. SSS accordion — PLAN.md §2.3 (.faq)
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.faq__item:hover { border-color: #ddd6fe; }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}

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

.faq__item summary svg {
  flex: none;
  color: var(--c-primary);
  transition: transform var(--transition);
}

.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item[open] summary { color: var(--c-primary-dark); }

.faq__item > p {
  padding: 0 20px 18px;
  font-size: 1rem;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   13. CTA bandı — PLAN.md §2.3 (.cta-band)
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--c-grad-from), var(--c-grad-to));
  color: #fff;
  text-align: center;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band::before {
  width: 420px;
  height: 420px;
  top: -210px;
  left: -140px;
}

.cta-band::after {
  width: 380px;
  height: 380px;
  bottom: -200px;
  right: -120px;
}

.cta-band > * { position: relative; z-index: 1; }

.cta-band h2 { color: #fff; }

.cta-band p {
  max-width: 56ch;
  margin: 1rem auto 1.75rem;
  color: rgba(255, 255, 255, 0.92);
}

/* --------------------------------------------------------------------------
   14. Footer — PLAN.md §2.3 (.site-footer), §7.2
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}

.footer__brand img {
  width: 112px;
  height: 28px;
}

.footer__brand p {
  max-width: 38ch;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.footer__brand p a {
  color: var(--c-primary);
  font-weight: 600;
}

.footer__brand p a:hover {
  color: var(--c-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__slogan {
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-primary);
}

.footer__title {
  margin-bottom: 1rem;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text);
}

.footer__menu,
.footer__products {
  display: grid;
  gap: 0.5rem;
}

.footer__menu a,
.footer__products a {
  font-size: 0.9375rem;
  color: var(--c-muted);
  transition: var(--transition);
}

.footer__menu a:hover,
.footer__products a:hover { color: var(--c-primary); }

.footer__more { margin-top: 1rem; }

.footer__bottom {
  border-top: 1px solid var(--c-border);
  padding-block: 1.25rem;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   15. 404 — PLAN.md §4.6
   -------------------------------------------------------------------------- */
.error {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 3rem + 6vw, 7rem);
  text-align: center;
}

.error__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.error__content h1 { max-width: 18ch; }

.error__content > p {
  max-width: 44ch;
  color: var(--c-muted);
}

.error__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

.error__note {
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.error__note a {
  color: var(--c-primary);
  font-weight: 600;
}

.error__note a:hover {
  color: var(--c-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   16. Kırılım noktaları: 560px (tek sütun) · 768px (mobil menü) · 1024px
   Mobil-first: taban stiller mobil; aşağıdakiler genişleyen ekranlar.
   -------------------------------------------------------------------------- */
@media (min-width: 561px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 769px) {
  /* Navigasyon: hamburger gizlenir, menü yatay */
  .nav__toggle { display: none; }

  .nav__menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .nav__menu a {
    padding: 0.25rem 0;
    font-size: 0.9375rem;
  }

  .nav__menu a:hover {
    background: none;
    color: var(--c-primary);
  }

  .nav__menu a[aria-current="page"] {
    text-underline-offset: 8px;
  }

  .nav__cta { margin-top: 0; }
  .nav__cta .btn { width: auto; }

  /* Hero iki kolon */
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 3rem;
  }

  /* Rakam şeridi 4 sütun */
  .stat-strip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* Adımlar yatay: bağlayıcı çizgi daireler arasında */
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }

  .steps::before { display: none; }

  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 44px;
    right: calc(-1 * var(--gap));
    height: 1px;
    background: var(--c-border);
  }

  /* Footer 3 kolon; ürün listesi 2 kolon */
  .footer__grid {
    grid-template-columns: 1.4fr 0.8fr 1.8fr;
    gap: var(--gap) 3rem;
  }

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

@media (min-width: 1025px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   17. Hareket azaltma — PLAN.md §2.3 Erişilebilirlik
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
