/* ============================================================
   RHENX — DIGITAL PRESENCE STUDIO
   Dark Premium Technology theme
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #050505;
  --bg-2: #0A0A0F;
  --card: #111116;
  --card-2: #16161D;
  --card-3: #1B1B23;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #FFFFFF;
  --muted: #A1A1AA;
  --text-soft: rgba(255, 255, 255, 0.86);
  --accent: #2563EB;
  --accent-2: #7C3AED;
  --grad: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(124, 58, 237, .18));
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(37, 99, 235, .35), 0 18px 60px rgba(37, 99, 235, .22);
  --font-display: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: rgba(37, 99, 235, .4); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232330; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2e2e3d; }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }

.section-head { max-width: 780px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--grad-soft);
  border: 1px solid rgba(37, 99, 235, .28);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.section-title { font-size: clamp(30px, 5vw, 52px); }
.section-title .grad, .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); margin-top: 18px; max-width: 640px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: 18px 26px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-display);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn .btn-arrow { transition: transform .35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 34px rgba(37, 99, 235, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(37, 99, 235, .5), 0 0 0 6px rgba(37, 99, 235, .12);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover { border-color: rgba(37, 99, 235, .6); color: #fff; transform: translateY(-2px); background: rgba(37, 99, 235, .08); }

.btn-sm { padding: 12px 20px; font-size: 14px; }
.btn-lg { padding: 20px 34px; font-size: 16px; }

/* ---------- Icons ---------- */
.icon { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: grid;
  place-items: center;
}
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader-logo { opacity: 0; animation: preLogo .9s var(--ease) forwards; }
.preloader-logo svg { animation: prePulse 1.4s ease-in-out infinite; }
.preloader-bar { width: 140px; height: 3px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 4px; animation: preSlide 1.1s ease-in-out infinite; }
@keyframes preLogo { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes prePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes preSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(350%); } }
.preloader.is-done { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
body.no-preloader .preloader { display: none; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 3000; border-radius: 50%; display: none; }
.cursor-dot { width: 7px; height: 7px; background: #fff; }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(255, 255, 255, .35); transition: width .25s, height .25s, border-color .25s, opacity .25s; }
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { display: block; }
body.cursor-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--accent); }
/* Açık temada imleci siyah yap */
html[data-theme="light"] .cursor-dot { background: #0F172A; }
html[data-theme="light"] .cursor-ring { border-color: rgba(15, 23, 42, .45); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 5, 5, .85);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--line);
}
/* Açık tema: navbar HEP beyaz — scroll'da gri/karartı yok */
html[data-theme="light"] .site-header { background: #fff; border-bottom-color: rgba(15,23,42,.08); }
html[data-theme="light"] .site-header.scrolled { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: rgba(15,23,42,.12); box-shadow: 0 6px 24px rgba(15,23,42,.06); }
/* Menü açıkken header'daki blur'u kaldır: backdrop-filter, position:fixed menüyü
   viewport yerine header'a hapseder -> scroll sonrası mobil menü açılmaz hatası */
body.nav-open .site-header,
body.nav-open #siteHeader {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
  transform: none !important;
}
html[data-theme="light"] .site-nav a:not(.btn):hover,
html[data-theme="light"] .site-nav a:not(.btn).active { color: var(--text); }
html[data-theme="light"] .lang-switch .lang-btn:hover { color: var(--text); background: rgba(15,23,42,.05); }
html[data-theme="light"] .nav-toggle { background: rgba(15,23,42,.04); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-img { border-radius: 10px; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: .04em; }

.site-nav { display: flex; align-items: center; gap: 22px; min-width: 0; }
.site-nav ul { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.site-nav a:not(.btn) { position: relative; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .3s; white-space: nowrap; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width .35s var(--ease);
}
.site-nav a:not(.btn):hover, .site-nav a:not(.btn).active { color: #fff; }
.site-nav a:not(.btn):hover::after, .site-nav a:not(.btn).active::after { width: 100%; }

/* Orta genişlikte (1025-1199) CTA'yı gizle ki arama+tema her zaman sığsın */
@media (min-width: 1025px) and (max-width: 1199px) {
  .nav-cta { display: none !important; }
}

.nav-cta { display: inline-flex !important; flex: none; }
.nav-toggle { display: none; }
.nav-right { display: flex; align-items: center; gap: 10px; flex: none; position: relative; z-index: 1001; }
.nav-right > * { flex: none; }

/* ---------- Dil değiştirici ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.lang-switch .lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--muted); transition: color .25s, background .25s;
}
.lang-switch .lang-btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.lang-switch .lang-btn.lang-now { color: #fff; background: var(--grad); }
.lang-switch .lang-sep { color: var(--line); }

/* ---------- Konum / Harita ---------- */
.loc-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 34px; align-items: stretch; }
.map-box {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); min-height: 320px;
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; color: var(--muted); text-align: center;
  padding: 20px;
}
.map-empty p { font-size: 15px; font-weight: 600; }
.loc-info {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
}
.loc-row { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 15px; line-height: 1.5; }
.loc-row .icon { flex: none; margin-top: 3px; color: var(--accent); }

@media (max-width: 820px) {
  .loc-grid { grid-template-columns: 1fr; }
  .map-box { min-height: 260px; }
  .lang-switch { position: relative; z-index: 1001; }
}

/* ---------- Sticky-hover nav CTA only on wide (handled below) ---------- */

/* ---------- Hero scroll story ---------- */
.hero-story { position: relative; background: var(--bg); }
.story-stage {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: center;
}
.story-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 70% 22%, rgba(37, 99, 235, .16), transparent 60%),
    radial-gradient(700px 480px at 18% 68%, rgba(124, 58, 237, .12), transparent 60%);
  pointer-events: none;
}
.story-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%);
}

