/* ============================================================
   HybridNetworks — Design System
   Modern Telecom Corporate Site
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary palette */
  --primary: #0088CC;
  --primary-dark: #006DA8;
  --primary-light: #33a3d9;
  --primary-glow: rgba(0, 136, 204, 0.35);
  --primary-bg: #E6F4FF;

  /* Accent */
  --accent: #00D4AA;
  --accent-dark: #00B892;
  --accent-glow: rgba(0, 212, 170, 0.25);

  /* Dark surfaces */
  --dark: #0A0F1A;
  --dark-surface: #111827;
  --dark-card: #1a2234;
  --dark-muted: #1E293B;
  --dark-border: #2a3550;

  /* Text */
  --text-white: #F8FAFC;
  --text-light: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dark: #1E293B;
  --text-body: #334155;

  /* Light surfaces */
  --light-bg: #F8FAFC;
  --white: #FFFFFF;

  /* Functional */
  --success: #10B981;
  --error: #EF4444;

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 7rem);
  --container-px: clamp(1.25rem, 4vw, 2rem);
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --shadow-glow: 0 0 30px var(--primary-glow);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
  --duration-slow: 0.6s;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--primary-light);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background-color: var(--primary);
  color: var(--white);
}

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

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

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

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

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

.section--light .section__subtitle {
  color: var(--text-body);
}

.section--primary {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0099e6 100%);
}

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section--light .section__tag {
  color: var(--primary);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn--outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}

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

.btn--light {
  background: var(--white);
  color: var(--primary-dark);
}

.btn--light:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--primary);
  padding: 0.5rem 0;
  border-radius: 0;
}

.btn--ghost::after {
  content: '→';
  transition: transform var(--duration) var(--ease);
}

.btn--ghost:hover {
  color: var(--primary-light);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.875rem 0;
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.navbar.scrolled {
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.navbar__logo img {
  height: 32px;
  width: auto;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  /* On desktop, menu grows and items start right after logo to avoid trailing space */
  flex: 1;
  justify-content: flex-end;
  padding-left: 1.25rem;
}

.navbar__link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.navbar__link--home-only {
  display: none;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.navbar__link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.navbar__cta {
  margin-left: 0.75rem;
}

.navbar__toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 0.5rem;
  z-index: 1001;
}

.navbar__toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

/* Mobile Nav */
@media (max-width: 991px) {
  .navbar__toggle {
    display: block;
  }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--dark-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0.25rem;
    transition: right var(--duration-slow) var(--ease);
    border-left: 1px solid var(--dark-border);
  }

  .navbar__menu.open {
    right: 0;
  }

  .navbar__link {
    font-size: 1.0625rem;
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .navbar__link--home-only {
    display: block;
  }

  .navbar__cta {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }

  .navbar__cta .btn {
    width: 100%;
  }

  .navbar__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .navbar__overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .navbar__toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar__toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 15, 26, 0.80) 0%,
      rgba(10, 15, 26, 0.65) 40%,
      rgba(10, 15, 26, 0.85) 100%);
  z-index: 1;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero__particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.15;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.15;
  }

  90% {
    opacity: 0.15;
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 136, 204, 0.12);
  border: 1px solid rgba(0, 136, 204, 0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1.75rem;
  letter-spacing: 0.04em;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

@keyframes scroll-bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 0;
  position: relative;
  z-index: 5;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats__item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}

.stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stats__number {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stats__label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item:nth-child(2)::after {
    display: none;
  }

  .stats__item {
    padding: 1.75rem 1rem;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 136, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--duration) var(--ease);
}

.service-card:hover .service-card__icon {
  background: rgba(0, 136, 204, 0.2);
  transform: scale(1.05);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 991px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.75rem 1.5rem;
  }
}

/* ============================================================
   SOLUTIONS / PROJECTS
   ============================================================ */
.solutions__filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--dark-border);
  border-radius: 100px;
  transition: all var(--duration) var(--ease);
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  color: var(--text-white);
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.section--light .filter-btn {
  color: var(--text-body);
  border-color: #d1d5db;
}

