/* ==========================================================
   UnitPlan — ortak stiller
   Renkler ve ölçüler Bubble'daki orijinal sayfadan alınmıştır.
   ========================================================== */

:root {
  --navy-900: #090738;   /* header, mega menü */
  --navy-800: #091747;   /* footer */
  --indigo: #15008b;     /* sayfa arka planı, buton yazısı */
  --blue: #0205d3;
  --lavender: #bec9ff;
  --sky: #68c3e8;        /* footer başlıkları, e-posta */
  --turquoise: #77e7f1;  /* "Biz Kimiz?" */
  --orange: #f0b462;     /* AI Analiz, bülten butonu */
  --off-white: #f5f5f7;
  --white: #fff;

  --container: 1200px;
  --gutter: 16px;
  --header-h: 70px;
  --radius-btn: 12px;
  --radius-card: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--white);
  background: var(--indigo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; border-radius: 4px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 51px; min-width: 200px; padding: 0 24px;
  border-radius: var(--radius-btn);
  font-size: 20px; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.btn--white { background: var(--white); color: var(--indigo); }
.btn--sm { height: 48px; min-width: 140px; padding: 0 14px; font-size: 16px; }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--indigo);
  transition: background-color .25s ease;
}
.site-header.is-scrolled, .menu-open .site-header { background: var(--navy-900); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header .logo { flex: none; }
.site-header .logo img { width: 140px; height: auto; }

.main-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; }
.nav-list { display: flex; align-items: center; gap: 0; margin-left: 20px; }
.nav-list > li { position: static; }
.nav-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 24px 28px; font-size: 16px; font-weight: 500; line-height: 22px; color: var(--white);
  white-space: nowrap;
  transition: color .15s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--turquoise); }
.nav-link--accent { color: var(--turquoise); }
/* Bulunulan sayfanın menü başlığı turuncu (Bubble'daki gibi) */
.nav-link[aria-current="page"] { color: var(--orange); }
.nav-chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 6px; transition: transform .2s; }
[aria-expanded="true"] > .nav-chev { transform: rotate(225deg) translateY(-1px); }

