:root {
  --bg: #070b10;
  --bg-elev: #0e151d;
  --bg-soft: #121b26;
  --ink: #eef3f8;
  --muted: #9aa8b8;
  --line: rgba(238, 243, 248, 0.08);
  --accent: #e11d48;
  --accent-2: #14b8a6;
  --accent-glow: rgba(225, 29, 72, 0.28);
  --card-glow: rgba(20, 184, 166, 0.12);
  --radius: 18px;
  --font: "Plus Jakarta Sans", "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", "Noto Sans Thai", "Noto Sans Arabic", system-ui, sans-serif;
  --display: "Fraunces", "Noto Serif JP", Georgia, serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 12% -10%, rgba(225, 29, 72, 0.16), transparent 55%),
    radial-gradient(900px 480px at 90% 0%, rgba(20, 184, 166, 0.12), transparent 50%),
    linear-gradient(180deg, #05080c 0%, var(--bg) 40%, #05070a 100%);
  min-height: 100vh;
  line-height: 1.65;
}
body.rtl { direction: rtl; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 99;
}
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 16, 0.72);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 16, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: .85rem; min-height: 4.4rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  font-weight: 700; letter-spacing: .02em; flex: 0 0 auto;
}
.brand-mark {
  width: 2.2rem; height: 2.2rem; border-radius: .7rem;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #e11d48, #9f1239);
  color: #fff; font-family: var(--display); font-size: .95rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 24px var(--accent-glow);
}
.brand-sub { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; margin-top: .05rem; }

.nav-actions {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; justify-content: flex-end;
}
.nav-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .85rem;
  font-size: .9rem; color: var(--muted);
}
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; border-radius: 999px; padding: .72rem 1.2rem;
  font-weight: 700; font-size: .92rem; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #fb7185, #e11d48 55%, #be123c);
  color: #fff;
  box-shadow: 0 10px 28px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(225,29,72,.42); }
.btn-ghost {
  border-color: var(--line); background: rgba(255,255,255,.03); color: var(--ink);
}
.btn-ghost:hover { border-color: rgba(20,184,166,.45); box-shadow: 0 0 0 1px var(--card-glow); }
.btn-compact { padding: .58rem 1rem; font-size: .86rem; }
.btn-shine {
  position: relative; overflow: hidden;
}
.btn-shine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .55s ease;
}
.btn-shine:hover::after { transform: translateX(120%); }

/* Language switcher with flags */
.lang-menu { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .75rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--ink); font: inherit; font-size: .86rem; font-weight: 650;
  cursor: pointer;
}
.lang-toggle:hover, .lang-menu.is-open .lang-toggle {
  border-color: rgba(225,29,72,.4); background: rgba(225,29,72,.08);
}
.lang-toggle .flag { font-size: 1.05rem; line-height: 1; }
.lang-toggle .chev {
  width: .55rem; height: .55rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin-top: -.2rem; transition: transform .18s ease;
}
.lang-menu.is-open .chev { transform: rotate(225deg); margin-top: .15rem; }
.lang-panel {
  position: absolute; top: calc(100% + .45rem); right: 0;
  min-width: 13.5rem; max-height: min(70vh, 22rem); overflow: auto;
  padding: .4rem; border-radius: 14px;
  background: #0c131b; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  z-index: 60;
}
body.rtl .lang-panel { right: auto; left: 0; }
.lang-panel a {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .65rem; border-radius: 10px; color: var(--muted); font-size: .9rem;
}
.lang-panel a:hover, .lang-panel a[aria-current="true"] {
  background: rgba(255,255,255,.05); color: var(--ink);
}
.lang-panel .flag { font-size: 1.1rem; width: 1.4rem; text-align: center; }

.hero {
  padding: 4.2rem 0 2.2rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: auto -10% -40% 40%;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(225,29,72,.22), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(20,184,166,.16), transparent 40%);
  filter: blur(8px);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-3%, 2%, 0) scale(1.05); }
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--accent-2); font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: .75; }
}
h1, h2, h3 { font-family: var(--display); line-height: 1.2; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); margin: 0 0 1rem; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0 0 .9rem; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 38rem; margin: 0 0 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .9rem; }
.fineprint { color: var(--muted); font-size: .82rem; max-width: 36rem; }

