/* ═══════════════════════════════════════════════════════════════════════════
   Aunimeda AI — landing stylesheet (all 7 locales share this one file).
   Served as /landing.css (exact-match nginx location; the .css regex location
   points at frontend/build and would 404 this file otherwise).
   No runtime JS on the landing → CSP is strict; keep ALL styling in here,
   never in style="" attributes (style-src has no 'unsafe-inline').
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* neutrals carry a faint indigo bias so the greys read as chosen, not default */
  --bg:        #0e0e14;
  --bg-raise:  #13131b;
  --bg-card:   #15151f;
  --bg-deep:   #0a0a10;
  --line:        rgba(163, 170, 255, 0.10);
  --line-strong: rgba(163, 170, 255, 0.20);
  --ink:   #f2f2f8;
  --ink-2: rgba(228, 230, 246, 0.68);
  --ink-3: rgba(228, 230, 246, 0.42);
  --brand:      #5b6cff;
  --brand-hi:   #7c8aff;
  --brand-soft: rgba(91, 108, 255, 0.13);
  --brand-line: rgba(91, 108, 255, 0.34);
  --amber:  #fbbf24;
  --green:  #34d399;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow-lg: 0 24px 70px rgba(5, 5, 14, 0.55);
  --shadow-sm: 0 2px 14px rgba(5, 5, 14, 0.35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[dir="rtl"] { font-family: 'Segoe UI', Tahoma, Arial, sans-serif; letter-spacing: 0; }

img { max-width: 100%; display: block; }
a { color: var(--brand-hi); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ink); }

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

.container { max-width: 1140px; margin-inline: auto; padding-inline: 24px; }

h1, h2, h3 { text-wrap: balance; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--r-md); cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 12px 24px; white-space: nowrap; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s, color 0.2s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand-hi), var(--brand));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 4px 18px rgba(91, 108, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 30px rgba(91, 108, 255, 0.4);
  color: #fff;
}
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); background: rgba(163, 170, 255, 0.06); color: var(--ink); }
.btn-lg { padding: 16px 34px; font-size: 16px; border-radius: 14px; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(14, 14, 20, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.logo-text { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-signin { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 8px 10px; }
.header-signin:hover { color: var(--ink); }

/* Language dropdown — pure <details>, no JS */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 7px 11px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--ink-2); transition: border-color 0.15s, color 0.15s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--ink); border-color: var(--line-strong); }
.lang-menu svg { width: 14px; height: 14px; stroke: currentColor; }
.lang-menu[open] summary { color: var(--brand-hi); border-color: var(--brand-line); }
.lang-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  min-width: 168px; padding: 6px; z-index: 300;
  background: var(--bg-raise); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: var(--r-sm); padding: 8px 12px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.lang-opt:hover { background: rgba(163, 170, 255, 0.07); color: var(--ink); }
