/* ============================================================
   CARGUU — APP FEATURES SHOWCASE
   Orange-themed — consistent with site design system.
   ============================================================ */

/* ── gradient-text utility ─────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #FF941F 0%, #ff6120 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section ─────────────────────────────────────────────────── */
.app-showcase-section {
  position: relative;
  overflow: hidden;
  background: #060A18;
  padding: 110px 0 120px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Strong left orange glow — same as hero & conductores */
.app-showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(255, 148, 31, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(255, 148, 31, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 148, 31, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Dot-grid texture */
.app-showcase-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 148, 31, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 0;
}

/* ── Section Header ──────────────────────────────────────────── */
.showcase-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

/* Badge pill */
.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 148, 31, 0.08);
  border: 1px solid rgba(255, 148, 31, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.showcase-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF941F;
  box-shadow: 0 0 8px rgba(255, 148, 31, 0.9);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 148, 31, 0.8); }
  50%       { box-shadow: 0 0 14px rgba(255, 148, 31, 1); }
}

.showcase-badge-text {
  color: #FF941F;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-title {
  font-size: clamp(1.9rem, 3.5vw + 0.5rem, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.showcase-subtitle {
  font-size: 0.975rem;
  color: #6b7c93;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}

/* Subtitle words that happen to be orange-highlighted by browser text matching */
.showcase-subtitle em {
  color: rgba(255, 148, 31, 0.85);
  font-style: normal;
}

/* ── Feature Grid ─────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

/* ── Individual Card ──────────────────────────────────────────── */
.feature-card-static {
  position: relative;
  border-radius: 22px;

  /* Orange-accented gradient border — same trick as conductores + testi cards */
  padding: 1px;
  background: linear-gradient(
    155deg,
    rgba(255, 148, 31, 0.35) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 148, 31, 0.15) 100%
  );

  box-shadow:
    0 2px 0 rgba(255, 148, 31, 0.05) inset,
    0 10px 36px -6px rgba(0, 0, 0, 0.65),
    0 0 0 0px rgba(255, 148, 31, 0);

  transition: transform 300ms ease, box-shadow 300ms ease, background 300ms ease;
  cursor: default;

  /* Cards same height */
  display: flex;
  flex-direction: column;
}

/* Hover: lift + stronger orange ring + ambient orange glow */
.feature-card-static:hover {
  transform: translateY(-8px);
  background: linear-gradient(
    155deg,
    rgba(255, 148, 31, 0.6) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 92, 0, 0.4) 100%
  );
  box-shadow:
    0 2px 0 rgba(255, 148, 31, 0.12) inset,
    0 22px 50px -8px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 148, 31, 0.25),
    0 0 40px -8px rgba(255, 148, 31, 0.2);
}

/* Glass inner panel */
.feature-card-static > * {
  /* Direct children sit on the glass layer when no inner wrapper */
  position: relative;
  z-index: 1;
}

/* Pseudo glass bg */
.feature-card-static-glass {
  border-radius: 21px;
  background: rgba(8, 12, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 28px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

/* Fallback glass when no inner wrapper in HTML (current state) */
.feature-card-static:not(:has(.feature-card-static-glass)) {
  background: linear-gradient(
    155deg,
    rgba(255, 148, 31, 0.35) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 148, 31, 0.15) 100%
  );
  padding: 1px;
}

.feature-card-static:not(:has(.feature-card-static-glass)) .phone-mockup-static,
.feature-card-static:not(:has(.feature-card-static-glass)) .feature-info-static {
  background: transparent;
}

/* The actual glass card surface */
.feature-card-static::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  background: linear-gradient(170deg, rgba(10, 14, 30, 0.92) 0%, rgba(6, 10, 22, 0.96) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 0;
  transition: background 300ms ease;
}

.feature-card-static:hover::before {
  background: linear-gradient(170deg, rgba(14, 18, 36, 0.93) 0%, rgba(8, 12, 26, 0.97) 100%);
}

/* Content above the pseudo glass */
.feature-card-static > * {
  position: relative;
  z-index: 1;
}

/* ── Phone Mockup Image Area ──────────────────────────────────── */
.phone-mockup-static {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px 20px 0;
  height: 300px;
  position: relative;
}

/* Orange glow disc below phone — matches conductores card icon glow */
.phone-mockup-static::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 24px;
  background: radial-gradient(ellipse, rgba(255, 148, 31, 0.28) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 300ms ease, width 300ms ease;
  z-index: 0;
}

.feature-card-static:hover .phone-mockup-static::after {
  opacity: 1;
  width: 80%;
}

.phone-mockup-static img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  /* Orange-tinted drop shadow */
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.7)) drop-shadow(0 4px 12px rgba(255, 148, 31, 0.08));
  transition: transform 300ms ease, filter 300ms ease;
  position: relative;
  z-index: 1;
}

.feature-card-static:hover .phone-mockup-static img {
  transform: translateY(-6px) scale(1.025);
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.8)) drop-shadow(0 6px 18px rgba(255, 148, 31, 0.14));
}

/* ── Feature Text ─────────────────────────────────────────────── */
.feature-info-static {
  width: 100%;
  padding: 22px 20px 28px;
  text-align: center;
}

/* Orange accent line — expands on hover */
.feature-accent-line {
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, #FF941F, #ff6120);
  border-radius: 2px;
  margin: 0 auto 14px;
  transition: width 300ms ease, box-shadow 300ms ease;
}

.feature-card-static:hover .feature-accent-line {
  width: 52px;
  box-shadow: 0 0 10px rgba(255, 148, 31, 0.5);
}

.feature-title-static {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f4f8;
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 300ms ease;
}

.feature-card-static:hover .feature-title-static {
  color: #FF941F;
}

.feature-desc-static {
  font-size: 0.825rem;
  color: #5a6e85;
  line-height: 1.65;
  margin: 0;
  font-weight: 400;
}

/* ── Scroll-entry animation ───────────────────────────────────── */
@keyframes showcaseFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.feature-grid .feature-card-static:nth-child(1) { animation: showcaseFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.05s both; }
.feature-grid .feature-card-static:nth-child(2) { animation: showcaseFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.15s both; }
.feature-grid .feature-card-static:nth-child(3) { animation: showcaseFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.25s both; }
.feature-grid .feature-card-static:nth-child(4) { animation: showcaseFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.35s both; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .feature-grid { gap: 16px; }
}

@media (max-width: 992px) {
  .app-showcase-section { padding: 80px 0 90px; }
  .showcase-header { margin-bottom: 48px; }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 720px;
    margin: 0 auto;
  }
  .phone-mockup-static { height: 260px; }
}

@media (max-width: 768px) {
  .app-showcase-section { padding: 64px 0 72px; }
  .showcase-header { margin-bottom: 36px; }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .phone-mockup-static { height: 220px; padding-top: 20px; }
}

@media (max-width: 540px) {
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
  .phone-mockup-static { height: 300px; }
}
