/* Kampüs Defteri — tanıtım sayfası
   Renkler uygulamanın temasıyla eşleşir:
   primary #1f5da0 · navy #0f2d5e (logo kitabı) · teal #159c9c (ayraç) · indigo #5c6bc0

   Tema mantığı: açık varsayılan; sistem tercihi (@media) + kullanıcının
   [data-theme] seçimi. Açık seçim, sistem tercihini geçersiz kılar. */

:root {
  --blue: #1f5da0;
  --blue-dark: #164a82;
  --navy: #0f2d5e;
  --teal: #159c9c;
  --indigo: #5c6bc0;

  --bg: #f5f6f8;
  --bg-alt: #edf4fb;
  --surface: #ffffff;
  --text: #1a2230;
  --muted: #5a6472;
  --border: #e2e8f1;
  --heading: #0f2d5e;
  --shadow: 0 1px 2px rgba(15, 45, 94, .04), 0 8px 24px rgba(15, 45, 94, .06);

  --radius: 14px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Koyu tema — cihaz/sistem tercihini izler */
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #5b9bd5;
    --blue-dark: #4a86bd;
    --navy: #0b1622;
    --teal: #3bb3b3;
    --indigo: #7986cb;
    --bg: #0f151b;
    --bg-alt: #161d25;
    --surface: #161d25;
    --text: #e6ebf1;
    --muted: #9aa7b4;
    --border: #26313d;
    --heading: #e6ebf1;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(31, 93, 160, .28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { color: var(--text); padding: 8px 16px; }
.btn-ghost:hover { color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }

/* ---------- Üst çubuk ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--heading);
}
.brand img { border-radius: 8px; }
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  color: var(--muted);
}
.nav a:hover { color: var(--blue); }
/* Dil seçici, nav'ın sağ grubunda; Giriş düğmesi en sağda. */
.nav ~ .lang { margin-left: 0; }

/* Dil seçici (bayrak + ad, açılır liste) */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.lang-btn:hover { border-color: var(--blue); }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-caret { width: 14px; height: 14px; opacity: .55; transition: transform .18s ease; }
.lang.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 168px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 40;
}
.lang-menu[hidden] { display: none; }
.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.lang-menu li:hover { background: var(--bg-alt); }
.lang-menu li[aria-selected="true"] { color: var(--blue); font-weight: 600; }

@media (max-width: 720px) {
  .nav { display: none; }
  /* nav gizliyken sağ grubu (dil + Giriş) sağa yasla. */
  .lang { margin-left: auto; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .header-inner { gap: 10px; }
  .brand { font-size: 15px; }
  .brand img { width: 30px; height: 30px; }
  .lang-name, .lang-caret { display: none; }
  .lang-btn { padding: 7px 9px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  background:
    radial-gradient(1200px 400px at 80% -10%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 70%),
    radial-gradient(900px 380px at 0% 110%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--heading);
}
.lead {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 34px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* Hero görseli — gerçek uygulama ekran alıntısı, hafif açılı */
.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  perspective: 1600px;
}

/* iOS bildirim göstergesi — telefon çerçevesi yok, yalnız bildirim balonu */
.push-mock {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: min(400px, 92%);
  padding: 12px 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  z-index: 2;
}
.push-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--navy);
}
.push-icon img { display: block; }
.push-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.push-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--muted);
}
.push-top strong { font-weight: 600; }
.push-top em { font-style: normal; }
.push-title { font-weight: 700; color: var(--text); }
.push-text { color: var(--muted); }

/* İki görselin arasında duran el çizimi ok + not.
   v4.0.1: eski mutlak konum (-235px sola taşma) metin sütunuyla ÇAKIŞIYORDU —
   kapsayıcı 1080px'te sütun boşluğu 48px olduğundan taşma her geniş ekranda
   başlık metninin üzerine biniyordu. Artık akış içinde; çakışma imkânsız. */
.hero-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  width: 240px;
  color: var(--teal);
  text-align: left;
  pointer-events: none;
}
.hero-arrow svg {
  width: 96px;
  height: auto;
  display: block;
  flex: 0 0 auto;
  /* Ok ucu, yanındaki nota bakar. */
  transform: scaleX(-1) rotate(-8deg);
}
.hero-arrow-note {
  display: block;
  max-width: 135px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
  transform: rotate(-2deg);
}

