/* ============================================================
   TheRankLab – Main Stylesheet
   Local SEO & AI Automation Agency
   ============================================================ */

/* ── Google Fonts Import ────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design System: CSS Custom Properties ───────────────────── */
:root {
  /* Brand Colors */
  --primary:        #1e73be;
  --primary-dark:   #155a9a;
  --primary-light:  #3b8fd4;
  --accent:         #C328A7;
  --accent-dark:    #9d1f87;
  --accent-light:   #d94ec0;

  /* Background Colors */
  --dark:           #1a1a2e;
  --dark2:          #222222;
  --dark3:          #0d1b2a;
  --light-bg:       #f7f8f9;
  --white:          #ffffff;
  --card-bg:        #ffffff;

  /* Text Colors */
  --text:           #444444;
  --text-light:     #888888;
  --text-muted:     #aaaaaa;
  --text-dark:      #1a1a2e;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #1e73be 0%, #C328A7 100%);
  --gradient-dark:  linear-gradient(135deg, #1a1a2e 0%, #0d1b2a 100%);
  --gradient-hero:  linear-gradient(160deg, #1a1a2e 0%, #0d1b2a 60%, #111827 100%);
  --gradient-card:  linear-gradient(145deg, rgba(30, 115, 190, 0.05) 0%, rgba(195, 40, 167, 0.05) 100%);

  /* Typography */
  --font-family:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-xs:        0.75rem;    /* 12px */
  --font-sm:        0.875rem;   /* 14px */
  --font-base:      1rem;       /* 16px */
  --font-md:        1.125rem;   /* 18px */
  --font-lg:        1.25rem;    /* 20px */
  --font-xl:        1.5rem;     /* 24px */
  --font-2xl:       1.875rem;   /* 30px */
  --font-3xl:       2.25rem;    /* 36px */
  --font-4xl:       3rem;       /* 48px */
  --font-5xl:       3.75rem;    /* 60px */
  --font-6xl:       4.5rem;     /* 72px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-lg:  0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-xl:  0 20px 60px rgba(0, 0, 0, 0.16), 0 8px 20px rgba(0, 0, 0, 0.10);
  --shadow-brand: 0 8px 30px rgba(30, 115, 190, 0.35);
  --shadow-accent: 0 8px 30px rgba(195, 40, 167, 0.30);

  /* Transitions */
  --transition-fast:   all 0.15s ease;
  --transition-base:   all 0.25s ease;
  --transition-slow:   all 0.40s ease;
  --transition-spring: all 0.30s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max:  1200px;
  --navbar-height:  72px;
  --section-pad-y:  var(--space-24);

  /* Glass Morphism */
  --glass-bg:     rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur:   blur(16px);
}

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

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

body {
  font-family: var(--font-family);
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

p {
  line-height: 1.7;
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input,
textarea,
select {
  font-family: var(--font-family);
}

/* ── Utility: Container ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

/* ── Utility: Gradient Text ─────────────────────────────────── */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ── Utility: Section Titles ────────────────────────────────── */
.section-title {
  font-size: var(--font-3xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  color: var(--text-dark);
}

.section-subtitle {
  font-size: var(--font-md);
  font-weight: 400;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--space-4);
}

/* ── Utility: Tag / Pill ────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(30, 115, 190, 0.12);
  color: var(--primary);
  border: 1px solid rgba(30, 115, 190, 0.25);
}

.tag--accent {
  background: rgba(195, 40, 167, 0.10);
  color: var(--accent);
  border-color: rgba(195, 40, 167, 0.22);
}

.tag--light {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.90);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Utility: Buttons ───────────────────────────────────────── */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--font-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-brand);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: var(--transition-base);
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(30, 115, 190, 0.50);
}

.btn-primary:hover::before {
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-brand);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0);
}

.btn-ghost--dark {
  color: var(--text-dark);
  border-color: rgba(30, 30, 46, 0.25);
  backdrop-filter: none;
}

.btn-ghost--dark:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(30, 115, 190, 0.06);
}