.story-copy {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1180px;
  padding: calc(var(--nav-h) + 4vh) 28px 0;
  text-align: center;
}
.story-scene { pointer-events: none; opacity: 0; }
.story-scene:first-child { opacity: 1; }
.story-scene h1 {
  font-size: clamp(34px, 6.2vw, 62px);
  margin: 0 auto;
  max-width: 900px;
}
.story-scene .scene-sub { color: var(--muted); font-size: clamp(16px, 2vw, 20px); margin-top: 18px; }
.story-scene .rhx { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 28px; }

.story-lines { height: clamp(230px, 28vh, 300px); position: relative; }
.story-scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }

/* Device area */
.device-area {
  position: relative;
  z-index: 3;
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 0;
}

/* Phone */
.phone {
  position: relative;
  width: clamp(200px, 20vw, 240px);
  aspect-ratio: 210 / 428;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #23232f, #0c0c12 60%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 90px rgba(37, 99, 235, .18);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.phone::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(120px 100px at 50% 0%, rgba(255,255,255,.09), transparent 70%);
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 44%; height: 22px; background: #050505; border-radius: 12px; z-index: 6;
}
.mini-site {
  width: 100%; height: 100%;
  background: #0b0b11;
  border-radius: 34px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.ms-nav { display: flex; align-items: center; gap: 6px; padding: 30px 16px 10px; }
.ms-logo { width: 24px; height: 24px; border-radius: 7px; background: var(--grad); flex: none; }
.ms-line { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); }
.ms-line.w2 { width: 30px; } .ms-line.w3 { width: 38px; margin-left: auto; }
.ms-hero { padding: 10px 16px 6px; }
.ms-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.24); margin-bottom: 7px; }
.ms-bar.w90 { width: 90%; } .ms-bar.w70 { width: 70%; } .ms-bar.w55 { width: 55%; }
.ms-pill { margin-top: 9px; display: inline-block; height: 13px; width: 46px; border-radius: 8px; background: var(--grad); }
.ms-img { margin: 12px 16px 0; height: 92px; border-radius: 12px; background: linear-gradient(135deg, #1e3a8a, #6d28d9); flex: none; }
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px; }
.ms-card { height: 46px; border-radius: 9px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }

/* Desktop browser */
.desktop {
  position: relative;
  width: min(880px, 84vw);
  border-radius: 16px;
  background: #101016;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 120px rgba(37, 99, 235, .14);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.desktop-bar {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px;
  background: #17171f; border-bottom: 1px solid var(--line);
}
.desktop-bar b { width: 11px; height: 11px; border-radius: 50%; }
.desktop-bar b:nth-child(1) { background: #FF5F57; } .desktop-bar b:nth-child(2) { background: #FEBC2E; } .desktop-bar b:nth-child(3) { background: #28C840; }
.ds-url { margin: 0 10px; flex: 1; height: 20px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.ds-site { padding: 0; }
.ds-nav { display: flex; align-items: center; gap: 22px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.ds-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--grad); }
.ds-nav span { height: 7px; width: 64px; border-radius: 5px; background: rgba(255,255,255,.14); }
.ds-nav span:last-child { margin-left: auto; width: 92px; height: 22px; background: var(--grad); border-radius: 12px; }
.ds-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: 34px 28px 24px; }
.ds-hbar { height: 18px; border-radius: 10px; background: rgba(255,255,255,.28); margin-bottom: 10px; }
.ds-hbar.short { width: 68%; background: var(--grad); }
.ds-copy { height: 9px; border-radius: 6px; background: rgba(255,255,255,.14); margin-bottom: 8px; }
.ds-copy.w70 { width: 70%; } .ds-copy.w55 { width: 55%; }
.ds-pills { display: flex; gap: 10px; margin-top: 14px; }
.ds-pill { width: 96px; height: 22px; border-radius: 12px; }
.ds-pill.on { background: var(--grad); } .ds-pill.off { background: rgba(255,255,255,.08); border: 1px solid var(--line-2); }
.ds-visual { height: 150px; border-radius: 12px; background: linear-gradient(135deg, #1e3a8a, #6d28d9); position: relative; overflow: hidden; }
.ds-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 70% 30%, rgba(255,255,255,.25), transparent 70%); }
.ds-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 28px 30px; }
.ds-card { height: 74px; border-radius: 12px; background: rgba(255,255,255,.045); border: 1px solid var(--line); }

