/* ============================================================
   MyDreamCompanion AI — landing styles
   ============================================================ */
:root {
  --bg:        #121213;
  --bg-2:      #161619;
  --surface:   #1f1f24;
  --surface-2: #23252d;
  --border:    rgba(255,255,255,.07);
  --border-2:  rgba(255,255,255,.13);
  --text:      #f6f4f2;
  --muted:     #a1a1aa;
  --muted-2:   #71717a;
  --pink:      #ff437a;
  --pink-2:    #ff6a91;
  --orange:    #fb6731;
  --orange-2:  #ff7a00;
  --grad:      linear-gradient(135deg, #ff437a 0%, #fb6731 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,67,122,.16), rgba(251,103,49,.16));
  --radius:    18px;
  --shadow:    0 24px 60px -20px rgba(0,0,0,.72);
  --max:       1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(251,103,49,.15), transparent 60%),
    radial-gradient(900px 560px at 10% 4%, rgba(255,67,122,.15), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3 { line-height: 1.14; margin: 0; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
section { padding: 88px 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--pink-2);
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 15px 30px;
  transition: transform .15s ease, box-shadow .25s ease, filter .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(255,67,122,.55);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 40px -10px rgba(255,67,122,.7); }
.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.btn-lg { padding: 17px 38px; font-size: 17px; }
.btn-sm { padding: 11px 22px; font-size: 14px; }

/* ---------- Age gate ---------- */
.agegate {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,10,11,.88); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.agegate.hidden { display: none; }
.agegate-card {
  max-width: 460px; width: 100%; text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2); border-radius: 24px; padding: 40px 32px;
  box-shadow: var(--shadow);
}
.agegate-card .logo { justify-content: center; margin-bottom: 18px; }
.agegate-card h2 { font-size: 26px; margin-bottom: 12px; }
.agegate-card p { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.agegate-card .badge18 {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff;
  background: var(--grad); box-shadow: 0 10px 26px -8px rgba(255,67,122,.6);
}
.agegate-actions { display: flex; flex-direction: column; gap: 12px; }
.agegate-actions .btn { width: 100%; }
.agegate .leave { background: none; border: 0; color: var(--muted-2); font: inherit; cursor: pointer; padding: 6px; }
.agegate .leave:hover { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(18,18,19,.82); backdrop-filter: blur(16px); border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 18px;
  box-shadow: 0 8px 20px -6px rgba(255,67,122,.6);
}
.logo .mark img { width: 22px; height: 22px; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }
.nav-menu-cta { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); }
.hero .sub { color: var(--muted); font-size: 19px; margin-top: 22px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px 28px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .dot { color: var(--pink-2); }

/* Hero visual: floating companion cards */
.hero-visual { position: relative; height: 480px; }
.float-card {
  position: absolute; width: 210px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
  background: var(--surface);
}
.float-card .avatar { height: 220px; position: relative; }
.float-card .meta { padding: 12px 14px; }
.float-card .meta .n { font-weight: 700; font-size: 15px; }
.float-card .meta .t { color: var(--muted); font-size: 12.5px; }
.float-card .online {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
}
.online .pulse { width: 7px; height: 7px; border-radius: 50%; background: #00ed77; box-shadow: 0 0 0 0 rgba(0,237,119,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70%{ box-shadow: 0 0 0 8px rgba(0,237,119,0);} 100%{box-shadow:0 0 0 0 rgba(0,237,119,0);} }
.float-card.c1 { top: 6%;  right: 8%;  animation: floaty 6s ease-in-out infinite; }
.float-card.c2 { top: 34%; left: 0;    animation: floaty 7s ease-in-out infinite .6s; z-index: 3; }
.float-card.c3 { bottom: 0; right: 20%; animation: floaty 6.5s ease-in-out infinite .3s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

/* Reusable gradient "avatar" placeholders */
.av { background-size: cover; background-position: center; position: relative; }
.av::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 45%, rgba(10,7,16,.65)); }
.av-1 { background-image: linear-gradient(135deg,#ff6a91,#fb6731); }
.av-2 { background-image: linear-gradient(135deg,#ff8f6b,#ff437a); }
.av-3 { background-image: linear-gradient(135deg,#ff437a,#ff7a00); }
.av-4 { background-image: linear-gradient(135deg,#fb6731,#ff437a); }
.av-5 { background-image: linear-gradient(135deg,#ff6a91,#ff56ad); }
.av-6 { background-image: linear-gradient(135deg,#ff437a,#fb6731); }

/* ---------- Logos / trust strip ---------- */
.strip { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 42px; color: var(--muted-2); font-size: 14px; }
.strip-inner b { color: var(--text); }

/* ---------- Companions gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.comp-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .2s ease, border-color .2s ease;
}
.comp-card:hover { transform: translateY(-6px); border-color: var(--border-2); }
.comp-card .av { height: 300px; }
.comp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.comp-card .info { position: absolute; inset: auto 0 0 0; padding: 16px; z-index: 2; }
.comp-card .info .n { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.comp-card .info .n .age { color: var(--muted); font-weight: 500; font-size: 14px; }
.comp-card .info .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(4px); }
.comp-card .callbtn {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 8px 18px -6px rgba(255,67,122,.7);
  opacity: 0; transform: scale(.8); transition: .2s;
}
.comp-card:hover .callbtn { opacity: 1; transform: scale(1); }
.gallery-cta { text-align: center; margin-top: 40px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: transform .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feature .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px; background: var(--grad-soft); border: 1px solid var(--border-2);
}
.feature h3 { font-size: 19px; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 30px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.step .num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Comparison ---------- */
.compare { max-width: 720px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.compare-row { display: grid; grid-template-columns: 2fr 1fr 1fr; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--border); font-size: 15px; }
.compare-row:last-child { border-bottom: 0; }
.compare-row.head { background: var(--surface-2); font-weight: 700; }
.compare-row .us { text-align: center; color: var(--pink-2); font-weight: 700; }
.compare-row .them { text-align: center; color: var(--muted-2); }
.compare-row .lbl { color: var(--muted); }
.compare-row.head .us, .compare-row.head .them { color: var(--text); }
.yes { color: #00ed77; } .no { color: #fd525a; }

/* ---------- Testimonials ---------- */
.testis { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.testi .stars { color: #f8c73d; font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.testi p { font-size: 15px; }
.testi .who { display: flex; align-items: center; gap: 11px; margin-top: 18px; }
.testi .who .pic { width: 40px; height: 40px; border-radius: 50%; }
.testi .who .nm { font-weight: 700; font-size: 14px; }
.testi .who .rl { color: var(--muted-2); font-size: 12.5px; }

/* ---------- Pricing / offer ---------- */
.offer {
  max-width: 760px; margin: 0 auto; text-align: center;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(251,103,49,.28), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2); border-radius: 26px; padding: 48px 34px;
  box-shadow: var(--shadow);
}
.offer .discount { font-size: clamp(40px, 7vw, 68px); font-weight: 800; letter-spacing: -.03em; }
.offer .sub { color: var(--muted); margin: 8px 0 6px; font-size: 17px; }
.offer .timer { display: inline-flex; gap: 8px; margin: 22px 0 8px; }
.offer .timer .box { background: rgba(0,0,0,.35); border: 1px solid var(--border-2); border-radius: 12px; padding: 10px 14px; min-width: 62px; }
.offer .timer .box .d { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.offer .timer .box .l { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; }
.offer .perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin: 24px 0 28px; color: var(--muted); font-size: 14.5px; }
.offer .perks span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; font-size: 16px;
  padding: 20px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { transition: transform .25s; color: var(--pink-2); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); }
.faq-a p { padding: 0 22px 20px; font-size: 15px; }

/* ---------- Final CTA ---------- */
.finalcta { text-align: center; }
.finalcta .box {
  background:
    radial-gradient(700px 340px at 50% 120%, rgba(255,67,122,.3), transparent 60%),
    var(--grad);
  border-radius: 28px; padding: 64px 34px; position: relative; overflow: hidden;
}
.finalcta h2 { font-size: clamp(28px, 4.4vw, 46px); color: #fff; }
.finalcta p { color: rgba(255,255,255,.9); font-size: 18px; margin: 16px auto 30px; max-width: 560px; }
.finalcta .btn-ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color:#fff; }
.finalcta .btn-primary { background:#fff; color:#111; box-shadow: 0 16px 40px -10px rgba(0,0,0,.5); }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-topbar { border-bottom: 1px solid var(--border); }
.legal-topbar .nav-inner { height: 70px; }
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 34px 22px 90px; }
.legal-back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.legal-back:hover { color: var(--text); }
.legal-head { padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.legal-head h1 { font-size: clamp(28px, 5vw, 42px); }
.legal-head .updated { color: var(--muted-2); font-size: 14px; margin-top: 12px; }
.legal h2 { font-size: 21px; margin: 34px 0 12px; }
.legal h3 { font-size: 16.5px; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--pink-2); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .callout {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px;
  padding: 18px 20px; margin: 22px 0; color: var(--muted); font-size: 15px;
}
.legal .callout strong { color: var(--text); }
/* buttons inside prose must keep white text (override .legal a color) */
.legal .btn { color: #fff; text-decoration: none; }
.legal .btn:hover { text-decoration: none; }
/* tables in articles */
.legal .table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--border); border-radius: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
.legal th, .legal td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--border); }
.legal thead th { color: var(--text); font-weight: 700; background: var(--surface-2); }
.legal td { color: var(--muted); }
.legal tbody tr:last-child td { border-bottom: 0; }
.legal td strong, .legal th strong { color: var(--text); }
.legal .pick td { background: var(--grad-soft); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .2s, border-color .2s;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.post-card .cat { color: var(--pink-2); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.post-card h2 { font-size: 21px; margin: 10px 0; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--pink-2); }
.post-card p { color: var(--muted); font-size: 15px; flex: 1; }
.post-card .more { color: var(--pink-2); font-weight: 600; font-size: 14.5px; margin-top: 16px; }
.article-cta {
  background: var(--grad-soft); border: 1px solid var(--border-2); border-radius: 16px;
  padding: 22px 24px; margin: 30px 0; text-align: center;
}
.article-cta p { color: var(--text); font-size: 16px; margin-bottom: 14px; }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer .logo { margin-bottom: 14px; }
.footer .about { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--muted); font-size: 14px; }
.footer ul li a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted-2); font-size: 13px; }
.footer .disclaimer { color: var(--muted-2); font-size: 12.5px; margin-top: 18px; max-width: 640px; }

/* ---------- Ranking (top picks) ---------- */
.rank { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.rank-side { display: flex; flex-direction: column; gap: 20px; }
.rank-card {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.rank-top { border-color: rgba(255,67,122,.4); box-shadow: 0 0 0 1px rgba(255,67,122,.15), var(--shadow); }
.rank-badge {
  position: absolute; top: -13px; left: 26px; background: var(--grad); color: #fff;
  font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(255,67,122,.6);
}
.rank-head { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.rank-no {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--grad-soft);
  border: 1px solid var(--border-2); display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--pink-2);
}
.rank-top .rank-no { background: var(--grad); color: #fff; border: 0; }
.rank-id { flex: 1; min-width: 0; }
.rank-name { font-weight: 700; font-size: 18px; }
.rank-tag { color: var(--muted); font-size: 13px; }
.rank-score { text-align: right; line-height: 1; }
.rank-score b { font-size: 24px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rank-score span { color: var(--muted-2); font-size: 13px; }
.rank-users { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.rank-feats { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.rank-feats li { position: relative; padding-left: 26px; color: var(--text); font-size: 14.5px; }
.rank-feats li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: #00ed77; font-weight: 800; }
.rank-feats.sm li { font-size: 13.5px; }
.rank-feats .muted-li { color: var(--muted); }
.rank-feats .muted-li::before { content: "–"; color: var(--muted-2); }
.rank-offer {
  display: block; width: max-content; max-width: 100%; margin: 18px 0 16px;
  background: var(--grad-soft); border: 1px solid var(--border-2); color: var(--pink-2);
  font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px;
}
.rank-top .btn { width: 100%; }
.rank-urgency { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #00ed77; box-shadow: 0 0 0 0 rgba(0,237,119,.7); animation: pulse 1.8s infinite; }
@media (max-width: 860px) { .rank { grid-template-columns: 1fr; } }

/* ---------- 4-up feature grid (customization / tech / safety) ---------- */
.features.feat-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .features.feat-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features.feat-4 { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.news { max-width: 640px; margin: 0 auto; text-align: center; }
.news-desc { color: var(--muted); margin: 12px 0 26px; font-size: 17px; }
.news-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.news-input {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 14px 20px; color: var(--text); font: inherit; font-size: 15px;
}
.news-input::placeholder { color: var(--muted-2); }
.news-input:focus { outline: none; border-color: var(--pink); }
.news-form .btn { flex-shrink: 0; }
.news-success { color: #00ed77; font-weight: 600; margin-top: 16px; font-size: 15px; }
.news-note { color: var(--muted-2); font-size: 13px; margin-top: 14px; }
@media (max-width: 480px) { .news-form { flex-direction: column; } .news-form .btn { width: 100%; } }

/* ---------- Language switcher ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-2); color: var(--text);
  border-radius: 999px; padding: 9px 13px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.lang-btn:hover { background: rgba(255,255,255,.1); }
.lang-btn .chev { transition: transform .2s; opacity: .7; }
.lang.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 360px; max-height: 62vh; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 16px; padding: 8px;
  box-shadow: var(--shadow); z-index: 200; display: none; grid-template-columns: 1fr 1fr; gap: 2px;
}
.lang.open .lang-menu { display: grid; }
.lang-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px;
  cursor: pointer; color: var(--muted); font: inherit; font-size: 14px; text-align: left; width: 100%;
  background: none; border: 0;
}
.lang-item:hover { background: rgba(255,255,255,.07); color: var(--text); }
.lang-item.active { background: var(--grad-soft); color: var(--text); font-weight: 600; }
.lang-item .flag { font-size: 17px; line-height: 1; }
.lang-item .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- RTL (ar / he / fa) ---------- */
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-item { text-align: right; }
[dir="rtl"] .hero .sub,
[dir="rtl"] .section-head p,
[dir="rtl"] .feature p,
[dir="rtl"] .comp-card .info { text-align: right; }
[dir="rtl"] .comp-card .callbtn { right: auto; left: 12px; }
[dir="rtl"] .comp-card .online,
[dir="rtl"] .float-card .online { left: auto; right: 12px; }
[dir="rtl"] .hero-trust .dot { transform: scaleX(-1); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testis { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-2); padding: 18px 22px; gap: 16px; border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: inline-flex; }

  /* Hamburger göründüğünde nav sağ tarafı sadeleşsin (taşmayı önler) */
  .nav-cta { gap: 10px; }
  .nav-cta > .btn-primary { display: none; }          /* üstteki Start Free gizle */
  .lang-btn { padding: 10px; }
  .lang-btn .lbl, .lang-btn .chev { display: none; }  /* sadece 🌐 ikon */
  .nav-links.open .nav-menu-cta { display: inline-flex; align-self: flex-start; margin-top: 4px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo .mark { width: 30px; height: 30px; font-size: 16px; }
}
@media (max-width: 560px) {
  section { padding: 64px 0; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1.6fr 1fr 1fr; font-size: 13.5px; padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .hero-grid > * { min-width: 0; }                 /* grid item taşmasını engelle */
  .hero .eyebrow { max-width: 100%; white-space: normal; }
  .hero h1 { font-size: clamp(26px, 7.6vw, 34px); overflow-wrap: break-word; }
  .lang-btn { padding: 9px 10px; }
  .lang-menu { position: fixed; right: 10px; left: auto; width: min(92vw, 360px); }
  [dir="rtl"] .lang-menu { left: 10px; right: auto; }
}
