/* ===================================================================
   COMPONENTS.CSS — SpeedMaxNet (Magazine-Style Optimized)
   Buttons · Cards · Packages · Forms · Hero Elements · UI Pieces
=================================================================== */

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition:
    transform var(--trans-base),
    box-shadow var(--trans-base),
    background var(--trans-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity var(--trans-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-green);
  background: var(--green-dark);
}

.btn-primary:hover::after {
  opacity: 1;
}

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

.btn-primary .arrow-icon {
  transition: transform var(--trans-base);
  flex-shrink: 0;
}

.btn-primary:hover .arrow-icon {
  transform: translateX(5px);
}

.hero-actions .btn-primary {
  animation: float 3s ease-in-out infinite;
}

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

/* Button Sizes */
.btn-large {
  padding: 16px 32px;
  font-size: var(--text-lg);
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-base);
}

.btn-full {
  width: 100%;
}

/* Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  font-size: var(--text-lg);
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-ghost::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-ghost:hover::before {
  left: 100%;
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-ghost.dark {
  color: var(--black);
  border-color: rgba(0, 0, 0, 0.25);
}

.btn-ghost.dark:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-blue {
  background: var(--blue);
  color: var(--black);
}

.btn-blue:hover {
  box-shadow: var(--shadow-glow-blue);
  background: var(--blue-dark);
}

/* ── HERO ELEMENTS (OPTIMIZED) ──────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(141, 198, 63, 0.12);
  border: 1px solid rgba(141, 198, 63, 0.3);
  color: var(--green);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(141, 198, 63, 0.15);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: dotPulse 1.8s ease-in-out infinite;
}

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

/* Speed badge */
.speed-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  margin: 0 auto 16px;
  line-height: 1;
  box-shadow: var(--shadow-glow-green);
  animation: heroGlow 3s ease-in-out infinite;
}

.speed-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.speed-unit {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.speed-label {
  font-size: var(--text-xs);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title .line-1,
.hero-title .line-2 {
  display: block;
}

.hero-title .line-3.highlight {
  display: block;
  background: linear-gradient(
    90deg,
    var(--green) 0%,
    #b8f06a 50%,
    var(--green) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
  0%,
  100% {
    background-position: -100% 0;
  }
  50% {
    background-position: 100% 0;
  }
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 480px;
}

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

/* Speed comparison */
.speed-comparison {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 12px 24px;
}

.comparison-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.comp-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
}

.comp-speed {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1;
}

.comparison-item.slow .comp-speed {
  color: var(--gray-500);
}
.comparison-item.fast .comp-speed {
  color: var(--green);
}

.comp-speed small {
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0.7;
}

.vs-divider {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
}

/* ── SERVICE CARDS (OPTIMIZED) ──────────────────────────────────── */
.service-card {
  background: var(--gray-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
  cursor: default;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans-base);
}

.service-card[data-color="blue"]::before {
  background: var(--blue);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.featured {
  background: linear-gradient(
    135deg,
    rgba(141, 198, 63, 0.08) 0%,
    rgba(0, 0, 0, 1) 100%
  );
  border-color: rgba(141, 198, 63, 0.2);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 12px;
  margin-top: 16px;
}

.service-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: 0;
}

.card-number {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.card-icon-sm {
  margin-bottom: 8px;
  opacity: 0.85;
  transition: transform var(--trans-base);
}

.card-icon-lg {
  margin-bottom: 8px;
  opacity: 0.9;
  transition: transform var(--trans-base);
}
.card-icon-lg svg {
  width: 52px;
  height: 52px;
}
.service-card:hover .card-icon-lg {
  transform: scale(1.05);
}

.card-icon-sm {
  margin-bottom: 8px;
  opacity: 0.85;
  transition: transform var(--trans-base);
}
.service-card:hover .card-icon-sm {
  transform: scale(1.08);
}

.card-speed-badge {
  display: inline-block;
  background: rgba(141, 198, 63, 0.12);
  color: var(--green);
  border: 1px solid rgba(141, 198, 63, 0.3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 16px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: gap var(--trans-base);
  margin-top: 16px;
}
.card-link:hover {
  gap: 12px;
}

.feature-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  padding-left: 16px;
  position: relative;
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
}

.service-highlight {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.highlight-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.highlight-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.response-badge {
  margin-top: 20px;
  padding: 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.response-time {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}

.response-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Stats card */
.stats-card {
  display: flex;
  flex-direction: column;
}

.stats-card h3 {
  margin-top: 0;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  flex: 1;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.mini-stat-suffix {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--green);
}

.mini-stat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ── PACKAGE CARDS (OPTIMIZED) ──────────────────────────────────── */
.package-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all var(--trans-base);
  overflow: hidden;
}

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

.package-card.popular {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-glow-blue);
}

.package-card.popular:hover {
  border-color: var(--green);
}

.package-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--blue);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.package-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-top: 8px;
}

.package-speed-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0 12px;
}

