/* ============================================================
   AIONDTECH · RESUME ANALYZER — Production Stylesheet
   ============================================================
   Sections (use Cmd+F to jump):
     [01] CSS Variables / Design Tokens
     [02] Resets & Base
     [03] Typography & Layout primitives
     [04] Background decorations
     [05] Buttons
     [06] Header / Navigation
     [07] Hero
     [08] Floating product cards (hero visual)
     [09] Workflow timeline
     [10] Features grid
     [11] Dashboard mockup
     [12] Why section
     [13] CTA section
     [14] Footer
     [15] Animations / GSAP entry states
     [16] RTL overrides
     [17] Responsive
   ------------------------------------------------------------
   To rebrand: edit only the [01] tokens. Everything else inherits.
   ============================================================ */


/* [01] ─────────── DESIGN TOKENS ─────────── */
:root {
  /* Brand palette — from AiondTech brochure */
  --brand-blue: #1878F3;          /* Primary brand blue */
  --brand-blue-600: #1066d8;      /* Hover/dark variant */
  --brand-blue-50:  #e7f0fe;      /* Very light tint */
  --brand-navy: #0D2F7A;          /* Deep navy for hero/CTA */
  --brand-navy-deep: #07194a;     /* Even deeper for backgrounds */
  --brand-teal: #00D4B0;          /* Accent / highlights */
  --brand-teal-glow: rgba(0, 212, 176, 0.25);

  /* Neutral system */
  --ink-900: #0a1530;
  --ink-800: #142244;
  --ink-700: #1f2f5a;
  --ink-500: #5a6a8a;
  --ink-400: #8696b8;
  --ink-300: #b6c1d6;
  --ink-200: #dbe2ee;
  --ink-100: #eef2f8;
  --ink-50:  #f6f8fc;
  --paper:   #ffffff;

  /* Semantic */
  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-500);
  --text-muted: var(--ink-400);
  --text-inverted: #ffffff;
  --surface: #ffffff;
  --surface-soft: var(--ink-50);
  --border-subtle: rgba(13, 47, 122, 0.08);
  --border-light: rgba(13, 47, 122, 0.04);

  /* Effects */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(13, 47, 122, 0.04);
  --shadow-sm: 0 2px 8px rgba(13, 47, 122, 0.06), 0 1px 2px rgba(13, 47, 122, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 47, 122, 0.08), 0 2px 6px rgba(13, 47, 122, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(13, 47, 122, 0.18), 0 8px 16px rgba(13, 47, 122, 0.06);
  --shadow-xl: 0 40px 80px -20px rgba(13, 47, 122, 0.25);
  --shadow-glow: 0 0 0 1px rgba(24, 120, 243, 0.15), 0 12px 36px rgba(24, 120, 243, 0.18);

  /* Type — Poppins for English, IBM Plex Sans Arabic for Arabic */
  --font-display: 'Poppins', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  --font-body: 'Poppins', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container-max: 1240px;
  --container-pad: 28px;
  --section-pad: 120px;
  --nav-height: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Arabic-mode font swap — Plex first when html[lang="ar"] */
html[lang="ar"] {
  --font-display: 'IBM Plex Sans Arabic', 'Poppins', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Poppins', system-ui, sans-serif;
}


/* [02] ─────────── RESETS & BASE ─────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--brand-blue); }


/* [03] ─────────── TYPOGRAPHY & LAYOUT ─────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-blue-50);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(24, 120, 243, 0.15);
}

.section-badge-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-teal);
  border-color: rgba(0, 212, 176, 0.25);
  backdrop-filter: blur(10px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title-light { color: var(--text-inverted); }

.section-sub {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin-inline: auto;
}

.section-sub-light { color: rgba(255, 255, 255, 0.7); }


/* [04] ─────────── BACKGROUND DECORATIONS ─────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(13, 47, 122, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 47, 122, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(13, 47, 122, 0.05) 1px, transparent 0);
  background-size: 4px 4px;
}


/* [05] ─────────── BUTTONS ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-sm { padding: 9px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

.btn-primary {
  background: var(--brand-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(24, 120, 243, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  background: var(--brand-blue-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(24, 120, 243, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: white;
  color: var(--brand-navy);
  border-color: var(--ink-200);
}
.btn-secondary:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }
html[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(3px); }


/* [06] ─────────── HEADER / NAVIGATION ─────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 2px 12px rgba(13, 47, 122, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--ink-50);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--ink-100);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  padding: 5px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.lang-btn.active {
  background: var(--paper);
  color: var(--brand-navy);
  box-shadow: var(--shadow-xs);
}

/* Login link in navbar (next to Sign Up CTA) */
.nav-login {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 4px;
  transition: color 0.2s ease;
}
.nav-login:hover { color: var(--brand-navy); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* [07] ─────────── HERO ─────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 0 100px;
  background: linear-gradient(180deg, #061238 0%, #0D2F7A 50%, #0a1f55 100%);
  color: white;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle radial highlight */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(24, 120, 243, 0.4) 0%, transparent 60%),
    radial-gradient(40% 35% at 80% 30%, rgba(0, 212, 176, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Grid overlay inside hero */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: meshDrift 20s ease-in-out infinite alternate;
}
.mesh-blob-1 {
  width: 480px; height: 480px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, var(--brand-blue), transparent 70%);
}
.mesh-blob-2 {
  width: 380px; height: 380px;
  top: 30%; right: -80px;
  background: radial-gradient(circle, var(--brand-teal), transparent 70%);
  opacity: 0.35;
  animation-delay: -8s;
}
.mesh-blob-3 {
  width: 420px; height: 420px;
  bottom: -100px; left: 30%;
  background: radial-gradient(circle, #5b8fff, transparent 70%);
  opacity: 0.4;
  animation-delay: -14s;
}

@keyframes meshDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(0, 212, 176, 0.2);
  animation: heroDotPulse 2s ease-in-out infinite;
}
@keyframes heroDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 176, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(0, 212, 176, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 24px;
}
.hero-title-line { display: block; }
.hero-title-accent {
  background: linear-gradient(90deg, var(--brand-teal) 0%, #5cf2d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.stat-unit { font-size: 0.6em; opacity: 0.7; margin-inline-start: 2px; }

.hero-stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* [08] ─────────── FLOATING PRODUCT CARDS (HERO VISUAL) ─────────── */
.hero-visual {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-halo {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 176, 0.18) 0%, transparent 65%);
  filter: blur(20px);
}

.visual-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #4f9eff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(24, 120, 243, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 2;
}
.core-inner {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1066d8 0%, #0848a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.25);
}
.core-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 176, 0.4);
  animation: ringPulse 3s ease-out infinite;
}
.core-ring-2 {
  inset: -36px;
  animation-delay: -1.5s;
  border-color: rgba(24, 120, 243, 0.3);
}
@keyframes ringPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: white;
  z-index: 3;
  animation: cardFloat 6s ease-in-out infinite;
  will-change: transform;
}