.section--light .filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.section--light .filter-btn.active {
  color: var(--white);
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.solution-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.solution-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.solution-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.solution-card:hover .solution-card__img img {
  transform: scale(1.05);
}

/* Hover overlay with label */
.solution-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 102, 204, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.solution-card:hover .solution-card__overlay {
  opacity: 1;
}

.solution-card__view {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.25rem;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 100px;
  backdrop-filter: blur(2px);
}

.solution-card__body {
  padding: 1.25rem;
}

.solution-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solution-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
  background: var(--primary-bg);
  color: var(--primary);
  letter-spacing: 0.02em;
}

.solution-card.hidden { display: none; }

/* Grid transition for pagination */
.solutions__grid {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.solutions__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--text-body);
  font-size: 1rem;
}

@media (max-width: 991px) {
  .solutions__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .solutions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .solutions__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__content {
  max-width: 540px;
}

.about__text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.about__feature {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.about__feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.about__feature-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
}

.about__feature-text {
  font-size: 0.9375rem;
  color: var(--text-light);
  font-weight: 500;
}

.about__visual {
  position: relative;
}

.about__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about__image-wrap img {
  width: 100%;
  display: block;
}

.about__float-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}

.about__float-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.about__float-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 991px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .about__content {
    max-width: none;
    text-align: center;
  }

  .about__features {
    align-items: center;
  }
}

/* ============================================================
   TECHNOLOGIES / BRANDS
   ============================================================ */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
}

.tech__item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
  border: 1px solid #e5e7eb;
  min-height: 90px;
}

.tech__item img {
  max-height: 54px;
  width: auto;
  max-width: 120px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--duration) var(--ease);
  object-fit: contain;
}

.tech__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-bg);
}

.tech__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials__slider {
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

.testimonials__track {
  display: flex;
  transition: transform var(--duration-slow) var(--ease);
}

.testimonial-card {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-card__inner {
  text-align: center;
  padding: 3rem 2rem;
}

.testimonial-card__stars {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.testimonial-card__stars svg {
  width: 20px;
  height: 20px;
  fill: #F59E0B;
}

.testimonial-card__quote {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-white);
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
}

.testimonial-card__quote::before {
  content: '"';
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
  display: block;
  margin-bottom: -1rem;
}

.testimonial-card__author {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-white);
}

.testimonial-card__role {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.testimonials__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1.5rem;
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark-border);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  border: none;
  padding: 0;
}

.testimonials__dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 3rem;
}

.contact__form-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form__row--full {
  grid-template-columns: 1fr;
}

.form__group {
  display: flex;
  flex-direction: column;
}

.form__group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.375rem;
}

.form__input,
.form__textarea,
.form__select {
  padding: 0.75rem 1rem;
  background: var(--dark-muted);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 0.9375rem;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  outline: none;
  width: 100%;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__select option {
  background: var(--dark-surface);
  color: var(--text-white);
}

.form__submit {
  margin-top: 0.5rem;
}

.form__alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: none;
}

.form__alert--success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
}

.form__alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--error);
}

.contact__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact__info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
}

.contact__info-card>div {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact__info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 136, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
}

.contact__info-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact__info-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-white);
}

.contact__info-value a {
  color: var(--text-white);
}

.contact__info-value a:hover {
  color: var(--primary);
}

.contact__info-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.contact__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact__social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}

.contact__social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  transition: fill var(--duration) var(--ease);
}

.contact__social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact__social-link:hover svg {
  fill: var(--white);
}

.contact__info-card--social {
  grid-column: 1 / -1;
}

.contact__map {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  margin-top: 0.5rem;
  border: 1px solid var(--dark-border);
}

.contact__map .leaflet-container {
  height: 100%;
  width: 100%;
}

@media (max-width: 991px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .contact__info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .form__row {
    grid-template-columns: 1fr;
  }

  .contact__form-card {
    padding: 1.75rem;
  }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  text-align: center;
  padding: 4rem 2rem;
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-banner__text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  padding: 3rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer__brand p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.65;
}

.footer__brand img {
  height: 32px;
  width: auto;
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  fill: none;
  flex-shrink: 0;
  margin-top: 4px;
}