/* Story progress */
.story-progress {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.story-progress i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); transition: background .3s, transform .3s, box-shadow .3s; }
.story-progress i.on { background: var(--accent); box-shadow: 0 0 12px rgba(37,99,235,.9); transform: scale(1.25); }
.story-scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 6; color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; animation: hintFloat 2.2s ease-in-out infinite;
}
.story-scroll-hint::before, .story-scroll-hint::after { content: ""; width: 26px; height: 1px; background: var(--line-2); }
@keyframes hintFloat { 0%, 100% { transform: translate(-50%, 0); opacity: .85; } 50% { transform: translate(-50%, 6px); opacity: .45; } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 14px; padding: 0 30px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: #D4D4DC; white-space: nowrap; }
.marquee-item .icon { color: var(--accent); }
.marquee-dot { color: var(--accent); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Trust ---------- */
.trust { background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.feature-item:hover { transform: translateY(-5px); border-color: rgba(37,99,235,.5); background: var(--card-2); }
.feature-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(37,99,235,.25); color: var(--accent);
}
.feature-item b { font-family: var(--font-display); font-size: 16px; }

/* ---------- Problem ---------- */
.problem { background: var(--bg-2); border-top: 1px solid var(--line); }
.problem-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.problem-card {
  position: relative; padding: 34px 30px; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .45s;
}
.problem-card:hover { transform: translateY(-7px); border-color: rgba(37,99,235,.5); }
.problem-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.problem-card:hover::before { transform: scaleX(1); }
.problem-num { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .1em; color: var(--accent); }
.problem-ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(37,99,235,.25); color: var(--accent); margin: 20px 0; }
.problem-card h3 { font-size: 22px; margin-bottom: 12px; }
.problem-card p { color: var(--muted); font-size: 15px; }

/* ---------- Sticky devices section ---------- */
.devices { background: var(--bg); }
.devices-stage { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.devices-copy { position: sticky; top: calc(var(--nav-h) + 40px); }
.devices-word {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 84px);
  line-height: .98; letter-spacing: -0.03em; margin: 24px 0 20px;
}
.devices-word .grad { display: block; }
.devices-pick {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 30px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.devices-pick .icon { color: var(--accent); }
.devices-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.devices-step {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px;
  color: var(--muted); font-weight: 700; font-size: 13.5px; font-family: inherit; text-align: left;
  border: 1px solid var(--line); background: var(--card);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
  cursor: pointer;
}
.devices-step:hover { border-color: rgba(37,99,235,.5); color: var(--text); transform: translateY(-2px); }
.devices-step .icon { color: var(--accent); opacity: .7; transition: opacity .3s; }
.devices-step.on {
  background: var(--grad); border-color: transparent; color: #fff;
  transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,99,235,.35);
}
.devices-step.on .icon { opacity: 1; }
.devices-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dv-wrap { position: sticky; top: calc(var(--nav-h) + 60px); height: min(560px, 70vh); display: flex; align-items: center; justify-content: center; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(600px 400px at 50% 100%, rgba(37,99,235,.14), transparent 65%), var(--bg-2); overflow: hidden; }
.dv-device { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.85); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.dv-device.on { opacity: 1; transform: scale(1); }
.dv-label { position: absolute; top: 18px; left: 22px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* phones/tablets/desktop reuse */
.dv-phone .phone { width: clamp(150px, 17vw, 210px); border-radius: 34px; }
.dv-phone .mini-site { border-radius: 25px; }

/* tablet */
.tablet {
  position: relative;
  width: clamp(190px, 24vw, 280px);
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  padding: 12px;
  background: linear-gradient(160deg, #23232f, #0c0c12 60%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 70px rgba(37, 99, 235, .16);
}
.tablet .mini-site { border-radius: 20px; }
.tablet .ms-nav { padding-top: 18px; }

/* responsive (phone + desktop birlikte) */
.dv-any { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 40px); }
.dv-any .phone { width: clamp(120px, 13vw, 170px); }
.dv-any .mini-site { border-radius: 22px; }
.dv-any .desktop { width: clamp(300px, 40vw, 460px); }

/* ---------- Services ---------- */
.services { background: var(--bg-2); border-top: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; padding: 32px 28px; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .4s, background .4s, box-shadow .4s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(37,99,235,.45); box-shadow: var(--shadow-glow); }
.service-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(37,99,235,.25); color: var(--accent); margin-bottom: 22px;
}
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; }
.service-idx {
  position: absolute; top: 22px; right: 24px; font-family: var(--font-display); font-weight: 800;
  font-size: 15px; letter-spacing: .08em; color: rgba(255,255,255,.22);
}

/* ---------- Portfolio ---------- */
.portfolio { background: var(--bg); }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.filter-btn:hover { color: #fff; border-color: rgba(37,99,235,.5); transform: translateY(-2px); }
.filter-btn.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 26px rgba(37,99,235,.35); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.project-card:hover { transform: translateY(-8px); border-color: rgba(37,99,235,.4); box-shadow: var(--shadow-glow); }
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.06); }
.demo-badge {
  position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(5,5,5,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); color: #fff;
}
.project-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.project-cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.project-body h3 { font-size: 20px; }
.project-body p { color: var(--muted); font-size: 14px; flex: 1; }
.project-links { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.project-links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #fff; transition: color .3s; }
.project-links a:hover { color: var(--accent); }

.featured-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; }
.featured-row {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.featured-row:hover { transform: translateY(-4px); border-color: rgba(37,99,235,.4); box-shadow: var(--shadow-glow); }
.featured-info { padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.featured-media { position: relative; min-height: 220px; }
.featured-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.featured-badge { top: auto; bottom: 14px; }

/* ---------- Process ---------- */
.process { background: var(--bg-2); border-top: 1px solid var(--line); }
.process-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-line { position: absolute; top: 29px; left: 0; right: 0; height: 2px; background: var(--line); z-index: 0; }
.process-line-fill { height: 100%; width: 0; background: var(--grad); border-radius: 2px; }
.process-step { position: relative; z-index: 1; padding: 10px 4px; }
.process-dot {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--font-display); font-weight: 800; font-size: 18px; margin-bottom: 20px;
  transition: background .4s, border-color .4s, color .4s, box-shadow .4s, transform .4s var(--ease);
}
.process-step.on .process-dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 12px 30px rgba(37,99,235,.45); transform: translateY(-4px); }
.process-step h3 { font-size: 19px; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 14px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { padding: 30px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .4s; }
.why-item:hover { transform: translateY(-6px); border-color: rgba(37,99,235,.45); }
.why-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(37,99,235,.25); color: var(--accent); margin-bottom: 20px; }
.why-item h3 { font-size: 19px; margin-bottom: 9px; }
.why-item p { color: var(--muted); font-size: 14px; }