.btn-sm {
  padding: 0.55rem var(--space-5);
  font-size: var(--font-sm);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-base);
}

.navbar--scrolled {
  background: rgba(26, 26, 46, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.navbar--light {
  background: rgba(255, 255, 255, 0.90);
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

.navbar--light .nav-link {
  color: var(--text-dark);
}

.navbar--light .nav-link:hover {
  color: var(--primary);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-lg);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo:hover {
  color: var(--white);
  opacity: 0.90;
}

.navbar__logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 53px;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar__logo-text span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav Links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  font-size: var(--font-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: var(--transition-base);
  transform-origin: left center;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--white);
}

/* Navbar CTA */
.navbar__cta {
  margin-left: var(--space-4);
  padding: 0.55rem var(--space-5);
  font-size: var(--font-sm);
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(30, 115, 190, 0.40);
  transition: var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.navbar__cta:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(30, 115, 190, 0.55);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  background: none;
  border: none;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  transform-origin: center;
}

.hamburger.is-open .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding: var(--space-6);
  z-index: 999;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.40);
  transform: translateY(-8px);
  opacity: 0;
  transition: var(--transition-base);
}

.mobile-menu.is-open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu .nav-link {
  font-size: var(--font-base);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  width: 100%;
}

.mobile-menu .nav-link::after {
  display: none;
}

.mobile-menu .navbar__cta {
  margin-left: 0;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-6);
  text-align: center;
  display: block;
  font-size: var(--font-base);
  width: 100%;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-hero);
  padding-top: var(--navbar-height);
}

/* Subtle grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Radial glow blobs */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(30, 115, 190, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(195, 40, 167, 0.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  width: 100%;
  padding: var(--space-20) var(--space-6);
}

/* Floating badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: var(--font-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-8);
  animation: floatBadge 3.5s ease-in-out infinite;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}

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

@keyframes pulseDot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}

/* Hero Headline */
.hero__headline {
  font-size: var(--font-5xl);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-6);
}

.hero__headline .gradient-text {
  display: inline-block;
}

/* Hero Subheadline */
.hero__sub {
  font-size: var(--font-lg);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.70);
  max-width: 640px;
  margin: 0 auto var(--space-10);
  line-height: 1.75;
}

/* Hero Buttons */
.hero__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

/* Stats Row */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: var(--space-6) var(--space-8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--space-8);
  position: relative;
}