.footer__bottom {
  border-top: 1px solid var(--dark-border);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer__legal a {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__legal a:hover {
  color: var(--primary);
}

@media (max-width: 991px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand img {
    margin: 0 auto;
  }

  .footer__contact-item {
    justify-content: center;
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration) var(--ease);
  z-index: 999;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Leaflet style overrides for dark theme */
.leaflet-control-attribution {
  font-size: 10px !important;
}

/* ============================================================
   PLANES & UTILITIES
   ============================================================ */
@media (min-width: 992px) {
  .mobile-only {
    display: none !important;
  }
}

.planes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.plan-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--duration) var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.plan-card--featured {
  background: linear-gradient(180deg, var(--dark-card) 0%, rgba(0, 136, 204, 0.1) 100%);
  border: 2px solid var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.plan-card--featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.plan-card__header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--dark-border);
}

.plan-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.plan-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.plan-card__features {
  flex-grow: 1;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-light);
}

.plan-card__features li.disabled {
  color: var(--text-muted);
  opacity: 0.6;
}

.plan-card__features svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-card__features li.disabled svg {
  stroke: var(--text-muted);
}

.btn--full {
  width: 100%;
}

@media (max-width: 991px) {
  .planes__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .plan-card--featured {
    transform: scale(1);
    order: -1;
  }

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

/* ============================================================
   COGNITUM-STYLE EVOLUTION / PLANES SECTION
   ============================================================ */

/* Color tokens for the three plan accent colors */
:root {
  --evo-primary-color: var(--accent);          /* teal/green for featured */
  --evo-primary-bg: rgba(0, 212, 170, 0.08);
  --evo-primary-border: rgba(0, 212, 170, 0.25);
  --evo-blue-color: var(--primary-light);       /* blue for Basic */
  --evo-blue-bg: rgba(0, 136, 204, 0.08);
  --evo-blue-border: rgba(0, 136, 204, 0.2);
  --evo-gold-color: #F59E0B;                    /* gold for Enterprise */
  --evo-gold-bg: rgba(245, 158, 11, 0.08);
  --evo-gold-border: rgba(245, 158, 11, 0.2);
}

/* Stack wrapper */
.evo__stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Row for secondary cards */
.evo__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ---- Base card ---- */
.evo-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.evo-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--shadow-lg);
}

/* ---- Featured card ---- */
.evo-card--featured {
  background: var(--dark-card);
  border: 1px solid var(--evo-primary-border);
}

.evo-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.12);
}

/* ---- Status badge (top-right corner) ---- */
.evo-card__status {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.evo-card__status svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.evo-card__status--active {
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: var(--accent);
}

.evo-card__status--neutral {
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: var(--text-muted);
}

.evo-card__status--gold {
  background: var(--evo-gold-bg);
  border: 1px solid var(--evo-gold-border);
  color: var(--evo-gold-color);
}

/* ---- Two-column body inside featured card ---- */
.evo-card__body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
}

/* ---- Card Head: icon + title row ---- */
.evo-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* ---- Icon box ---- */
.evo-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.evo-card__icon svg {
  width: 26px;
  height: 26px;
}

.evo-card__icon--primary {
  background: var(--evo-primary-bg);
  border: 1px solid var(--evo-primary-border);
}

.evo-card__icon--primary svg {
  stroke: var(--accent);
}

.evo-card__icon--blue {
  background: var(--evo-blue-bg);
  border: 1px solid var(--evo-blue-border);
}

.evo-card__icon--blue svg {
  stroke: var(--evo-blue-color);
}

.evo-card__icon--gold {
  background: var(--evo-gold-bg);
  border: 1px solid var(--evo-gold-border);
}

.evo-card__icon--gold svg {
  stroke: var(--evo-gold-color);
}

/* ---- Title & subtitle ---- */
.evo-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.evo-card__subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
}

/* ---- Description ---- */
.evo-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

/* ---- Specs grid 2x2 ---- */
.evo-specs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.evo-spec-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color var(--duration) var(--ease);
}

