/* ============ Hero ============ */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; max-width: 260px; margin: 0 auto; }
}

.hero__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  animation: hero-fade-up 0.6s ease-out both;
}
.hero__title {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 18px;
  color: var(--text);
  animation: hero-fade-up 0.6s ease-out 0.08s both;
}
.hero__sub {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 520px;
  margin: 0 0 30px;
  animation: hero-fade-up 0.6s ease-out 0.16s both;
}
.hero__actions { animation: hero-fade-up 0.6s ease-out 0.24s both; }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__sub, .hero__actions { animation: none; }
}
@media (max-width: 860px) { .hero__sub { margin-inline: auto; } }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary { padding: 14px 28px; text-decoration: none; display: inline-block; }
.btn-outline {
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero__visual::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,127,181,0.14) 0%, rgba(74,127,181,0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glow-pulse 3.5s ease-in-out infinite;
  z-index: 0;
}
.hero-gauge { position: relative; z-index: 1; }

@keyframes glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__visual::before { animation: none; }
}
.hero-gauge__needle {
  transform-origin: 190px 220px;
  animation: needle-sweep 1.4s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
@keyframes needle-sweep {
  from { transform: rotate(-90deg); }
  to { transform: rotate(90deg); }
}
.hero-gauge__fill {
  animation: fill-sweep 1.6s ease-out forwards;
}
@keyframes fill-sweep {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gauge__needle, .hero-gauge__fill { animation: none; }
  .hero-gauge__needle { transform: rotate(90deg); }
  .hero-gauge__fill { stroke-dashoffset: 0; }
}

/* ============ Trust bar ============ */
.trust-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--accent);
}
.trust-item__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.trust-item__suffix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
}
.trust-item p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted); }

/* ============ Page Hero (mini) ============ */
.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 28px;
}
.page-hero__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.page-hero__title {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 8px;
}
.page-hero__sub {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
  max-width: 560px;
}

/* ============ Section shared ============ */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px;
}
.section--tinted { background: var(--panel-raised); max-width: 100%; padding-left: 0; padding-right: 0; }
.section--tinted > * { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 6px;
}
.section__title {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.section__more {
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.section__more:hover { text-decoration: underline; }

/* ============ Category showcase ============ */
.category-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.category-showcase__card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.category-showcase__card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74, 127, 181, 0.08);
}
.category-showcase__card:hover .category-showcase__badge {
  transform: scale(1.1);
  background: var(--accent);
  color: #fff;
}
.category-showcase__badge { transition: transform 0.25s, background 0.25s, color 0.25s; }
.category-showcase__badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(74, 127, 181, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 17px;
}
.category-showcase__card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--text);
}
.category-showcase__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ CTA banner ============ */
.cta-banner {
  max-width: 1280px;
  margin: 20px auto 60px;
  padding: 40px;
  background: var(--text);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner__text h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  color: #ffffff;
  margin: 0 0 8px;
}
.cta-banner__text p { color: rgba(255,255,255,0.65); font-size: 14px; margin: 0; max-width: 480px; }
.btn-primary--light {
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  padding: 14px 26px;
}
.btn-primary--light:hover { background: var(--accent); color: #fff; }

/* ============ Mobile Refinements (320-430px) ============ */

/* --- Hero: gauge scaling, text scaling --- */
@media (max-width: 480px) {
  .hero { padding: 48px 16px 40px; gap: 32px; }
  .hero__eyebrow { font-size: 11px; letter-spacing: 0.12em; }
  .hero__title { font-size: clamp(26px, 6.5vw, 34px); line-height: 1.25; }
  .hero__sub { font-size: 14.5px; line-height: 1.8; max-width: 100%; }
  .hero__actions { gap: 10px; }
  .hero .btn-primary,
  .btn-outline { min-height: 48px; font-size: 14px; padding: 12px 20px; }
  
  .hero__visual::before { width: 200px; height: 200px; }
  .hero-gauge svg { max-width: 100%; height: auto; }
  .hero-gauge__needle { transform-origin: 160px 180px; }
}

/* --- Trust bar: 2-col at 480px, 1-col at 360px --- */
@media (max-width: 480px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px 40px; }
  .trust-item { padding: 16px; gap: 10px; }
  .trust-item__num { font-size: 18px; }
  .trust-item__suffix { font-size: 11px; }
  .trust-item p { font-size: 11.5px; }
}

@media (max-width: 360px) {
  .trust-bar { grid-template-columns: 1fr; gap: 10px; padding: 0 12px 32px; }
  .trust-item { padding: 14px; }
  .trust-item__num { font-size: 16px; }
  .trust-item p { font-size: 11px; }
}