.lang-opt .code { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
.lang-opt.active { color: var(--brand-hi); background: var(--brand-soft); }
.lang-opt.active .code { color: var(--brand-hi); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 92px 0 76px;
  background:
    radial-gradient(900px 500px at 18% -12%, rgba(91, 108, 255, 0.16), transparent 68%),
    radial-gradient(700px 420px at 88% 8%, rgba(124, 138, 255, 0.09), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 56px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(163, 170, 255, 0.05); border: 1px solid var(--line-strong);
  border-radius: 100px; padding: 6px 15px; margin-bottom: 26px;
  color: var(--ink-2); font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-hi); box-shadow: 0 0 0 4px var(--brand-soft);
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px); font-weight: 800;
  line-height: 1.04; letter-spacing: -0.042em;
  margin-bottom: 22px;
}
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.2; }
.hero h1 .grad {
  background: linear-gradient(92deg, var(--brand-hi) 10%, #a5b0ff 55%, var(--brand-hi) 90%);
  -webkit-background-clip: text; background-clip: text;
  color: var(--brand-hi); -webkit-text-fill-color: transparent;
}

.hero-sub { font-size: clamp(16px, 2.2vw, 18.5px); color: var(--ink-2); max-width: 540px; margin-bottom: 34px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 13.5px; color: var(--ink-3); margin-bottom: 46px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 36px;
  justify-content: start; border-top: 1px solid var(--line); padding-top: 30px;
}
.stat-num {
  display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat-label { font-size: 12.5px; color: var(--ink-3); }

/* ── Hero chat demo (the product, shown not told) ────────────────────────── */
.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone {
  width: min(100%, 392px);
  background: linear-gradient(180deg, var(--bg-raise), var(--bg-deep));
  border: 1px solid var(--line-strong); border-radius: 26px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.phone-head {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: rgba(163, 170, 255, 0.04);
}
.phone-ava {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f472b6, #fb7185);
  color: #fff; font-size: 16px; font-weight: 700;
}
.phone-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.phone-id strong { font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-id em {
  font-style: normal; font-size: 12px; color: var(--green);
  display: inline-flex; align-items: center; gap: 5px;
}
.phone-id em::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.phone-chip {
  margin-inline-start: auto; flex-shrink: 0;
  background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 100px;
  color: var(--brand-hi); font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em;
  padding: 4px 10px; text-transform: uppercase;
}
.phone-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 20px; }
.msg {
  max-width: 82%; padding: 10px 14px; font-size: 13.8px; line-height: 1.5;
  border-radius: 16px; position: relative;
  animation: msg-in 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.msg.in  { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--line); color: var(--ink-2); border-start-start-radius: 6px; }
.msg.out { align-self: flex-end; background: linear-gradient(160deg, rgba(91,108,255,0.28), rgba(91,108,255,0.16)); border: 1px solid var(--brand-line); color: var(--ink); border-start-end-radius: 6px; }
.msg .meta {
  display: block; margin-top: 5px; text-align: end;
  font-size: 10.5px; letter-spacing: 0.02em; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.msg.out .meta { color: rgba(164, 176, 255, 0.75); }
.msg:nth-child(1) { animation-delay: 0.15s; }
.msg:nth-child(2) { animation-delay: 0.7s; }
.msg:nth-child(3) { animation-delay: 1.3s; }
.msg:nth-child(4) { animation-delay: 1.9s; }
.msg.typing { animation-delay: 2.6s; }

.msg.typing {
  align-self: flex-start; display: flex; gap: 5px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line);
  padding: 13px 16px; border-start-start-radius: 6px;
}
.msg.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
  animation: typing 1.2s ease-in-out infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.18s; }
.msg.typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.hero-demo-note { font-size: 13px; color: var(--ink-3); text-align: center; max-width: 340px; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-hi); margin-bottom: 12px;
}
.section-title { font-size: clamp(24px, 3.4vw, 38px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; }
[dir="rtl"] .section-title { letter-spacing: 0; }
.section-sub { font-size: 16px; color: var(--ink-2); max-width: 580px; }
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin-inline: auto; }

/* ── Features ────────────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: var(--brand-line); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.icon-tile {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-hi);
}
.icon-tile svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 9px; }
.feature-card p { font-size: 14px; color: var(--ink-2); }

/* ── How it works ────────────────────────────────────────────────────────── */
.steps-wrapper { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { padding: 34px 30px; }
.step:not(:last-child) { border-inline-end: 1px solid var(--line); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(160deg, var(--brand-hi), var(--brand));
  color: #fff; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(91, 108, 255, 0.3);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-2); }
.steps-cta { display: flex; justify-content: center; margin-top: 36px; }

/* ── Models ──────────────────────────────────────────────────────────────── */
.models-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.model-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 11px;
  transition: border-color 0.2s, transform 0.2s;
}
.model-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.model-card--premium {
  border-color: var(--brand-line);
  background:
    radial-gradient(320px 180px at 50% -20%, rgba(91, 108, 255, 0.2), transparent 75%),
    var(--bg-card);
}
.model-card--premium:hover { border-color: var(--brand-hi); }
.model-tag {
  width: fit-content; border-radius: 100px; padding: 4px 11px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
}
.tag-basic { background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); color: var(--amber); }
.tag-perf  { background: rgba(52, 211, 153, 0.1);  border: 1px solid rgba(52, 211, 153, 0.3); color: var(--green); }
.tag-prem  { background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-hi); }
.model-name { font-size: 19px; font-weight: 750; letter-spacing: -0.02em; }
.model-desc { font-size: 13.5px; color: var(--ink-2); }
.model-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.model-list li { font-size: 13.5px; color: var(--ink-2); display: flex; align-items: flex-start; gap: 9px; }
.model-list li::before { content: '✓'; color: var(--brand-hi); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Use cases ───────────────────────────────────────────────────────────── */
.usecases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.usecase-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.usecase-card:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.usecase-card .icon-tile { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 0; }
.usecase-card .icon-tile svg { width: 18px; height: 18px; }
.usecase-card h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.usecase-card p { font-size: 13px; color: var(--ink-2); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 800px; margin-inline: auto; }
.faq-list details {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color 0.2s;
}
.faq-list details:hover { border-color: var(--line-strong); }
.faq-list details[open] { border-color: var(--brand-line); }
.faq-list summary {
  padding: 18px 22px; cursor: pointer; user-select: none; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; flex-shrink: 0; color: var(--ink-3);
  font-size: 21px; font-weight: 400; line-height: 1; transition: transform 0.2s, color 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--brand-hi); }
.faq-answer { padding: 0 22px 20px; font-size: 14px; color: var(--ink-2); }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(640px 300px at 50% -10%, rgba(91, 108, 255, 0.28), transparent 72%),
    var(--bg-raise);
  border: 1px solid var(--brand-line); border-radius: 24px;
  padding: 72px 40px; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 12px; }
[dir="rtl"] .cta-band h2 { letter-spacing: 0; }
.cta-band > p { color: var(--ink-2); font-size: 16px; max-width: 520px; margin: 0 auto 32px; }
.cta-note { font-size: 13px; color: var(--ink-3); margin-top: 16px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--bg-deep); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.footer-brand p { font-size: 13px; color: var(--ink-3); max-width: 280px; margin-top: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.footer-col a { font-size: 13.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--ink); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; max-width: 200px; }
.footer-langs a { font-size: 13px; color: var(--ink-3); }
.footer-langs a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 36px; padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12.5px; color: var(--ink-3); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-sub, .hero h1 { margin-inline: auto; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; grid-template-columns: repeat(4, auto); }
  .section { padding: 60px 0; }
  .step:not(:last-child) { border-inline-end: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .container { padding-inline: 16px; }
  .header-inner { height: 58px; }
  .logo-text { display: none; }
  .header-signin { display: none; }
  .hero-stats { gap: 20px; grid-template-columns: repeat(2, auto); row-gap: 22px; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .cta-band { padding: 48px 22px; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

/* ── Motion preferences ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .msg { animation: none; }
  .msg.typing { display: none; }
}
