/* ========================================================================
   Ozvia — Brand Onepager (modern, animated, multi-solution)
   Design system: dark-luxe gradient + clean light sections + glass cards
   ======================================================================== */

:root {
  /* Brand palette — premium tech */
  --bg:           #0a0b14;
  --bg-2:         #0e1020;
  --surface:      #14172a;
  --surface-2:    #1a1e35;
  --border:       rgba(255,255,255,.08);
  --border-2:     rgba(255,255,255,.14);

  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-dim:     #64748b;

  /* Accent gradient — ozvia signature */
  --accent-1:     #7c3aed;   /* violet */
  --accent-2:     #06b6d4;   /* cyan */
  --accent-3:     #ec4899;   /* pink — for warmth */
  --accent-grad:  linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(124,58,237,.18) 0%, rgba(6,182,212,.18) 100%);

  /* Radii / motion */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.5), 0 8px 32px rgba(0,0,0,.45);
  --shadow-glow: 0 0 0 1px rgba(124,58,237,.18), 0 24px 60px -12px rgba(124,58,237,.4);
  --ease: cubic-bezier(.2, .9, .3, 1.1);
}

/* Light section variant — used for solution detail blocks */
.section--light {
  --bg:           #ffffff;
  --bg-2:         #f8fafc;
  --surface:      #ffffff;
  --surface-2:    #f1f5f9;
  --border:       rgba(15,23,42,.08);
  --border-2:     rgba(15,23,42,.14);
  --text:         #0f172a;
  --text-muted:   #475569;
  --text-dim:     #94a3b8;
  background: var(--bg);
  color: var(--text);
}

/* ──────────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 860px;  margin: 0 auto; padding: 0 24px; }

/* ──────────────────────────────────────────────────────────────────────── *
   Typography
   ──────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0; color: var(--text-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-grad-soft);
  border: 1px solid var(--border-2);
  color: var(--text);
  backdrop-filter: blur(8px);
  /* Mobile: uzun text yarım kalmasın */
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 12px rgba(124,58,237,.6);
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ──────────────────────────────────────────────────────────────────────── *
   Buttons
   ──────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); }

.btn--primary {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(124,58,237,.55);
}
.btn--primary:hover {
  box-shadow: 0 14px 40px -8px rgba(124,58,237,.7);
  border-color: transparent;
}
.btn--ghost {
  background: transparent;
  border-color: var(--border-2);
}
.btn--ghost:hover { background: rgba(255,255,255,.04); }

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform .2s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ──────────────────────────────────────────────────────────────────────── *
   Navigation
   ──────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  background: rgba(10,11,20,.6);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10,11,20,.85); }

.nav__inner { display: flex; align-items: center; gap: 28px; }
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700;
  color: var(--text);
}
.nav__logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 6px 20px -6px rgba(124,58,237,.65);
}
.nav__logo-img {
  width: 36px; height: 36px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  border-radius: 9px;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.4);
  transition: transform .2s var(--ease);
}
.nav__logo:hover .nav__logo-img { transform: scale(1.04); }

.nav__links {
  display: flex; gap: 26px; flex: 1; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.nav__links a:hover { color: var(--text); }

.nav__cta { display: flex; gap: 10px; }
.nav__cta .btn { padding: 9px 18px; font-size: 14px; }

.nav__burger {
  display: none; background: transparent; border: 0; color: var(--text);
  width: 40px; height: 40px; border-radius: 8px;
}
.nav__burger:hover { background: rgba(255,255,255,.06); }

/* ──────────────────────────────────────────────────────────────────────── *
   Hero
   ──────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Animated mesh gradient blobs */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1;
  border-radius: 50%; filter: blur(80px);
  opacity: .55; pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(124,58,237,.7), transparent 70%);
  animation: blobFloat 18s var(--ease) infinite alternate;
}
.hero::after {
  width: 600px; height: 600px;
  bottom: -200px; right: -120px;
  background: radial-gradient(circle, rgba(6,182,212,.55), transparent 70%);
  animation: blobFloat 22s var(--ease) infinite alternate-reverse;
}
@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, -60px) scale(1.15); }
}