.nav-actions { display: flex; align-items: center; gap: 0; }
.nav-actions .nav-link { padding: 9px 15px; font-size: 15px; }
.nav-link--ai { color: var(--orange); }
.nav-link--ai:hover { color: #ffd08f; }
.nav-link--login { font-weight: 600; margin-right: 15px; }

.lang {
  flex: none; width: 36px; height: 36px; margin-left: 35px;
  display: grid; place-items: center;
  border: 1.5px solid var(--white); border-radius: 50%;
  font-size: 15px; font-weight: 600;
}
.lang:hover { background: rgba(255, 255, 255, .1); }

/* Mega menü (Uygulama, Duyurular) */
.mega {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  /* Sol yarı koyu lacivert, sağ yarı (ekran ortasının 70px sağından itibaren) indigo panel — Bubble'daki gibi */
  background: linear-gradient(90deg, var(--navy-900) calc(50% + 70px), var(--indigo) calc(50% + 70px));
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-menu.open .mega { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1101px) {
  .has-menu:hover .mega { opacity: 1; visibility: visible; transform: none; }
  .has-menu:hover > .nav-link { color: var(--turquoise); }
}
.mega-inner { display: grid; grid-template-columns: 670px 1fr; align-items: start; min-height: 170px; padding-top: 36px; padding-bottom: 36px; }
.mega-list { display: grid; gap: 18px; padding-left: 238px; }
.mega-list a { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 400; line-height: 22px; white-space: nowrap; opacity: .95; }
.mega-list a:hover { opacity: 1; color: var(--turquoise); }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.dot--orange { background: var(--orange); }
.dot--teal { background: var(--sky); }
.dot--blue { background: #5a6bff; }
.mega-sq { width: 18px; height: 18px; border-radius: 4px; background: var(--sky); opacity: .85; flex: none; }
.mega-note {
  padding: 8px 0 0 56px;
  font-size: 22px; font-weight: 500; line-height: 33px;
}

.burger { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; }
.burger span, .burger::before, .burger::after {
  content: ''; position: absolute; left: 8px; right: 8px; height: 3px; border-radius: 2px; background: var(--white);
  transition: transform .2s, opacity .2s, top .2s;
}
.burger::before { top: 11px; }
.burger span { top: 18.5px; }
.burger::after { top: 26px; }
.menu-open .burger::before { top: 18.5px; transform: rotate(45deg); }
.menu-open .burger span { opacity: 0; }
.menu-open .burger::after { top: 18.5px; transform: rotate(-45deg); }

.only-mobile { display: none; }
/* Küçük dizüstü ekranlarda (1101–1360px) menü sığsın diye aralıklar daralır */
@media (min-width: 1101px) and (max-width: 1360px) {
  .nav-list { margin-left: 4px; }
  .nav-list > li > .nav-link { padding-left: 12px; padding-right: 12px; }
  .nav-actions .nav-link { padding-left: 10px; padding-right: 10px; }
  .nav-link--login { margin-right: 8px; }
  .lang { margin-left: 16px; }
}
@media (max-width: 1100px) { .br-desktop { display: none; } }

/* Mobil / dar ekran menüsü */
@media (max-width: 1100px) {
  .header-inner { gap: 0; }
  .site-header .logo img { width: 112px; }
  .lang { margin: 0 auto; order: 2; }
  .burger { display: block; order: 3; margin-left: 0; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 12px var(--gutter) 40px;
    background: linear-gradient(160deg, var(--indigo) 0%, #1a0fa8 55%, #2b4fdc 100%);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 8px 12px; font-size: 16px; line-height: 23px; }
  .only-mobile { display: block; }
  .nav-chev { margin-right: 4px; }
  .mega { position: static; box-shadow: none; border: 0; background: transparent; transform: none; display: none; opacity: 1; visibility: visible; }
  .has-menu.open .mega { display: block; }
  .mega-inner { display: block; min-height: 0; padding: 4px 0 10px 24px; }
  .mega-list { padding-left: 0; }
  .mega-list { gap: 12px; }
  .mega-list a { font-size: 15px; }
  .mega-note { display: none; }
  .nav-actions { flex-direction: column; gap: 6px; margin-top: 28px; }
  .nav-actions .nav-link { justify-content: center; width: auto; }
  .nav-link--login { margin: 0; }
  .nav-actions .btn { min-width: 165px; height: 54px; margin-top: 12px; }
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--navy-800); padding: 45px 0 34px; }
.site-footer .container { padding-left: calc(var(--gutter) + 20px); padding-right: calc(var(--gutter) + 20px); }
.footer-top { display: flex; justify-content: space-between; gap: 10px; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 150px); column-gap: 10px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-col a:not(.footer-head) { font-size: 12px; line-height: 16.8px; opacity: .95; }
.footer-col a:not(.footer-head):hover { color: var(--sky); }
.footer-head { font-size: 16px; font-weight: 600; line-height: 22.4px; color: var(--sky); margin-bottom: 10px; }
a.footer-head:hover { color: var(--turquoise); }
.footer-head--gap { margin-top: 30px; }

.newsletter {
  width: 360px; min-height: 200px; flex: none; align-self: flex-start;
  padding: 20px 20px 22px;
  background: rgba(255, 255, 255, .1); border-radius: var(--radius-card);
}
.newsletter-title { font-size: 16px; font-weight: 600; line-height: 22.4px; margin-bottom: 18px; }
.newsletter-row { display: flex; height: 48px; }
.newsletter-row input {
  flex: 1; min-width: 0; padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .6); border-right: 0; border-radius: 3px 0 0 3px;
  font: 400 15px 'Poppins', sans-serif; color: var(--white); background: transparent;
}
.newsletter-row input::placeholder { color: var(--white); opacity: .95; }
.newsletter-row button { width: 60px; display: grid; place-items: center; background: var(--orange); border-radius: 0 3px 3px 0; color: var(--white); }
.newsletter-row button:hover { background: #e9a446; }
.newsletter-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 11px; line-height: 15px; text-align: left; cursor: pointer; }
.newsletter-consent input { flex: none; width: 14px; height: 14px; margin: 1px 0 0; accent-color: var(--orange); cursor: pointer; }
.newsletter-consent a { text-decoration: underline; }
.newsletter-consent a:hover { color: var(--sky); }
.newsletter-note { margin-top: 14px; font-size: 12px; line-height: 16.8px; }
.newsletter-msg { margin-top: 10px; font-size: 13px; color: var(--turquoise); }

.footer-bottom { display: flex; align-items: center; margin-top: 55px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .35); }
.footer-bottom .logo img { width: 140px; height: auto; }
.footer-legal { display: flex; align-items: center; gap: 0; margin-left: auto; font-size: 12px; font-weight: 500; }
.footer-legal a { padding: 0 20px; }
.footer-legal a:hover { color: var(--sky); }
.footer-mail { color: var(--sky); margin-right: 18px; }
.social { display: flex; gap: 20px; margin-left: 10px; }
.social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); }
.social a svg { width: 16px; height: 16px; }
.social a:hover { background: rgba(255, 255, 255, .12); }