/* Hakkımızda — sade, kısa */
.about-inner { max-width: 720px; }
.about h2 { margin: 0 0 14px; font-size: 28px; color: var(--heading); }
.about p { margin: 0 0 12px; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.shot {
  margin: 0;
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 26px 52px rgba(8, 22, 40, .28), 0 8px 20px rgba(8, 22, 40, .16);
  transform: rotateY(-9deg) rotateX(3deg) rotate(.4deg);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.shot:hover { transform: rotateY(-3deg) rotateX(1deg); }
.shot-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.shot-bar i:first-child { background: var(--blue); }
.shot img { display: block; width: 100%; height: auto; }

@media (max-width: 860px) {
  /* Tek sütunda görsellerin arası daralır — ok/not gizlenir. */
  .hero-arrow { display: none; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; perspective: none; }
  .shot { transform: none; max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .shot { transform: none; }
}

/* ---------- Bölümler ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin: 0 auto 46px; text-align: center; }
.section-head h2, .why-copy h2, .cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -.01em;
  color: var(--heading);
}
.section-head p { margin: 0; font-size: 17px; color: var(--muted); }

/* Geniş ekranda başlıklar tek satırda kalsın (mobilde doğal sarar). */
@media (min-width: 861px) {
  .section-head h2, .section-head p, .cta h2 { white-space: nowrap; }
}

/* Özellik kartları */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue) 40%, var(--border)); }
.feature h3 { margin: 16px 0 8px; font-size: 18px; color: var(--text); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.ic svg { width: 24px; height: 24px; }
.ic-blue { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.ic-teal { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.ic-indigo { background: color-mix(in srgb, var(--indigo) 16%, transparent); color: var(--indigo); }

@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* Neden bölümü */
.why-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.why-copy p { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.why-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
}
.why-list li {
  padding-left: 26px;
  position: relative;
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 22%, transparent);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.why-list strong { display: block; color: var(--text); font-size: 15px; }
.why-list span { color: var(--muted); font-size: 14px; }

@media (max-width: 780px) {
  .why-inner { grid-template-columns: 1fr; gap: 32px; }
  .why-list { grid-template-columns: 1fr; }
}

/* Kapanış CTA */
.cta {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--navy), var(--blue-dark));
  color: #fff;
  text-align: center;
}
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0 0 26px; color: rgba(255, 255, 255, .82); font-size: 17px; }

/* Alt bilgi */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.foot-note { margin: 0; color: var(--muted); font-size: 15px; }
.foot-links { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.foot-links a:hover { color: var(--blue); }
.foot-company {
  max-width: var(--wrap);
  margin: 22px auto 0;
  padding: 0 24px;
  color: var(--text);
  font-size: 15px;
}
.foot-company strong { color: var(--blue); }
.copyright {
  max-width: var(--wrap);
  margin: 14px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .foot-links { margin-left: 0; }
}

/* ---------- Onay (consent) popup — sağ altta kayarak açılır ---------- */
.consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: min(380px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 44px rgba(8, 22, 40, .28);
  padding: 20px 20px 18px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .38s ease;
}
.consent.is-open { transform: none; opacity: 1; }
.consent[hidden] { display: none; }
.consent-title { margin: 0 0 8px; font-size: 17px; color: var(--heading); }
.consent-text { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.consent-text a, .consent-policy { color: var(--teal); font-weight: 600; }
.consent-text a:hover, .consent-policy:hover { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; padding: 10px 14px; font-size: 14px; }
.consent-policy { display: inline-block; margin-top: 12px; font-size: 13px; }

@media (max-width: 480px) {
  .consent { right: 12px; left: 12px; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .consent { transition: opacity .2s ease; transform: none; }
}

/* ---------- Gizlilik modalı ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 32, .55);
  backdrop-filter: blur(2px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 26px;
}
.modal-card h2 { margin: 0 0 12px; font-size: 20px; color: var(--heading); }
/* KVKK aydınlatma metni — daha geniş kart ve ara başlıklar */
.modal-card-wide { width: min(640px, 100%); }
.modal-card h3 { margin: 16px 0 6px; font-size: 15px; color: var(--heading); }
.modal-card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.modal-card ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.modal-card li { margin-bottom: 6px; }
.modal-card a { color: var(--teal); font-weight: 600; }
.modal-note { font-size: 14px; }
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: none; border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 22px; line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--bg-alt); color: var(--text); }