.float-card-1 {
  top: 8%;
  left: -4%;
  width: 250px;
  animation-delay: -1s;
}
.float-card-2 {
  top: 14%;
  right: -2%;
  width: 230px;
  animation-delay: -3s;
}
.float-card-3 {
  bottom: 15%;
  left: 0;
  width: 250px;
  animation-delay: -5s;
}
.float-card-4 {
  bottom: 8%;
  right: -4%;
  width: 240px;
  animation-delay: -2s;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(0.8deg); }
}

.float-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.float-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.match-icon { background: rgba(0, 212, 176, 0.18); color: var(--brand-teal); }
.summary-icon { background: rgba(24, 120, 243, 0.22); color: #6cb1ff; }

.float-card-label {
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.float-card-score {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
}
.score-value { font-size: 2.2rem; line-height: 1; }
.score-unit { font-size: 1.1rem; opacity: 0.7; margin-inline-start: 4px; }

.float-card-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.float-card-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-teal), #5cf2d3);
  border-radius: 99px;
  box-shadow: 0 0 12px var(--brand-teal-glow);
}

.float-card-foot {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.float-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-pass {
  background: var(--brand-teal);
  box-shadow: 0 0 0 5px rgba(0, 212, 176, 0.18), 0 0 14px var(--brand-teal-glow);
}

.float-card-strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.float-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 176, 0.18);
  color: var(--brand-teal);
}
.meta-pill-muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.float-card-typing {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.typing-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.typing-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  animation: typingShimmer 2s ease-in-out infinite;
}
.typing-line-2 { width: 78%; }
.typing-line-2::after { animation-delay: 0.4s; }
.typing-line-3 { width: 60%; }
.typing-line-3::after { animation-delay: 0.8s; }
@keyframes typingShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}
.avatar-gradient {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  box-shadow: 0 4px 12px rgba(24, 120, 243, 0.35);
}