/* Footer 1200px altında tek sütuna geçer (yan yana sığmadığı için).
   Masaüstünde en sağda olan "Bağlantıda Kalın" kutusu burada en alta, sütunlarla aynı eksende ortalı gelir. */
@media (max-width: 1199px) {
  .footer-top { flex-direction: column; align-items: center; gap: 46px; }
  .newsletter { align-self: center; width: 100%; max-width: 340px; text-align: center; padding: 24px 40px 26px; }
  .newsletter-row input { background: var(--white); color: #222; border: 0; }
  .newsletter-row input::placeholder { color: #999; }
  .social a { width: 30px; height: 30px; }
  .footer-cols { grid-template-columns: 1fr; row-gap: 22px; text-align: center; }
  .footer-col { align-items: center; }
  .footer-col a:not(.footer-head) { font-size: 16px; line-height: 24.5px; }
  .footer-head { font-size: 18px; margin-bottom: 8px; }
  .footer-head--gap { margin-top: 22px; }
  .footer-bottom { flex-direction: column; gap: 22px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .35); }
  .footer-legal { margin: 0; flex-wrap: wrap; justify-content: center; row-gap: 10px; font-size: 13px; }
  .footer-mail { width: 100%; text-align: center; margin: 0; }
  .social { margin: 4px 0 0; }
  .site-footer .logo img { width: 130px; }
}

/* ==========================================================
   Ana sayfa
   ========================================================== */
.home-hero {
  position: relative;
  min-height: calc(830px - var(--header-h));
  padding: 80px 0 90px;
  background: var(--indigo) url('/assets/img/hero-bg.webp?v=8d46f418') center / cover no-repeat;
  text-align: center;
}
.home-hero h1 { font-size: 76px; font-weight: 600; line-height: 1.1; letter-spacing: -.2px; }
.home-hero h1 span { display: block; }
.home-hero h1 .l2 { color: var(--lavender); }
.home-hero h1 .l3 { color: var(--off-white); }
.home-hero .lead { max-width: 1040px; margin: 55px auto 0; font-size: 24px; font-weight: 500; line-height: 1.26; }
.hero-actions { display: flex; justify-content: center; gap: 30px; margin-top: 90px; }

@media (max-width: 1100px) {
  .home-hero h1 { font-size: 56px; }
}
@media (max-width: 640px) {
  .home-hero { min-height: 0; padding: 46px 0 80px; background-image: none; }
  .home-hero h1 { font-size: 40px; line-height: 1.16; padding: 0 20px; }
  .home-hero .lead { margin-top: 32px; font-size: 16px; line-height: 1.45; padding: 0 4px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 22px; margin-top: 42px; }
  .hero-actions .btn { width: 160px; min-width: 0; height: 47px; font-size: 16px; }
}
