/* ==========================================================================
   TapCartly Design System — assets/css/style.css
   Modern, enterprise-grade styles adapted from TrackVid UX patterns
   Brand: Electric Blue (#2563EB), Graphite (#202522), Warm Ivory (#F8F8F4)
   Font: Manrope (Google Fonts)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@700;800&display=swap");

:root {
  /* Brand Primary Colors */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-primary-subtle: rgba(37, 99, 235, 0.08);
  --color-primary-glow: rgba(37, 99, 235, 0.25);

  /* Neutrals & Base */
  --color-graphite: #202522;
  --color-slate-dark: #0f172a;
  --color-slate-body: #334155;
  --color-slate-muted: #64748b;
  --color-ivory: #f8f8f4;
  --color-surface: #ffffff;
  --color-surface-tint: #f0f6ff;
  --color-border: #e2e8f0;
  --color-border-subtle: #edf2f7;

  /* Secondary Accents */
  --color-accent-cyan: #06b6d4;
  --color-accent-amber: #f59e0b;
  --color-accent-emerald: #10b981;
  --color-accent-purple: #8b5cf6;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-primary: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
  --shadow-card: 0 8px 30px rgba(15, 23, 42, 0.06);

  /* Fonts */
  --font-family:
    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Manrope", sans-serif;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* Base Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-family);
  color: var(--color-slate-body);
  background-color: var(--color-ivory);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--color-ivory);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--color-graphite);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  letter-spacing: -0.025em;
}

/* Glassmorphism & Navbar */
.header-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-glass.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(37, 99, 235, 0.15);
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
}

/* Brand Text & Gradient Utilities */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Buttons & CTAs */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-primary);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--color-graphite) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
  background: var(--color-primary-subtle);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-glow {
  position: relative;
}

.badge-glow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Cards & Surfaces */
.card-clean {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-clean:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.09);
}

.card-feature {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

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

.card-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1) 0%,
    rgba(6, 182, 212, 0.1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.card-feature:hover .card-feature-icon {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent-cyan) 100%
  );
  color: #ffffff;
  transform: scale(1.05);
}

/* Interactive SDUI Phone Mockup */
.mockup-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.phone-bezel {
  position: relative;
  background: #111827;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 25px 60px -15px rgba(15, 23, 42, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.phone-screen {
  background: #ffffff;
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  position: relative;
}

.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 30;
}

/* Floating Badges */
.floating-stat-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 25;
  animation: float 4s ease-in-out infinite;
}

.floating-badge-1 {
  top: 15%;
  left: -15%;
  animation-delay: 0s;
}

.floating-badge-2 {
  bottom: 20%;
  right: -15%;
  animation-delay: 2s;
}

.floating-badge-3 {
  top: 60%;
  left: -20%;
  animation-delay: 1s;
}

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

/* Pricing Cards */
.pricing-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-border);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.2);
  transform: scale(1.03);
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  transition: all 0.2s ease;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-graphite);
  cursor: pointer;
  padding: 0;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-chevron {
  width: 24px;
  height: 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-slate-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-slate-body);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  margin-top: 0.75rem;
}

/* Background Blobs & Decorative Elements */
.bg-ambient-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.12) 0%,
    rgba(6, 182, 212, 0.04) 70%,
    transparent 100%
  );
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Stats Counter Grid */
.stat-box {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mega Menu Dropdown */
.nav-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.15);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  z-index: 50;
  min-width: 540px;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .pricing-card.featured {
    transform: none;
  }
  .floating-stat-badge {
    display: none;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    min-width: 100%;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0;
  }
}
