/* ════════════════════════════════════════
   Outfit — Self-hosted (zero external requests)
   ════════════════════════════════════════ */
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }


/* ════════════════════════════════════════
   RankForm — Shared Stylesheet
   ════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #07080d;
  --ink2:      #0f1018;
  --ink3:      #181921;
  --ink4:      #21222d;
  --ink5:      #2c2d3a;
  --border:    rgba(255,255,255,0.06);
  --border2:   rgba(255,255,255,0.11);
  --mist:      #52536a;
  --fog:       #9596b0;
  --text:      #c0c1d8;
  --white:     #eeeef8;
  --blue:      #4d88ff;
  --blue2:     #3a72e8;
  --blue-glow: rgba(77,136,255,0.2);
  --blue-dim:  rgba(77,136,255,0.08);
  --amber:     #f0a030;
  --amber-dim: rgba(240,160,48,0.09);
  --green:     #3ecf8e;
  --green-dim: rgba(62,207,142,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  touch-action: pan-y;
}

/* ── Blobs ── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.blob-1 {
  width: 700px; height: 700px;
  top: -250px; left: -180px;
  background: radial-gradient(circle, rgba(77,136,255,0.09) 0%, transparent 70%);
}
.blob-2 {
  width: 500px; height: 500px;
  top: 50%; right: -160px;
  background: radial-gradient(circle, rgba(240,160,48,0.06) 0%, transparent 70%);
}
.blob-3 {
  width: 450px; height: 450px;
  bottom: 5%; left: 15%;
  background: radial-gradient(circle, rgba(62,207,142,0.05) 0%, transparent 70%);
}

/* ── Layout ── */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════
   NAV
   ════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
nav.scrolled {
  background: rgba(7,8,13,0.88);
  border-color: var(--border2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 30px; height: 30px;
  background: var(--blue);
  border-radius: 7px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.logo-icon::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.22) 0%, transparent 55%);
}
.logo-icon svg { width: 16px; height: 16px; fill: white; position: relative; z-index: 1; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: -0.4px; }
.logo-text span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fog);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--ink3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
}
.lang-btn {
  padding: 6px 11px;
  color: var(--mist);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: transparent;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.lang-btn.active {
  background: var(--blue);
  color: white;
}
.lang-btn:not(.active):hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 8px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.1px;
}
.btn-ghost { color: var(--fog); background: transparent; }
.btn-ghost:hover { color: var(--white); }
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 0 22px rgba(77,136,255,0.28);
}
.btn-primary:hover {
  background: var(--blue2);
  box-shadow: 0 0 36px rgba(77,136,255,0.42);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--blue); background: var(--blue-dim); }
.btn-lg { padding: 13px 28px; font-size: 15px; }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-left { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-links a:hover { color: var(--white); }
.foot-copy { font-size: 13px; color: var(--mist); }
.foot-right {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  color: var(--ink5);
}

/* ════════════════════════════════════════
   SHARED COMPONENTS
   ════════════════════════════════════════ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--blue); border-radius: 1px; }

h1 {
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2.5px;
  color: var(--white);
  margin-bottom: 28px;
}
h1 em {
  font-style: normal;
  background: linear-gradient(130deg, var(--blue) 0%, #99bfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h1 .muted { color: var(--mist); -webkit-text-fill-color: var(--mist); }

h2 {
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
}
h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.section { padding: 108px 0; position: relative; z-index: 1; content-visibility: auto; contain-intrinsic-size: 0 600px; }
.section-lead {
  font-size: 18px;
  font-weight: 300;
  color: var(--fog);
  max-width: 500px;
  line-height: 1.7;
}
.section-head { margin-bottom: 64px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }

/* Reveal animation */
.r { opacity: 0; transform: translateY(26px); transition: opacity 0.75s ease, transform 0.75s ease; }
.r.on { opacity: 1; transform: translateY(0); }
.r.d1 { transition-delay: 0.1s; }
.r.d2 { transition-delay: 0.2s; }
.r.d3 { transition-delay: 0.3s; }
@media (max-width: 768px) {
  /* Simplify reveal on mobile — skip transform to avoid costly repaints */
  .r { transform: none; transition: opacity 0.5s ease; }
}

/* Page intro hero (non-home pages) */
.page-hero {
  padding: 148px 0 72px;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 16px; }
.page-hero .sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--fog);
  max-width: 520px;
  line-height: 1.7;
}

/* Placeholder card */
.placeholder-section {
  padding: 108px 0;
  position: relative;
  z-index: 1;
}
.placeholder-card {
  background: var(--ink2);
  border: 1px dashed var(--border2);
  border-radius: 14px;
  padding: 72px 40px;
  text-align: center;
}
.placeholder-card .ph-icon { font-size: 40px; margin-bottom: 20px; opacity: 0.4; }
.placeholder-card h3 { color: var(--mist); font-size: 18px; margin-bottom: 10px; }
.placeholder-card p { color: var(--ink5); font-size: 14px; }