.pkg-speed-val {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.pkg-speed-unit {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-500);
}

.pkg-speed-bar {
  width: 100%;
  height: 4px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 20px;
}

.pkg-speed-fill {
  height: 100%;
  background: var(--green);
  border-radius: var(--radius-full);
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}

.price-currency {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--gray-500);
  font-weight: 700;
}

.price-amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--black);
  line-height: 1;
}

.price-period {
  font-size: var(--text-base);
  color: var(--gray-500);
}

.pkg-features {
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.pkg-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-base);
  color: var(--gray-700);
}

.feature-check {
  width: 18px;
  height: 18px;
  background: rgba(141, 198, 63, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
  font-size: var(--text-xs);
  font-weight: 700;
}

.package-card .btn-primary {
  width: 100%;
}

@media (max-width: 768px) {
  .package-card {
    padding: 24px 20px;
  }
  .pkg-speed-val {
    font-size: var(--text-5xl);
  }
  .pkg-features {
    gap: 6px;
  }
  .pkg-feature {
    font-size: var(--text-sm);
  }
}

/* ── AUDIENCE SELECTOR (OPTIMIZED) ──────────────────────────────── */
.audience-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--trans-base);
  cursor: pointer;
}

.audience-btn .audience-icon {
  font-size: 1rem;
}

.audience-btn:hover {
  color: var(--black);
  background: var(--white);
}

.audience-btn.active {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

/* ── TIMELINE ELEMENTS (OPTIMIZED) ──────────────────────────────── */
.timeline-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition:
    transform var(--trans-base),
    box-shadow var(--trans-base);
}

.timeline-icon.green {
  background: rgba(141, 198, 63, 0.12);
  border: 1px solid rgba(141, 198, 63, 0.3);
}

.timeline-icon.blue {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.timeline-item:hover .timeline-icon.green {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-sm-g);
}

.timeline-item:hover .timeline-icon.blue {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-sm-b);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 12px;
}

.timeline-stat {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(141, 198, 63, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(141, 198, 63, 0.25);
}

/* ── COVERAGE ELEMENTS (OPTIMIZED) ──────────────────────────────── */
.kenya-outline {
  fill: var(--gray-100);
  stroke: var(--gray-300);
  stroke-width: 1.5;
}

.region.covered {
  fill: rgba(141, 198, 63, 0.35);
  stroke: var(--green);
  stroke-width: 2;
  cursor: pointer;
  transition: fill var(--trans-fast);
}

.region.covered:hover {
  fill: rgba(141, 198, 63, 0.6);
}

.region.coming-soon {
  fill: rgba(0, 212, 255, 0.2);
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  cursor: pointer;
}

.region.coming-soon:hover {
  fill: rgba(0, 212, 255, 0.35);
}

.region-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--black);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  dominant-baseline: middle;
  text-anchor: middle;
}

.coming-label {
  fill: var(--blue-dark);
}