/* ---------- About home preview ---------- */
.about-preview { background: var(--bg-2); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.about-quote { color: var(--muted); font-size: clamp(18px, 2.4vw, 24px); line-height: 1.5; font-family: var(--font-display); font-weight: 500; }
.about-quote b { color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + 90px) 0 60px; background: var(--bg); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 420px at 50% 0%, rgba(37,99,235,.14), transparent 65%);
  pointer-events: none;
}
.page-hero .page-title { font-size: clamp(34px, 6vw, 58px); position: relative; }
.page-hero .lead { position: relative; }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.cont-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.cont-item:hover { border-color: rgba(37,99,235,.5); transform: translateX(6px); }
.cont-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(37,99,235,.25); color: var(--accent); flex: none; }
.cont-item span { font-size: 13px; color: var(--muted); display: block; }
.cont-item a, .cont-item b { font-weight: 600; color: #fff; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form-label .req { color: var(--accent); }
.form-control {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: #fff;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.form-control:hover { border-color: rgba(255,255,255,.28); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.16); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; cursor: pointer;
}
.form-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-top: 18px; }
.form-status.ok { display: block; color: #34d399; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); }
.form-status.err { display: block; color: #f87171; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); }
.form-status.sending { display: block; color: var(--muted); }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; grid-column: 1 / -1; flex-wrap: wrap; }
.form-hint { font-size: 12px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-section { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(70px, 9vw, 120px); }
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 60px);
  border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line);
}
.cta-glow {
  position: absolute; inset: 0; background:
    radial-gradient(600px 300px at 50% 0%, rgba(37,99,235,.25), transparent 65%),
    radial-gradient(400px 220px at 80% 100%, rgba(124,58,237,.18), transparent 65%);
  pointer-events: none;
}
.cta-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 20px; }
.cta-title { font-size: clamp(30px, 5vw, 52px); position: relative; }
.cta-sub { color: var(--muted); margin-top: 16px; font-size: 18px; position: relative; }
.cta-actions { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-tag { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 16px; }
.footer-desc { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 280px; }
.footer-h { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--muted); font-size: 14px; transition: color .3s, padding-left .3s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.footer-contact .icon { color: var(--accent); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: color .3s, border-color .3s, transform .3s var(--ease), background .3s; }
.footer-social a:hover { color: #fff; border-color: rgba(37,99,235,.5); background: var(--grad-soft); transform: translateY(-3px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-made { opacity: .8; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25D366;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .4);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 18px 44px rgba(37, 211, 102, .55); }

/* ---------- Error pages ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 20px 60px; background: var(--bg); position: relative; overflow: hidden; }
.error-page::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 380px at 50% 30%, rgba(37,99,235,.16), transparent 62%); }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(90px, 20vw, 200px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.error-desc { color: var(--muted); font-size: 18px; margin: 12px 0 28px; position: relative; }
.error-page .btn { position: relative; }

/* ---------- Reveal animation (JS controlled) ---------- */
html.js [data-reveal] { opacity: 0; }
html.js [data-reveal-group] > * { opacity: 0; }
body.no-gsap [data-reveal], body.no-gsap [data-reveal-group] > *, body.no-gsap .story-scene { opacity: 1 !important; transform: none !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js [data-reveal], html.js [data-reveal-group] > *, body.no-gsap [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid, .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-line { display: none; }
  .devices-stage { grid-template-columns: 1fr; gap: 30px; }
  .devices-copy, .dv-wrap { position: static; }
  .dv-wrap { height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-row { grid-template-columns: 1fr; }
  .featured-media { min-height: 240px; position: relative; }
  .featured-media img { position: absolute; }

  /* Tam menü 1024'e kadar hamburger'e geçer: navbar darsa taşmaz,
     arma (logo) her zaman ekran içinde kalır */
  .nav-wrap { gap: 12px; }
  .site-nav {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(5,5,5,.97);
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    flex-direction: column; justify-content: flex-start; gap: 26px;
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 28px) 24px calc(28px + env(safe-area-inset-bottom, 0px));
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 12px; text-align: center; }
  .site-nav a:not(.btn) { font-size: 22px; font-family: var(--font-display); font-weight: 700; padding: 8px 14px; }
  .nav-cta { margin-top: 10px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    background: rgba(255,255,255,.04); border: 1px solid var(--line);
    border-radius: 12px; cursor: pointer; z-index: 1001;
  }
  .nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  html[data-theme="light"] .site-nav { background: rgba(245,246,250,.98); }
  html[data-theme="light"] .nav-toggle span { background: #0F172A; }
}

@media (max-width: 820px) {
  .hero-story { height: 300vh !important; }
  .story-copy { padding-top: calc(var(--nav-h) + 3vh); }
  .story-lines { height: clamp(210px, 30vh, 260px); }
  .phone { width: clamp(140px, 34vw, 200px); }
  .story-scene .scene-sub { display: none; }
  .hero-actions { margin-top: 18px; gap: 10px; }
  .desktop { width: 92vw; }
  .ds-hero { grid-template-columns: 1fr; padding: 24px 18px 16px; }
  .ds-visual { height: 110px; }
  .ds-cards { grid-template-columns: 1fr; padding: 0 18px 20px; }
  .ds-card { height: 40px; }
  .ds-nav { padding: 14px 18px; gap: 14px; }
  .site-nav {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(5,5,5,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 34px;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 10px; text-align: center; }
  .site-nav a:not(.btn) { font-size: 24px; font-family: var(--font-display); font-weight: 700; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; z-index: 1001; }
  .nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .story-scene h1 { font-size: clamp(30px, 8vw, 46px); }
  .story-progress { display: none; }
  .story-lines { height: 200px; }
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .feature-grid, .services-grid, .why-grid, .projects-grid, .form-grid { grid-template-columns: 1fr; }
  .problem-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .story-stage { min-height: 600px; }
  .phone { border-radius: 34px; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .section { padding: 64px 0; }
}

/* ============================================================
   BLOG, SSS, REFERANS, PAKET, KVKK — içerik blokları
   ============================================================ */

/* ---------- Tema değiştirme butonu ---------- */
.theme-toggle {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); background: var(--grad-soft); }
.theme-toggle .theme-sun { display: none; }
.theme-toggle .theme-moon { display: inline-flex; }
.theme-toggle svg { pointer-events: none; }
html[data-theme="light"] .theme-toggle .theme-sun { display: inline-flex; }
html[data-theme="light"] .theme-toggle .theme-moon { display: none; }

/* ---------- Blog list ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.blog-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-2);
}
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-card-media img { transform: scale(1.05); }
.blog-card-ico { color: var(--accent); opacity: .55; }
.blog-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-date { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.blog-card-title { font-size: 19px; }
.blog-card-title a { transition: color .3s var(--ease); }
.blog-card-title a:hover { color: var(--accent-2); }
.blog-card-excerpt {
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
  padding-top: 8px;
}
.blog-card-link:hover { color: var(--accent-2); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Blog yazısı ---------- */
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.post-card-media { width: 100%; max-height: 460px; object-fit: cover; }
.post-card-body { padding: clamp(22px, 4vw, 48px); }
.post-card-lead {
  color: var(--muted);
  font-size: 16px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 24px;
}
.post-content { font-size: 16.5px; color: var(--text-soft); }
.post-content h2 { font-size: 24px; margin: 28px 0 12px; color: var(--text); }
.post-content p { margin: 0 0 16px; }
.post-content strong { color: var(--text); }
.post-actions { margin-top: 24px; }
.post-actions .btn-arrow { transform: rotate(180deg); }

/* ---------- Referanslar ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.testi-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.testi-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.testi-quote { position: absolute; top: 20px; right: 22px; color: var(--accent); opacity: .25; }
.testi-stars { color: #444; font-size: 15px; letter-spacing: 2px; }
html[data-theme="light"] .testi-stars { color: #D3D6DD; }
.testi-stars .on { color: #FBBF24; }
.testi-card blockquote { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.65; }
.testi-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.testi-card figcaption b { font-size: 14.5px; }
.testi-card figcaption span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- Paketler ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; align-items: stretch; }
.pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.pkg-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.pkg-card.featured { background: var(--grad-soft); border-color: rgba(37, 99, 235, .45); box-shadow: var(--shadow-glow); }
.pkg-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
}
.pkg-name { font-size: 22px; }
.pkg-tagline { color: var(--muted); font-size: 14px; }
.pkg-price { font-size: 34px; font-weight: 800; font-family: var(--font-display); letter-spacing: -.02em; }
.pkg-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.pkg-features { margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }
.pkg-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.pkg-features .icon { color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.pkg-cta { margin-top: auto; }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pkg-grid { grid-template-columns: 1fr; } }

/* ---------- SSS ---------- */
.faq-list { max-width: 820px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s var(--ease); }
.faq-item[open] { border-color: rgba(37, 99, 235, .45); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: 0 0 auto; color: var(--muted); transition: transform .3s var(--ease), color .3s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--accent); }
.faq-item p { padding: 0 20px 20px; margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- KVKK / legal ---------- */
.legal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 44px); }
.legal-card-title { font-size: 20px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.legal-row { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.legal-row:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-key { flex: 0 0 210px; display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.legal-key .icon { color: var(--accent); margin-top: 2px; }
.legal-val { flex: 1; color: var(--muted); }
.legal-val a { color: var(--accent); }
@media (max-width: 700px) {
  .legal-row { flex-direction: column; gap: 6px; }
  .legal-key { flex: none; }
}

/* ---------- Çerez banner ---------- */
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  max-width: 560px;
  background: var(--card-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  animation: cookieIn .5s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-banner-inner { display: flex; align-items: center; gap: 14px; }
.cookie-banner-inner > .icon { color: var(--accent); flex: 0 0 auto; }
.cookie-banner-text { flex: 1; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.cookie-banner-text p { margin: 0; }
.cookie-banner-text a { color: var(--accent); font-weight: 600; }
.cookie-banner .btn { white-space: nowrap; }

/* ---------- Footer yasal link ---------- */
.footer-bottom { flex-wrap: wrap; gap: 8px 18px; }
.footer-legal { margin-left: auto; }
.footer-legal a { color: var(--muted); font-size: 13px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.footer-legal a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 640px) { .footer-legal { margin-left: 0; } }

/* ============================================================
   AÇIK TEMA (light) — data-theme="light" override
   ============================================================ */
html[data-theme="light"] {
  --bg: #F5F6FA;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #FFFFFF;
  --card-3: #EEF0F5;
  --line: rgba(15, 23, 42, 0.10);
  --line-2: rgba(15, 23, 42, 0.18);
  --text: #0F172A;
  --muted: #5B6472;
  --text-soft: rgba(15, 23, 42, 0.86);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 0 1px rgba(37, 99, 235, 0.30), 0 18px 60px rgba(37, 99, 235, 0.18);
}
html[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg); }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #C9CDD6; border-color: var(--bg); }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #B4B9C4; }
html[data-theme="light"] ::selection { background: rgba(37, 99, 235, 0.25); color: #0F172A; }

/* ============================================================
   MOBİL POLİŞ — mobilde her bloğu okunur ve işlevli tut
   ============================================================ */
@media (max-width: 820px) {
  .theme-toggle { width: 40px; height: 40px; z-index: 1001; }
  .lang-switch .lang-btn { padding: 7px 10px; font-size: 13px; border-radius: 9px; }
  .nav-wrap { gap: 10px; }
  .brand-name { font-size: 17px; }
}

@media (max-width: 640px) {
  .nav-toggle { width: 40px; height: 40px; }
  .theme-toggle { width: 36px; height: 36px; border-radius: 9px; }
  .nav-wrap { gap: 8px; }
  .page-hero { padding: calc(var(--nav-h) + 56px) 0 40px; }
  .section-title { font-size: clamp(24px, 7vw, 34px); }
  .section-head { margin-bottom: 34px; }

  /* Testimonials */
  .testi-card { padding: 28px 20px 22px; }
  .testi-card blockquote { font-size: 14.5px; }
  .testi-stars { font-size: 13px; }

  /* Packages */
  .pkg-card { padding: 26px 20px; gap: 12px; }
  .pkg-price { font-size: 28px; }
  .pkg-badge { right: 14px; font-size: 10px; }

  /* FAQ */
  .faq-list { margin-top: 30px; gap: 10px; }
  .faq-item summary { padding: 15px 16px; font-size: 15px; }
  .faq-item p { padding: 0 16px 16px; }

  /* Blog */
  .blog-card-title { font-size: 17px; }
  .blog-card-body { padding: 16px 16px 20px; }
  .post-card-body { padding: 22px 18px; }
  .post-card-lead { padding-left: 12px; }
  .post-content { font-size: 15.5px; }
  .post-actions .btn, .blog-card .btn { width: auto; }

  /* KVKK */
  .legal-card { padding: 20px 16px; }
  .legal-key { font-size: 14.5px; }

  /* Çerez banner — mobil: yan alt çekmece */
  .cookie-banner {
    left: 12px; right: 12px; bottom: calc(12px + 62px);
    max-width: none; border-radius: 16px; padding: 14px 16px;
  }
  .cookie-banner-inner { flex-wrap: wrap; gap: 12px; }
  .cookie-banner .btn { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .lang-switch .lang-btn { padding: 6px 8px; }
  .brand-name { display: none; }
  .pkg-features li { font-size: 13.5px; }
  .blog-card-excerpt { -webkit-line-clamp: 4; }
}

/* ============================================================
   YENİ BİLEŞENLER — ARAMA, SAYFALAMA, YORUM, PAYLAŞIM, PWA
   + GELİŞMİŞ MOBİL DAVRANIŞ
   ============================================================ */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  height: 3px; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: var(--grad); box-shadow: 0 0 12px rgba(37,99,235,.8);
}

/* ---------- Yukarı çık butonu ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 96px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--text);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .35s, transform .35s var(--ease), visibility .35s, border-color .3s, background .3s;
  box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); background: var(--grad-soft); color: var(--accent); }

/* ---------- Mobil alt aksiyon bari ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: none;
  align-items: stretch; gap: 8px;
  padding: 10px max(14px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
  background: rgba(5,5,5,.88); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) {
  .mbar { display: flex; }
}
.mbar-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 46px; border-radius: 14px;
  color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  background: transparent; text-decoration: none;
  transition: color .25s, background .25s, transform .2s var(--ease);
}
.mbar-btn:active { transform: scale(.97); }
.mbar-btn .icon { color: var(--accent); transition: color .25s; }
.mbar-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.mbar-btn:hover .icon { color: var(--accent); }
.mbar-cta,
.mbar-cta:hover,
.mbar-cta:active { background: var(--grad); color: #fff; }
.mbar-cta .icon, .mbar-cta:hover .icon { color: #fff; }

/* ---------- Mobil aksiyon bari ile çakışmalar ---------- */
html[data-theme="light"] .mbar { background: rgba(255,255,255,.9); }

/* ---------- Form kontrol: iOS zoom önleme ---------- */
input, select, textarea { font-size: 16px; }

/* ---------- Tap / touch iyileştirmeleri ---------- */
a, button, input, select, textarea, label, summary, .filter-btn { -webkit-tap-highlight-color: transparent; }
a, button, .filter-btn, [role="button"] { touch-action: manipulation; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Arama sayfası ---------- */
.search-form { margin-top: 40px; max-width: 720px; }
.search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 8px 8px 20px;
  transition: border-color .3s, box-shadow .3s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.16); }
.search-ico { color: var(--muted); flex: none; }
.search-box .form-control { border: 0; background: transparent; box-shadow: none; padding: 12px 4px; font-size: 17px; flex: 1 1 auto; min-width: 0; }
.search-box .form-control:focus { box-shadow: none; }
.search-box:focus-within .search-ico { color: var(--accent); }
.search-box .btn { flex: none; }
.search-count { color: var(--muted); margin-top: 26px; font-size: 15px; overflow-wrap: anywhere; word-break: break-word; line-height: 1.7; }
.search-count b { color: var(--text); }

.search-sec { margin-bottom: 48px; }
.search-sec-t {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800;
  color: var(--accent); margin-bottom: 18px;
}
.search-sec-t .icon { color: var(--accent); }
.search-list { display: flex; flex-direction: column; gap: 12px; }
.search-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.search-item:hover { transform: translateX(6px); border-color: rgba(37,99,235,.5); background: var(--card-2); }
.search-item-ico {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(37,99,235,.25); color: var(--accent);
}
.search-item-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.search-item-body b { font-size: 15.5px; }
.search-item-body span { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item-arrow { color: var(--muted); flex: none; transition: transform .3s var(--ease); }
.search-item:hover .search-item-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------- Arama ikonu (header) ---------- */
.icon-btn {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: transparent; color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); background: var(--grad-soft); color: var(--accent); }
.icon-btn .icon { pointer-events: none; }

/* Mobil menü içi arama (sadece telefon/tablet) */
.menu-search { display: none; }
@media (max-width: 820px) {
  .menu-search {
    display: flex; align-items: center; gap: 10px;
    width: 100%; max-width: 320px; margin-top: 6px;
    background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
    border-radius: 999px; padding: 4px 6px 4px 16px;
  }
  .menu-search-ico { color: var(--muted); flex: none; }
  .menu-search-input { border: 0; background: transparent; box-shadow: none; padding: 12px 6px; font-size: 16px; }
  .menu-search-input:focus { box-shadow: none; }
}

/* ---------- Blog kategori çipleri ---------- */
.blog-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.blog-cats .filter-btn { text-decoration: none; }

/* ---------- Blog kart meta ---------- */
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.blog-card-cat {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); transition: color .3s;
}
.blog-card-cat:hover { color: var(--accent-2); }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.pagination-btn {
  min-width: 44px; height: 44px; padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--muted);
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: color .3s, border-color .3s, background .3s, transform .2s;
}
.pagination-btn:hover { color: #fff; border-color: rgba(37,99,235,.5); transform: translateY(-2px); }
.pagination-btn.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 26px rgba(37,99,235,.35); }
.pagination-btn.disabled { opacity: .35; pointer-events: none; }
.pagination-rot { transform: rotate(180deg); }

/* ---------- Yorum formu ---------- */
.testi-form-wrap { max-width: 760px; margin: 56px auto 0; }
.testi-form-card { background: var(--card-2); }
.testi-form-head { margin-bottom: 22px; }
.testi-form-head p { color: var(--muted); margin-top: 10px; }

/* ---------- Blog paylaşım ---------- */
.post-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 36px; padding-top: 22px; border-top: 1px dashed var(--line);
}
.post-share-t { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-share-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--muted); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .3s, border-color .3s, transform .2s var(--ease), background .3s;
}
.post-share-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.post-share-btn.copied { color: #34d399; border-color: #34d399; }

/* ---------- Blog yorumları ---------- */
.comment-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

/* ---------- WhatsApp hazır mesaj seçenekleri ---------- */
.wa-quick { display: flex; flex-direction: column; gap: 8px; }
.wa-quick-t { font-size: 12.5px; color: var(--muted); }
.wa-quick-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  color: var(--text-soft); font-size: 13px; font-weight: 600;
  transition: border-color .25s, background .25s, color .25s, transform .2s var(--ease);
}
.wa-chip:hover { border-color: #25D366; background: rgba(37,211,102,.12); color: #fff; transform: translateY(-2px); }
.wa-chip .icon { color: #25D366; }
.comment-item {
  display: flex; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px;
}
.comment-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.comment-meta b { font-family: var(--font-display); font-size: 15px; }
.comment-meta span { font-size: 12.5px; color: var(--muted); }
.comment-body p { color: var(--text-soft); font-size: 15px; line-height: 1.65; word-break: break-word; }
.comment-form-card { padding: 28px; }

/* ---------- Container safe-area ---------- */
.container { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }

/* ---------- Mobile refinement (yeni nesil) ---------- */
@media (max-width: 820px) {
  /* Notch / çentik: üstte güvenli alan */
  .site-header { height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
  .nav-wrap {
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }
  /* Tam ekran menü: dokunmatik hedefler + safe-area */
  .site-nav { justify-content: flex-start; padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px) 24px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
  .site-nav a:not(.btn) { padding: 12px 18px; }
  .site-nav ul { gap: 12px; }
  .nav-cta { width: 100%; margin-top: 14px; }
  /* WhatsApp float mbar ile çakışmasın */
  .wa-float { display: none; }
  /* Yukarı çık butonu mbar üzerinde */
  .to-top { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  /* Hero daha kısa (mobil tarayıcı chrome) */
  .story-stage { height: 100svh; min-height: 560px; }
  .icon-btn { width: 40px; height: 40px; }
}

@media (max-width: 560px) {
  .story-stage { min-height: 520px; }
  .search-item { padding: 13px 14px; gap: 12px; }
  .search-item-ico { width: 40px; height: 40px; }
  .search-box { border-radius: 18px; flex-wrap: wrap; padding: 10px; }
  .search-box .form-control { padding: 10px 6px; }
  .search-box .btn { flex: 1 1 100%; }
  .container { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
}

/* Çok dar ekranda header arama ikonunu gizle (menü içindeki arama yeterli) */
@media (max-width: 640px) {
  .nav-search { display: none; }
}

/* Filtre çubuğu — mobilde yatay kaydırma */
@media (max-width: 640px) {
  .filter-bar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 34px; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; }
  .blog-cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
  .blog-cats::-webkit-scrollbar { display: none; }
}

:root { --mbar-h: 76px; }
/* Çerez banner — mobil aksiyon barı üzerinde (820 altı) */
@media (max-width: 820px) {
  .cookie-banner {
    left: 12px; right: 12px;
    bottom: calc(12px + var(--mbar-h) + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
  .site-footer { padding-bottom: calc(40px + var(--mbar-h) + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .cookie-banner { bottom: calc(12px + var(--mbar-h) + env(safe-area-inset-bottom, 0px)); }
}

/* Kısa ekranlarda aksiyon barını kompakt tut */
@media (pointer: coarse) and (max-height: 560px) {
  .mbar { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
}

/* Navbar — arma (logo) dar ekranlarda da ekrana sığsın */
@media (max-width: 560px) {
  .brand { gap: 8px; }
  .brand-img { width: 30px; height: 30px; }
}
@media (max-width: 400px) {
  .brand-img { width: 28px; height: 28px; }
  .brand { min-width: 0; }
  .nav-right { gap: 6px; }
  .lang-switch { gap: 0; }
}

/* ---------- İstatistik sayaçları ---------- */
.stats { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 88% -12%, rgba(124, 58, 237, .16), transparent 62%),
    radial-gradient(620px 320px at 8% 115%, rgba(37, 99, 235, .16), transparent 62%),
    linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  padding: clamp(40px, 5vw, 68px) clamp(20px, 4vw, 56px);
  box-shadow: var(--shadow);
}
.stats-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 40%, #000 28%, transparent 82%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 40%, #000 28%, transparent 82%);
}
html[data-theme="light"] .stats-panel::before {
  background-image:
    linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
}
.stats-glow {
  position: absolute; width: 380px; height: 380px; right: -120px; top: -150px;
  border-radius: 50%; background: var(--grad); filter: blur(100px); opacity: .16; pointer-events: none;
}
.stats-head { margin-bottom: 0 !important; position: relative; z-index: 1; }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.stat-item {
  text-align: center; padding: 34px 18px 30px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 20px; position: relative; overflow: hidden;
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.stat-item:hover { border-color: rgba(37,99,235,.45); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
html[data-theme="light"] .stat-item { background: rgba(15,23,42,.03); }
.stat-item::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
  background: var(--grad); opacity: .75;
}
.stat-ico {
  width: 46px; height: 46px; border-radius: 13px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(37,99,235,.25); color: var(--accent);
}
.stat-value {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(42px, 5.5vw, 64px); letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-value.k-delivery { font-size: clamp(34px, 4.5vw, 52px); }
.stat-value em { font-style: normal; font-size: .52em; letter-spacing: .02em; }
.stat-label { display: block; margin-top: 14px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.stats-note {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin-top: 34px; color: var(--muted); font-size: 13.5px; text-align: center;
}
.stats-note .icon { color: #34d399; flex: none; }
@media (max-width: 820px) {
  .stats-panel { padding: clamp(30px, 5vw, 44px) 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
  .stat-item { padding: 26px 14px 24px; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 24px 16px 22px; }
}

/* ==========================================================
   RHENX EXTRA — Geri sayım, çıkış-niyeti modalı, haber bülteni
   ========================================================== */
.rhnx-count {
  margin: 0 0 26px; padding: 22px 20px; border-radius: 18px;
  border: 1px solid rgba(37,99,235,.35); background: var(--grad-soft);
  text-align: center; position: relative; overflow: hidden;
}
.rhnx-count::before { content:""; position:absolute; inset:0; background:radial-gradient(600px 120px at 50% 0, rgba(37,99,235,.18), transparent); }
.rhnx-count-inner { position: relative; }
.rhnx-count-title { display:block; font-family: var(--font-display); font-weight:800; font-size:clamp(16px,3vw,20px); margin-bottom:12px; }
.rhnx-count-timer { display:flex; justify-content:center; gap:6px; font-family: var(--font-display); font-weight:800; font-size:clamp(22px,5vw,30px); font-variant-numeric: tabular-nums; }
.rhnx-count-timer span { min-width:34px; background:rgba(255,255,255,.06); border:1px solid var(--line); border-radius:10px; padding:6px 8px; }
.rhnx-count-cta { display:inline-flex; margin-top:14px; }
@media (max-width:480px){ .rhnx-count { padding:18px 14px; } .rhnx-count-timer span{ min-width:28px; font-size:20px; } }

.rhnx-modal { position:fixed; inset:0; z-index:1200; display:grid; place-items:center; padding:20px; background:rgba(4,5,10,.72); backdrop-filter:blur(8px); opacity:0; visibility:hidden; transition:opacity .35s var(--ease), visibility .35s; }
.rhnx-modal.open { opacity:1; visibility:visible; }
.rhnx-modal-box { position:relative; max-width:460px; width:100%; background:var(--bg-2); border:1px solid var(--line); border-radius:22px; padding:34px 26px 30px; text-align:center; box-shadow:var(--shadow-glow); transform:translateY(14px) scale(.97); transition:transform .4s var(--ease); }
.rhnx-modal.open .rhnx-modal-box { transform:none; }
.rhnx-modal-box h3 { font-family:var(--font-display); font-weight:800; font-size:clamp(22px,5vw,30px); margin:10px 0 10px; }
.rhnx-modal-box p { color:var(--muted); font-size:15px; line-height:1.7; margin:0 0 22px; }
.rhnx-modal-close { position:absolute; top:14px; right:16px; background:none; border:0; color:var(--muted); font-size:26px; line-height:1; cursor:pointer; }
.rhnx-modal-later { display:block; margin:14px auto 0; background:none; border:0; color:var(--muted); font-size:13px; cursor:pointer; text-decoration:underline; }
.rhnx-modal .btn { display:inline-flex; }
@media (max-width:480px){ .rhnx-modal-box { padding:28px 18px 24px; } }

.rhnx-news { padding:clamp(30px,5vw,44px) clamp(18px,4vw,30px); border:1px solid var(--line); border-radius:22px; background:var(--bg-2); text-align:center; max-width:560px; margin:0 auto 34px; }
.rhnx-news-inner strong { display:block; font-family:var(--font-display); font-weight:800; font-size:clamp(20px,4vw,28px); }
.rhnx-news-inner p { color:var(--muted); margin:10px 0 18px; font-size:14.5px; }
.rhnx-news-form { display:flex; gap:10px; max-width:420px; margin:0 auto; }
.rhnx-news-form input { flex:1; min-width:0; padding:13px 16px; border-radius:12px; border:1px solid var(--line); background:var(--bg); color:var(--text); font:inherit; font-size:14.5px; }
.rhnx-news-form input:focus { outline:none; border-color:var(--accent); }
.rhnx-news-msg { margin-top:12px; font-size:13.5px; min-height:18px; }
.rhnx-news-msg.ok { color:#34d399; }
.rhnx-news-msg.err { color:#f87171; }
@media (max-width:480px){ .rhnx-news-form { flex-direction:column; } }

/* ===== Mobil: WEB TASARIM / cihaz mockup'larının ekran dışına taşması düzeltmesi ===== */
.devices-section, .devices-grid, .devices-stage,
.dv-wrap, .dv-any, .dv-device, .dv-web-style { max-width: 100%; box-sizing: border-box; }
.dv-any .dv-img { display: block; height: auto; max-width: 100%; width: 100%; }
@media (max-width: 820px) {
  .devices-section, .devices-grid, .devices-stage, .dv-wrap, .dv-any { overflow: visible; }
  .dv-any { flex-wrap: wrap; }
  .dv-any .phone  { width: min(clamp(96px, 16vw, 140px), 42vw); }
  .dv-any .tablet { width: min(clamp(120px, 23vw, 190px), 64vw); }
  .dv-any .desktop{ width: min(clamp(170px, 34vw, 260px), 78vw); }
  .dv-any .dv-device { position: static; }
  .dv-any .dv-img { width: auto; max-width: 100% !important; height: auto !important; }
}
@media (max-width: 480px) {
  .dv-any { flex-direction: column; align-items: center; gap: 0; }
  .dv-any .phone, .dv-any .tablet, .dv-any .desktop { width: 100% !important; max-width: min(280px, 84vw) !important; }
  .dv-wrap { width: 100%; max-width: 100%; padding: 0 6px; }
  .dv-any .dv-device { margin: 0 auto; }
}