html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

/* hero arka planı */
.hero-bg {
  background:
    radial-gradient(120% 90% at 80% -10%, #1a2f8f 0%, rgba(10,20,58,0) 55%),
    radial-gradient(90% 80% at 8% 20%, #14268c 0%, rgba(10,20,58,0) 50%),
    linear-gradient(160deg, #0a143a 0%, #0a1236 55%, #060c26 100%);
}
.glow-orb {
  position: absolute; border-radius: 9999px; filter: blur(70px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); opacity: .55; }
  100% { transform: translate(40px,-30px) scale(1.15); opacity: .8; }
}

/* hero arka plan videosu */
/* video koyu lacivert olduğu için opaklık yüksek, örtü hafif tutuldu —
   aksi hâlde aynı renkteki hero zemininde tamamen kayboluyor */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1; opacity: .85;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(160deg, rgba(10,20,58,.08) 0%, rgba(6,12,38,.10) 60%, rgba(6,12,38,.16) 100%);
}
.hero-bg > .glow-orb { z-index: 3; }
.hero-bg > .relative { z-index: 4; }

/* hero arka planında yavaşça dolaşan ışık — renkler hero paletinin aynısı */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 42% at 24% 28%, rgba(26,47,143,.55) 0%, rgba(26,47,143,0) 62%),
    radial-gradient(38% 38% at 74% 62%, rgba(20,38,140,.45) 0%, rgba(20,38,140,0) 62%);
  animation: heroFlow 24s ease-in-out infinite alternate;
}
@keyframes heroFlow {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  50%  { transform: translate3d(3%,  2%, 0) scale(1.09); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.04); }
}

/* iç sayfa CTA bandındaki arka plan videosu — mavi tonu korunur */
.cta-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .75;
}
.cta-video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
    rgba(32,19,214,.34) 0%,
    rgba(32,19,214,.22) 48%,
    rgba(24,4,196,.32) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg::before { animation: none; }
  .glow-orb { animation: none; }
}

/* CTA bandı — sophos.com'daki desenin CSS karşılığı:
   düz Sophos mavisi + yumuşak koyu diyagonal süpürmeler */
.cta-gradient {
  position: relative;
  background-color: #2013d6;
  overflow: hidden;
  isolation: isolate;
}
.cta-gradient::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  background: repeating-linear-gradient(
    104deg,
    rgba(9, 14, 82, 0)    0px,
    rgba(9, 14, 82, .34)  46px,
    rgba(9, 14, 82, .10) 120px,
    rgba(9, 14, 82, 0)   210px,
    rgba(9, 14, 82, 0)   340px
  );
  filter: blur(26px);
  transform: rotate(-7deg);
}
.cta-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(75% 120% at 12% 0%,  rgba(6, 10, 70, .45) 0%, rgba(6, 10, 70, 0) 70%),
    radial-gradient(60% 100% at 95% 100%, rgba(48, 40, 255, .35) 0%, rgba(48, 40, 255, 0) 70%);
}

.ring-spin { border: 3px solid #2006f7; border-right-color: transparent; border-radius: 9999px; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gauge { transform: rotate(-90deg); }

.float-card { transition: transform .35s ease, box-shadow .35s ease; }
.float-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -18px rgba(20,34,199,.4); }

/* parallax görseller */
.pfloat { animation: bob 6s ease-in-out infinite; }
.pfloat.d1 { animation-delay: -1s }
.pfloat.d2 { animation-delay: -2.5s }
.pfloat.d3 { animation-delay: -4s }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

/* duyuru şeridi */
#topbanner { transition: transform .3s ease, opacity .3s ease; }
#topbanner.hide { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* header iki durum */
/* top geçişi yalnızca ilk konumlandırmadan SONRA devreye girer;
   aksi hâlde sayfa açılışında header yanlış yerden doğru yere kayıyor */
#nav { transition: background .3s ease, box-shadow .3s ease; }
#nav.is-ready { transition: background .3s ease, box-shadow .3s ease, top .3s ease; }
#nav .nav-link, #nav .util-link, #nav .logo-txt, #nav .logo-ico { color: #fff; }
#nav .util-sep { color: rgba(255,255,255,.3); }
#nav .cta { background: #fff; color: #0a143a; border: 1px solid #fff; }
#nav.solid { background: #fff; box-shadow: 0 6px 24px -14px rgba(0,0,0,.35); }
#nav.solid .nav-link, #nav.solid .util-link, #nav.solid .logo-txt, #nav.solid .logo-ico { color: #0a143a; }
#nav.solid .util-sep { color: rgba(10,20,58,.25); }
#nav.solid .cta { background: transparent; color: #0a143a; border: 1px solid #0a143a; }
#nav .nav-link:hover, #nav .util-link:hover { opacity: .7; }
#nav .cta:hover { background: #2006f7; color: #fff; border-color: #2006f7; }

