:root {
  --navy: #1a2e4a;
  --ocre: #c4852a;
  --green: #2d6a4f;
  --chalk: #f5f2ec;
  --text: #2b2b2b;
  --line: rgba(26, 46, 74, 0.14);
  --shadow: 0 20px 60px rgba(12, 24, 43, 0.12);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 1px 1px, rgba(26, 46, 74, 0.08) 1px, transparent 0) 0 0 / 26px 26px,
    var(--chalk);
  line-height: 1.6;
}
body.rtl { direction: rtl; text-align: right; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: Sora, "Segoe UI", Arial, sans-serif; letter-spacing: -0.03em; }
p { margin: 0; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--ocre);
}
.topbar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img {
  width: 74px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
  border-radius: 12px;
  flex-shrink: 0;
}
.logo-word { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; color: #fff; }
.logo-word .u { color: var(--ocre); }
.logo-tagline {
  margin-top: 2px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.48);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-shell { display: flex; align-items: center; gap: 14px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ocre);
  background: rgba(255, 255, 255, 0.06);
}
.nav-cta { background: var(--ocre); color: #fff !important; font-weight: 700; }
.lang-select {
  min-width: 132px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.lang-select option { color: #111827; }

.hero, .section, .contact-band, .quiz-shell { padding: 72px 0; }
.hero-grid, .section-head, .grid-2, .grid-3, .grid-4, .footer-grid { display: grid; gap: 20px; }
.hero-grid { grid-template-columns: 1.15fr 0.85fr; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .hero-main, .panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(26, 46, 74, 0.12);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-main {
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(196, 133, 42, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(26, 46, 74, 0.08), transparent 52%);
}
.hero-main > * { position: relative; z-index: 1; }
.hero-side {
  padding: 28px;
  background: linear-gradient(180deg, rgba(26, 46, 74, 0.98), rgba(26, 46, 74, 0.92));
  color: #fff;
  border: 1px solid rgba(196, 133, 42, 0.28);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-side h3 { margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); }
.stat strong { display: block; font-size: 1.6rem; color: var(--ocre); }
.stat span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--ocre);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ocre); }
.hero-title { font-size: clamp(2.35rem, 5vw, 4.8rem); line-height: 0.96; color: var(--navy); max-width: 12ch; margin-bottom: 18px; }
.hero-lead { max-width: 58ch; font-size: clamp(1rem, 1.8vw, 1.18rem); color: rgba(43, 43, 43, 0.82); margin-bottom: 28px; }

.actions, .badge-row, .quiz-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-primary, .btn-secondary, .btn-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 12px;
}
.btn-primary { background: var(--ocre); border: 2px solid var(--ocre); color: #fff; font-weight: 700; }
.btn-secondary { background: transparent; border: 2px solid var(--navy); color: var(--navy); font-weight: 700; }
.btn-muted { padding: 12px 22px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.btn-muted:disabled { opacity: 0.4; cursor: not-allowed; }

.section-head { grid-template-columns: 1fr 1fr; align-items: start; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--navy); }
.section-head p, .card p { color: rgba(43, 43, 43, 0.74); }
.card { padding: 28px; }
.card h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 10px; }

