/* ==========================================================================
   TRANSNOVA — kurumsal tanıtım sitesi
   Tasarım sistemi · Çekirdek katman
   --------------------------------------------------------------------------
   Bu dosya, ürünün GERÇEK arayüzünden alınan tasarım token'larını kullanır.
   Kaynak: transnova uygulamasının src/client/styles.css :root bloğu.
   Böylece tanıtım sitesi ile ürün aynı kurumsal dili konuşur.

   İlkeler
   - Lacivert (#0e2438) + mavi (#0f5ea8) kurumsal palet; turkuaz YOK.
   - Gradyan ölçülü kullanılır; neon/gaming görünüm yasak.
   - Gölge az, kenarlık net: kurumsal B2B hissi.
   - Tipografi tek aile (Inter) — başlıklarda sıkı harf aralığı.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token'lar
   -------------------------------------------------------------------------- */
:root {
  /* Marka */
  --accent: #0f5ea8;
  --accent-strong: #0b4780;
  --accent-deep: #093a68;
  --accent-soft: #e8f1fa;
  --accent-softer: #f2f7fc;
  --accent-contrast: #ffffff;

  /* Yüzeyler */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #fafbfc;
  --surface-sunken: #eff2f6;

  /* Metin */
  --text: #16202b;
  --text-muted: #5c6b7a;
  --text-faint: #8a97a5;

  /* Kenarlıklar */
  --border: #e2e7ee;
  --border-strong: #ccd5e0;
  --border-accent: #c7dcf0;

  /* Durumlar */
  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --warn: #b45309;
  --warn-soft: #fdf2e2;
  --danger: #b91c1c;
  --danger-soft: #fdeaea;
  --info: #1d4ed8;
  --info-soft: #e8eeff;

  /* Kurumsal lacivert (footer / koyu bölümler) */
  --navy: #0e2438;
  --navy-deep: #0a1a29;
  --navy-fg: #c8d6e4;
  --navy-fg-strong: #ffffff;
  --navy-muted: #8fa6bd;
  --navy-label: #6f89a3;
  --navy-border: #1c3a55;

  /* Köşe yarıçapları */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Gölgeler — çok hafif, "premium" için katmanlı */
  --shadow-xs: 0 1px 2px rgba(16, 32, 54, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 32, 54, 0.06), 0 1px 2px rgba(16, 32, 54, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 32, 54, 0.07), 0 1px 3px rgba(16, 32, 54, 0.04);
  --shadow-lg: 0 12px 28px rgba(16, 32, 54, 0.10), 0 2px 8px rgba(16, 32, 54, 0.05);
  --shadow-xl: 0 28px 60px rgba(16, 32, 54, 0.14), 0 4px 16px rgba(16, 32, 54, 0.06);
  --shadow-pop: 0 20px 48px rgba(9, 58, 104, 0.20);

  /* Ölçü */
  --container: 1180px;
  --container-narrow: 880px;
  --gutter: 24px;
  --header-h: 72px;

  /* Geçiş */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 120ms var(--ease);
  --t-base: 220ms var(--ease);

  /* Tipografi ölçeği */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   2. Temel
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sabit başlık altında bölüm başlarına atlarken nefes payı */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast);
}

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

button {
  font: inherit;
  color: inherit;
}

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

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

/* --------------------------------------------------------------------------
   3. Tipografi
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.021em;
  line-height: 1.16;
  text-wrap: balance;
}

h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: -0.028em;
}
h2 {
  font-size: clamp(25px, 3.1vw, 38px);
  letter-spacing: -0.025em;
}
h3 {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.28;
}
h4 {
  font-size: 17px;
  line-height: 1.35;
}

p {
  margin: 0;
  text-wrap: pretty;
}

strong,
b {
  font-weight: 650;
  color: var(--text);
}

/* Bölüm üstü küçük etiket */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--border-accent);
  border-radius: var(--r-pill);
  background: var(--accent-softer);
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.eyebrow svg {
  flex: none;
}

/* Giriş paragrafı */
.lead {
  color: var(--text-muted);
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.62;
}

.muted {
  color: var(--text-muted);
}
.faint {
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   4. Yerleşim
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(56px, 7.5vw, 104px) 0;
  position: relative;
}

