/* ==========================================================================
   Twilens Circle — marketing site
   ========================================================================== */

:root {
  --bg: #f4f7ff;
  --bg-alt: #eaf0ff;
  --surface: #ffffff;
  --text: #0b1330;
  --text-muted: #5b6488;
  --text-soft: #838ca8;
  --primary: #0a58ff;
  --primary-dark: #0a2adf;
  --primary-light: #3b82f6;
  --danger: #ff3b30;
  --success: #17c964;
  --border: #e3e8f8;
  --shadow-sm: 0 2px 8px rgba(20, 30, 70, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 30, 70, 0.10);
  --shadow-lg: 0 24px 64px rgba(20, 30, 70, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --grad-1: linear-gradient(135deg, #3b82f6, #0a2adf);
  --grad-2: linear-gradient(135deg, #22d3ee, #0a58ff);
  --grad-3: linear-gradient(135deg, #a78bfa, #6d28d9);
  --grad-4: linear-gradient(135deg, #fb7185, #db2777);
  --grad-5: linear-gradient(135deg, #34d399, #059669);
  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(100deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 .75em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn-small { padding: 9px 18px; font-size: .85rem; }
.btn-large { padding: 16px 30px; font-size: 1rem; }
.btn:not(.btn-large):not(.btn-small) { padding: 12px 22px; font-size: .9rem; }

.btn-primary {
  background: var(--grad-1);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 88, 255, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10, 88, 255, .36); }
.btn-primary[aria-disabled="true"] {
  background: #b9c3e0;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-secondary {
  background: var(--text);
  color: #fff;
}
.btn-secondary:hover { transform: translateY(-2px); }

/* ---------- Platform banner ---------- */
.platform-banner {
  background: #10173a;
  color: #fff;
  font-size: .85rem;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  position: relative;
}
.platform-banner[hidden] { display: none; }
.platform-banner .banner-link { color: #8bb4ff; text-decoration: underline; font-weight: 700; }
.banner-close {
  background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer;
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  line-height: 1; opacity: .7;
}
.banner-close:hover { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
}
.brand-mark img { display: block; border-radius: 22%; }
.main-nav {
  display: none;
  gap: 28px;
  margin-left: 40px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-muted);
}
.main-nav a:hover { color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang-switcher select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 28px 8px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  max-width: 108px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='%235b6488'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.lang-switcher select:focus { outline: none; border-color: var(--primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 36px; height: 36px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
.hero-copy { text-align: center; max-width: 640px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: 1.06; }
.hero-sub { font-size: 1.05rem; margin-bottom: 1.75em; }
.hero-ctas { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.hero-ctas .btn { width: 100%; }
.hero-meta { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 22px; font-size: .85rem; color: var(--text-soft); }
.stars { color: #ffb400; letter-spacing: 2px; font-size: .9rem; }

.hero-visual { position: relative; width: 100%; max-width: 340px; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .35;
  z-index: 0;
}
.blob-a { width: 220px; height: 220px; background: #3b82f6; top: -40px; left: -60px; }
.blob-b { width: 180px; height: 180px; background: #a78bfa; bottom: -30px; right: -50px; }

.phone-frame {
  position: relative;
  z-index: 1;
  background: #0b1330;
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 9 / 18.5;
  width: 100%;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 40%; height: 22px;
  background: #0b1330;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 20%, #0e1c4d 0%, #060a1f 70%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.phone-caption {
  position: absolute;
  bottom: 22px;
  color: rgba(255,255,255,.7);
  font-size: .68rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: .02em;
}

.circle-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(120, 160, 255, .35);
  border-radius: 50%;
  animation: pulse-orbit 3.5s ease-in-out infinite;
}
.orbit-1 { width: 56%; height: 56%; }
.orbit-2 { width: 92%; height: 92%; animation-delay: .6s; }
@keyframes pulse-orbit {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .7; transform: scale(1.015); }
}

.avatar {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(6,10,31,1), 0 0 18px rgba(59,130,246,.55);
  display: flex; align-items: center; justify-content: center;
}
.avatar-center {
  width: 22%; height: 22%;
  z-index: 3;
}
.avatar-ring2 { width: 10%; height: 10%; }

.orbit-ring {
  position: absolute;
  inset: 0;
  animation: orbit-spin 16s linear infinite;
}
.avatar-ring2 {
  animation: orbit-counter-spin 16s linear infinite;
}
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes orbit-counter-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.avatar-ring2.pos-1 { top: 2%; left: 22%; }
.avatar-ring2.pos-2 { top: 2%; right: 22%; }
.avatar-ring2.pos-3 { top: 45%; right: -2%; }
.avatar-ring2.pos-4 { bottom: 2%; right: 22%; }
.avatar-ring2.pos-5 { bottom: 2%; left: 22%; }
.avatar-ring2.pos-6 { top: 45%; left: -2%; }

.grad-1 { background: var(--grad-1); }
.grad-2 { background: var(--grad-2); }
.grad-3 { background: var(--grad-3); }
.grad-4 { background: var(--grad-4); }
.grad-5 { background: var(--grad-5); }

/* ---------- Trust strip ---------- */
.strip { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.strip-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
.strip-item { display: flex; flex-direction: column; gap: 2px; }
.strip-item strong { font-size: 1.3rem; color: var(--primary); }
.strip-item span { font-size: .78rem; color: var(--text-soft); font-weight: 600; }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.section-sub { font-size: .98rem; }

/* ---------- Features ---------- */
.features { padding: 88px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.feature-card p { font-size: .92rem; margin-bottom: 0; }
.feature-visual { margin-bottom: 20px; }

.tweet-head { display: flex; align-items: center; gap: 8px; }
.dot { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: block; }
.dot svg { display: block; }
.lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.line-name, .line-handle { display: block; height: 8px; border-radius: 4px; background: #d7dff6; }
.line-name { width: 60%; }
.line-handle { width: 38%; background: #e4e9f8; }
.status { display: block; height: auto; font-size: .72rem; font-weight: 700; }
.status-new { color: var(--primary); }
.status-gone { color: var(--danger); }
.status-ok { color: var(--success); }

/* ---------- Tinder-style swipe demo (portrait tweet cards) ---------- */
.tinder-stack {
  position: relative;
  height: 320px;
  max-width: 220px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
}
.tinder-card {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-md);
}
.tinder-card--delete,
.tinder-card--keep {
  will-change: transform, opacity;
  animation-duration: 3s;
  animation-timing-function: cubic-bezier(.55, 0, .45, 1);
  animation-iteration-count: infinite;
}
/* base/fallback state (also what reduced-motion users see, animation disabled) */
.tinder-card--delete {
  transform: translate(0, 0) scale(1) rotate(0deg);
  opacity: 1;
  z-index: 2;
  animation-name: card-cycle-delete;
}
.tinder-card--keep {
  transform: translate(0, 8px) scale(.94) rotate(0deg);
  opacity: .75;
  background: var(--bg-alt);
  z-index: 1;
  animation-name: card-cycle-keep;
}
.tweet-text {
  margin: 0;
  font-size: .72rem;
  line-height: 1.3;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tweet-photo {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  min-height: 0;
}
.tweet-photo svg { width: 100%; height: 100%; display: block; }
.tweet-stats {
  display: flex;
  justify-content: space-between;
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-soft);
}
.tweet-stats span { display: flex; align-items: center; gap: 3px; }
.tweet-stats svg { flex-shrink: 0; }

.tinder-stamp {
  position: absolute;
  top: 12px;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .05em;
  padding: 4px 10px;
  border-radius: 8px;
  border: 3px solid;
  opacity: 0;
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.stamp-delete {
  right: 12px;
  color: var(--danger);
  border-color: var(--danger);
  transform: rotate(-10deg);
  animation-name: stamp-delete;
}
.stamp-keep {
  left: 12px;
  color: var(--success);
  border-color: var(--success);
  transform: rotate(10deg);
  animation-name: stamp-keep;
}
.swipe-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  opacity: .75;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.hint-left { left: 10px; }
.hint-right { right: 10px; }

/*
  Choreography per full cycle (0-100%):
  - 0-6%    both static: delete-card front, keep-card small in back
  - 6-30%   delete-card swipes out LEFT while keep-card GROWS into front at the same time (synced hand-off)
  - 30-34%  delete-card sits fully invisible (buffer)
  - 34-46%  delete-card is "born" from nothing (scale 0, opacity 0) into the small back slot - never visibly returns
  - 46-56%  delete-card holds quietly in the back slot
  - 56-80%  keep-card swipes out RIGHT while delete-card GROWS into front at the same time
  - 80-84%  keep-card sits fully invisible (buffer)
  - 84-96%  keep-card is "born" from nothing into the small back slot
  - 96-100% keep-card holds quietly in the back slot, loop
*/
@keyframes card-cycle-delete {
  0%    { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; background: var(--surface); z-index: 2; }
  6%    { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; background: var(--surface); z-index: 2; }
  30%   { transform: translate(-140%, 4%) scale(1) rotate(-16deg); opacity: 0; background: var(--surface); z-index: 2; }
  34%   { transform: translate(0, 8px) scale(0) rotate(0deg); opacity: 0; background: var(--bg-alt); z-index: 1; }
  46%   { transform: translate(0, 8px) scale(.94) rotate(0deg); opacity: .75; background: var(--bg-alt); z-index: 1; }
  56%   { transform: translate(0, 8px) scale(.94) rotate(0deg); opacity: .75; background: var(--bg-alt); z-index: 1; }
  80%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; background: var(--surface); z-index: 2; }
  100%  { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; background: var(--surface); z-index: 2; }
}
@keyframes card-cycle-keep {
  0%    { transform: translate(0, 8px) scale(.94) rotate(0deg); opacity: .75; background: var(--bg-alt); z-index: 1; }
  6%    { transform: translate(0, 8px) scale(.94) rotate(0deg); opacity: .75; background: var(--bg-alt); z-index: 1; }
  30%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; background: var(--surface); z-index: 2; }
  56%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; background: var(--surface); z-index: 2; }
  80%   { transform: translate(140%, 4%) scale(1) rotate(16deg); opacity: 0; background: var(--surface); z-index: 2; }
  84%   { transform: translate(0, 8px) scale(0) rotate(0deg); opacity: 0; background: var(--bg-alt); z-index: 1; }
  96%   { transform: translate(0, 8px) scale(.94) rotate(0deg); opacity: .75; background: var(--bg-alt); z-index: 1; }
  100%  { transform: translate(0, 8px) scale(.94) rotate(0deg); opacity: .75; background: var(--bg-alt); z-index: 1; }
}
@keyframes stamp-delete {
  0%, 8%   { opacity: 0; }
  16%      { opacity: 1; }
  28%, 100%{ opacity: 0; }
}
@keyframes stamp-keep {
  0%, 58%  { opacity: 0; }
  66%      { opacity: 1; }
  78%, 100%{ opacity: 0; }
}

.type-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.type-icon .minus-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  border: 2px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1;
}
.type-icon-like { background: var(--grad-4); }
.type-icon-bookmark { background: var(--grad-3); }

.unfollow-list { display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); border-radius: 14px; padding: 12px; }
.unfollow-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: var(--shadow-sm);
}
.unfollow-row.highlight { outline: 1.5px solid rgba(255,59,48,.35); background: #fff5f5; }
.unfollow-row .lines { gap: 4px; }
.badge {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .8rem; flex-shrink: 0;
}
.badge-new { background: #e5edff; color: var(--primary); }
.badge-gone { background: #ffe3e1; color: var(--danger); }
.badge-ok { background: #dcfce9; color: var(--success); }

/* ---------- How it works ---------- */
.how { padding: 80px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: 1fr; gap: 30px; }
.step { text-align: center; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin: 0 auto 16px;
  box-shadow: 0 8px 18px rgba(10,88,255,.3);
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .9rem; }

/* ---------- Platforms ---------- */
.platforms { padding: 80px 0; }
.platforms-inner { display: grid; grid-template-columns: 1fr; gap: 22px; }
.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.platform-card svg { color: var(--primary); }
.platform-card h3 { font-size: 1.1rem; margin-bottom: .2em; }
.platform-card p { font-size: .9rem; margin-bottom: 0; }
.platform-android svg { color: #1b1b1b; }
.notify-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.notify-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: .9rem;
  font-family: inherit;
}
.notify-form input:focus { outline: none; border-color: var(--primary); }
.notify-thanks {
  font-size: .85rem;
  font-weight: 700;
  color: var(--success);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq { padding: 80px 0; background: var(--surface); border-top: 1px solid var(--border); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  background: var(--bg);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .98rem;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-weight: 800;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin-top: 12px; font-size: .9rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 84px 0;
  background: radial-gradient(120% 140% at 50% 0%, #16255c 0%, #0b1330 60%);
  color: #fff;
  text-align: center;
}
.final-cta h2 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.3rem); }
.final-cta p { color: rgba(255,255,255,.75); margin-bottom: 2em; }
.final-cta-inner .btn { display: inline-flex; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-brand { font-size: .95rem; }
.footer-copy { font-size: .78rem; color: var(--text-soft); margin: 0; max-width: 480px; }

/* ==========================================================================
   Desktop (>= 900px)
   ========================================================================== */
@media (min-width: 900px) {
  .container { padding: 0 40px; }
  .main-nav { display: flex; }

  .hero { padding: 96px 0 60px; }
  .hero-inner { flex-direction: row; text-align: left; gap: 60px; }
  .hero-copy { text-align: left; max-width: 520px; }
  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { width: auto; }
  .hero-meta { align-items: flex-start; }
  .hero-visual { max-width: 380px; flex-shrink: 0; }

  .strip-inner { grid-template-columns: repeat(4, 1fr); }

  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }

  .steps { grid-template-columns: repeat(3, 1fr); }

  .platforms-inner { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 16px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .orbit, .tinder-card--delete, .tinder-card--keep, .tinder-stamp { animation: none !important; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   RTL (Arabic)
   ========================================================================== */
[dir="rtl"] {
  direction: rtl;
}
[dir="rtl"] .lang-switcher select {
  padding: 8px 14px 8px 28px;
  background-position: left 8px center;
}
[dir="rtl"] .banner-close {
  right: auto;
  left: 16px;
}
[dir="rtl"] .faq-list summary::after {
  float: left;
}
[dir="rtl"] .main-nav {
  margin-left: 0;
  margin-right: 40px;
}
[dir="rtl"] .header-actions {
  margin-left: 0;
  margin-right: auto;
}
@media (min-width: 900px) {
  [dir="rtl"] .hero-inner { flex-direction: row-reverse; }
  [dir="rtl"] .hero-copy,
  [dir="rtl"] .hero-meta { text-align: right; align-items: flex-end; }
  [dir="rtl"] .footer-inner { flex-direction: row-reverse; text-align: right; }
}
