/* =========================================================
   MAYI Digital — Ana stil dosyası
   Marka rengini değiştirmek için sadece --accent değerlerini düzenleyin.
   ========================================================= */

:root {
  /* Renk sistemi */
  --bg:        #0B0B0F;
  --bg-alt:    #101016;
  --surface:   #16161E;
  --line:      #24242F;
  --text:      #ECECF1;
  --muted:     #9A9AA8;

  --accent:    #7C5CFF;   /* ana marka rengi */
  --accent-2:  #35E0C4;   /* ikincil vurgu   */
  --accent-ink:#FFFFFF;   /* accent üstündeki yazı */

  /* Tipografi */
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Ölçü */
  --wrap: 1160px;
  --r: 14px;
  --r-lg: 22px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Butonlar ---------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--btn-bg);
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: .95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: none; }

.btn-sm { padding: .6rem 1.2rem; font-size: .93rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }

.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
  flex: none;
}
.logo-text { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; font-size: 1.15rem; }
.logo-text span { color: var(--muted); font-weight: 500; margin-left: .28em; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { text-decoration: none; font-size: .96rem; color: var(--muted); transition: color .15s ease; }
.nav a:hover { color: var(--text); }
.nav a.btn { color: var(--accent-ink); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer;
  padding: 0; place-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% 0 auto 50%;
  width: min(1100px, 130vw); aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.1rem;
}

.hero-title { font-size: clamp(2.5rem, 6.6vw, 4.6rem); max-width: 15ch; }
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: clamp(1.03rem, 1.6vw, 1.2rem); max-width: 52ch; margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.3rem; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem; margin-top: 4rem; max-width: 620px;
  border-top: 1px solid var(--line); padding-top: 1.8rem;
}
.stats dt { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; }
.stats dd { color: var(--muted); font-size: .9rem; margin-top: .15rem; }

/* ---------- Bölümler ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 3.2rem; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.lead { color: var(--muted); margin-top: .9rem; font-size: 1.06rem; }

/* ---------- Kartlar ---------- */
/* min(...) sarmalayıcısı, dar ekranlarda sütunun taşmasını engeller */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 1.1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.9rem 1.7rem;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-2);
  margin-bottom: 1.15rem;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .97rem; }

/* ---------- Süreç ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 1.6rem; }
.step { position: relative; padding-top: 1.7rem; border-top: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 42px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.step-no { font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--accent-2); letter-spacing: .1em; }
.step h3 { font-size: 1.18rem; margin: .5rem 0 .5rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Hakkımızda ---------- */
.about { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1.3rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }

.ticks { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; font-size: .98rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent-2); font-weight: 700;
}

.about-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: .4rem 1.5rem;
}
.panel-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.panel-row:last-child { border-bottom: 0; }
.panel-row span { color: var(--muted); font-size: .92rem; }
.panel-row strong { font-family: var(--font-head); font-size: 1rem; text-align: right; }

/* ---------- Referanslar ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 1rem; }
.logo-slot {
  display: grid; place-items: center;
  height: 92px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: .95rem;
  letter-spacing: .04em;
  transition: border-color .2s ease, color .2s ease;
}
.logo-slot:hover { border-color: var(--accent); color: var(--text); }

.quote {
  margin: 3.5rem auto 0; max-width: 44rem; text-align: center;
  padding: 2.4rem 1.5rem 0; border-top: 1px solid var(--line);
}
.quote blockquote { font-family: var(--font-head); font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.45; letter-spacing: -.01em; }
.quote figcaption { color: var(--muted); font-size: .92rem; margin-top: 1.1rem; }

/* ---------- İletişim ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: .8rem; }

.contact-list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: .95rem; }
.contact-list li { display: flex; align-items: center; gap: .85rem; }
.contact-list span { color: var(--accent-2); width: 1.3rem; text-align: center; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .15s ease; }
.contact-list a:hover { border-color: var(--accent); }

.socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.socials a {
  text-decoration: none; font-size: .9rem;
  padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); transition: all .18s ease;
}
.socials a:hover { color: var(--text); border-color: var(--accent); }

.contact-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.1rem);
  display: grid; gap: 1.05rem;
}
.field { display: grid; gap: .45rem; }
.field label { font-size: .88rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .8rem .95rem;
  font-size: .97rem;
  width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #5C5C6B; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #FF6B6B; }

.err { color: #FF8080; font-size: .82rem; min-height: 0; }
.err:empty { display: none; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.form-status { font-size: .93rem; }
.form-status.ok { color: var(--accent-2); }
.form-status.bad { color: #FF8080; }
.form-note { color: #6C6C7C; font-size: .82rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; }
.footer-tag { color: var(--muted); font-size: .93rem; margin-top: .8rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: flex-start; }
.footer-nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  border-top: 1px solid var(--line); padding: 1.5rem 0;
  color: var(--muted); font-size: .87rem;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Scroll animasyonu ----------
   Yalnızca JS aktifken gizle. JS yüklenmezse/hata verirse içerik görünür kalır. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.5rem;
    transform: translateY(-120%);
    transition: transform .28s ease;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav a.btn { margin-top: 1.1rem; border-bottom: 0; justify-content: center; }

  .stats { grid-template-columns: 1fr; gap: 1.3rem; }
  .footer-inner { flex-direction: column; }
}

/* ---------- Hareket azaltma tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