.section--tight {
  padding: clamp(44px, 5.5vw, 72px) 0;
}

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

.section--sunken {
  background: var(--surface-sunken);
}

.section--hairline {
  border-top: 1px solid var(--border);
}

/* Koyu bölümler */
.section--navy {
  background: var(--navy);
  color: var(--navy-fg);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--navy-fg-strong);
}

.section--navy p,
.section--navy .lead {
  color: var(--navy-fg);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

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

.section-head h2 + p {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   5. Butonlar
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.006em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast),
    color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0.5px);
}

.btn svg {
  flex: none;
}

/* Ana CTA */
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(9, 58, 104, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn--primary:hover {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 4px 14px rgba(9, 58, 104, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* İkincil — sade */
.btn--secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--surface);
}

/* Sessiz — "Panele Giriş" gibi */
.btn--ghost {
  color: var(--text-muted);
  padding: 10px 14px;
}

.btn--ghost:hover {
  color: var(--accent-strong);
  background: var(--accent-softer);
}

/* Koyu zemin üstünde */
.btn--on-navy {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--navy-border);
  color: var(--navy-fg-strong);
}

.btn--on-navy:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: #2a5273;
}

.btn--lg {
  padding: 14px 24px;
  font-size: 15.5px;
  border-radius: var(--r-lg);
}

.btn--block {
  width: 100%;
}

.btn[aria-disabled='true'],
.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Metin bağlantısı + ok */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}

.link-arrow svg {
  transition: transform var(--t-base);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   6. Başlık (header)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(16, 32, 54, 0.05);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Marka işareti */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand__word {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.brand__sub {
  display: block;
  margin-top: -4px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Ana menü */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}

.nav__link {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.004em;
  transition: color var(--t-fast), background var(--t-fast);
}

.nav__link:hover,
.nav__link[aria-current='true'] {
  color: var(--text);
  background: var(--surface-sunken);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* Mobil menü düğmesi */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

/* Mobil çekmece */
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav[data-open='true'] {
  display: block;
}

.mobile-nav ul {
  margin: 0;
  padding: 10px var(--gutter) 18px;
  list-style: none;
}

.mobile-nav li + li {
  border-top: 1px solid var(--border);
}

.mobile-nav a {
  display: block;
  padding: 13px 2px;
  color: var(--text);
  font-size: 16px;
  font-weight: 550;
}

.mobile-nav__cta {
  display: grid;
  gap: 9px;
  padding: 4px var(--gutter) 18px;
}

/* --------------------------------------------------------------------------
   7. Kart — temel yüzey
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.card--pad {
  padding: 24px;
}

.card--lift {
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.card--lift:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. Ekran görüntüsü çerçevesi (tarayıcı penceresi)
   -------------------------------------------------------------------------- */
.shot {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 13px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(#fbfcfd, #f4f7fa);
}

.shot__dots {
  display: flex;
  gap: 5px;
  flex: none;
}

.shot__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8dfe8;
}

.shot__url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 320px;
  margin: 0 auto;
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.004em;
}

.shot__body {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.shot__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Görsel henüz yoksa: profesyonel yer tutucu (sahte ekran ÇİZMEZ) */
.shot__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 16 / 10;
  padding: 28px;
  background: repeating-linear-gradient(
      135deg,
      rgba(15, 94, 168, 0.028) 0 12px,
      transparent 12px 24px
    ),
    var(--surface-alt);
  color: var(--text-faint);
  text-align: center;
}

.shot__placeholder svg {
  opacity: 0.5;
}

.shot__placeholder strong {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.shot__placeholder span {
  font-size: 12.5px;
  max-width: 280px;
}

/* Tarayıcı çerçevesinin altında ince yansıma */
.shot--float {
  transform: perspective(1600px) rotateX(1.6deg) rotateY(-1.2deg);
  transform-origin: 50% 0;
  transition: transform 600ms var(--ease);
}

.shot--float:hover {
  transform: perspective(1600px) rotateX(0) rotateY(0);
}

/* Etiketli ekran bloğu */
.shot-figure {
  margin: 0;
}

.shot-figure figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.shot-figure figcaption b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 650;
}
