/* ============================================================
   ilkyaz TEKNOLOJİ — style.css
   İki tema: dark (varsayılan) / light — data-theme özniteliği ile
   ============================================================ */

/* ---------- Tema değişkenleri ---------- */
:root {
  /* DARK (varsayılan) — Antrasit & Antik Altın */
  --bg:            #2b2e33;
  --surface:       #22252a;
  --surface-alt:   #383c42;
  --accent:        #b08d4a;
  --accent-hover:  #c9a558;
  --text:          #e9e4d8;
  --text-muted:    #9a958a;
  --border:        #3f434a;
  --on-accent:     #2b2e33;

  --radius: 12px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .18);
  --nav-h: 72px;
}

[data-theme="light"] {
  /* LIGHT — Porselen Beyaz & Antik Altın */
  --bg:            #f7f7f5;
  --surface:       #ffffff;
  --surface-alt:   #eeeeeb;
  --accent:        #9d7c3c;
  --accent-hover:  #8a6b31;
  --text:          #26282c;
  --text-muted:    #6f7278;
  --border:        #e2e1dc;
  --on-accent:     #ffffff;

  --shadow: 0 6px 24px rgba(38, 40, 44, .08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

.container {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
}
.container.narrow { max-width: 760px; }

h1, h2, h3 { font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.08rem; margin-bottom: .5rem; }

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

/* "TEKNOLOJİ" yazımı */
.teknoloji-word {
  letter-spacing: .6em;
  font-weight: 300;
  text-transform: uppercase;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.9rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .95rem;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-logo { height: 48px; width: auto; }

/* Temaya göre logo değişimi */
.logo-for-light { display: none; }
[data-theme="light"] .logo-for-dark { display: none; }
[data-theme="light"] .logo-for-light { display: block; }

.nav-links {
  display: flex;
  gap: 1.8rem;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s ease;
  padding: .3rem 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: .8rem; }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-sun { display: block; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: .07;
  pointer-events: none;
}
.hero-bg svg { width: 100%; height: 100%; }

.hero-inner { position: relative; max-width: 820px; }
.hero-logo {
  height: clamp(90px, 16vw, 140px);
  width: auto;
  margin-bottom: 2rem;
}
.hero-eyebrow {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 640px;
}
.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Section ortak ---------- */
.section { padding: 6rem 0; }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-eyebrow {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.section-sub { margin-top: .9rem; color: var(--text-muted); }

/* ---------- Grid & kartlar ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card p { font-size: .92rem; color: var(--text-muted); }

.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------- SaaS bölümü ---------- */
.saas {
  background: linear-gradient(150deg, var(--surface) 0%, var(--bg) 55%, var(--surface) 100%);
  border-block: 1px solid var(--border);
}
.saas-card { position: relative; }
.badge {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .28rem .7rem;
  border-radius: 999px;
}
.saas-teaser {
  font-size: 1.5rem;
  letter-spacing: .18em;
  color: var(--surface-alt);
  filter: blur(3px);
  user-select: none;
  margin-bottom: 1rem;
}
.saas-signup {
  margin-top: 3rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 1.5rem;
}
.saas-signup p { margin-bottom: 1.3rem; color: var(--text-muted); }

/* ---------- Neden Biz ---------- */
.why { background: var(--surface); border-block: 1px solid var(--border); }
.why-item { text-align: center; padding: 1rem; }
.why-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .4rem;
}
.why-item p:not(.why-number) { font-size: .92rem; color: var(--text-muted); }

/* ---------- Süreç ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
}
.step-no {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: .2rem .75rem;
  margin-bottom: 1rem;
}
.step p { font-size: .9rem; color: var(--text-muted); }

/* Adımlar arası bağlantı çizgisi (yalnızca geniş ekran) */
@media (min-width: 1200px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.6rem;
    right: -1.4rem;
    width: 1.4rem;
    height: 1.5px;
    background: var(--border);
  }
}

/* ---------- Hakkımızda ---------- */
.about p { color: var(--text-muted); margin-bottom: 1.2rem; }
.legal-name {
  font-size: .88rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ---------- İletişim ---------- */
.contact-card { display: block; text-align: center; }
.contact-card .card-icon { margin-inline: auto; }
.contact-value { font-weight: 500; color: var(--text) !important; word-break: break-word; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.6rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand p { font-size: .85rem; color: var(--text-muted); margin-top: .7rem; }
.footer-brand .footer-logo { height: 40px; }
.footer-legal { font-size: .8rem; color: var(--text-muted); }

.to-top {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease, transform .15s ease;
}
.to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Fade-up animasyonu ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

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

/* ============================================================
   Responsive — mobile-first kırılımlar
   ============================================================ */

/* Tablet ve altı */
@media (max-width: 1199px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .section { padding: 4rem 0; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: .6rem 1.25rem 1.2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav-links a:last-child { border-bottom: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

/* Çok dar ekranlar */
@media (max-width: 380px) {
  .hero-cta .btn { width: 100%; text-align: center; }
  h1 { font-size: 1.8rem; }
}
