:root {
  --bg: #06100d;
  --panel: rgba(12, 31, 25, .84);
  --panel-strong: #0b211a;
  --ink: #f7f3e8;
  --muted: #aebbb3;
  --gold: #d9bd78;
  --gold-soft: #f1dda7;
  --emerald: #2f9c72;
  --emerald-dark: #17674a;
  --line: rgba(239, 222, 177, .17);
  --shadow: 0 32px 90px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 13% 8%, rgba(38, 134, 96, .18), transparent 29%),
    radial-gradient(circle at 90% 75%, rgba(217, 189, 120, .09), transparent 28%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
body.help-open { overflow: hidden; }
button, select, a { font: inherit; }
a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.topbar {
  display: flex;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 25px 0;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(241, 221, 167, .34);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(217,189,120,.22), rgba(47,156,114,.1));
  box-shadow: inset 0 0 20px rgba(255,255,255,.04), 0 12px 30px rgba(0,0,0,.24);
  color: var(--gold-soft);
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 18px; letter-spacing: .02em; }
.brand-copy small { margin-top: 5px; color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .28em; }

.header-actions { display: flex; gap: 12px; align-items: center; }
.region-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255,255,255,.025);
  color: #b8c4bd;
  font-size: 10px;
  font-weight: 700;
}
.language-picker select {
  min-height: 38px;
  border: 1px solid rgba(241, 221, 167, .23);
  border-radius: 12px;
  padding: 0 12px;
  background: #0b1c17;
  color: var(--ink);
  color-scheme: dark;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  outline: none;
}
.language-picker select:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,189,120,.13); }

.hero {
  display: grid;
  width: min(1240px, calc(100% - 48px));
  margin: auto;
  padding: 34px 0 72px;
  grid-template-columns: minmax(0, .87fr) minmax(440px, .93fr);
  gap: clamp(44px, 6vw, 96px);
  align-items: center;
}
.hero-copy { grid-column: 1; grid-row: 1; max-width: 620px; }
.hero-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: min(680px, 72svh);
  overflow: hidden;
  border: 1px solid rgba(241, 221, 167, .18);
  border-radius: 34px;
  background: #10261f;
  box-shadow: var(--shadow);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -100px 100px rgba(2,9,7,.48);
}
.hero-visual img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: 61% center; filter: saturate(.88) contrast(1.03); }
.visual-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 48%, rgba(4,13,10,.55)); }