.map-legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.map-legend-dot.covered {
  background: var(--green);
}
.map-legend-dot.coming {
  background: var(--blue);
}

.map-tooltip {
  position: absolute;
  background: var(--black);
  color: var(--white);
  font-size: var(--text-xs);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

.coverage-checker {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  max-width: 100%;
}

.checker-input-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 0;
  max-width: 100%;
}

.checker-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.location-input {
  width: 100%;
  max-width: 100%;
  padding: 12px 12px 12px 42px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  background: var(--white);
  color: var(--black);
  transition: border-color var(--trans-fast);
  box-sizing: border-box;
}

.location-input:focus {
  border-color: var(--green);
}
.location-input::placeholder {
  color: var(--gray-300);
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 50;
  margin-top: 4px;
}

.autocomplete-item {
  padding: 9px 14px;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--trans-fast);
}

.autocomplete-item:hover {
  background: var(--gray-100);
}

.coverage-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
}

.coverage-result.success {
  background: rgba(141, 198, 63, 0.1);
  border: 1px solid rgba(141, 198, 63, 0.3);
  color: var(--green-dark);
}

.coverage-result.coming-soon-msg {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--blue-dark);
}

.coverage-result.not-found {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.cov-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cov-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.cov-label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.notify-me {
  margin-top: 32px;
  padding: 24px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.notify-me p {
  font-size: var(--text-sm);
  color: var(--gray-700);
  margin-bottom: 12px;
  font-weight: 500;
}

.notify-form {
  display: flex;
  gap: 12px;
}

.notify-input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--white);
  transition: border-color var(--trans-fast);
}

.notify-input:focus {
  border-color: var(--green);
}

@media (max-width: 480px) {
  .coverage-checker {
    flex-direction: column;
    gap: 8px;
  }

  .checker-input-wrap {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .location-input {
    font-size: 16px;
    max-width: 100%;
  }

  .coverage-checker .btn-primary {
    width: 100%;
  }

  .notify-form {
    flex-direction: column;
    gap: 8px;
  }

  .notify-input {
    max-width: 100%;
  }

  .notify-form .btn-primary {
    width: 100%;
  }

  .coverage-result {
    font-size: 13px;
    word-wrap: break-word;
  }

  .cov-stat {
    flex: 0 1 30%;
  }
}

/* ── TESTIMONIALS (OPTIMIZED) ───────────────────────────────────── */
.testimonial-card {
  flex: 0 0 350px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  scroll-snap-align: start;
  transition: all var(--trans-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
  padding: 28px;
}

.quote-icon {
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: var(--text-lg);
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, #6ab026 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-weight: 600;
  color: var(--black);
  font-size: var(--text-base);
}

.author-title {
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.speed-upgrade {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(141, 198, 63, 0.1);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.speed-upgrade .before {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-decoration: line-through;
}

.speed-upgrade svg {
  color: var(--green);
}

.speed-upgrade .after {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 280px;
  }
  .testimonial-content {
    padding: 20px;
  }
}

/* ── BACK TO TOP BUTTON ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--green);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s var(--ease-out);
  z-index: var(--z-overlay);
  box-shadow: var(--shadow-md);
}

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

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

/* ── MODAL ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  z-index: var(--z-modal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  z-index: calc(var(--z-modal) + 1);
  box-shadow: var(--shadow-xl);
}

.modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--black);
}

.modal-content {
  padding: 32px;
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-content > p {
  color: var(--gray-700);
  margin-bottom: 24px;
}

.modal-content .form-group {
  margin-bottom: 16px;
}

.modal-content label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--text-base);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.15);
}

.modal-content textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-content .btn-full {
  margin-top: 8px;
}

/* ── CONTACT FORM ─────────────────────────────────────────────────── */
.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--black);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-400);
}

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

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.contact-form .btn-full {
  margin-top: 8px;
}

.form-success {
  background: rgba(141, 198, 63, 0.1);
  border: 1px solid var(--green);
  color: var(--green-dark);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: 16px;
}