/* Subtle grid background */
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 80%);
}

.hero__title { margin: 18px 0 22px; }
.hero__title .gradient-text { display: inline-block; }
.hero__sub { margin: 0 auto 36px; max-width: 700px; font-size: 1.15rem; }

.hero__cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; max-width: 880px; margin: 0 auto;
  padding: 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
}
.hero__metric { text-align: center; }
.hero__metric-num {
  font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
}
.hero__metric-label { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ──────────────────────────────────────────────────────────────────────── *
   Section
   ──────────────────────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: 110px 0;
  scroll-margin-top: 80px;
}
.section__head {
  text-align: center; max-width: 720px;
  margin: 0 auto 60px;
}
.section__head h2 { margin: 14px 0 18px; }

/* ──────────────────────────────────────────────────────────────────────── *
   Solutions Grid
   ──────────────────────────────────────────────────────────────────────── */
.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.solution {
  position: relative;
  padding: 32px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .25s;
  display: flex; flex-direction: column;
}
.solution::before {
  /* hover gradient border highlight */
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: var(--accent-grad);
  opacity: 0; transition: opacity .3s;
  -webkit-mask:
    linear-gradient(#fff, #fff) content-box,
    linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1.5px;
}
.solution:hover { transform: translateY(-6px); }
.solution:hover::before { opacity: 1; }
.solution--featured::before { opacity: .7; }

.solution__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-grad-soft);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 22px;
}
.solution h3 { margin-bottom: 10px; }
.solution__desc { font-size: 14.5px; color: var(--text-muted); flex: 1; }
.solution__features {
  list-style: none; padding: 0; margin: 18px 0 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.solution__features li {
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.solution__features li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-grad-soft);
  border: 1.5px solid var(--accent-2);
  flex-shrink: 0;
}
.solution__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--text);
}
.solution__cta .arrow { transition: transform .2s var(--ease); }
.solution:hover .solution__cta .arrow { transform: translateX(4px); }

.solution__badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid var(--border-2);
  color: var(--text-muted);
}
.solution__badge--live {
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.3);
  color: #6ee7b7;
}
.solution__badge--soon {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.3);
  color: #fcd34d;
}

/* ──────────────────────────────────────────────────────────────────────── *
   How It Works (steps)
   ──────────────────────────────────────────────────────────────────────── */
.steps {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px 22px;
  position: relative;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 800; font-size: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px -4px rgba(124,58,237,.5);
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; }
.step:not(:last-child)::after {
  /* connector arrow */
  content: "→";
  position: absolute; right: -16px; top: 36px;
  color: var(--text-dim);
  font-size: 22px; font-weight: 300;
}

/* ──────────────────────────────────────────────────────────────────────── *
   Feature Grid (capabilities)
   ──────────────────────────────────────────────────────────────────────── */
.features {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.feature {
  display: flex; gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .2s;
}
.feature:hover { border-color: var(--border-2); }
.feature__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-grad-soft);
  border: 1px solid var(--border-2);
  font-size: 20px;
}
.feature h3 { font-size: 15.5px; margin-bottom: 4px; }
.feature p { font-size: 13.5px; line-height: 1.55; }

/* ──────────────────────────────────────────────────────────────────────── *
   Showcase (deep dive on one solution — Belediye)
   ──────────────────────────────────────────────────────────────────────── */
.showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
}
.showcase__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(124,58,237,.4), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(6,182,212,.35), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.showcase__chat {
  /* Mock chat preview */
  position: absolute;
  inset: 30px;
  background: rgba(20, 23, 42, .85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px;
}
.showcase__chat-header {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.showcase__chat-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  color: #fff; font-weight: 700;
}
.showcase__chat-name { font-weight: 600; font-size: 14px; }
.showcase__chat-status {
  font-size: 11px; color: #6ee7b7;
  display: inline-flex; align-items: center; gap: 4px;
}
.showcase__chat-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 8px #10b981;
}