.hero__stat + .hero__stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.hero__stat-number {
  font-size: var(--font-2xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.hero__stat-label {
  font-size: var(--font-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Animated counter class (JS-powered) */
.counter {
  display: inline-block;
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.40);
  font-size: var(--font-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scrollBounce 2.4s ease-in-out infinite;
  z-index: 1;
  cursor: pointer;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.35);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.8; }
}

/* ── Card Styles ────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: var(--transition-base);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(30, 115, 190, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--white);
}

.card--dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(30, 115, 190, 0.40);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
  box-shadow: var(--shadow-brand);
  flex-shrink: 0;
}

.card__title {
  font-size: var(--font-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text-dark);
}

.card--dark .card__title {
  color: var(--white);
}

.card__body {
  font-size: var(--font-sm);
  color: var(--text-light);
  line-height: 1.75;
}

.card--dark .card__body {
  color: rgba(255, 255, 255, 0.60);
}

/* ── Services Grid ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ── Section Shared ─────────────────────────────────────────── */
.section {
  padding: var(--section-pad-y) 0;
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section--dark .section-title {
  color: var(--white);
}

.section--dark .section-subtitle {
  color: rgba(255, 255, 255, 0.60);
}

.section--light {
  background: var(--light-bg);
}

/* ── Process / Steps ────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.30;
  z-index: 0;
}

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

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  font-size: var(--font-lg);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow-brand);
}

/* ── Testimonials / Review Cards ────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card__stars {
  color: #f59e0b;
  font-size: var(--font-md);
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: var(--font-sm);
  color: var(--text);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: var(--font-sm);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--font-sm);
  color: var(--text-dark);
}

.testimonial-card__role {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

/* ── Team Grid ──────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.team-card {
  text-align: center;
  transition: var(--transition-base);
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  object-fit: cover;
  margin-bottom: var(--space-4);
  background: var(--light-bg);
}

.team-card__name {
  font-weight: 700;
  font-size: var(--font-md);
  color: var(--text-dark);
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--font-sm);
  color: var(--text-light);
}

/* ── CTA / Banner Section ───────────────────────────────────── */
.cta-banner {
  background: var(--gradient-brand);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(30, 115, 190, 0.35);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner__title {
  font-size: var(--font-3xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-4);
  position: relative;
}

.cta-banner__sub {
  font-size: var(--font-md);
  color: rgba(255, 255, 255, 0.80);
  max-width: 520px;
  margin: 0 auto var(--space-8);
  position: relative;
}

.cta-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  position: relative;
}

/* ── Contact Form ───────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid rgba(0, 0, 0, 0.10);
  border-radius: var(--radius-lg);
  font-size: var(--font-sm);
  font-family: var(--font-family);
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition-fast);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 115, 190, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.70);
  padding: var(--space-20) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-lg);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.footer__logo:hover {
  opacity: 0.85;
  color: var(--white);
}

.footer__desc {
  font-size: var(--font-sm);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  max-width: 300px;
}

.footer__heading {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--font-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--white);
  padding-left: var(--space-2);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copy {
  font-size: var(--font-xs);
  color: rgba(255, 255, 255, 0.35);
}

/* ── Badges / Trust Indicators ──────────────────────────────── */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-6);
}

.divider--left {
  margin-left: 0;
}

/* ── Floating Elements / Decorative ─────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.blob--primary {
  background: rgba(30, 115, 190, 0.20);
}

.blob--accent {
  background: rgba(195, 40, 167, 0.16);
}

/* ── Animations ───────────────────────────────────────────���─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-delay-1 { animation-delay: 0.10s; }
.animate-delay-2 { animation-delay: 0.20s; }
.animate-delay-3 { animation-delay: 0.30s; }
.animate-delay-4 { animation-delay: 0.45s; }
.animate-delay-5 { animation-delay: 0.60s; }

/* ── Responsive: 1024px (Tablet) ────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --font-5xl:   3rem;
    --font-4xl:   2.5rem;
    --font-3xl:   2rem;
    --section-pad-y: var(--space-16);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .steps-grid::before {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .navbar__nav {
    gap: 0;
  }

  .nav-link {
    padding: var(--space-2) var(--space-2);
    font-size: var(--font-xs);
  }
}

/* ── Responsive: 768px (Mobile) ─────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --font-5xl:   2.25rem;
    --font-4xl:   2rem;
    --font-3xl:   1.75rem;
    --font-2xl:   1.5rem;
    --section-pad-y: var(--space-12);
    --navbar-height: 64px;
  }

  /* Hide desktop nav, show hamburger */
  .navbar__nav {
    display: none;
  }

  .navbar__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero adjustments */
  .hero__headline {
    font-size: var(--font-4xl);
  }

  .hero__sub {
    font-size: var(--font-base);
  }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .hero__buttons .btn-primary,
  .hero__buttons .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    gap: 0;
    flex-direction: column;
    padding: var(--space-4);
  }

  .hero__stat {
    padding: var(--space-4) var(--space-6);
    width: 100%;
  }

  .hero__stat + .hero__stat::before {
    top: 0;
    left: 25%;
    right: 25%;
    width: auto;
    height: 1px;
  }

  /* Grids: single column */
  .services-grid,
  .testimonials-grid,
  .steps-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: var(--font-2xl);
  }

  .cta-banner {
    padding: var(--space-10) var(--space-6);
  }

  .cta-banner__title {
    font-size: var(--font-2xl);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* ── Accessibility ──────────────────────────────────────────── */
@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;
  }
}

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

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── Selection ──────────────────────────────────────────────── */
::selection {
  background: rgba(30, 115, 190, 0.25);
  color: var(--text-dark);
}
