/* ============================================================
   Rankabiz - Landing page
   Palette: orange vif + blanc/crème chaud + near-black chaud
   Type: Plus Jakarta Sans
   ============================================================ */

:root {
  --orange: #FF6A00;
  --orange-deep: #E25500;
  --orange-press: #C94A00;
  --tint-1: #FFF3EA;   /* very light warm */
  --tint-2: #FFE3CE;   /* light orange */
  --tint-3: #FFD2B0;

  --ink: #1C1611;      /* warm near-black */
  --ink-2: #4A4039;    /* warm grey for body */
  --ink-3: #877C72;    /* muted */
  --line: #EFE7DF;
  --line-strong: #E2D6C9;
  --cream: #FBF7F2;    /* warm white bg */
  --white: #FFFFFF;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 36px;

  --shadow-s: 0 2px 8px rgba(40, 24, 10, 0.06);
  --shadow-m: 0 14px 40px rgba(40, 24, 10, 0.10);
  --shadow-orange: 0 14px 34px rgba(255, 106, 0, 0.34);

  --maxw: 1180px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* tweakable accent (overridden by JS) */
  --accent: var(--orange);
  --accent-deep: var(--orange-deep);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

#root { overflow-x: clip; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow.center { justify-content: center; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.04; font-weight: 800; }
.display {
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.h2 { font-size: clamp(30px, 3.6vw, 50px); }
.h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-3); }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-arrow svg { transition: transform .2s ease; }
.btn:hover .btn-arrow svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-s); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 27px; width: auto; display: block; }
.footer .brand-logo { height: 30px; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 19px;
  box-shadow: var(--shadow-orange);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.28), transparent 55%);
}
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-name span { color: inherit; }
.brand-tld { font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  border-radius: 9px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--tint-1); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* language selector */
.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  transition: border-color .15s;
}
.lang-btn:hover { border-color: var(--ink); }
.lang-btn svg { transition: transform .2s; }
.lang.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-m);
  padding: 6px; min-width: 172px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
  z-index: 90;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-opt {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left;
  background: none; border: none;
  padding: 11px 12px; border-radius: 9px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.lang-opt:hover { background: var(--tint-1); color: var(--ink); }
.lang-opt.active { color: var(--ink); }
.lang-opt .flag { font-size: 19px; line-height: 1; }
.lang-opt .check { margin-left: auto; color: var(--accent); opacity: 0; }
.lang-opt.active .check { opacity: 1; }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .h2 { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }

/* ---------- Hero shared ---------- */
.hero { position: relative; overflow: hidden; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 9px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-s);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero-note { font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }

.stats-row { display: flex; gap: 38px; flex-wrap: wrap; margin-top: 46px; }
.stat .num { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.stat .num .u { color: var(--accent); }
.stat .lbl { font-size: 14px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }

/* decorative blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(8px); pointer-events: none; z-index: 0;
}

/* ---------- Hero layouts ---------- */
.hl { color: var(--accent); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4%;
  height: 36%; background: var(--tint-2); z-index: -1; border-radius: 3px;
  opacity: .7;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center; position: relative; z-index: 1;
}
.hero-split .stats-row { border-top: 1px solid var(--line); padding-top: 34px; margin-top: 56px; }
.hero-centered .hero-badges { justify-content: center; }
.hero-showcase .showcase-stage {
  margin-top: 54px; padding: 30px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.hero-showcase .hero-visual { max-width: 760px; margin: 0 auto; min-height: 300px; }

/* ---------- Hero visual (abstract local-results panel) ---------- */
.hero-visual { position: relative; min-height: 380px; }
.hv-main {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  padding: 24px;
  position: relative; z-index: 2;
}
.hv-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; color: var(--ink-3);
  letter-spacing: .02em; margin-bottom: 18px;
}
.hv-head .ricon { color: var(--accent); }
.hv-rows { display: grid; gap: 12px; }
.hv-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-m);
  background: var(--cream); border: 1px solid var(--line);
}
.hv-row.you { background: var(--tint-1); border-color: var(--tint-3); }
.hv-rank {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  background: var(--white); color: var(--ink-3); border: 1px solid var(--line);
}
.hv-row.you .hv-rank { background: var(--accent); color: #fff; border-color: var(--accent); }
.hv-bars { flex: 1; display: grid; gap: 7px; }
.hv-bar { height: 9px; border-radius: 5px; background: var(--line-strong); display: block; }
.hv-bar.sm { height: 7px; opacity: .6; }
.hv-row.you .hv-bar { background: var(--accent); }
.hv-row.you .hv-bar.sm { background: var(--tint-3); opacity: 1; }
.hv-you {
  flex: none; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; background: var(--accent); padding: 4px 9px; border-radius: 999px;
}
.hv-float {
  position: absolute; z-index: 3;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-m);
}
.hv-calls {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; bottom: -22px; left: -26px;
}
.hv-calls .hv-float-ico {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent); color: #fff; display: grid; place-items: center;
}
.hv-float-num { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.hv-float-lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.hv-stars {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 16px; top: -20px; right: -18px;
  font-size: 15px; color: var(--ink);
}
.hv-stars .ricon { color: var(--accent); }
.hv-stars strong { font-weight: 800; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-art { margin: 0 10px; }
}

/* ---------- Placeholder visual ---------- */
.ph {
  position: relative;
  border-radius: var(--radius-l);
  background:
    repeating-linear-gradient(135deg, var(--tint-1) 0 14px, var(--tint-2) 14px 28px);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  overflow: hidden;
}
.ph .ph-label {
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--orange-deep);
  background: rgba(255,255,255,.82);
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong);
}