.bubble {
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
}
.bubble--user {
  align-self: flex-end;
  background: var(--accent-grad);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble--bot {
  align-self: flex-start;
  background: rgba(255,255,255,.07);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.bubble--typing { display: inline-flex; gap: 4px; padding: 11px 14px; }
.bubble--typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-muted);
  animation: blinkDot 1.2s infinite ease-in-out;
}
.bubble--typing span:nth-child(2) { animation-delay: .15s; }
.bubble--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blinkDot {
  0%, 80%, 100% { opacity: .3; transform: scale(.8); }
  40%           { opacity: 1; transform: scale(1); }
}

.showcase__content h2 { margin-bottom: 16px; }
.showcase__list {
  list-style: none; padding: 0; margin: 24px 0;
  display: flex; flex-direction: column; gap: 12px;
}
.showcase__list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--text-muted);
}
.showcase__list-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-grad-soft);
  border: 1.5px solid var(--accent-2);
  display: grid; place-items: center;
  color: var(--text);
  font-size: 12px;
  margin-top: 1px;
}
.showcase__list-icon::before { content: "✓"; font-weight: 900; }

/* ──────────────────────────────────────────────────────────────────────── *
   Demo iframe section
   ──────────────────────────────────────────────────────────────────────── */
/* ── Dil switcher (TR/EN — SVG bayrak + harf etiketi) ── */
.lang-switch {
  display: inline-flex; gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-right: 6px;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: transparent;
  padding: 5px 10px; border-radius: 999px;
  cursor: pointer; transition: all .15s;
  font-size: 12px; font-weight: 600;
  letter-spacing: .3px;
  color: var(--text-muted);
  line-height: 1;
}
.lang-btn:hover {
  background: var(--surface-2, rgba(0,0,0,.04));
  color: var(--text);
}
.lang-btn.active {
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(6,182,212,.08));
  box-shadow: inset 0 0 0 1px rgba(124,58,237,.2);
  color: var(--text);
}
.lang-btn__flag {
  display: inline-flex; align-items: center;
  width: 22px; height: 22px;
  border-radius: 50%; overflow: hidden;
  flex-shrink: 0;
}
.lang-btn__flag svg { display: block; }
.lang-btn__code { font-size: 11.5px; }

@media (max-width: 720px) {
  .lang-switch { padding: 2px; }
  .lang-btn { padding: 3px 7px; gap: 4px; }
  .lang-btn__flag { width: 18px; height: 18px; }
  .lang-btn__flag svg { width: 18px; height: 18px; }
  .lang-btn__code { font-size: 11px; }
}

