/* ============================================================
   OPTIRANK STUDIO LLC — Main Stylesheet
   Author: ahmedrabi.dev
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --navy:       #0A0F2C;
  --navy-light: #111936;
  --navy-mid:   #161D42;
  --blue:       #2563EB;
  --blue-light: #3B82F6;
  --blue-dark:  #1D4ED8;
  --white:      #FFFFFF;
  --gray-50:    #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-300:   #CBD5E1;
  --gray-400:   #94A3B8;
  --gray-500:   #64748B;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1E293B;
  --gold:       #F59E0B;
  --gold-light: #FCD34D;
  --green:      #10B981;
  --red:        #EF4444;

  --font:       'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full:9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-md:  0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.15);
  --shadow-blue:0 8px 32px rgba(37,99,235,.35);

  --nav-h:      72px;
  --section-py: 100px;
  --container:  1200px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
abbr[title] { text-decoration: none; cursor: default; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}

p { color: var(--gray-600); line-height: 1.7; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-py) 0; }

.section-dark  { background: var(--navy); }
.section-light { background: var(--gray-50); }

.text-white { color: var(--white) !important; }
.text-muted { color: rgba(255,255,255,0.65) !important; }

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(37,99,235,.08);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-tag-gold {
  background: rgba(245,158,11,.12);
  color: var(--gold);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-dark .section-subtitle { color: rgba(255,255,255,.6); }
.section-dark .section-title    { color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.inline-link {
  color: var(--blue);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.inline-link:hover { border-color: var(--blue); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius-lg); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,99,235,.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ── Gradient Text ────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10,15,44,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 32px rgba(0,0,0,.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
}

.logo-accent { color: var(--blue-light); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.08); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-left: 8px;
}
.nav-cta:hover {
  background: var(--blue-dark);
  color: var(--white) !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language Selector */
.lang-selector { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 500;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,.15);
}
.lang-btn:hover { color: var(--white); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }

.lang-caret { transition: transform var(--transition); }
.lang-selector.open .lang-caret { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: all var(--transition);
}
.lang-selector.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  text-align: left;
}
.lang-option:hover, .lang-option.active { background: rgba(255,255,255,.08); color: var(--white); }
.lang-option.active { color: var(--blue-light); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,.08); }

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.6) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,.3) 0%, transparent 70%);
  bottom: -100px; right: -50px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,.4) 0%, transparent 70%);
  top: 50%; right: 25%;
  animation: orbFloat 7s ease-in-out infinite 2s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 30px) scale(.95); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 100px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.3);
  color: var(--blue-light);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.03em;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}

.trust-sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.2);
}

/* Dashboard Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-mockup {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 32px 80px rgba(0,0,0,.5);
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.dash-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dash-dot.red    { background: #FF5F57; }
.dash-dot.yellow { background: #FFBD2E; }
.dash-dot.green  { background: #28CA41; }

.dash-title {
  margin-left: 6px;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

.dash-body { display: flex; flex-direction: column; gap: 16px; }

.dash-metric {}

.dash-label {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}

.dash-val {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.dash-val.up { color: var(--green); }
.gold-text    { color: var(--gold) !important; }

.dash-bar {
  height: 5px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(.4,0,.2,1);
}
.dash-bar-fill.gold { background: var(--gold); }

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.95);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.badge-1 { bottom: -16px; left: -24px; animation: badgeBob 5s ease-in-out infinite; }
.badge-2 { top: -16px; right: -20px; animation: badgeBob 5s ease-in-out infinite 2.5s; }

@keyframes badgeBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-6px) rotate(2deg); }
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.scroll-label {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px; height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: var(--radius-full);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: rgba(37,99,235,.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(37,99,235,.1);
}
.service-card:hover::before { opacity: 1; }

.service-icon-wrap {
  width: 52px; height: 52px;
  background: rgba(37,99,235,.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition);
}
.service-card:hover .service-icon-wrap { background: var(--blue); }

.service-icon {
  width: 24px; height: 24px;
  color: var(--blue);
  transition: color var(--transition);
}
.service-card:hover .service-icon { color: var(--white); }

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 18px;
}

.service-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-link:hover { gap: 8px; }

/* ════════════════════════════════════════════════════════════
   WHY US
   ════════════════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.why-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(37,99,235,.4);
  transform: translateY(-4px);
}

.why-icon-wrap {
  width: 52px; height: 52px;
  background: rgba(37,99,235,.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}
.why-icon-wrap svg { width: 24px; height: 24px; color: var(--blue-light); }
.why-card:hover .why-icon-wrap { background: var(--blue); }
.why-card:hover .why-icon-wrap svg { color: var(--white); }

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.why-card p { font-size: .9rem; color: rgba(255,255,255,.6); }

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-card {
  padding: 40px 24px;
  text-align: center;
}

.stat-sep {
  width: 1px;
  background: rgba(255,255,255,.08);
  align-self: stretch;
}

.stat-number {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: .02em;
}

/* ════════════════════════════════════════════════════════════
   PROCESS
   ════════════════════════════════════════════════════════════ */