.quote-card {
  padding: 30px;
  background: linear-gradient(160deg, rgba(196, 133, 42, 0.09), rgba(26, 46, 74, 0.04));
  border: 1px solid rgba(196, 133, 42, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quote-mark { font-size: 4rem; line-height: 1; color: var(--ocre); }
.quote-text { font-size: 1.16rem; color: var(--navy); font-style: italic; margin: 6px 0 14px; }
.quote-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--ocre);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-band { border-top: 1px solid var(--line); }
.contact-band .panel { padding: 40px; text-align: center; }
.contact-band h2 { color: var(--navy); font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 14px; }
.contact-band p { max-width: 56ch; margin: 0 auto 28px; color: rgba(43, 43, 43, 0.72); }
.badge { font-size: 0.86rem; color: rgba(43, 43, 43, 0.58); }
.badge::before { content: "✓"; color: var(--green); font-weight: 700; margin-inline-end: 8px; }

.quiz-select { text-align: center; margin-bottom: 44px; }
.quiz-select h1 { color: var(--navy); font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 14px; }
.quiz-select p { max-width: 56ch; margin: 0 auto; color: rgba(43, 43, 43, 0.72); }
.quiz-list { display: grid; gap: 16px; margin-top: 36px; }
.quiz-tile { display: flex; align-items: center; gap: 18px; padding: 24px; cursor: pointer; }
.quiz-icon { font-size: 2rem; }
.quiz-tag { display: inline-block; margin-bottom: 6px; font-family: "JetBrains Mono", monospace; font-size: 0.75rem; color: var(--ocre); text-transform: uppercase; letter-spacing: 0.08em; }
.quiz-meta { flex: 1; }
.quiz-meta h3 { color: var(--navy); margin-bottom: 6px; }
.quiz-meta p { color: rgba(43, 43, 43, 0.7); }
.quiz-arrow { color: var(--ocre); font-size: 1.25rem; }
.quiz-screen, .quiz-result, .quiz-analyzing { display: none; }
.quiz-header { margin-bottom: 26px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: "JetBrains Mono", monospace; font-size: 0.76rem; color: rgba(43, 43, 43, 0.55); }
.progress-track { height: 8px; border-radius: 999px; background: rgba(26, 46, 74, 0.1); overflow: hidden; }
.progress-fill { height: 100%; background: var(--ocre); transition: width 0.35s ease; }
.question-card { padding: 34px; margin-bottom: 18px; }
.question-title { color: var(--navy); font-size: 1.22rem; margin-bottom: 24px; }
.option-list { display: grid; gap: 12px; }
.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 2px solid rgba(26, 46, 74, 0.1);
  background: rgba(26, 46, 74, 0.03);
  color: var(--text);
  cursor: pointer;
  text-align: start;
}
.option-btn:hover, .option-btn.selected { border-color: var(--ocre); background: rgba(196, 133, 42, 0.08); color: var(--navy); }
.option-index {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 46, 74, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.option-btn.selected .option-index, .option-btn:hover .option-index { background: var(--navy); color: #fff; }
.analyze-box { padding: 36px; text-align: center; }
.analyze-steps { display: grid; gap: 10px; max-width: 420px; margin: 28px auto 0; }
.analyze-step { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.84); color: rgba(43, 43, 43, 0.6); }
.analyze-step.active { border-color: var(--ocre); color: var(--navy); }
.analyze-step.done { color: var(--green); }
.result-header { padding: 36px; background: linear-gradient(135deg, var(--navy), #223b61); color: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.result-badge { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: rgba(196, 133, 42, 0.22); color: var(--ocre); border: 1px solid rgba(196, 133, 42, 0.42); font-family: "JetBrains Mono", monospace; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.result-body { padding: 32px 36px 36px; }
.insight-list { display: grid; gap: 14px; margin: 22px 0 26px; }
.insight { padding: 16px; border-radius: 14px; background: rgba(26, 46, 74, 0.04); border: 1px solid var(--line); }
.contact-fields { margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group label { font-size: 0.73rem; font-weight: 500; color: var(--navy); font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: 0.09em; }
.field-group input { padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--anthracite); font-family: "Inter", sans-serif; font-size: 0.95rem; outline: none; transition: border-color .2s; }
.field-group input:focus { border-color: var(--navy); }
.field-group input.invalid { border-color: #c43232; }
.send-feedback { display: none; margin-top: 10px; padding: 10px 16px; border-radius: 10px; font-size: 0.88rem; font-weight: 500; }
.send-feedback.success { background: rgba(45,106,79,.1); border: 1px solid var(--green); color: var(--green); display: block; }
.send-feedback.error { background: rgba(196,50,50,.08); border: 1px solid #c43232; color: #c43232; display: block; }
@media (max-width: 600px) { .contact-row { grid-template-columns: 1fr; } }

.legal-wrap { max-width: 880px; margin: 56px auto 80px; padding: 0 20px; }
.legal-header { margin-bottom: 42px; padding-bottom: 24px; border-bottom: 2px solid var(--line); }
.legal-header h1 { color: var(--navy); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.legal-updated { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: rgba(43, 43, 43, 0.5); }
.legal-section { margin-bottom: 34px; }
.legal-section h2 { color: var(--navy); margin-bottom: 12px; font-size: 1.16rem; }
.legal-section p { margin-bottom: 12px; color: rgba(43, 43, 43, 0.78); }
.info-box { padding: 22px; border-radius: 16px; border: 1px solid rgba(26, 46, 74, 0.12); background: rgba(255, 255, 255, 0.84); box-shadow: 0 8px 30px rgba(12, 24, 43, 0.08); }
.info-row { display: grid; grid-template-columns: 180px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.placeholder { display: inline-block; padding: 2px 8px; border-radius: 6px; background: rgba(196, 133, 42, 0.1); color: var(--ocre); font-family: "JetBrains Mono", monospace; font-size: 0.82rem; }

.footer { background: var(--navy); color: rgba(255, 255, 255, 0.66); padding: 42px 0 26px; border-top: 3px solid var(--ocre); }
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.footer h4 { color: #fff; margin-bottom: 10px; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li + li { margin-top: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.86rem; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 980px) {
  .hero-grid, .section-head, .footer-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-shell { flex-direction: column; align-items: flex-end; }
  .nav-links { justify-content: flex-end; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-inner, .brand, .quiz-tile, .footer-bottom, .quiz-nav { flex-direction: column; align-items: flex-start; }
  .nav-shell, .nav-links { width: 100%; align-items: flex-start; justify-content: flex-start; }
  .hero-main, .card, .hero-side, .question-card, .analyze-box, .result-body, .result-header, .contact-band .panel { padding: 24px; }
  .info-row { grid-template-columns: 1fr; }
  .lang-select { width: 100%; }
}