.demo-frame {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-2);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  aspect-ratio: 16 / 10;
}
.demo-frame::before {
  /* Browser chrome */
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 38px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  z-index: 2;
}
.demo-frame__dots {
  position: absolute; top: 13px; left: 16px; z-index: 3;
  display: flex; gap: 6px;
}
.demo-frame__dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.demo-frame__dots span:nth-child(1) { background: #ff5f57; }
.demo-frame__dots span:nth-child(2) { background: #febc2e; }
.demo-frame__dots span:nth-child(3) { background: #28c840; }

.demo-frame__url {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  font-size: 12px; color: var(--text-muted);
  background: rgba(255,255,255,.06);
  padding: 4px 14px; border-radius: 6px;
}
.demo-frame iframe {
  position: absolute; left: 0; right: 0; top: 38px; bottom: 0;
  width: 100%; height: calc(100% - 38px);
  border: 0; background: #fff;
}

/* Mobile: aspect ratio dik, URL bar küçült/gizle */
@media (max-width: 720px) {
  .demo-frame {
    aspect-ratio: 3 / 4;       /* portrait, mobil ekrana uygun */
    max-height: 75vh;
  }
  .demo-frame__url {
    font-size: 10px;
    max-width: 60%;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    padding: 3px 10px;
  }
}
.demo-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px; justify-content: center;
}
.demo-tab {
  padding: 9px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px; font-weight: 500;
  transition: all .2s;
}
.demo-tab:hover { color: var(--text); border-color: var(--border-2); }
.demo-tab.active {
  background: var(--accent-grad);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 20px -6px rgba(124,58,237,.5);
}

/* ──────────────────────────────────────────────────────────────────────── *
   Stats / Metrics row
   ──────────────────────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 50px 36px;
  background:
    linear-gradient(135deg, rgba(124,58,237,.08), rgba(6,182,212,.08)),
    var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
}
.stat { text-align: center; }
.stat__value {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.stat__label { font-size: 13.5px; color: var(--text-muted); }

/* ──────────────────────────────────────────────────────────────────────── *
   Pricing / Plans
   ──────────────────────────────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  padding: 36px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
}
.plan--featured {
  background:
    linear-gradient(135deg, rgba(124,58,237,.12), rgba(6,182,212,.08)),
    var(--surface);
  border-color: rgba(124,58,237,.4);
  box-shadow: var(--shadow-glow);
}
.plan__pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad);
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 8px 22px -6px rgba(124,58,237,.5);
}
.plan h3 { margin-bottom: 8px; }
.plan__sub { font-size: 13.5px; color: var(--text-muted); margin-bottom: 22px; }
.plan__price {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.plan__price--yearly {
  margin-top: 2px;
  margin-bottom: 8px;
}
.plan__price-num {
  font-size: 2.4rem; font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.plan__price-unit { font-size: 14px; color: var(--text-muted); }
.plan__price-or {
  font-size: 14px; color: var(--text-muted);
  font-weight: 500;
  margin-right: 2px;
  align-self: baseline;
}
.plan__price-note {
  display: block;
  font-size: 12.5px; color: var(--text-muted);
  margin: 4px 0 2px;
  line-height: 1.5;
}
.plan__features {
  list-style: none; padding: 0; margin: 22px 0 26px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.plan__features li {
  font-size: 13.5px; color: var(--text-muted);
  display: flex; gap: 8px; align-items: flex-start;
}
.plan__features li::before {
  content: "✓"; flex-shrink: 0;
  color: var(--accent-2); font-weight: 700;
}
.plan .btn { width: 100%; justify-content: center; }

/* ──────────────────────────────────────────────────────────────────────── *
   FAQ
   ──────────────────────────────────────────────────────────────────────── */
.faq {
  display: flex; flex-direction: column;
  gap: 12px; max-width: 800px; margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 15px;
  background: transparent; border: 0; width: 100%;
  color: var(--text); text-align: left;
}
.faq-q::after {
  content: "+";
  font-size: 22px; color: var(--text-muted);
  transition: transform .2s;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); color: var(--accent-2); }
.faq-a {
  padding: 0 22px 18px;
  color: var(--text-muted); font-size: 14.5px;
}

/* ──────────────────────────────────────────────────────────────────────── *
   CTA Block
   ──────────────────────────────────────────────────────────────────────── */
.cta-block {
  position: relative;
  padding: 80px 40px;
  text-align: center;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(6,182,212,.3), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-2);
  overflow: hidden;
  isolation: isolate;
}
.cta-block::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
}
.cta-block h2 { margin-bottom: 16px; }
.cta-block p { max-width: 600px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-block .btn-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────────────────────── *
   Footer
   ──────────────────────────────────────────────────────────────────────── */
.footer {
  padding: 70px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer__brand p {
  margin-top: 14px; font-size: 14px; max-width: 320px;
}
.footer__col h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); margin-bottom: 14px; font-weight: 600;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__col a {
  color: var(--text-muted); font-size: 14px;
  transition: color .15s;
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--text-dim);
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: all .2s;
}
.footer__social a:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ──────────────────────────────────────────────────────────────────────── *
   Animations on scroll
   ──────────────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before, .hero::after { animation: none; }
}

/* ──────────────────────────────────────────────────────────────────────── *
   Responsive
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .solutions, .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .hero__metrics { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  /* nav__links + nav__burger: 900px breakpoint'inde modern slide-in drawer
     stili (aşağıda) source-of-truth. Bu blokta nav ile ilgili kural YOK —
     çift media query çakışması drawer'ı bozuyordu. */
  .solutions, .features, .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 70px; }
  .hero__metrics { grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; }
  .stats { padding: 36px 22px; }
  .footer__top { grid-template-columns: 1fr; }
  .cta-block { padding: 50px 24px; }
}