.evo-spec-box:hover {
  border-color: rgba(255,255,255,0.15);
}

.evo-spec-box__value {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-mono);
}

.evo-spec-box--blue .evo-spec-box__value {
  color: var(--evo-blue-color);
}

.evo-spec-box--gold .evo-spec-box__value {
  color: var(--evo-gold-color);
}

.evo-spec-box__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
}

.evo-spec-box__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ---- Right column: checklist ---- */
.evo-card__right {
  display: flex;
  flex-direction: column;
  padding-top: 0.25rem;
}

.evo-card__what-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.evo-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
  margin-bottom: 1.75rem;
}

.evo-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}

.evo-checklist li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--accent);
}

/* ---- Featured CTA button ---- */
.evo-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: var(--dark);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  border: none;
  cursor: pointer;
}

.evo-card__cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.evo-card__cta:hover {
  background: var(--accent-dark);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* ---- Secondary card small CTA ---- */
.evo-card__cta-sm {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
  margin-top: 1.25rem;
  transition: color var(--duration) var(--ease), gap var(--duration) var(--ease);
  gap: 0.25rem;
}

.evo-card__cta-sm:hover {
  color: var(--white);
  gap: 0.5rem;
}

/* ---- Features block (secondary cards) ---- */
.evo-features {
  margin-top: 1.5rem;
  border-top: 1px solid var(--dark-border);
  padding-top: 1.25rem;
}

.evo-features__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.evo-features__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.evo-features__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}

.evo-features__list svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--accent);
}

.evo-card--secondary .evo-features__list svg {
  stroke: var(--primary-light);
}

.evo-card:nth-child(2) .evo-features__list svg {
  stroke: var(--evo-gold-color);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .evo-card__body {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

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

  .evo-card__status {
    position: static;
    display: inline-flex;
    margin-bottom: 1rem;
  }
}

}

@media (max-width: 575px) {
  .evo-specs__grid {
    grid-template-columns: 1fr 1fr;
  }

  .evo-card {
    padding: 1.5rem;
  }
}

/* ============================================================
   SOLUTION MODAL
   ============================================================ */
.sol-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sol-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.sol-modal__box {
  position: relative;
  background: var(--dark-card, #141c2b);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.26,0.64,1), opacity 0.25s ease;
  opacity: 0;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.sol-modal.open .sol-modal__box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close button */
.sol-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted, #94a3b8);
  transition: background 0.2s ease, color 0.2s ease;
}

.sol-modal__close:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.sol-modal__close svg {
  width: 16px;
  height: 16px;
}

/* Content */
.sol-modal__content {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.sol-modal__tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: var(--primary-bg, rgba(0,136,204,0.12));
  color: var(--primary-light, #00aaff);
  border: 1px solid rgba(0,136,204,0.2);
}

.sol-modal__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.sol-modal__desc {
  font-size: 0.9375rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.75;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.875rem;
}

.sol-modal__cta {
  margin-top: 0.5rem;
  align-self: flex-start;
}

@media (max-width: 575px) {
  .sol-modal__box {
    padding: 2rem 1.25rem 1.5rem;
  }
  .sol-modal__title {
    font-size: 1.125rem;
  }
}

/* ============================================================
   SOLUTIONS PAGINATION
   ============================================================ */
.solutions__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.pagination__btn,
.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--text-body, #374151);
  transition: all 0.2s ease;
  min-width: 2.5rem;
}

.pagination__btn:hover:not(:disabled),
.pagination__num:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg, rgba(0,102,204,0.06));
}

.pagination__num.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow, rgba(0,102,204,0.3));
}

.pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============================================================
   FIELD HIGHLIGHT — autocomplete desde modal "Consultar este servicio"
   ============================================================ */
.field--highlight {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow), 0 0 12px rgba(0, 136, 204, 0.25) !important;
  animation: highlight-pulse 1.8s ease-out forwards;
}

@keyframes highlight-pulse {
  0% {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.35), 0 0 20px rgba(0, 212, 170, 0.2);
  }
  40% {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow), 0 0 16px rgba(0, 136, 204, 0.3);
  }
  100% {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
  }
}