.process-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-badge {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(37,99,235,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.process-step:hover .step-badge {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(37,99,235,.5);
}

.step-num {
  position: absolute;
  top: -8px; right: -8px;
  width: 24px; height: 24px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon-wrap { width: 28px; height: 28px; color: var(--white); }
.step-icon-wrap svg { width: 100%; height: 100%; }

.step-body { padding: 0 8px; }

.step-body h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.step-body p { font-size: .88rem; color: var(--gray-500); margin-bottom: 16px; }

.step-list { text-align: left; display: inline-block; }
.step-list li {
  font-size: .82rem;
  color: var(--gray-500);
  padding: 3px 0 3px 18px;
  position: relative;
}
.step-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: .75rem;
}

.process-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 35px;
  padding-inline: 8px;
}

.connector-line {
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, var(--blue) 0%, rgba(37,99,235,.3) 100%);
  border-radius: var(--radius-full);
  position: relative;
}
.connector-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

/* ════════════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}
.testimonial-card:hover {
  border-color: rgba(37,99,235,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-featured {
  background: var(--navy);
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}
.testimonial-featured:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(37,99,235,.35); }

.featured-tag {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--blue);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  margin-bottom: 24px;
}
.testimonial-card blockquote p {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--gray-600);
  font-style: italic;
}
.testimonial-featured blockquote p { color: rgba(255,255,255,.75); }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-details strong { font-size: .92rem; color: var(--navy); }
.testimonial-featured .author-details strong { color: var(--white); }
.author-details span { font-size: .8rem; color: var(--gray-500); }
.testimonial-featured .author-details span { color: rgba(255,255,255,.55); }
.author-country { font-size: .78rem !important; }

/* Client Logos */
.client-logos { text-align: center; }

.logos-label {
  font-size: .82rem;
  color: var(--gray-400);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.logos-outer {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: scrollLogos 28s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }

.logos-track img {
  opacity: .5;
  filter: grayscale(1);
  transition: opacity var(--transition), filter var(--transition);
  flex-shrink: 0;
}
.logos-track img:hover { opacity: .9; filter: grayscale(0); }

@keyframes scrollLogos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════════
   PRICING
   ════════════════════════════════════════════════════════════ */
.currency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 20px;
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: var(--radius-full);
  font-size: .85rem;
  color: var(--gray-600);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  border-color: rgba(37,99,235,.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-popular {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-blue);
  transform: scale(1.02);
}
.pricing-popular:hover { transform: scale(1.02) translateY(-4px); }

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-blue);
}

.plan-header { margin-bottom: 28px; }

.plan-name {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 12px;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  align-self: flex-start;
  margin-top: 8px;
}

.price-amount {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -.03em;
}

.price-period {
  font-size: .9rem;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.price-custom {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
}

.plan-tagline { font-size: .88rem; color: var(--gray-500); }

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--gray-700);
}

.feature-yes span:first-child { color: var(--green); font-weight: 700; font-size: 1rem; }
.feature-no { opacity: .45; }
.feature-no span:first-child { color: var(--red); font-weight: 700; }

/* Pricing Trust */
.pricing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.ptrust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:has(.faq-q[aria-expanded="true"]) {
  border-color: rgba(37,99,235,.3);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--transition);
}
.faq-q:hover { background: var(--gray-50); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform var(--transition), color var(--transition);
}
.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

.faq-ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-ans.open { max-height: 400px; }

.faq-ans-inner {
  padding: 0 24px 20px;
  border-top: 1px solid var(--gray-100);
}

.faq-ans-inner p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.75;
  padding-top: 16px;
}