/* Eski "üst-açılır akordeon" stili kaldırıldı — modern sağdan-kayan drawer
   .nav__links + .nav__links.open @media (max-width:900px) blokunda. */

/* ═══════════════════════════════════════════════════════════════════
   MOBILE UX FOUNDATIONS — viewport-fit, safe-area, touch targets,
   iOS zoom prevention, momentum scroll. Tüm mobile cihazlar için
   profesyonel baseline.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* iOS notch / Android nav bar — content kayıt önle */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left, 0px);
  --safe-right:  env(safe-area-inset-right, 0px);
}

html {
  -webkit-text-size-adjust: 100%;       /* iOS landscape text inflate önle */
  -webkit-tap-highlight-color: transparent; /* mor tap halo'su yok */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overscroll-behavior-y: contain;        /* pull-to-refresh rubber band */
  /* Notch'lu ekranlarda kenarlardan içerik kaybı önle */
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* Smooth + momentum scroll (Safari mobile için kritik) */
.iframe-wrap, .demo-frame, .mk-faq, .nav__links {
  -webkit-overflow-scrolling: touch;
}

/* iOS Safari'de input font 16px altıysa OTOMATIK ZOOM yapar (kötü UX).
   Tüm form input'larında min 16px zorla. */
input, textarea, select, button {
  font-size: max(16px, 1rem);
  font-family: inherit;
}

/* Touch target minimum 44×44px (Apple HIG) / 48×48dp (Material) */
a, button, .nav__link, .btn, .lang-btn, .mk-faq-item summary {
  min-height: 44px;
}
.btn {
  /* Padding'i koru ama min-height garantile */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile breakpoints — yeniden gözden geçirilmiş, tutarlı */

/* ─── Tablet & büyük telefon (768px-) ─── */
@media (max-width: 768px) {
  /* Container padding artır — kenarlardan nefes */
  .container { padding: 0 16px; }

  /* Hero — başlık boyut + spacing */
  .hero { padding: 80px 0 60px; }
  .hero__title { font-size: clamp(28px, 8vw, 42px); line-height: 1.15; }
  .hero__sub { font-size: 15px; }
  .hero__cta { flex-direction: column; gap: 10px; }
  .hero__cta .btn { width: 100%; }
  .hero__metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hero__metric { padding: 14px 12px; }
  .hero__metric-num { font-size: 22px; }
  .hero__metric-label { font-size: 11px; }

  /* Section padding küçült */
  .section { padding: 60px 0; }
  .section__head h2 { font-size: clamp(24px, 7vw, 34px); line-height: 1.2; }
  .section__head .lead { font-size: 14.5px; }

  /* Solutions — tek kolon */
  .solutions { grid-template-columns: 1fr !important; gap: 14px; }
  .solution { padding: 22px 18px; }
  .solution h3 { font-size: 19px; }
  .solution__desc { font-size: 14px; }

  /* About highlights — 1 col mobile */
  #about .features { grid-template-columns: 1fr !important; gap: 12px; }

  /* How steps — 1 col */
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step { padding: 22px 18px; }

  /* Features grid */
  .features { grid-template-columns: 1fr; gap: 14px; }
  .feature { padding: 18px; }

  /* Showcase — chat preview üst, content alt */
  .showcase {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .showcase__chat { max-width: 100%; }

  /* Pricing — kart kart vertical, en popüler ortada featured */
  .plans { grid-template-columns: 1fr !important; gap: 14px; }
  .plan { padding: 26px 20px; }
  .plan--featured {
    transform: none !important;
    order: -1;                          /* mobile'da en üstte */
  }
  .plan__price-num { font-size: 38px; }

  /* Demo iframe — aspect-ratio'lu sığma */
  .demo-frame {
    aspect-ratio: 9 / 16;
    max-height: 70vh;
  }
  .demo-frame iframe { height: 100%; }
  .demo-tabs { flex-wrap: wrap; gap: 6px; }
  .demo-tab { font-size: 13px; padding: 8px 14px; }

  /* Stats — 2x2 mobile */
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { padding: 18px 12px; }
  .stat__value { font-size: 24px; }

  /* FAQ — daha geniş tap area */
  .faq-item summary { padding: 16px 14px; font-size: 15px; }
  .faq-a { padding: 0 14px 16px; }

  /* CTA block kompakt */
  .cta-block { padding: 32px 20px; }
  .btn-row { flex-direction: column; gap: 10px; }
  .btn-row .btn { width: 100%; }

  /* Footer — kolon stack */
  .footer__top {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Nav — sticky polish + safe-area top */
  .nav { padding-top: calc(var(--safe-top) + 6px); }
}

/* ─── Küçük telefonlar (480px-) ─── */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero { padding: 64px 0 48px; }
  .hero__title { font-size: clamp(26px, 9vw, 36px); }
  .hero__eyebrow,
  .eyebrow {
    font-size: 10.5px;
    padding: 5px 10px;
    letter-spacing: .03em;
    /* Çok küçük ekranda 2 satıra düşse bile kompakt görünsün */
  }
  .hero__metrics { grid-template-columns: 1fr 1fr; gap: 10px; }

  .section { padding: 48px 0; }
  .section__head h2 { font-size: clamp(22px, 8vw, 30px); }

  .plan__price-num { font-size: 32px; }
  .plan__features li { font-size: 13.5px; }

  /* Lang switch kompakt */
  .lang-switch { padding: 2px; margin-right: 4px; }
  .lang-btn { padding: 4px 8px; gap: 4px; }
  .lang-btn__code { font-size: 10.5px; }

  /* Demo frame — küçük ekranda 16:9 yerine portrait */
  .demo-frame { aspect-ratio: 4 / 5; max-height: 65vh; }

  /* Stats kompakt */
  .stat__value { font-size: 21px; }
  .stat__label { font-size: 11px; }
}

/* ─── Hamburger menu drawer (sticky, animasyonlu) ─── */
.nav__burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.nav__burger:hover { background: var(--surface-2); }
.nav__burger:active { transform: scale(.94); }
.nav__burger svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav__burger {
    display: inline-flex !important;
    /* Drawer açıkken üstte kalsın ki kullanıcı close edebilsin */
    position: relative;
    z-index: 1002;
  }
  .nav__cta .btn { display: none; }
  .nav__cta .btn--ghost { display: none; }

  .nav__links {
    /* Critical: !important — diğer breakpoint'lerin override etmesini önle */
    display: flex !important;
    position: fixed !important;
    top: 0; right: 0;
    height: 100vh;                            /* fallback */
    height: 100dvh;
    width: min(85vw, 360px);
    padding: calc(var(--safe-top) + 72px) 22px calc(var(--safe-bottom) + 22px);
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform .28s cubic-bezier(.2,.9,.3,1.1),
      opacity .2s ease,
      visibility 0s linear .28s;
    box-shadow: -20px 0 50px rgba(0,0,0,.35);
    z-index: 1001;                            /* overlay üstünde */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
  }
  .nav__links.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform .28s cubic-bezier(.2,.9,.3,1.1),
      opacity .2s ease,
      visibility 0s linear 0s;
  }
  .nav__links li { width: 100%; list-style: none; }
  .nav__links a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
    transition: background .15s;
  }
  .nav__links a:hover, .nav__links a:active {
    background: var(--surface-2);
  }
}

/* Drawer açık iken backdrop + body scroll lock */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1000;                              /* drawer 1001'in altında */
}
.nav__overlay.show {
  opacity: 1;
  pointer-events: auto;
}
body.nav-open { overflow: hidden; touch-action: none; }

/* iOS Safari'de 100vh klavye açıldığında kaybolur → 100dvh */
.hero, .login-wrap {
  min-height: 100vh;       /* fallback */
  min-height: 100dvh;      /* modern */
}

/* Reduce motion: animasyonları aza indir */
@media (prefers-reduced-motion: reduce) {
  .nav__links, .nav__overlay,
  .reveal, .step, .feature, .solution, .plan,
  .hero__title, .hero__cta {
    transition: none !important;
    animation: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