.float-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
.float-card-tag svg { color: #ffd54a; }

/* Hero trust strip */
.hero-trust {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.trust-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.trust-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.trust-tag {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}


/* [09] ─────────── WORKFLOW TIMELINE ─────────── */
.workflow-section {
  background: var(--paper);
}

.workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.workflow-line {
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--ink-200);
  border-radius: 99px;
  z-index: 0;
}
.workflow-line-fill {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal));
  width: 0;
  transition: width 1.6s var(--ease-out);
  box-shadow: 0 0 12px rgba(24, 120, 243, 0.3);
}

.workflow-step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.workflow-node {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-200);
  display: grid;
  place-items: center;
  color: var(--ink-400);
  position: relative;
  transition: all 0.4s var(--ease-out);
}

.workflow-step.active .workflow-node {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: white;
  box-shadow: 0 0 0 6px rgba(24, 120, 243, 0.12), 0 8px 20px rgba(24, 120, 243, 0.3);
  transform: scale(1.05);
}

.workflow-step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.workflow-step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.workflow-step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}


/* [10] ─────────── FEATURES GRID ─────────── */
.features-section {
  background: var(--ink-50);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  position: relative;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 120, 243, 0.18);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  position: relative;
}
.feature-icon-blue {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #4f9eff 100%);
  color: white;
  box-shadow: 0 8px 16px rgba(24, 120, 243, 0.22);
}
.feature-icon-teal {
  background: linear-gradient(135deg, var(--brand-teal) 0%, #4cf0d3 100%);
  color: white;
  box-shadow: 0 8px 16px rgba(0, 212, 176, 0.25);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-blue-50);
}