/* CTA box */
.cta-box {
  background: var(--ink2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 72px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--blue), rgba(77,136,255,0) 60%);
}
.cta-glow {
  position: absolute; top: -120px; left: -80px;
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, rgba(77,136,255,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.cta-text h2 { margin-bottom: 14px; }
.cta-sub { font-size: 17px; font-weight: 300; color: var(--fog); line-height: 1.7; max-width: 480px; }
.cta-side { display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; }
.cta-email { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 12px; color: var(--mist); text-align: center; }
.cta-note { font-size: 12.5px; color: var(--mist); text-align: center; line-height: 1.8; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Fix 1: Hide blobs — purely decorative, major GPU paint cost on mobile */
  .blob { display: none; }

  /* Fix 2: Remove backdrop-filter on nav — poorly supported + GPU-heavy on mobile */
  nav.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(7, 8, 13, 0.97);
  }

  /* Fix 2b: Remove backdrop-filter on cookie banner */
  .cookie-banner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--ink2);
  }
}

@media (max-width: 960px) {
  .wrap, .nav-inner { padding: 0 24px; }
  .cta-box { grid-template-columns: 1fr; gap: 36px; padding: 44px 32px; }
  .cta-side { align-items: flex-start; }
  .cta-note { text-align: left; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  /* Hide CTA button in nav on mobile — keep only lang toggle */
  .nav-right .btn { display: none; }
  /* Slightly smaller toggle on mobile */
  .lang-btn { padding: 7px 12px; font-size: 13px; }
  h1 { letter-spacing: -1.8px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--ink2);
  border-top: 1px solid var(--border2);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-text {
  font-size: 13.5px;
  color: var(--fog);
  font-weight: 300;
  line-height: 1.6;
  max-width: 640px;
}
.cookie-text a {
  color: var(--blue);
  text-decoration: none;
}
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-cookie-accept {
  padding: 9px 20px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 7px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-cookie-accept:hover { background: var(--blue2); }
.btn-cookie-decline {
  padding: 9px 20px;
  background: transparent;
  color: var(--fog);
  border: 1px solid var(--border2);
  border-radius: 7px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-cookie-decline:hover { color: var(--white); border-color: var(--mist); }
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
  }
  .cookie-actions { width: 100%; }
  .btn-cookie-accept, .btn-cookie-decline { flex: 1; text-align: center; }
}

/* ════════════════════════════════════════
   MOBILE NAV — Hamburger + Slide-in menu
   ════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: var(--ink3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--fog);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 998;
  background: var(--ink);
  padding: 80px 32px 48px;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.mobile-menu-links a {
  font-size: 28px; font-weight: 700; color: var(--fog);
  text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.5px;
  transition: color 0.15s;
}
.mobile-menu-links a:hover, .mobile-menu-links a.active { color: var(--white); }
.mobile-menu-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.mobile-lang { display: flex; gap: 8px; }
.mobile-lang .lang-btn { padding: 10px 18px; font-size: 14px; border-radius: 8px; }

/* ════════════════════════════════════════
   MOBILE — Full responsive pass
   ════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Show hamburger, hide desktop nav */
  .nav-hamburger { display: flex; }
  .nav-links { display: none !important; }
  .nav-right .btn { display: none; }
  .nav-right .lang-toggle { display: none; }
  .mobile-menu { display: flex; }

  /* General spacing */
  .wrap { padding: 0 20px; }
  .section { padding: 60px 0; }

  /* Hero */
  .hero { padding: 120px 0 64px; }
  h1 { font-size: clamp(36px, 10vw, 52px) !important; letter-spacing: -1.5px !important; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-right: none !important; border-bottom: 1px solid var(--border); padding: 24px 0 !important; }
  .hero-stat:last-child { border-bottom: none; }

  /* Page heroes */
  .page-hero { padding: 120px 0 48px; }
  .page-hero h1 { font-size: clamp(32px, 9vw, 48px) !important; }
  .page-hero .sub { font-size: 16px; }

  /* About layout */
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .platform-chips { flex-wrap: wrap; }

  /* Services grid */
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 28px 24px; }

  /* Numbers */
  .numbers-row { grid-template-columns: 1fr; }
  .num-card { padding: 36px 28px; }
  .num-big { font-size: 48px; }

  /* CTA box */
  .cta-box { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .cta-side { align-items: flex-start; }
  .cta-note { text-align: left; }
  .cta-sub { font-size: 15px; }

  /* Services detail */
  .svc-detail-inner { grid-template-columns: 1fr; gap: 24px; }
  .svc-detail-left { position: static; }
  .svc-detail-tags { flex-direction: row; flex-wrap: wrap; }
  .included-box { padding: 20px; }

  /* Markets grid */
  .market-grid { grid-template-columns: 1fr 1fr !important; }
  .lang-grid { grid-template-columns: 1fr; }

  /* About page */
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-left { position: static; }
  .values-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }

  /* Contact page */
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }

  /* Privacy page */
  .privacy-layout { grid-template-columns: 1fr; }
  .privacy-toc { display: none; }

  /* CTA strip */
  .cta-strip { grid-template-columns: 1fr; gap: 20px; padding: 32px 24px; }

  /* Footer */
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .foot-links { flex-wrap: wrap; gap: 8px 16px; }
  .foot-copy, .foot-right { font-size: 12px; }

  /* Ticker */
  .ticker-item { font-size: 11px; }

  /* Buttons */
  .btn-lg { padding: 14px 20px; font-size: 15px; }
}

@media (max-width: 400px) {
  .market-grid { grid-template-columns: 1fr !important; }
}



.logo-img { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; line-height: 0; }
.logo-img img { display: block; width: auto; max-width: 160px; height: auto !important; }