/* ---------- Service cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 34px 30px 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: var(--line-strong); }
.card .icon-wrap {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--tint-1);
  display: grid; place-items: center;
  color: var(--accent-deep);
  margin-bottom: 22px;
  transition: background .25s, color .25s;
}
.card:hover .icon-wrap { background: var(--accent); color: #fff; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 18px; }
.card .feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.card .feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.card .feats li svg { flex: none; margin-top: 2px; color: var(--accent); }
.card .tag {
  position: absolute; top: 24px; right: 24px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent-deep); background: var(--tint-1);
  padding: 5px 10px; border-radius: 999px;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.step {
  position: relative; padding: 30px 24px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.step .step-num {
  font-size: 14px; font-weight: 800; color: #fff;
  background: var(--accent); width: 36px; height: 36px;
  border-radius: 50%; display: grid; place-items: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 9px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.step .connector {
  position: absolute; top: 48px; right: -12px; color: var(--tint-3); z-index: 2;
}

/* ---------- Coverage ---------- */
.coverage {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 70px);
  overflow: hidden;
  position: relative;
}
.coverage .h2 { color: #fff; }
.coverage .lead { color: rgba(255,255,255,.72); }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.region-list { display: grid; gap: 14px; margin-top: 34px; }
.region {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-m);
  transition: background .2s, border-color .2s;
}
.region:hover { background: rgba(255,106,0,.16); border-color: rgba(255,106,0,.4); }
.region .r-icon { color: var(--accent); flex: none; }
.region .r-name { font-weight: 700; font-size: 16px; }
.region .r-desc { font-size: 13.5px; color: rgba(255,255,255,.6); }
.globe-wrap { position: relative; display: grid; place-items: center; min-height: 360px; }
.globe {
  width: 320px; height: 320px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,106,0,.55), transparent 60%),
    radial-gradient(circle at 70% 75%, rgba(255,106,0,.3), transparent 55%),
    #14100c;
  border: 1px solid rgba(255,255,255,.12);
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0,0,0,.5), var(--shadow-m);
}
.globe::before, .globe::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}
.globe::before { transform: scaleX(.45); }
.globe::after { transform: scaleY(.45); }
.pin {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(255,106,0,.25);
}
.pin::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--accent); animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 50px auto 0; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: var(--line-strong); box-shadow: var(--shadow-s); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px;
  background: none; border: none;
  font-size: 17.5px; font-weight: 700; color: var(--ink);
}
.faq-icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--tint-1); color: var(--accent-deep);
  display: grid; place-items: center;
  transition: transform .25s, background .25s, color .25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner { padding: 0 26px 24px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  border-radius: var(--radius-xl);
  padding: clamp(44px, 6vw, 84px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band .h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 18px; margin: 16px auto 0; max-width: 560px; }
.cta-band .row { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.cta-band .btn-light { background: #fff; color: var(--accent-deep); }
.cta-band .btn-light:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.cta-band .btn-outline { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.cta-deco { position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); pointer-events: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 70px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand-name { color: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 15px; color: rgba(255,255,255,.66); transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-about { font-size: 15px; color: rgba(255,255,255,.6); margin: 18px 0 0; max-width: 320px; line-height: 1.6; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-top: 54px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 14px; color: rgba(255,255,255,.5);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step .connector { display: none; }
  .coverage-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 26px; }
}