/* [11] ─────────── DASHBOARD MOCKUP ─────────── */
.dashboard-section {
  background: linear-gradient(180deg, #07194a 0%, #0D2F7A 50%, #061238 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.dashboard-section::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 212, 176, 0.15) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.dashboard-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}

.dashboard-section .container { position: relative; z-index: 1; }

.dashboard-mockup {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  border-radius: var(--radius-xl);
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.5),
    0 30px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Browser chrome */
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--ink-50);
  border-bottom: 1px solid var(--border-subtle);
}
.chrome-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d4d8e0;
}
.chrome-dot:nth-child(1) { background: #ff5f57; }
.chrome-dot:nth-child(2) { background: #febc2e; }
.chrome-dot:nth-child(3) { background: #28c840; }
.chrome-url {
  flex: 1;
  margin-inline-start: 16px;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Body */
.mockup-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 540px;
}

.mockup-sidebar {
  background: var(--ink-50);
  border-inline-end: 1px solid var(--border-subtle);
  padding: 22px 16px;
}
.mockup-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 22px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.mockup-logo-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
}
.mockup-nav { display: flex; flex-direction: column; gap: 2px; }
.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: default;
  transition: all 0.2s ease;
}
.mockup-nav-item.active {
  background: var(--brand-blue-50);
  color: var(--brand-blue);
  font-weight: 600;
}
.mockup-nav-item.active svg { color: var(--brand-blue); }
.mockup-nav-item svg { color: var(--ink-400); flex-shrink: 0; }

.mockup-main {
  padding: 24px;
  background: var(--paper);
}

/* KPI cards */
.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.kpi {
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.kpi-accent {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(24, 120, 243, 0.25);
}
.kpi-label {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.kpi-accent .kpi-label { color: rgba(255, 255, 255, 0.75); }

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1;
}

.kpi-trend {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
}
.kpi-trend-up { color: #2bb673; }
.kpi-trend-down { color: var(--brand-teal); }
.kpi-accent .kpi-trend-down { color: #5cf2d3; }
.kpi-trend span { color: var(--text-muted); margin-inline-start: 4px; }
.kpi-accent .kpi-trend span { color: rgba(255, 255, 255, 0.7); }

/* Grid: table + side panels */
.mockup-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.mockup-panel {
  background: var(--paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.panel-head h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.panel-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--ink-100);
  color: var(--text-secondary);
}

/* Table */
.mockup-table {
  width: 100%;
  border-collapse: collapse;
}
.mockup-table th, .mockup-table td {
  padding: 12px 18px;
  text-align: start;
  font-size: 0.82rem;
}
.mockup-table th {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--ink-50);
}
.mockup-table td { border-bottom: 1px solid var(--border-light); }
.mockup-table tr:last-child td { border-bottom: none; }

.cell-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar-sm {
  width: 30px; height: 30px;
  font-size: 0.7rem;
}
.avatar-1 { background: linear-gradient(135deg, #6c63ff, #4d4ce0); }
.avatar-2 { background: linear-gradient(135deg, #f97316, #ea580c); }
.avatar-3 { background: linear-gradient(135deg, var(--brand-teal), #00a892); }
.avatar-4 { background: linear-gradient(135deg, #ec4899, #db2777); }

.cell-name-main { font-weight: 600; color: var(--text-primary); }
.cell-name-sub { font-size: 0.74rem; color: var(--text-muted); }

.match-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}
.match-pill-strong {
  background: rgba(0, 212, 176, 0.14);
  color: #00a892;
}
.match-pill-good {
  background: rgba(24, 120, 243, 0.12);
  color: var(--brand-blue);
}

.stage-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 500;
}
.stage-int { background: rgba(108, 99, 255, 0.12); color: #5b52e5; }
.stage-short { background: rgba(0, 212, 176, 0.14); color: #00a892; }
.stage-app { background: var(--ink-100); color: var(--text-secondary); }

/* Side panels */
.mockup-side { display: flex; flex-direction: column; gap: 16px; }

/* AI insight panel */
.mockup-panel-ai {
  background: linear-gradient(135deg, #07194a 0%, #0D2F7A 100%);
  color: white;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.mockup-panel-ai::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(0, 212, 176, 0.4), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.ai-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-teal);
  position: relative;
}
.ai-icon {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0, 212, 176, 0.18);
  border: 1px solid rgba(0, 212, 176, 0.3);
  display: grid;
  place-items: center;
  color: var(--brand-teal);
}
.ai-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--brand-teal);
  animation: aiPulse 2s ease-out infinite;
}
@keyframes aiPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.ai-panel-text {
  padding: 12px 18px 16px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}
.ai-panel-text strong { color: white; font-weight: 600; }

.ai-panel-actions {
  display: flex;
  gap: 8px;
  padding: 0 18px 16px;
  position: relative;
}
.ai-action {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-display);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}
.ai-action-primary {
  background: var(--brand-teal);
  color: var(--brand-navy-deep);
  border-color: transparent;
}

/* Pipeline panel */
.mockup-panel-pipeline { padding-bottom: 14px; }
.pipe-stage { padding: 10px 18px 6px; }
.pipe-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.pipe-count {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}
.pipe-bar {
  height: 6px;
  background: var(--ink-100);
  border-radius: 99px;
  overflow: hidden;
}
.pipe-fill {
  height: 100%;
  background: var(--ink-300);
  border-radius: 99px;
  transition: width 0.6s var(--ease-out);
}
.pipe-fill-2 { background: linear-gradient(90deg, var(--brand-blue), #4f9eff); }
.pipe-fill-3 { background: linear-gradient(90deg, #6c63ff, #8b85ff); }
.pipe-fill-4 { background: linear-gradient(90deg, var(--brand-teal), #5cf2d3); }


/* [12] ─────────── WHY SECTION ─────────── */
.why-section {
  background: var(--paper);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

.why-intro {
  position: sticky;
  top: 100px;
}
.why-intro .section-badge { margin-bottom: 18px; }
.why-intro .section-title { text-align: start; margin-bottom: 18px; }
.why-intro .section-sub { text-align: start; margin-inline: 0; }

.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--ink-50);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}
.why-item:hover {
  transform: translateX(4px);
  background: var(--paper);
  border-color: rgba(24, 120, 243, 0.2);
  box-shadow: var(--shadow-md);
}
html[dir="rtl"] .why-item:hover { transform: translateX(-4px); }

.why-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: -0.02em;
  line-height: 1;
}

.why-item-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.why-item-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Quote */
.why-quote {
  position: relative;
  padding: 40px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-blue-50) 0%, #f0f7ff 100%);
  border: 1px solid rgba(24, 120, 243, 0.12);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.quote-mark {
  color: rgba(24, 120, 243, 0.2);
  margin: 0 auto 12px;
}
.why-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.why-quote-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.quote-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
}
.quote-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.quote-role {
  font-size: 0.82rem;
  color: var(--text-secondary);
}


/* [13] ─────────── CTA SECTION ─────────── */
.cta-section {
  background: linear-gradient(180deg, #061238 0%, #0D2F7A 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mesh-blob-cta-1 {
  width: 500px; height: 500px;
  top: -100px; left: -150px;
  background: radial-gradient(circle, rgba(24, 120, 243, 0.5), transparent 70%);
  filter: blur(80px);
  opacity: 0.6;
  position: absolute;
  border-radius: 50%;
  animation: meshDrift 18s ease-in-out infinite alternate;
}
.mesh-blob-cta-2 {
  width: 450px; height: 450px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(0, 212, 176, 0.4), transparent 70%);
  filter: blur(80px);
  opacity: 0.5;
  position: absolute;
  border-radius: 50%;
  animation: meshDrift 22s ease-in-out infinite alternate-reverse;
}

.cta-card {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 32px;
  z-index: 1;
}

.cta-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 176, 0.12);
  color: var(--brand-teal);
  border: 1px solid rgba(0, 212, 176, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: white;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 560px;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.cta-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-meta svg { color: var(--brand-teal); flex-shrink: 0; }


/* [13b] ─────────── SIGNUP SECTION (3 paths) ─────────── */
.signup-section {
  background: linear-gradient(180deg, #f8fafd 0%, #ffffff 100%);
  position: relative;
}

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

.signup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 28px 28px;
  background: var(--paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}
.signup-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 120, 243, 0.18);
  box-shadow: var(--shadow-lg);
}

/* Featured (Recruiter) — most popular */
.signup-card-featured {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border-color: rgba(24, 120, 243, 0.4);
  border-width: 2px;
  box-shadow: 0 16px 48px rgba(13, 47, 122, 0.12);
  transform: translateY(-8px);
}
.signup-card-featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 64px rgba(13, 47, 122, 0.18);
}

.signup-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  color: white;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(24, 120, 243, 0.35);
  white-space: nowrap;
}
.signup-card-badge-new {
  background: linear-gradient(135deg, var(--brand-teal) 0%, #00a88c 100%);
  box-shadow: 0 4px 12px rgba(0, 212, 176, 0.35);
}

.signup-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.signup-icon-blue {
  background: linear-gradient(135deg, #4f9eff 0%, var(--brand-blue) 100%);
  color: white;
  box-shadow: 0 8px 16px rgba(24, 120, 243, 0.22);
}
.signup-icon-teal {
  background: linear-gradient(135deg, var(--brand-teal) 0%, #00a88c 100%);
  color: white;
  box-shadow: 0 8px 16px rgba(0, 212, 176, 0.25);
}
.signup-icon-gradient {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  color: white;
  box-shadow: 0 8px 16px rgba(13, 47, 122, 0.3);
}

.signup-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.signup-card-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.signup-card-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px dashed var(--border-subtle);
  border-bottom: 1px dashed var(--border-subtle);
  margin-bottom: 18px;
}
.price-tag {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.01em;
}
.price-tag-featured {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-period {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.signup-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signup-card-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.signup-card-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-blue-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231878F3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* RTL: list bullets flip */
body.rtl .signup-card-features li {
  padding-left: 0;
  padding-right: 26px;
}
body.rtl .signup-card-features li::before {
  left: auto;
  right: 0;
}


/* [13c] ─────────── SIGNUP MODAL ─────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 56, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.25s ease-out;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 80px rgba(6, 18, 56, 0.4);
  animation: modalSlideUp 0.3s var(--ease-out);
}
@keyframes modalSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--ink-100);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close:hover { background: var(--ink-200); color: var(--text-primary); }
body.rtl .modal-close { right: auto; left: 14px; }

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* User type tabs */
.signup-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: var(--ink-100);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}
.signup-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.signup-tab:hover { color: var(--text-primary); }
.signup-tab.active {
  background: var(--paper);
  color: var(--brand-navy);
  box-shadow: var(--shadow-xs);
}
.signup-tab .tab-emoji { font-size: 1.05rem; }

/* Form */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-group .optional {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 0.78rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.94rem;
  color: var(--text-primary);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(24, 120, 243, 0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
}

/* Phone input: country code select + local number side-by-side */
.phone-input-group {
  display: flex;
  gap: 8px;
}
.phone-input-group select {
  flex: 0 0 auto;
  width: auto;
  min-width: 132px;
  max-width: 180px;
  padding-right: 28px;
  /* Custom chevron */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
body.rtl .phone-input-group select {
  background-position: left 10px center;
  padding-right: 14px;
  padding-left: 28px;
}
.phone-input-group input {
  flex: 1 1 auto;
  min-width: 0;
}

/* Phone direction stays LTR even in Arabic mode (numbers + plus prefix) */
.phone-input-group select,
.phone-input-group input[type="tel"] {
  direction: ltr;
  text-align: left;
}
body.rtl .phone-input-group select,
body.rtl .phone-input-group input[type="tel"] {
  text-align: left;
}

/* Subtle hint below input */
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.form-checkbox .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
  font-weight: 400;
}
.form-checkbox .checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand-blue);
  width: 16px;
  height: 16px;
}
.form-checkbox a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 6px;
}
.btn-spinner.active { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  display: none;
  padding: 12px 16px;
  margin-top: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #b91c1c;
  font-size: 0.88rem;
  line-height: 1.5;
}
.form-error.active { display: block; }

.modal-footer {
  text-align: center;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.modal-footer .login-link {
  color: var(--brand-blue);
  font-weight: 600;
  margin-left: 4px;
  text-decoration: none;
}
.modal-footer .login-link:hover { text-decoration: underline; }

/* Success modal */
.modal-success {
  text-align: center;
  max-width: 480px;
}
.success-icon {
  font-size: 3.2rem;
  margin-bottom: 14px;
}
.success-message {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.api-key-block {
  text-align: left;
  margin: 20px 0 24px;
}
body.rtl .api-key-block { text-align: right; }
.api-key-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.api-key-value {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.82rem;
  padding: 14px;
  background: var(--ink-100);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
  word-break: break-all;
  /* keep API key LTR even in Arabic mode */
  direction: ltr;
  text-align: left;
}
.api-key-warning {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: #92400e;
  line-height: 1.5;
}

.btn-full { width: 100%; justify-content: center; }


/* [14] ─────────── FOOTER ─────────── */
.footer {
  background: #050d28;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 32px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo {
  height: 36px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}
.footer-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 360px;
  margin-bottom: 18px;
}
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-tag {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 6px;
}
.footer-link {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--brand-teal); }
.footer-link-strong { color: white; font-weight: 500; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}


/* [15] ─────────── ANIMATIONS / GSAP ENTRY STATES ─────────── */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
}
[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .float-card { animation: none; }
}


/* [16] ─────────── RTL OVERRIDES ─────────── */
html[dir="rtl"] body { letter-spacing: 0; }

/* Mirror float card positions */
html[dir="rtl"] .float-card-1 { left: auto; right: -4%; }
html[dir="rtl"] .float-card-2 { right: auto; left: -2%; }
html[dir="rtl"] .float-card-3 { left: auto; right: 0; }
html[dir="rtl"] .float-card-4 { right: auto; left: -4%; }

/* Mesh blobs mirror naturally with absolute positions; mirror to feel right */
html[dir="rtl"] .mesh-blob-2 { right: auto; left: -80px; }

/* Workflow line direction (gradient stays the same — feels OK for both) */

/* Numbers in why-list — keep latin */
html[dir="rtl"] .why-num,
html[dir="rtl"] .workflow-step-num,
html[dir="rtl"] .kpi-value,
html[dir="rtl"] .kpi-trend,
html[dir="rtl"] .pipe-count,
html[dir="rtl"] .match-pill,
html[dir="rtl"] .chrome-url,
html[dir="rtl"] .float-card-score {
  direction: ltr;
  unicode-bidi: embed;
}

/* Footer logo flip for AR-locale logo file */
html[dir="rtl"] .footer-logo,
html[dir="rtl"] .nav-logo {
  /* logo is symbol-based in our brand — no flip needed; left for clarity */
}


/* [17] ─────────── RESPONSIVE ─────────── */

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-pad: 90px; }

  .hero-inner { grid-template-columns: 1fr; gap: 80px; }
  .hero-visual { height: 480px; max-width: 480px; margin: 0 auto; width: 100%; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .signup-grid { grid-template-columns: 1fr; gap: 20px; max-width: 540px; margin-inline: auto; }
  .signup-card-featured { transform: none; }
  .signup-card-featured:hover { transform: translateY(-4px); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-intro { position: static; }
  .why-intro .section-title, .why-intro .section-sub { text-align: center; margin-inline: auto; }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 70px;
    --container-pad: 20px;
  }

  /* Nav */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform 0.3s var(--ease-out);
    gap: 0;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); }
  .mobile-toggle { display: flex; }

  /* Hide language label briefly on small screens? Keep it. */
  .nav-actions .btn-sm { display: none; }

  /* Hero */
  .hero { padding-top: calc(var(--nav-height) + 50px); padding-bottom: 70px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .hero-visual { height: 420px; }

  .float-card { padding: 14px; }
  .float-card-1, .float-card-2, .float-card-3, .float-card-4 { width: 200px; }
  .float-card-1 { top: 4%; left: 0; }
  .float-card-2 { top: 8%; right: 0; width: 180px; }
  .float-card-3 { bottom: 12%; left: 0; }
  .float-card-4 { bottom: 6%; right: 0; }

  .visual-core { width: 90px; height: 90px; }
  .core-inner { width: 64px; height: 64px; font-size: 1.2rem; }

  /* Workflow — vertical layout on mobile */
  .workflow-track {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .workflow-line, .workflow-line-fill {
    top: 30px; bottom: 30px;
    left: 30px; right: auto;
    height: auto; width: 2px;
  }
  html[dir="rtl"] .workflow-line, html[dir="rtl"] .workflow-line-fill {
    left: auto; right: 30px;
  }
  .workflow-line-fill { width: 2px; height: 0; transition: height 1.6s var(--ease-out); }
  .workflow-step { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 16px; text-align: start; }
  .workflow-node { margin: 0; }
  .workflow-content { padding-block: 4px; }
  .workflow-step-desc { max-width: none; margin: 0; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px; }

  /* Dashboard */
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
  .mockup-kpis { grid-template-columns: repeat(2, 1fr); }
  .mockup-grid { grid-template-columns: 1fr; }
  .mockup-table th:nth-child(3), .mockup-table td:nth-child(3) { display: none; }
  .mockup-main { padding: 16px; }
  .chrome-url { font-size: 0.7rem; padding: 4px 8px; }

  /* Why */
  .why-item { grid-template-columns: 50px 1fr; padding: 18px; gap: 14px; }
  .why-num { font-size: 1.3rem; }

  /* Quote */
  .why-quote { padding: 28px 24px; }

  /* CTA */
  .cta-card { padding: 36px 16px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .cta-meta { gap: 12px; flex-direction: column; align-items: center; }

  /* Footer */
  .footer { padding: 50px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Signup section + modal */
  .nav-login { display: none; }
  .signup-card { padding: 28px 22px 22px; }
  .modal-content { padding: 28px 22px; }
  .modal-title { font-size: 1.3rem; }
  .signup-tab { font-size: 0.78rem; padding: 9px 4px; }
  .signup-tab .tab-emoji { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.7rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat-value { font-size: 1.5rem; }
}