/* vaka çalışmaları sekmeleri */
.cs-tab { flex: 1 1 0; display: flex; align-items: center; justify-content: center; padding: 8px 18px; }
.cs-tab + .cs-tab { border-left: 1px solid #cbd5e1; }
.cs-tab img { max-height: 34px; max-width: 150px; width: auto; object-fit: contain;
              filter: grayscale(1); opacity: .45; transition: all .3s ease; }
.cs-tab:hover img { opacity: .75; }
.cs-tab.is-active img { filter: none; opacity: 1; }

.modal { transition: opacity .3s ease; }
::selection { background: #2006f7; color: #fff; }

.reveal { opacity: 0; transform: translateY(24px); transition: all .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* WYSIWYG çıktısı */
.rich p { margin: 0 0 1em; }
.rich p:last-child { margin-bottom: 0; }
.rich a { color: #2006f7; text-decoration: underline; }
.rich ul, .rich ol { margin: 0 0 1em 1.25em; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich strong { font-weight: 600; }

/* blog yazı gövdesi */
.post-body { font-size: 17px; line-height: 1.75; }
.post-body p { margin: 0 0 1.35em; }
.post-body h2 { font-size: 1.8rem; font-weight: 300; color: #0a143a; margin: 2.2em 0 .7em; letter-spacing: -.01em; }
.post-body h3 { font-size: 1.4rem; font-weight: 400; color: #0a143a; margin: 2em 0 .6em; }
.post-body h4 { font-size: 1.15rem; font-weight: 600; color: #0a143a; margin: 1.8em 0 .5em; }
.post-body a { color: #2006f7; text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: #1804c4; }
.post-body strong { font-weight: 600; color: #0a143a; }
.post-body ul, .post-body ol { margin: 0 0 1.35em 1.4em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: .5em; padding-left: .25em; }
.post-body blockquote {
  margin: 1.8em 0; padding: 1.1em 1.5em;
  border-left: 3px solid #00f2b3; background: #fff;
  border-radius: 0 .75rem .75rem 0;
  font-size: 1.1rem; font-weight: 300; color: #0a143a;
}
.post-body img { max-width: 100%; height: auto; border-radius: .75rem; margin: 1.8em 0; }

/* ---- Sophos logosu ---- */
.sophos-logo { width: auto; display: block; }
/* varsayılan: koyu zemin → tamamı beyaz */
.sophos-logo .mark,
.sophos-logo .word { fill: #fff; transition: fill .3s ease; }

/* açık zemin: kalkan mavi, yazı lacivert */
.sophos-logo.is-light .mark { fill: #2006f7; }
.sophos-logo.is-light .word { fill: #0a143a; }

/* header beyaza dönünce otomatik renk değişimi */
#nav.solid .sophos-logo .mark { fill: #2006f7; }
#nav.solid .sophos-logo .word { fill: #0a143a; }

/* ================= MEGA MENÜ =================
   Ölçüler sophos.com'daki menüden alındı:
   panel 465px · sol sütun 300px · orta 486px · başlık 24px/400 · kategori 14px/600 */
#nav .mega-caret { font-size: 9px; opacity: .6; transition: transform .25s ease; }
#nav li.is-open .mega-caret { transform: rotate(180deg); }

.mega-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  border-top: 1px solid rgba(48,45,44,.2);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
  overflow: hidden;
}
.mega-panel.is-open { opacity: 1; visibility: visible; }

.mega-grid {
  position: relative;
  max-width: 1218px; margin: 0 auto;
  padding: 41px 0 39px;
  display: grid; grid-template-columns: 300px 542px minmax(0, 1fr);
  min-height: 465px;
}
/* sol sütunun tam genişlikte açık mavi bandı */
.mega-grid::before {
  content: ""; position: absolute; z-index: 0;
  top: 0; bottom: 0; right: calc(100% - 300px);
  width: 100vw; background: #edf2f9;
}
.mega-side, .mega-body, .mega-promo { position: relative; z-index: 1; }

/* --- sol sütun: kategoriler --- */
.mega-side { margin-left: -14px; width: 314px; }
.mega-cat {
  width: 100%; height: 38px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 14px; text-align: left;
  font-size: 14px; font-weight: 600; line-height: 1.3; color: #0a143a;
  background: transparent; border: 0; cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.mega-cat span { flex: 1; }
.mega-cat svg { flex-shrink: 0; color: #9aa5bf; }
.mega-cat:hover { color: #2006f7; }
.mega-cat.is-active { background: #fff; color: #2006f7; }
.mega-cat.is-active svg { color: #2006f7; }
/* iki satırlık kategoriler için */
.mega-cat.is-tall { height: auto; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }

/* --- orta sütun --- */
.mega-body { padding-left: 56px; }
.mega-links { display: none; }
.mega-links.is-active { display: block; }

.mega-title {
  font-size: 24px; font-weight: 400; line-height: 1.25;
  color: #0a143a; margin-bottom: 22px;
}
.mega-links a {
  display: block; padding: 6px 0;
  font-size: 16px; line-height: 25.6px; color: #0a143a;
  transition: color .15s ease;
}
.mega-links a:hover { color: #2006f7; }
.mega-links a.is-featured { color: #2006f7; }

/* --- sağ sütun: ışık + kart --- */
.mega-promo { position: relative; }
.mega-blob {
  position: absolute; z-index: 0;
  left: -24px; top: -6px; width: 470px; height: 430px;
  pointer-events: none;
  background:
    radial-gradient(42% 44% at 66% 72%, rgba(38,206,202,.92) 0%, rgba(38,206,202,0) 100%),
    radial-gradient(46% 48% at 45% 47%, rgba(20,78,255,.98) 0%, rgba(20,78,255,0) 100%),
    radial-gradient(38% 40% at 27% 21%, rgba(148,126,252,.8) 0%, rgba(148,126,252,0) 100%);
  filter: blur(8px);
}
.mega-card {
  position: relative; z-index: 1; display: block;
  margin-left: 62px; max-width: 254px;
  background: #fff; border-radius: 4px;
  box-shadow: 0 6px 22px -6px rgba(10,20,58,.22);
  padding: 18px 20px 16px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.mega-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(10,20,58,.32); }
.mega-card p { font-size: 15px; line-height: 1.42; color: #0a143a; }
.mega-card-btn {
  margin-top: 16px; display: flex; margin-left: auto;
  align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 9999px; background: #2006f7; color: #fff;
}

@media (max-width: 1023px) { .mega-panel { display: none; } }

/* ---- Sophos kart biçimi (sophos.com'dan ölçüldü) ---- */
.s-card {
  background: #fff;
  border-radius: 4px 10px 10px 4px;   /* Sophos'un imza asimetrik köşesi */
  padding: 30px;
}
.s-card--shadow { box-shadow: 0 5px 20px 0 rgba(0, 26, 71, .05); }
.s-card--dark { background: rgba(255,255,255,.06); }

/* ---- Mobil menü ---- */
.mobile-menu {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 18px 30px -18px rgba(10,20,58,.35);
  max-height: calc(100vh - 120px);   /* JS açılışta tam değeri hesaplar */
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 13px 20px;
  font-size: 16px; font-weight: 600; color: #0a143a; text-align: left;
}
.mobile-caret { flex-shrink: 0; opacity: .5; transition: transform .22s ease; }
.mobile-acc[aria-expanded="true"] .mobile-caret { transform: rotate(180deg); }
.mobile-acc[aria-expanded="true"] { color: #2006f7; }
.mobile-sub { padding-bottom: 8px; }
.mobile-cat {
  padding: 10px 20px 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #94a3b8;
}
.mobile-sublink {
  display: block; padding: 9px 20px 9px 32px;
  font-size: 14px; color: #475569;
}
.mobile-link:active, .mobile-sublink:active { background: #edf2f9; }
/* menü açıkken header her zaman beyaz zeminde okunur olmalı */
#nav.menu-open { background: #fff; box-shadow: 0 6px 24px -14px rgba(0,0,0,.35); }
#nav.menu-open .nav-link, #nav.menu-open .util-link,
#nav.menu-open .logo-txt, #nav.menu-open .logo-ico { color: #0a143a; }
#nav.menu-open .util-sep { color: rgba(10,20,58,.25); }
#nav.menu-open .cta { background: transparent; color: #0a143a; border: 1px solid #0a143a; }
#nav.menu-open .sophos-logo .mark { fill: #2006f7; }
#nav.menu-open .sophos-logo .word { fill: #0a143a; }