/* ════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-left .section-tag { margin-bottom: 16px; }

.contact-left .section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 20px;
}

.contact-desc {
  font-size: .95rem;
  margin-bottom: 40px;
  max-width: 440px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
a.contact-method:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(37,99,235,.4);
  transform: translateX(4px);
}

.cmethod-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-light);
}
.cmethod-icon-wa { background: rgba(37,211,102,.15); color: #25D366; }

.cmethod-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cmethod-label { font-size: .75rem; color: rgba(255,255,255,.45); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.cmethod-value { font-size: .9rem; color: var(--white); font-weight: 500; word-break: break-word; overflow-wrap: anywhere; line-height: 1.4; }

/* Contact Form */
.contact-right {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: .01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748B'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.field-error {
  font-size: .78rem;
  color: var(--red);
  min-height: 18px;
}

.btn-submit { position: relative; overflow: hidden; }
.btn-label {}
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-submit.loading .btn-label { opacity: 0; }
.btn-submit.loading .btn-spinner { display: block; position: absolute; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-gdpr {
  text-align: center;
  font-size: .78rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* Form Success */
.form-success {
  text-align: center;
  padding: 48px 32px;
}
.form-success[hidden] { display: none; }

.success-check {
  width: 64px; height: 64px;
  background: var(--green);
  color: var(--white);
  font-size: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 10px; }
.form-success p { font-size: .92rem; color: var(--gray-500); }

/* Inline form messages (EmailJS) */
.form-msg {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.5;
  border: 1.5px solid transparent;
}
.form-msg-success {
  background: rgba(16,185,129,.08);
  color: #047857;
  border-color: rgba(16,185,129,.25);
}
.form-msg-error {
  background: rgba(239,68,68,.08);
  color: #B91C1C;
  border-color: rgba(239,68,68,.25);
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  background: #060B1E;
  padding: 80px 0 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.logo-icon-sm { flex-shrink: 0; }

.footer-tagline {
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 12px;
  letter-spacing: .04em;
}

.footer-about {
  font-size: .85rem;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: all var(--transition);
}
.social-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.footer-contact-list svg { color: var(--blue-light); flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-contact-list a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom a {
  color: var(--blue-light);
  font-weight: 600;
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--white); }

.footer-legal-links {
  display: flex;
  gap: 24px;
}
.footer-legal-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  transition: color var(--transition);
}
.footer-legal-links a:hover { color: rgba(255,255,255,.7); }

/* ════════════════════════════════════════════════════════════
   WHATSAPP FLOAT
   ════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 56px; height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: all var(--transition);
  animation: waBounce 3s ease-in-out infinite 2s;
}
.whatsapp-float:hover {
  background: #1EBE5D;
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,.6);
  animation: none;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--navy);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

@keyframes waBounce {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ════════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }

  /* Removing backdrop-filter on mobile prevents the navbar from
     creating a containing block that would collapse the fixed menu. */
  .navbar.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10,15,44,.98);
  }

  .nav-menu { display: none; }
  .hamburger { display: flex; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100dvh - var(--nav-h));
    background: rgba(10,15,44,.99);
    padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
    gap: 4px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 999;
    list-style: none;
    margin: 0;
    animation: slideDown .25s ease;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-menu.open li { list-style: none; width: 100%; }

  .nav-menu.open .nav-link {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: var(--radius);
    display: block;
    width: 100%;
  }
  .nav-menu.open .nav-cta {
    margin: 12px 0 0;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  .hero-container { grid-template-columns: 1fr; gap: 48px; text-align: center; padding-bottom: 60px; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-ctas { justify-content: center; }
  .trust-badges { justify-content: center; }
  .hero-visual { display: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-sep { display: none; }

  .process-track {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process-connector { display: none; }
  .process-step { flex-direction: row; text-align: left; gap: 24px; }
  .step-badge { flex-shrink: 0; margin-bottom: 0; }

  .testimonials-grid { grid-template-columns: 1fr; max-width: 580px; margin-inline: auto; }
  .testimonial-featured { order: -1; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .pricing-popular { transform: none; }
  .pricing-popular:hover { transform: translateY(-4px); }

  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .contact-right { padding: 28px; }

  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 640px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --section-py: 64px; }

  .container { padding: 0 16px; }

  .hero-title { font-size: 2.4rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; }
  .trust-badges { gap: 8px; }
  .trust-sep { display: none; }
  .trust-badge { font-size: .78rem; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 28px 16px; }

  .process-step { flex-direction: column; align-items: center; text-align: center; }
  .step-list { text-align: left; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }

  .section-header { margin-bottom: 40px; }

  .pricing-grid { max-width: 100%; }

  .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }

  .lang-selector { display: none; }
}

/* ════════════════════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