.hero-visual {
  position: relative; min-height: 260px; border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(225,29,72,.18), transparent 45%),
    linear-gradient(20deg, rgba(20,184,166,.14), transparent 40%),
    var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.hero-visual .felt {
  position: absolute; inset: 18% 12%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(20,184,166,.18), transparent 65%);
}
.chip {
  position: absolute; width: 64px; height: 64px; border-radius: 50%;
  border: 4px dashed rgba(255,255,255,.35);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.chip-1 { top: 18%; left: 16%; background: linear-gradient(145deg, #fb7185, #be123c); animation: floaty 5s ease-in-out infinite; }
.chip-2 { top: 42%; right: 18%; background: linear-gradient(145deg, #2dd4bf, #0f766e); animation: floaty 6.5s ease-in-out infinite .4s; }
.chip-3 { bottom: 16%; left: 38%; background: linear-gradient(145deg, #94a3b8, #334155); animation: floaty 7s ease-in-out infinite .8s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section { padding: 2.4rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section p { color: var(--muted); margin: 0 0 1rem; }
.section p:last-child { margin-bottom: 0; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.feature-card {
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1.15rem 1.2rem; border-radius: 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  min-height: 100%;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225,29,72,.35);
  box-shadow: 0 16px 40px rgba(0,0,0,.28), 0 0 0 1px var(--card-glow);
  background: rgba(255,255,255,.04);
}
.feature-card .icon {
  width: 2.2rem; height: 2.2rem; border-radius: .7rem;
  display: grid; place-items: center; font-size: 1rem;
  background: rgba(225,29,72,.12); border: 1px solid rgba(225,29,72,.25);
}
.feature-card h3 { margin: 0; font-size: 1.05rem; }
.feature-card p { margin: 0; flex: 1; font-size: .92rem; }
.feature-card .more {
  color: var(--accent-2); font-weight: 700; font-size: .86rem;
}
.feature-card.will-animate {
  animation: rise .55s ease both;
  animation-delay: var(--delay, 0ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.steps {
  margin: 0; padding: 0; list-style: none; counter-reset: step;
  display: grid; gap: .85rem;
}
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start;
  padding: 1rem 1.1rem; border-radius: 14px;
  background: rgba(255,255,255,.025); border: 1px solid var(--line);
  transition: border-color .18s ease, transform .18s ease;
}
.steps li:hover {
  border-color: rgba(20,184,166,.35);
  transform: translateX(2px);
}
body.rtl .steps li:hover { transform: translateX(-2px); }
.steps li::before {
  content: counter(step);
  width: 1.7rem; height: 1.7rem; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(225,29,72,.15); color: #fecdd3; font-weight: 700; font-size: .85rem;
}

.mid-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 1.45rem; border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(225,29,72,.18), rgba(20,184,166,.1));
  border: 1px solid rgba(225,29,72,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.mid-cta p { margin: 0; color: var(--ink); font-weight: 600; }
.mid-cta .cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.faq-list { display: grid; gap: .7rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.02); overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1rem 1.1rem;
  font-weight: 650; font-family: var(--display);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: .55rem; height: .55rem; flex: 0 0 auto;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item[open], .faq-item.is-open {
  border-color: rgba(20,184,166,.35);
  box-shadow: 0 0 0 1px var(--card-glow);
}
.faq-a { padding: 0 1.1rem 1.05rem; color: var(--muted); }
.faq-a p { margin: 0; }

.lang-switch {
  display: flex; flex-wrap: wrap; gap: .55rem;
}
.lang-switch a {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: .85rem;
}
.lang-switch a[aria-current="true"], .lang-switch a:hover {
  color: var(--ink); border-color: rgba(225,29,72,.4); background: rgba(225,29,72,.08);
}

.site-footer {
  margin-top: 2rem; padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.28));
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.site-footer li + li { margin-top: .35rem; }
.site-footer a:hover { color: var(--ink); }
.rg-box {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.2rem; border-radius: 16px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.badge-18 {
  flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: #111827; border: 2px solid #e11d48; color: #fecdd3;
}
.rg-box p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 860px) {
  .hero-grid, .footer-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 180px; order: -1; }
  .nav-links { display: none; }
  .nav-actions { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important;
  }
}