.match-card {
  position: absolute;
  z-index: 4;
  display: flex;
  min-width: 190px;
  gap: 11px;
  padding: 13px 15px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  background: rgba(6, 23, 18, .79);
  box-shadow: 0 16px 40px rgba(0,0,0,.36);
  backdrop-filter: blur(15px);
}
.match-card-top { top: 24px; left: 24px; }
.match-card-bottom { right: 24px; bottom: 24px; }
.match-card strong, .match-card small { display: block; }
.match-card strong { font-size: 13px; }
.match-card small { margin-top: 4px; color: #b7c5bd; font-size: 10px; }
.match-card small i { display: inline-block; width: 6px; height: 6px; margin-inline-end: 5px; border-radius: 50%; background: #5fe29d; box-shadow: 0 0 12px #5fe29d; }
.match-icon, .avatar {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  place-items: center;
  border-radius: 50%;
  background: rgba(217,189,120,.16);
  color: var(--gold-soft);
  font-weight: 900;
}
.avatar { background: linear-gradient(145deg, #b78d5e, #6e3f32); color: #fff; }

.eyebrow {
  display: flex;
  gap: 10px;
  margin: 0 0 22px;
  align-items: center;
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}
.eyebrow > span:first-child { width: 28px; height: 1px; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.hero h1 { margin: 0; font-size: clamp(56px, 6vw, 88px); font-weight: 760; line-height: .98; letter-spacing: -.045em; }
.hero h1 em { color: var(--gold-soft); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
[dir="rtl"] .hero h1 em { font-family: Tahoma, "Segoe UI", sans-serif; font-style: normal; font-weight: 720; }
.intro { max-width: 580px; margin: 25px 0 0; color: #bcc8c1; font-size: 16px; line-height: 1.9; }

.trust-row {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}
.trust-row > div { position: relative; padding: 18px 12px; }
.trust-row > div + div { border-inline-start: 1px solid var(--line); }
.trust-row span { display: block; margin-bottom: 8px; color: var(--gold); font-size: 18px; }
.trust-row strong, .trust-row small { display: block; }
.trust-row strong { font-size: 12px; }
.trust-row small { margin-top: 4px; color: #788980; font-size: 9px; }

.action-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 17px;
  background: linear-gradient(145deg, rgba(15,42,33,.78), rgba(7,20,16,.93));
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.welcome-line { display: flex; justify-content: space-between; gap: 15px; padding: 0 3px 13px; color: var(--gold-soft); font-size: 11px; font-weight: 750; }
.welcome-line small { color: #809087; font-size: 8px; font-weight: 500; }
.primary-cta {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px 12px 20px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(110deg, #c9a762, #f0d89a 52%, #b98d47);
  box-shadow: 0 15px 38px rgba(202,165,96,.24);
  color: #102018;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.primary-cta::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -40%; width: 18%; background: rgba(255,255,255,.36); transform: skewX(-18deg); transition: left .55s ease; }
.primary-cta:hover::after, .primary-cta:focus-visible::after { left: 120%; }
.primary-cta:hover, .primary-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(202,165,96,.32); }
.primary-cta strong, .primary-cta small { display: block; }
.primary-cta strong { font-size: 16px; font-weight: 900; }
.primary-cta small { margin-top: 4px; opacity: .65; font-size: 9px; font-weight: 700; }
.primary-cta b { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 13px; background: rgba(6,16,13,.14); font-size: 19px; }
[dir="ltr"] .primary-cta b { transform: rotate(180deg); }
.privacy-note { display: flex; gap: 7px; margin: 12px 3px 0; align-items: center; justify-content: center; color: #829088; font-size: 9px; }
.privacy-note > span:first-child { color: #5fe29d; font-size: 6px; }

.legal { display: flex; max-width: 570px; gap: 12px; margin-top: 18px; align-items: center; color: #738079; font-size: 9px; line-height: 1.65; }
.legal p { margin: 0; }
.legal a { color: #b7a775; text-underline-offset: 2px; }
.age-badge { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid rgba(217,189,120,.28); border-radius: 50%; color: var(--gold); font-size: 10px; font-weight: 850; }

footer {
  display: grid;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 24px;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #58675f;
  font-size: 8px;
}
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }
footer > span:last-child { text-align: end; }

.browser-help {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  padding: 18px;
  align-items: flex-end;
  justify-content: center;
  background: rgba(1,7,5,.79);
  backdrop-filter: blur(13px);
}
.browser-help-card {
  width: min(100%, 430px);
  border: 1px solid rgba(241,221,167,.2);
  border-radius: 26px;
  padding: 24px;
  background: linear-gradient(145deg, #123127, #07130f 76%);
  box-shadow: 0 32px 100px rgba(0,0,0,.66);
  text-align: center;
}
.browser-help-hint { position: relative; display: grid; width: 54px; height: 54px; margin: 0 auto 14px; place-items: center; border: 1px solid rgba(217,189,120,.23); border-radius: 17px; background: rgba(217,189,120,.1); color: var(--gold-soft); font-size: 25px; letter-spacing: 3px; }
.browser-help-hint i { position: absolute; top: -8px; right: -8px; width: 17px; height: 17px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.browser-help-kicker { margin: 0 0 7px; color: var(--gold); font-size: 8px !important; font-weight: 850; letter-spacing: .13em; }
.browser-help h2 { margin: 0; font-size: 25px; }
.browser-help p { margin: 11px 0 19px; color: #afbeb6; font-size: 13px; line-height: 1.75; }
.browser-help p strong { color: #fff; }
.copy-link, .close-help { display: block; width: 100%; border: 0; border-radius: 14px; padding: 13px 15px; cursor: pointer; }
.copy-link { background: linear-gradient(110deg, #c9a762, #ecd391); color: #102018; font-weight: 850; }
.close-help { margin-top: 7px; background: transparent; color: #8e9d95; }

@media (max-width: 980px) {
  .hero { padding-top: 20px; grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { grid-column: auto; grid-row: auto; width: min(100%, 650px); min-height: 610px; margin: 0 auto; }
  .hero-copy { grid-column: auto; grid-row: auto; width: min(100%, 650px); margin: 0 auto; text-align: center; }
  .eyebrow, .legal { justify-content: center; margin-inline: auto; }
  .intro { margin-inline: auto; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer nav { justify-content: center; }
  footer > span:last-child { text-align: center; }
}

@media (max-width: 600px) {
  .page-shell { padding-bottom: 88px; }
  .topbar, .hero, footer { width: min(100% - 28px, 1240px); }
  .topbar { padding: 16px 0; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-copy strong { font-size: 16px; }
  .region-chip { display: none; }
  .language-picker select { min-height: 36px; }
  .hero { padding: 8px 0 48px; gap: 38px; }
  .hero-visual { min-height: 54svh; max-height: 590px; border-radius: 25px; }
  .hero-visual img { object-position: 65% center; }
  .match-card { min-width: 160px; padding: 10px 12px; border-radius: 15px; }
  .match-card-top { top: 14px; left: 14px; }
  .match-card-bottom { right: 14px; bottom: 14px; }
  .hero h1 { font-size: clamp(48px, 14.5vw, 68px); }
  .intro { margin-top: 20px; font-size: 14px; line-height: 1.8; }
  .trust-row { margin-top: 22px; }
  .trust-row > div { padding: 14px 5px; }
  .trust-row strong { font-size: 10px; }
  .trust-row small { font-size: 8px; }
  .action-panel { padding: 12px; }
  .welcome-line { align-items: flex-start; flex-direction: column; gap: 4px; text-align: start; }
  .primary-cta {
    position: fixed;
    right: 14px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 14px;
    z-index: 50;
    width: auto;
    min-height: 66px;
    box-shadow: 0 18px 50px rgba(197,158,86,.4), 0 0 0 1px rgba(255,255,255,.1);
    touch-action: manipulation;
  }
  .privacy-note { margin-bottom: 0; }
  .legal { align-items: flex-start; text-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
