/* ==========================================================================
   Cosmo Yazılım — ortak stiller
   Kaynak: design_handoff_cosmo_site mockup'ları (birebir değerler)
   ========================================================================== */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F7F6F2;
  color: #071A3D;
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #1677FF; }
a:hover { color: #071A3D; }
::selection { background: #1677FF; color: #fff; }

/* ---- Keyframes ---- */
@keyframes cosmoMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cosmoPulse { 0%,100% { opacity: .25; transform: scale(1); } 50% { opacity: .9; transform: scale(1.35); } }
@keyframes cosmoPing { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes cosmoMenuIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cosmoOverlayIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---- Header / Nav ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 420ms cubic-bezier(.16,1,.3,1), border-color 420ms, backdrop-filter 420ms;
  will-change: background;
}
.site-header.is-scrolled {
  background: rgba(247,246,242,0.78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(7,26,61,0.10);
}
.header-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0%;
  background: linear-gradient(90deg, #071A3D, #1677FF);
  transition: width 120ms linear;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  height: clamp(68px, 7vw, 84px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.header-logo img { height: clamp(19px, 2vw, 24px); width: auto; display: block; }

.nav-desktop { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav-link {
  position: relative; font-family: Jost, sans-serif; font-size: 14px; font-weight: 400;
  letter-spacing: 0.02em; color: #071A3D; text-decoration: none; padding: 8px 0;
  transition: opacity 240ms;
}
.nav-link:hover { opacity: 0.55; color: #071A3D; }
.nav-link .nav-dot {
  position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: #1677FF;
}
.nav-cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 20px;
  border-radius: 3px; background: #071A3D; color: #F7F6F2; font-family: Jost, sans-serif;
  font-size: 13.5px; font-weight: 400; letter-spacing: 0.04em; text-decoration: none;
  transition: background 260ms cubic-bezier(.16,1,.3,1), transform 260ms cubic-bezier(.16,1,.3,1);
}
.nav-cta:hover { background: #1677FF; transform: translateY(-1px); color: #F7F6F2; }
.nav-cta .cta-dot { width: 5px; height: 5px; border-radius: 50%; background: #4DA3FF; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 0 10px; background: transparent; border: 0; cursor: pointer;
}
.nav-burger span { display: block; height: 1.5px; width: 24px; background: #071A3D; }
.nav-burger span:last-child { width: 16px; align-self: flex-start; }

@media (max-width: 999px) {
  .nav-desktop, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}

/* Mobil overlay menü */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1000; background: #071A3D;
  display: none; flex-direction: column;
}
.mobile-menu.is-open { display: flex; animation: cosmoOverlayIn 320ms ease both; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 clamp(20px, 5vw, 40px); }
.mobile-menu-top img { height: 26px; width: auto; }
.mobile-menu-close {
  width: 44px; height: 44px; background: transparent; border: 0; color: #F7F6F2;
  font-family: Jost, sans-serif; font-size: 26px; font-weight: 200; cursor: pointer; line-height: 1;
}
.mobile-menu-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 clamp(20px, 5vw, 40px) 12vh; }
.mobile-menu-nav a {
  font-family: Jost, sans-serif; font-size: clamp(30px, 8vw, 44px); font-weight: 300;
  color: #F7F6F2; text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid rgba(232,234,240,0.12);
}
.mobile-menu-nav a:hover { color: #F7F6F2; }
.mobile-menu-nav a:last-of-type { border-bottom: 0; }
.mobile-menu.is-open .mobile-menu-nav a { animation: cosmoMenuIn 520ms cubic-bezier(.16,1,.3,1) both; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(1) { animation-delay: 60ms; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(2) { animation-delay: 110ms; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(3) { animation-delay: 160ms; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(4) { animation-delay: 210ms; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(5) { animation-delay: 260ms; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(6) { animation-delay: 300ms; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(7) { animation-delay: 310ms; }
.mobile-menu.is-open .mobile-menu-nav a.mobile-menu-cta { animation-delay: 360ms; }
.mobile-menu-cta {
  margin-top: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; border-radius: 3px; background: #1677FF; color: #FFFFFF !important;
  font-family: Jost, sans-serif; font-size: 15px; letter-spacing: 0.04em; text-decoration: none;
  border-bottom: 0 !important;
}
body.menu-locked { overflow: hidden; }

/* ---- Butonlar ---- */
.btn-blue {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px;
  border-radius: 3px; background: #1677FF; color: #FFFFFF; font-family: Jost, sans-serif;
  font-size: 15px; letter-spacing: 0.03em; text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(22,119,255,0.75);
  transition: transform 320ms cubic-bezier(.16,1,.3,1), box-shadow 320ms, background 320ms;
  border: 0; cursor: pointer;
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(22,119,255,0.9); background: #0F6AEC; color: #FFFFFF; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px;
  border-radius: 3px; background: transparent; border: 1px solid rgba(7,26,61,0.22);
  color: #071A3D; font-family: Jost, sans-serif; font-size: 15px; letter-spacing: 0.03em; text-decoration: none;
  transition: border-color 320ms, background 320ms, transform 320ms cubic-bezier(.16,1,.3,1);
  cursor: pointer;
}
.btn-ghost:hover { border-color: #071A3D; background: rgba(7,26,61,0.04); transform: translateY(-2px); color: #071A3D; }
.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 28px;
  border-radius: 3px; background: transparent; border: 1px solid rgba(247,246,242,0.26);
  color: #F7F6F2; font-family: Jost, sans-serif; font-size: 15px; letter-spacing: 0.03em; text-decoration: none;
  transition: border-color 320ms, background 320ms, transform 320ms cubic-bezier(.16,1,.3,1);
  cursor: pointer;
}
.btn-ghost-dark:hover { border-color: #4DA3FF; background: rgba(247,246,242,0.06); transform: translateY(-2px); color: #F7F6F2; }
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px;
  border: 1px solid rgba(232,234,240,0.28); border-radius: 3px; color: #F7F6F2;
  font-family: Jost, sans-serif; font-size: 14.5px; letter-spacing: 0.03em; text-decoration: none;
  transition: background 300ms, border-color 300ms;
}
.btn-outline-dark:hover { background: rgba(232,234,240,0.08); border-color: #4DA3FF; color: #F7F6F2; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: Jost, sans-serif;
  font-size: 14px; letter-spacing: 0.03em; color: #1677FF; text-decoration: none;
  transition: gap 260ms cubic-bezier(.16,1,.3,1);
}
.link-arrow:hover { gap: 15px; color: #1677FF; }

/* ---- Kartlar ---- */
.card-hover {
  transition: transform 480ms cubic-bezier(.16,1,.3,1), box-shadow 480ms, border-color 480ms;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(7,26,61,0.45); border-color: rgba(22,119,255,0.35) !important; }
.product-hover { transition: transform 520ms cubic-bezier(.16,1,.3,1), box-shadow 520ms; }
.product-hover:hover { transform: translateY(-6px); box-shadow: 0 34px 64px -38px rgba(7,26,61,0.5); }
.case-hover { transition: transform 480ms cubic-bezier(.16,1,.3,1), box-shadow 480ms; }
.case-hover:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -34px rgba(7,26,61,0.45); }
.product-wide { transition: box-shadow 520ms cubic-bezier(.16,1,.3,1), transform 520ms cubic-bezier(.16,1,.3,1); }
.product-wide:hover { transform: translateY(-4px); box-shadow: 0 34px 64px -40px rgba(7,26,61,0.5); }

/* ---- Footer ---- */
.site-footer { background: #071A3D; color: #E8EAF0; padding: clamp(64px, 8vw, 104px) clamp(20px, 4vw, 48px) 36px; font-family: Manrope, sans-serif; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(36px, 5vw, 64px); align-items: start; }
.footer-brand { grid-column: span 2; min-width: 240px; max-width: 420px; }
.footer-brand img { height: 30px; width: auto; display: block; }
.footer-brand p { margin: 22px 0 0; font-size: 14.5px; line-height: 1.75; color: rgba(232,234,240,0.62); text-wrap: pretty; }
.footer-mail {
  display: inline-block; margin-top: 24px; font-family: Jost, sans-serif; font-size: 16px;
  letter-spacing: 0.02em; color: #4DA3FF; text-decoration: none;
  border-bottom: 1px solid rgba(77,163,255,0.35); padding-bottom: 3px; transition: color 240ms;
}
.footer-mail:hover { color: #FFFFFF; }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col-title { font-family: Jost, sans-serif; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(232,234,240,0.42); margin-bottom: 6px; }
.footer-link { font-size: 14.5px; color: rgba(232,234,240,0.82); text-decoration: none; transition: color 200ms; }
.footer-link:hover { color: #FFFFFF; }
.footer-muted { font-size: 14.5px; line-height: 1.6; color: rgba(232,234,240,0.5); }
.footer-bottom {
  margin-top: clamp(48px, 6vw, 76px); padding-top: 26px; border-top: 1px solid rgba(232,234,240,0.12);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.footer-copy { font-size: 13px; color: rgba(232,234,240,0.42); }
.footer-legal { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 30px); }
.footer-legal a { font-size: 13px; color: rgba(232,234,240,0.55); text-decoration: none; transition: color 200ms; }
.footer-legal a:hover { color: #FFFFFF; }

/* ---- Filtre chip'leri (ürünler + blog) ---- */
.chip {
  height: 40px; padding: 0 18px; border-radius: 3px;
  border: 1px solid rgba(7,26,61,0.2); background: transparent; color: #071A3D;
  font-family: Jost, sans-serif; font-size: 13.5px; letter-spacing: 0.06em; cursor: pointer;
  transition: background 260ms, color 260ms, border-color 260ms;
}
.chip:hover { border-color: rgba(7,26,61,0.5); }
.chip.is-active { background: #071A3D; border-color: #071A3D; color: #F7F6F2; }

/* ---- Sayfa içi çapa pilleri (hizmetler) ---- */
.pill-link {
  height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 3px;
  border: 1px solid rgba(7,26,61,0.2); color: #071A3D; font-family: Jost, sans-serif;
  font-size: 13.5px; letter-spacing: 0.05em; text-decoration: none;
  transition: background 260ms, border-color 260ms;
}
.pill-link:hover { background: rgba(7,26,61,0.05); border-color: #071A3D; color: #071A3D; }

.hover-underline:hover { text-decoration: underline; color: #1677FF; }

/* ---- Form alanları (iletişim) ---- */
input::placeholder, textarea::placeholder { color: rgba(7,26,61,0.35); }
.f-input:focus { border-color: #1677FF !important; box-shadow: 0 0 0 3px rgba(22,119,255,0.14); }
.social-pill {
  height: 40px; display: inline-flex; align-items: center; padding: 0 16px;
  border: 1px solid rgba(7,26,61,0.18); border-radius: 3px; font-family: Jost, sans-serif;
  font-size: 13.5px; color: #071A3D; text-decoration: none;
  transition: border-color 220ms, background 220ms;
}
.social-pill:hover { border-color: #1677FF; background: rgba(22,119,255,0.06); color: #071A3D; }
.mail-big { transition: color 220ms; }
.mail-big:hover { color: #1677FF !important; }
/* Honeypot alanı: görsel olarak tamamen gizli */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.faq-btn:hover { color: #1677FF !important; }
.back-link:hover { color: #1677FF !important; }

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: #071A3D; color: #fff; padding: 12px 18px; font-family: Jost, sans-serif; font-size: 14px;
}
.skip-link:focus { left: 0; color: #fff; }