/* --- Page hero --- */
@media (max-width: 480px) {
  .page-hero { padding: 40px 16px 20px; }
  .page-hero__eyebrow { font-size: 10px; }
  .page-hero__title { font-size: clamp(22px, 6vw, 26px); }
  .page-hero__sub { font-size: 13.5px; }
}

/* --- Section --- */
@media (max-width: 480px) {
  .section { padding: 40px 16px; }
  .section__header { margin-bottom: 20px; gap: 8px; }
  .section__eyebrow { font-size: 10px; }
  .section__title { font-size: clamp(22px, 6vw, 24px); }
  .section__more { font-size: 12.5px; }
}

/* --- Category showcase: tighter grid --- */
@media (max-width: 480px) {
  .category-showcase { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .category-showcase__card { padding: 18px 14px; }
  .category-showcase__badge { width: 40px; height: 40px; font-size: 15px; }
  .category-showcase__card h3 { font-size: 14px; }
  .category-showcase__count { font-size: 10.5px; }
}

/* --- CTA banner: stack, full-width button --- */
@media (max-width: 480px) {
  .cta-banner { padding: 28px 20px; gap: 16px; margin: 16px auto 40px; }
  .cta-banner__text h2 { font-size: clamp(18px, 5vw, 20px); }
  .cta-banner__text p { font-size: 13px; }
  .btn-primary--light { width: 100%; min-height: 48px; font-size: 14px; padding: 12px 16px; }
}

/* --- RTL specific for mobile --- */
@media (max-width: 480px) {
  [dir="rtl"] .hero { direction: rtl; text-align: right; }
  [dir="rtl"] .hero__actions { justify-content: flex-end; }
  [dir="rtl"] .hero__sub { text-align: right; }
  [dir="rtl"] .page-hero { direction: rtl; }
  [dir="rtl"] .section__header { direction: rtl; }
  [dir="rtl"] .cta-banner { direction: rtl; text-align: right; }
}

/* --- Hover guards for touch devices --- */
@media (hover: none) and (pointer: coarse) {
  .hero__visual::before { animation: none; }
  .hero-gauge__needle { animation: none; transform: rotate(90deg); }
  .hero-gauge__fill { animation: none; stroke-dashoffset: 0; }
  .trust-item:hover,
  .category-showcase__card:hover,
  .btn-primary:hover,
  .btn-outline:hover,
  .btn-primary--light:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
    background: var(--panel);
  }
  .category-showcase__card:hover .category-showcase__badge {
    transform: none;
    background: rgba(74, 127, 181, 0.1);
    color: var(--accent);
  }
  .cta-banner__text h2 { text-decoration: none; }
}
/* ============ Hero ============ */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; max-width: 260px; margin: 0 auto; }
}

.hero__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  animation: hero-fade-up 0.6s ease-out both;
}
.hero__title {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 18px;
  color: var(--text);
  animation: hero-fade-up 0.6s ease-out 0.08s both;
}
.hero__sub {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 520px;
  margin: 0 0 30px;
  animation: hero-fade-up 0.6s ease-out 0.16s both;
}
.hero__actions { animation: hero-fade-up 0.6s ease-out 0.24s both; }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__sub, .hero__actions { animation: none; }
}
@media (max-width: 860px) { .hero__sub { margin-inline: auto; } }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary { padding: 14px 28px; text-decoration: none; display: inline-block; }
.btn-outline {
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero__visual::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,127,181,0.14) 0%, rgba(74,127,181,0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glow-pulse 3.5s ease-in-out infinite;
  z-index: 0;
}
.hero-gauge { position: relative; z-index: 1; }

@keyframes glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__visual::before { animation: none; }
}
.hero-gauge__needle {
  transform-origin: 190px 220px;
  animation: needle-sweep 1.4s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
@keyframes needle-sweep {
  from { transform: rotate(-90deg); }
  to { transform: rotate(90deg); }
}
.hero-gauge__fill {
  animation: fill-sweep 1.6s ease-out forwards;
}
@keyframes fill-sweep {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gauge__needle, .hero-gauge__fill { animation: none; }
  .hero-gauge__needle { transform: rotate(90deg); }
  .hero-gauge__fill { stroke-dashoffset: 0; }
}

/* ============ Trust bar ============ */
.trust-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--accent);
}
.trust-item__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.trust-item__suffix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
}
.trust-item p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted); }

/* ============ Trust bar ============ */
.trust-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}