/* Welcome Page - Professional & Polished Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  /* Demo palette */
  --welcome-bg: #0b1220;
  --welcome-card-bg: #11192d;
  --welcome-border: rgba(255, 255, 255, 0.08);
  --welcome-muted: rgba(226, 232, 240, 0.75);
  --welcome-primary: #38bdf8;
  --welcome-primary-rgb: 56, 189, 248;
  --welcome-secondary: #7c3aed;
  --welcome-accent: #22c55e;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.12), transparent 26%), radial-gradient(circle at 80% 0%, rgba(124, 58, 237, 0.16), transparent 28%), var(--welcome-bg);
  color: #f8fafc;
}

.welcome-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

@media (min-width: 768px) {
  .welcome-wrapper {
    padding: 60px 30px 100px;
  }
}

/* Hero Section */
.welcome-hero {
  background: radial-gradient(circle at 20% 20%, rgba(var(--welcome-primary-rgb), 0.1), transparent 30%), radial-gradient(circle at 80% 0%, rgba(124, 58, 237, 0.12), transparent 34%), var(--welcome-card-bg);
  border: 1px solid var(--welcome-border);
  border-radius: 24px;
  padding: 60px 30px;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(56, 189, 248, 0.1);
}

@media (min-width: 768px) {
  .welcome-hero {
    padding: 80px 60px;
  }
}

.welcome-hero-grid {
  display: grid;
  gap: 30px;
}

@media (min-width: 900px) {
  .welcome-hero-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

/* .welcome-hero::before {  content: '';  position: absolute;  top: -50%;  left: -50%;  width: 200%;  height: 200%;  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);  animation: heroGlow 10s ease-in-out infinite;  pointer-events: none;} */
@keyframes heroGlow {

  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.5;
  }

  50% {
    transform: translate(5%, 5%);
    opacity: 0.8;
  }
}

/* .welcome-hero::after {  content: '';  position: absolute;  top: -50%;  left: -50%;  width: 200%;  height: 200%;  background: linear-gradient(    45deg,    transparent 30%,    rgba(255, 255, 255, 0.03) 40%,    rgba(255, 255, 255, 0.08) 50%,    rgba(255, 255, 255, 0.03) 60%,    transparent 70%  );  animation: pearlShimmer 8s ease-in-out infinite;  pointer-events: none;  z-index: 1;} */
@keyframes pearlShimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }

  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
}

.welcome-hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(124, 58, 237, 0.18));
  border: 1px solid rgba(var(--welcome-primary-rgb), 0.35);
  color: #cbeafe;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(var(--welcome-primary-rgb), 0.2);
}

.welcome-hero h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--welcome-primary) 0%, rgb(147, 197, 253) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .welcome-hero h2 {
    font-size: 3.5rem;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--welcome-muted);
  max-width: 800px;
  margin: 0 auto 32px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  color: #e0f2fe;
  box-shadow: 0 16px 38px rgba(34, 197, 94, 0.28);
}

.tagline-icon {
  font-size: 1.3rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

  50% {
    transform: scale(1.1);
  }
}

/* Section Headers */
.role-section,
.privacy-section,
.features-section {
  margin-bottom: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--welcome-primary) 0%, var(--welcome-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(148, 163, 184, 1);
  font-weight: 400;
}

/* Role Cards Grid */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .roles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.welcome-card {
  background: var(--welcome-card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--welcome-border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 60%, transparent 70%);
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.welcome-card:hover::before {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

.welcome-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--welcome-primary), var(--welcome-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.welcome-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--welcome-primary-rgb), 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(var(--welcome-primary-rgb), 0.1);
}

.welcome-card:hover::after {
  opacity: 1;
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(var(--welcome-primary-rgb), 0.1);
}

.role-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(var(--welcome-primary-rgb), 0.15) 0%, rgba(var(--welcome-primary-rgb), 0.05) 100%);
  border: 2px solid rgba(var(--welcome-primary-rgb), 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: all 0.3s ease;
}

.welcome-card:hover .role-icon {
  transform: scale(1.05);
  border-color: rgba(var(--welcome-primary-rgb), 0.5);
  box-shadow: 0 4px 16px rgba(var(--welcome-primary-rgb), 0.3);
}

.card-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.role-badge {
  display: inline-block;
  background: rgba(var(--welcome-primary-rgb), 0.1);
  border: 1px solid rgba(var(--welcome-primary-rgb), 0.2);
  color: var(--welcome-primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.9);
  margin-bottom: 24px;
}

.feature-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--welcome-primary-rgb), 0.08);
  border: 1px solid rgba(var(--welcome-primary-rgb), 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--welcome-primary);
}

.highlight-icon {
  font-size: 1.1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: rgba(203, 213, 225, 0.85);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.feature-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(var(--welcome-primary-rgb), 0.15);
  border: 1.5px solid rgba(var(--welcome-primary-rgb), 0.4);
  border-radius: 50%;
  color: var(--welcome-primary);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--welcome-primary-rgb), 0.15);
}

.role-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--welcome-accent);
  text-align: center;
  margin: 0;
}

/* Pup Animation in Tester Card */
.welcome-card .pup-animation-container {
  margin-top: 30px;
  height: 280px;
  width: 100%;
  border-radius: 16px;
  overflow: visible;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(var(--welcome-primary-rgb), 0.1);
  z-index: 1;
}

/* Privacy & Security Section */
.privacy-section {
  background: linear-gradient(135deg, rgba(15, 23, 35, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1px solid var(--welcome-border);
  border-radius: 20px;
  padding: 50px 30px;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .privacy-section {
    padding: 60px 40px;
  }
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .privacy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.privacy-feature {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--welcome-primary-rgb), 0.2);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.privacy-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.cyan-glow {
  border-color: rgba(0, 240, 255, 0.3);
}

.cyan-glow:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 12px 28px rgba(0, 240, 255, 0.2);
}

.magenta-glow {
  border-color: rgba(255, 0, 255, 0.3);
}

.magenta-glow:hover {
  border-color: rgba(255, 0, 255, 0.6);
  box-shadow: 0 12px 28px rgba(255, 0, 255, 0.2);
}

.green-glow {
  border-color: rgba(0, 255, 144, 0.3);
}

.green-glow:hover {
  border-color: rgba(0, 255, 144, 0.6);
  box-shadow: 0 12px 28px rgba(0, 255, 144, 0.2);
}

.orange-glow {
  border-color: rgba(255, 159, 0, 0.3);
}

.orange-glow:hover {
  border-color: rgba(255, 159, 0, 0.6);
  box-shadow: 0 12px 28px rgba(255, 159, 0, 0.2);
}

.pink-glow {
  border-color: rgba(255, 77, 230, 0.3);
}

.pink-glow:hover {
  border-color: rgba(255, 77, 230, 0.6);
  box-shadow: 0 12px 28px rgba(255, 77, 230, 0.2);
}

.blue-glow {
  border-color: rgba(0, 191, 255, 0.3);
}

.blue-glow:hover {
  border-color: rgba(0, 191, 255, 0.6);
  box-shadow: 0 12px 28px rgba(0, 191, 255, 0.2);
}

.feature-icon-large {
  font-size: 3rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.privacy-feature h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.95);
}

.privacy-feature p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.85);
  margin: 0;
  animation: fadeInUp 0.8s ease backwards;
}

.privacy-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-20px, 20px);
  }
}

.privacy-content {
  position: relative;
  z-index: 2;
}

.privacy-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  text-align: center;
  margin-bottom: 30px;
  color: rgba(251, 191, 36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.privacy-section>p {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.8;
  color: rgba(226, 232, 240, 0.95);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.privacy-feature {
  background: rgba(15, 23, 35, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(251, 191, 36, 0.2);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
}

.privacy-feature:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 15px 40px rgba(251, 191, 36, 0.2);
}

.privacy-feature h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(251, 191, 36, 1);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-feature p {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(203, 213, 225, 0.95);
  margin: 0;
}

.privacy-tagline {
  text-align: center;
  margin-top: 50px;
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(134, 239, 172, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* More Than Just Testing Section */
/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--welcome-card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--welcome-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--welcome-primary-rgb), 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.feature-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.95);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.85);
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(15, 23, 35, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1px solid var(--welcome-border);
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(56, 189, 248, 0.1);
}

@media (min-width: 768px) {
  .cta-section {
    padding: 70px 60px;
  }
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--welcome-primary) 0%, var(--welcome-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .cta-section h2 {
    font-size: 3rem;
  }
}

.cta-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.9);
  max-width: 700px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--welcome-primary) 0%, var(--welcome-secondary) 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(var(--welcome-primary-rgb), 0.4);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--welcome-primary-rgb), 0.6);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid var(--welcome-border);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(var(--welcome-primary-rgb), 0.4);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Delays */
.welcome-card:nth-child(1) {
  animation-delay: 0.1s;
}

.welcome-card:nth-child(2) {
  animation-delay: 0.2s;
}

.welcome-card:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}

.privacy-feature:nth-child(1) {
  animation-delay: 0.1s;
}

.privacy-feature:nth-child(2) {
  animation-delay: 0.2s;
}

.privacy-feature:nth-child(3) {
  animation-delay: 0.3s;
}

.privacy-feature:nth-child(4) {
  animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .welcome-hero {
    padding: 80px 50px !important;
  }

  .welcome-hero h1 {
    font-size: 3.8rem !important;
  }

  .section-title {
    font-size: 2.8rem;
  }

  .roles-grid,
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
  }

  .privacy-section {
    padding: 60px 40px;
  }

  .privacy-section h2,
  .cta-section h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .welcome-wrapper {
    padding: 40px 20px 80px 20px;
  }

  .welcome-hero {
    padding: 60px 35px !important;
    margin-bottom: 80px;
  }

  .welcome-hero h1 {
    font-size: 3rem !important;
  }

  .welcome-hero p {
    font-size: 1.15rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2.3rem;
    margin-bottom: 40px;
    white-space: normal;
  }

  .features-section .section-title {
    white-space: normal;
  }

  .roles-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 10px;
  }

  .welcome-card,
  .feature-card {
    padding: 35px 28px;
  }

  .privacy-section {
    padding: 50px 30px;
    margin-bottom: 80px;
  }

  .privacy-section h2,
  .cta-section h2 {
    font-size: 2.3rem;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-section {
    padding: 60px 40px;
  }

  .cta-button {
    padding: 16px 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .welcome-hero {
    padding: 50px 25px !important;
  }

  .welcome-hero h1 {
    font-size: 2.4rem !important;
  }

  .welcome-hero p {
    font-size: 1.05rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .welcome-card h3,
  .feature-card h3 {
    font-size: 1.5rem;
  }

  .role-icon {
    width: 75px;
    height: 75px;
    font-size: 38px;
  }

  .privacy-section h2,
  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-button {
    width: 100%;
    padding: 16px 30px;
  }
}

/* =====================   🐕 TESTER DOG ANIMATION   ===================== */
/* Tester Dog Animation CSS Variables */
:root {
  --light-brown: #f79568;
  --medium-brown: #d1585d;
  --dark-brown: #a53942;
  --red: #ff4a50;
  --yellow: #ffbd31;
  --blue: #39cede;
  --purple: #421163;
  --speed: 8s;
}

/* Tester Dog Container - Original size */
.tester-dog-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 280px;
  margin: 30px auto 0;
}

.tester-dog-container *,
.tester-dog-container *:before,
.tester-dog-container *:after {
  position: absolute;
  content: "";
}

/* Box/Mailbox */
.tester-dog-container .box {
  background-color: var(--medium-brown);
  width: 50%;
  height: 45%;
  left: 25%;
  bottom: 0;
  border-radius: 20px;
  transform-origin: center bottom;
  animation: bigBox var(--speed) linear infinite;
}

.tester-dog-container .box:before {
  background-color: var(--light-brown);
  width: 70%;
  height: 100%;
  bottom: 0;
  border-radius: 20px;
}

.tester-dog-container .box:after {
  background-color: var(--yellow);
  height: 100%;
  width: 11%;
  right: 10%;
}

.tester-dog-container .box .sign {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 3px solid var(--medium-brown);
  left: 150px;
  top: 10%;
}

.tester-dog-container .box .sign:after {
  width: 3px;
  height: 20px;
  left: 13px;
  top: 6px;
  background-color: var(--medium-brown);
}

.tester-dog-container .box .sign:before {
  width: 9px;
  height: 9px;
  left: 10px;
  top: 6px;
  border: 3px solid var(--medium-brown);
  border-left: 0;
  border-bottom: 0;
  transform: rotate(-45deg);
}

/* Dog Main Element */
.tester-dog-container .dog {
  bottom: 45%;
  height: 45%;
  width: 45%;
  animation: dog-bounce var(--speed) linear infinite;
  transform-origin: center bottom;
}

.tester-dog-container .dog .dog-group {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  animation: dog-jump var(--speed) linear infinite;
  transform-origin: center bottom;
}

/* Tongue */
.tester-dog-container .dog .dog-group .tongue-open {
  z-index: 99;
  background-color: var(--red);
  width: 12px;
  height: 9px;
  left: 65px;
  top: 70px;
  border-radius: 40%;
  animation: tongue var(--speed) linear infinite;
  transform-origin: center top;
}

/* Body Group */
.tester-dog-container .dog .dog-group .body-group {
  z-index: 2;
  width: 52%;
  height: 38%;
  bottom: 0;
  left: 22%;
}

.tester-dog-container .dog .dog-group .body-group .dog-box {
  width: 100%;
  height: 100%;
  border-radius: 0px 7px 7px;
  overflow: hidden;
  z-index: 3;
  background: rgb(247, 149, 104);
  background: linear-gradient(90deg, rgba(247, 149, 104, 1) 0%, rgba(247, 149, 104, 1) 67%, rgba(209, 88, 93, 1) 67%, rgba(209, 88, 93, 1) 100%);
}

.tester-dog-container .dog .dog-group .body-group .dog-box .dog-box-sign {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 3px solid var(--medium-brown);
  left: 35%;
  top: 15%;
}

.tester-dog-container .dog .dog-group .body-group .dog-box .dog-box-sign:after {
  width: 70%;
  height: 3px;
  border-radius: 10px;
  background-color: var(--medium-brown);
  left: 15%;
  top: 5px;
  box-shadow: 0px 6px var(--medium-brown);
}

.tester-dog-container .dog .dog-group .body-group .dog-box .dog-box-sign:before {
  width: 45%;
  height: 3px;
  border-radius: 10px;
  background-color: var(--medium-brown);
  left: 39%;
  top: 17px;
}

.tester-dog-container .dog .dog-group .body-group .dog-box .bottom-shadow {
  width: 100%;
  height: 20px;
  background-color: var(--dark-brown);
  bottom: -13px;
  transform: rotate(-2deg);
  animation: shadows var(--speed) linear infinite;
}

.tester-dog-container .dog .dog-group .body-group .dog-box .top-left-shadow {
  height: 40px;
  width: 60px;
  background-color: var(--dark-brown);
  transform: rotate(-15deg);
  top: -32px;
  left: -10px;
  animation: shadows var(--speed) linear infinite;
}

.tester-dog-container .dog .dog-group .body-group .dog-shape {
  border-radius: 50%;
  background-color: var(--blue);
  width: 50px;
  height: 50px;
  right: 18%;
  top: -40%;
  z-index: 2;
  box-shadow: 6px 10px 0 var(--dark-brown);
  animation: blue-shape var(--speed) linear infinite;
  transform-origin: center bottom;
}

.tester-dog-container .dog .dog-group .body-group .tail-group {
  right: 0px;
  top: -65%;
  height: 70px;
  width: 24px;
  z-index: 1;
  transform: rotate(25deg);
  animation: tailGroup var(--speed) linear infinite;
  transform-origin: center;
}

.tester-dog-container .dog .dog-group .body-group .tail-group .tail {
  bottom: 0;
  background-color: var(--red);
  height: 22px;
  width: 22px;
  border-radius: 0 0 20px 20px;
  z-index: 1;
  animation: tail var(--speed) linear infinite;
  transform-origin: center center;
}

.tester-dog-container .dog .dog-group .body-group .tail-group .tail .tail {
  bottom: 40%;
}

.tester-dog-container .dog .dog-group .body-group .tail-group .tail .tail .tail .tail .tail .tail.last {
  border-radius: 20px;
}

/* Head Group */
.tester-dog-container .dog .head-group {
  bottom: 42%;
  width: 45%;
  height: 38%;
  left: 20%;
  animation: dog-head var(--speed) linear infinite;
  transform-origin: center bottom;
}

.tester-dog-container .dog .head-group .head {
  width: 100%;
  height: 100%;
  border-radius: 0 0 3px 3px;
  overflow: hidden;
  background: rgb(247, 149, 104);
  background: linear-gradient(90deg, rgba(247, 149, 104, 1) 0%, rgba(247, 149, 104, 1) 67%, rgba(209, 88, 93, 1) 67%, rgba(209, 88, 93, 1) 100%);
}

.tester-dog-container .dog .head-group .head:after {
  background-color: var(--dark-brown);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  right: -25px;
  bottom: -25px;
}

.tester-dog-container .dog .head-group .ear {
  height: 30px;
  width: 50%;
  bottom: 100%;
  transform: perspective(3000px);
}

.tester-dog-container .dog .head-group .ear.right {
  right: -20px;
}

.tester-dog-container .dog .head-group .ear .ear-container {
  width: 95%;
  height: 100%;
  left: -9px;
  transform-style: preserve-3d;
  transform-origin: center bottom;
  transform: rotateY(45deg);
}

.tester-dog-container .dog .head-group .ear .ear-container .ear-left,
.tester-dog-container .dog .head-group .ear .ear-container .ear-right {
  background-color: #a02d32;
  height: 100%;
  width: 100%;
  transform-style: preserve-3d;
  border-radius: 4px 4px 0 0;
  transform-origin: center bottom;
}

.tester-dog-container .dog .head-group .ear .ear-container .ear-left {
  transform: rotateX(50deg);
  animation: earLeft var(--speed) linear infinite;
}

.tester-dog-container .dog .head-group .ear .ear-container .ear-right {
  transform: rotateX(-50deg);
  animation: earRight var(--speed) linear infinite;
}

.tester-dog-container .dog .head-group .face {
  width: 67%;
  height: 100%;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.tester-dog-container .dog .head-group .face .muzzle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--medium-brown);
  left: 50%;
  transform: translateX(-50%);
  bottom: 5%;
  z-index: 4;
}

.tester-dog-container .dog .head-group .face .eyes {
  width: 100%;
  height: 50%;
  top: 12%;
  z-index: 1;
}

.tester-dog-container .dog .head-group .face .eyes .eye-left,
.tester-dog-container .dog .head-group .face .eyes .eye-right {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
  bottom: 0;
  transform-origin: center top;
  animation: eyeWink var(--speed) linear infinite;
}

.tester-dog-container .dog .head-group .face .eyes .eye-left {
  left: 4px;
}

.tester-dog-container .dog .head-group .face .eyes .eye-right {
  right: 4px;
}

.tester-dog-container .dog .head-group .face .eyes .eye-left .pupil,
.tester-dog-container .dog .head-group .face .eyes .eye-right .pupil {
  background-color: var(--purple);
  border-radius: 50%;
  width: 76%;
  height: 76%;
  top: 12%;
  left: 14%;
  animation: eyeMove var(--speed) linear infinite;
}

.tester-dog-container .dog .head-group .face .eyes .eye-left .pupil:after,
.tester-dog-container .dog .head-group .face .eyes .eye-right .pupil:after {
  background-color: #fff;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  top: 3px;
  left: -1px;
  transform-origin: center bottom;
  animation: eyeWink2 var(--speed) linear infinite;
}

.tester-dog-container .dog .head-group .face .nose {
  background-color: var(--purple);
  width: 12px;
  height: 8px;
  left: 9px;
  top: 6px;
  border-radius: 40%;
  animation: nose var(--speed) linear infinite;
}

.tester-dog-container .dog .head-group .face .nose:after {
  width: 4px;
  height: 6px;
  background-color: var(--purple);
  left: 4px;
  top: 8px;
}

.tester-dog-container .dog .head-group .face .mouth-close {
  width: 100%;
  height: 8px;
  top: 12px;
  animation: mouthClose var(--speed) linear infinite;
}

.tester-dog-container .dog .head-group .face .mouth-close:after,
.tester-dog-container .dog .head-group .face .mouth-close:before {
  width: 12px;
  height: 8px;
  border: 3px solid var(--purple);
  border-radius: 0 0 8px 8px;
  border-top: 0;
  top: 4px;
  left: 4px;
}

.tester-dog-container .dog .head-group .face .mouth-close:before {
  left: 14px;
}

.tester-dog-container .dog .head-group .face .mouth-barks {
  background-color: var(--purple);
  width: 20px;
  height: 20px;
  bottom: 2px;
  left: 6px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0;
  animation: mouthBarks var(--speed) linear infinite;
}

.tester-dog-container .dog .head-group .face .mouth-barks:after {
  width: 80%;
  height: 80%;
  background-color: var(--red);
  left: 40%;
  top: 40%;
  border-radius: 50%;
}

.tester-dog-container .dog .head-group .face .mouth-open {
  opacity: 0;
  background-color: var(--purple);
  width: 24px;
  height: 12px;
  bottom: 3px;
  left: 4px;
  border-radius: 0px 0px 22px 22px;
  animation: mouthOpen var(--speed) linear infinite;
}

.tester-dog-container .dog .head-group .face .mouth-open .teeth {
  width: 0;
  height: 0;
  left: 3px;
  top: 0px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 5px solid #fff;
}

.tester-dog-container .dog .head-group .face .mouth-open .teeth:after {
  width: 0;
  height: 0;
  left: 9px;
  top: -5px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 5px solid #fff;
}

.tester-dog-container .dog .head-group .face .mouth-open .tongue-open {
  background-color: var(--red);
  width: 12px;
  height: 9px;
  left: 6px;
  top: 3px;
  border-radius: 40%;
  animation: tongue var(--speed) linear infinite;
  transform-origin: center top;
}

/* Plant Group */
.tester-dog-container .plant-group {
  width: 32%;
  height: 45%;
  bottom: 0;
  right: 0;
}

.tester-dog-container .plant-group:before {
  background-color: var(--dark-brown);
  left: 13%;
  bottom: 30%;
  height: 60px;
  width: 16px;
}

.tester-dog-container .plant-group .pot {
  background-color: var(--dark-brown);
  left: 0%;
  bottom: 0;
  height: 60px;
  width: 60px;
  z-index: 2;
}

.tester-dog-container .plant-group .pot:after {
  background-color: var(--red);
  left: 0;
  bottom: 0;
  height: 100%;
  width: 200%;
  border-radius: 0 0 120px 120px;
}

.tester-dog-container .plant-group .plant {
  bottom: 60px;
  left: 0%;
  height: 50px;
  width: 120px;
}

.tester-dog-container .plant-group .plant .stem {
  width: 8px;
  height: 110%;
  background-color: var(--purple);
  left: 56px;
  top: -4px;
}

.tester-dog-container .plant-group .plant .leaf {
  background-color: var(--purple);
  width: 6px;
  height: 16px;
  left: -6px;
  border-radius: 50px;
}

.tester-dog-container .plant-group .plant .leaf:after {
  background-color: var(--blue);
  width: 20px;
  height: 38px;
  border-radius: 50%;
  left: -7px;
  bottom: 70%;
}

.tester-dog-container .plant-group .plant .leaf:nth-of-type(1),
.tester-dog-container .plant-group .plant .leaf:nth-of-type(2) {
  transform: rotate(-45deg);
}

.tester-dog-container .plant-group .plant .leaf:nth-of-type(4),
.tester-dog-container .plant-group .plant .leaf:nth-of-type(5) {
  transform: rotate(45deg);
  left: 8px;
}

.tester-dog-container .plant-group .plant .leaf:nth-of-type(1),
.tester-dog-container .plant-group .plant .leaf:nth-of-type(5) {
  bottom: -3px;
}

.tester-dog-container .plant-group .plant .leaf:nth-of-type(2),
.tester-dog-container .plant-group .plant .leaf:nth-of-type(4) {
  bottom: 25px;
}

.tester-dog-container .plant-group .plant .leaf:nth-of-type(3) {
  top: -2px;
  left: 1px;
}

/* Shapes */
.tester-dog-container .shapes {
  width: 50%;
  height: 45%;
  bottom: 0;
  left: 0;
}

.tester-dog-container .shapes:before {
  background-color: var(--dark-brown);
  width: 52%;
  height: 50%;
  bottom: 0;
  right: -1px;
  border-radius: 0 30px 0 0;
  transform: skewX(5deg);
}

.tester-dog-container .shapes .red-shape {
  background-color: var(--red);
  right: 0;
  bottom: 0;
  height: 120px;
  width: 120px;
  border-radius: 100%;
}

.tester-dog-container .shapes .blue-shape {
  left: 24%;
  bottom: 0;
  width: 80px;
  height: 35px;
  background-color: var(--blue);
  border-radius: 50px;
}

.tester-dog-container .shapes .yellow-shape {
  left: 35%;
  bottom: 77px;
  width: 120px;
  height: 40px;
  background-color: var(--yellow);
  border-radius: 50px;
  transform: rotate(-45deg);
}

/* Keyframe Animations */
@keyframes bigBox {

  6.3%,
  11.6%,
  14.4%,
  16%,
  48%,
  52.4%,
  55.6%,
  57.2%,
  62.4%,
  67.2%,
  70.8%,
  72.4% {
    transform: scaleX(1) scaleY(1);
  }

  8.8%,
  50.4%,
  65.6% {
    transform: scaleX(1.02) scaleY(0.98);
  }

  14.8%,
  56%,
  71.2% {
    transform: scaleX(1.05) scaleY(0.95);
  }
}

@keyframes dog-bounce {

  6.3%,
  11.2%,
  14.4%,
  16%,
  48%,
  52.4%,
  55.6%,
  57.2%,
  62.8%,
  67.2%,
  70.8%,
  72.4% {
    transform: scaleX(1) scaleY(1);
  }

  8.8%,
  50.4%,
  65.6% {
    transform: scaleX(1.15) scaleY(0.85) translateY(5px);
  }

  14.8%,
  56%,
  71.2% {
    transform: scaleX(1.1) scaleY(0.9) translateY(10px);
  }

  16.4%,
  72.8% {
    transform: scaleX(0.95) scaleY(1.05);
  }

  18.4%,
  22%,
  26%,
  30%,
  34%,
  74.4%,
  78.4%,
  82.4%,
  86.4%,
  90.4% {
    transform: scaleX(1.04) scaleY(0.96);
  }

  20%,
  24%,
  28%,
  32%,
  36%,
  40%,
  76.4%,
  80.4%,
  84.4%,
  88.4%,
  92.4%,
  96.4% {
    transform: scaleX(1) scaleY(1);
  }

  38%,
  94.4% {
    transform: scaleX(1.08) scaleY(0.92);
  }
}

@keyframes dog-jump {

  10.4%,
  71.2% {
    transform: translateX(0px) translateY(0px);
  }

  10.8%,
  70.4% {
    transform: translateY(-15px);
  }

  11.2%,
  69.6% {
    transform: translateX(-4px) translateY(-22px);
  }

  11.6%,
  69.2% {
    transform: translateX(-8px) translateY(-28px);
  }

  12%,
  68.8% {
    transform: translateX(-12px) translateY(-30px);
  }

  12.4%,
  68.4% {
    transform: translateX(-16px) translateY(-28px);
  }

  12.8%,
  68% {
    transform: translateX(-20px) translateY(-25px);
  }

  13.2%,
  67.6% {
    transform: translateX(-24px) translateY(-20px);
  }

  13.6%,
  67.2% {
    transform: translateX(-28px) translateY(-10px);
  }

  14.8%,
  51.6%,
  55.2%,
  66.8% {
    transform: translateX(-32px) translateY(0px);
  }

  52%,
  53.6% {
    transform: translateX(-32px) translateY(-10px);
  }
}

@keyframes dog-head {

  10.4%,
  51.2%,
  71.2% {
    transform: translateX(0px) translateY(0px);
  }

  11.6%,
  13.6%,
  70.4% {
    transform: translateY(-15px);
  }

  14.8%,
  55.6%,
  66.8% {
    transform: translateY(0px);
  }

  53.2%,
  54.4% {
    transform: translateY(-15px);
  }
}

@keyframes blue-shape {

  10.4%,
  51.2%,
  71.2% {
    transform: translateX(0px) translateY(0px);
    box-shadow: 6px 10px 0 var(--dark-brown);
  }

  11.6%,
  13.6%,
  70.4% {
    transform: translateY(-15px);
    box-shadow: none;
  }

  14.8%,
  55.6%,
  66.8% {
    transform: translateY(0px);
  }

  53.2%,
  54.4% {
    transform: translateY(-15px);
  }

  18.8%,
  37.6%,
  75.2%,
  94% {
    box-shadow: none;
  }
}

@keyframes eyeMove {

  0%,
  10.4%,
  14%,
  18.4%,
  25.2%,
  30.4%,
  37.6%,
  51.2%,
  57.2%,
  66.8%,
  71.2%,
  74.8%,
  81.6%,
  86.8%,
  96% {
    transform: translate(0px, 0px) rotate(0deg) scale(1);
  }

  10.8%,
  13.6%,
  67.2%,
  70.4% {
    transform: translate(0px, -2px);
  }

  18.8%,
  24.8%,
  30.8%,
  37%,
  75.2%,
  81.2%,
  87.2%,
  94% {
    transform: translate(2px, 0px) rotate(2deg);
  }

  51.6%,
  56.8% {
    transform: scale(1.1);
  }
}

@keyframes eyeWink {

  0%,
  8.4%,
  10.8%,
  13.2%,
  16.4%,
  36.4%,
  42%,
  52%,
  56.4%,
  64.4%,
  67.2%,
  69.2%,
  72.8%,
  93.2%,
  98% {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fff;
    bottom: 0;
  }

  8.8%,
  9.6%,
  14.8%,
  15.2%,
  36.7%,
  40.4%,
  53.2%,
  54.8%,
  65.2%,
  66.2%,
  71%,
  72%,
  94%,
  96.8% {
    height: 3px;
    width: 27px;
    border-radius: 2px;
    background-color: var(--purple);
    bottom: 35%;
  }
}

@keyframes eyeWink2 {

  0%,
  8%,
  10.4%,
  12.8%,
  16%,
  36%,
  41.6%,
  51.6%,
  56%,
  64%,
  66.8%,
  68.8%,
  72.4%,
  92.8%,
  97.6% {
    opacity: 1;
  }

  8.4%,
  9.6%,
  14.4%,
  15.2%,
  36.7%,
  40.4%,
  53.2%,
  54.8%,
  65.2%,
  66.2%,
  71%,
  72%,
  94%,
  96.8% {
    opacity: 0;
  }
}

@keyframes shadows {

  10.4%,
  14.8%,
  51.6%,
  55.6%,
  66.8%,
  71.2% {
    opacity: 1;
  }

  10.8%,
  14.4%,
  52%,
  54.8%,
  67.2%,
  70.8% {
    opacity: 0;
  }
}

@keyframes mouthClose {

  17.2%,
  37.2%,
  50%,
  56.2%,
  73.6%,
  93.6% {
    opacity: 1;
  }

  17.6%,
  36.8%,
  52.4%,
  55.8%,
  74%,
  93.2% {
    opacity: 0;
  }
}

@keyframes mouthBarks {

  50%,
  57.2% {
    opacity: 0;
  }

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

  53%,
  54.2% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes nose {

  50%,
  57.2% {
    transform: translateY(0px);
  }

  53% {
    transform: translateY(-4px);
  }
}

@keyframes mouthOpen {

  17.2%,
  37.2%,
  73.6%,
  93.6% {
    opacity: 0;
  }

  17.6%,
  36.8%,
  74%,
  93.2% {
    opacity: 1;
  }
}

@keyframes tongue {

  0%,
  17.2%,
  37.2%,
  73.6%,
  93.6%,
  100% {
    opacity: 0;
  }

  17.6%,
  36.8% {
    opacity: 1;
  }

  19.2%,
  22%,
  24%,
  26.4%,
  28.4%,
  30.8%,
  32.8%,
  35.6%,
  75.6%,
  78.4%,
  80.4%,
  82.8%,
  84.8%,
  87.2%,
  89.2%,
  92% {
    transform: scaleY(2.7);
  }

  20.8%,
  23.2%,
  25.2%,
  27.6%,
  29.6%,
  32%,
  34%,
  74.8%,
  77.2%,
  79.6%,
  81.6%,
  84%,
  86%,
  88.4%,
  90.4% {
    transform: scaleY(1.7);
  }

  74%,
  93.2% {
    opacity: 1;
  }
}

@keyframes tail {

  17.2%,
  38.4%,
  73.6%,
  94.8% {
    transform: rotate(0deg);
  }

  18.8%,
  22.8%,
  24.8%,
  26.4%,
  28.4%,
  30.4%,
  32.4%,
  34.4%,
  36.4%,
  75.2%,
  78.8%,
  80.8%,
  82.8%,
  84.8%,
  86.8%,
  88.8%,
  90.8%,
  92.8% {
    transform: rotate(12deg);
  }

  21.2%,
  21.6%,
  23.6%,
  25.6%,
  27.2%,
  29.6%,
  31.6%,
  33.6%,
  35.6%,
  37.6%,
  77.6%,
  78%,
  80%,
  82%,
  84%,
  86%,
  88%,
  90%,
  92%,
  94% {
    transform: rotate(-12deg);
  }
}

@keyframes tailGroup {

  10.4%,
  14.4%,
  17.2%,
  38.4%,
  51.2%,
  55.6%,
  66.8%,
  70.8%,
  73.6%,
  94.8% {
    transform: rotate(25deg) translateX(0px) translateY(0px);
  }

  18.8%,
  22.8%,
  24.8%,
  26.4%,
  28.4%,
  30.4%,
  32.4%,
  34.4%,
  36.4%,
  75.2%,
  78.8%,
  80.8%,
  82.8%,
  84.8%,
  86.8%,
  88.8%,
  90.8%,
  92.8% {
    transform: rotate(-10deg) translateX(-15px);
  }

  21.2%,
  21.6%,
  23.6%,
  25.6%,
  27.2%,
  29.6%,
  31.6%,
  33.6%,
  35.6%,
  37.6%,
  77.6%,
  78%,
  80%,
  82%,
  84%,
  86%,
  88%,
  90%,
  92%,
  94% {
    transform: rotate(50deg) translateX(15px);
  }

  13.2%,
  54%,
  69.2% {
    transform: rotate(5deg) translateY(-30px) translateX(-5px);
  }
}

@keyframes earLeft {

  10.8%,
  17.2%,
  20.8%,
  24.4%,
  25.2%,
  28.4%,
  29.2%,
  32.4%,
  33.2%,
  36.4%,
  52.4%,
  58.4%,
  59.2%,
  62%,
  67.6%,
  73.6%,
  76.8%,
  77.2%,
  80.8%,
  81.2%,
  84.8%,
  85.2%,
  88.8%,
  89.2%,
  92.8% {
    transform: rotateX(50deg);
  }

  14.4%,
  54.4%,
  55.6%,
  68.8%,
  70.8% {
    transform: rotateX(-20deg) scaleY(0.8);
  }

  14.8%,
  15.6%,
  56%,
  56.8%,
  71.2%,
  72% {
    transform: rotateX(130deg);
  }

  18.8%,
  22.8%,
  26.8%,
  30.8%,
  34.8%,
  60%,
  75.2%,
  79.2%,
  83.2%,
  87.2%,
  91.2% {
    transform: rotateX(70deg);
  }
}

@keyframes earRight {

  10.8%,
  17.2%,
  20.8%,
  24.4%,
  25.2%,
  28.4%,
  29.2%,
  32.4%,
  33.2%,
  36.4%,
  52.4%,
  58.4%,
  59.2%,
  62%,
  67.6%,
  73.6%,
  76.8%,
  77.2%,
  80.8%,
  81.2%,
  84.8%,
  85.2%,
  88.8%,
  89.2%,
  92.8% {
    transform: rotateX(-50deg);
  }

  14.4%,
  54.4%,
  55.6%,
  68.8%,
  70.8% {
    transform: rotateX(20deg) scaleY(0.8);
  }

  14.8%,
  15.6%,
  56%,
  56.8%,
  71.2%,
  72% {
    transform: rotateX(-130deg);
  }

  18.8%,
  22.8%,
  26.8%,
  30.8%,
  34.8%,
  60%,
  75.2%,
  79.2%,
  83.2%,
  87.2%,
  91.2% {
    transform: rotateX(-70deg);
  }
}

/* Character image at bottom of hero */
.welcome-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 26%;
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: -1;
}

/* Hero layout enhancements */
.welcome-hero-grid {
  display: grid;
  gap: 30px;
}

@media (min-width: 900px) {
  .welcome-hero-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--welcome-border);
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-btn.primary {
  background: linear-gradient(135deg, rgb(0 0 0) 0%, rgb(10 33 53) 100%);
  box-shadow: 0 12px 30px rgba(var(--welcome-primary-rgb), 0.25);
}

.hero-btn.primary:hover {
  box-shadow: 0 14px 32px rgba(var(--welcome-primary-rgb), 0.35);
}

.hero-btn.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.hero-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.welcome-hero-steps {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .welcome-hero-steps {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--welcome-border);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.75));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 55%), linear-gradient(135deg, var(--welcome-primary), var(--welcome-secondary));
  color: #0f1723;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(var(--welcome-primary-rgb), 0.35);
}

.step-title {
  margin: 0;
  color: white;
  font-weight: 700;
  font-size: 15px;
}

.step-text {
  margin: 2px 0 0;
  color: rgba(226, 232, 240, 0.85);
  font-size: 13px;
}

/* --- Enhanced restyle overrides (demo palette alignment) --- */
.welcome-card {
  background: radial-gradient(circle at 20% 20%, rgba(var(--welcome-primary-rgb), 0.06), transparent 50%), linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.78));
  border: 1px solid var(--welcome-border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.welcome-card::after {
  opacity: 1;
}

.role-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 55%), linear-gradient(135deg, #38bdf8, #7c3aed);
  border: 1px solid rgba(var(--welcome-primary-rgb), 0.5);
  color: #0b1220;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(var(--welcome-primary-rgb), 0.35);
}

.highlight-item {
  background: rgba(var(--welcome-primary-rgb), 0.12);
  border: 1px solid rgba(var(--welcome-primary-rgb), 0.35);
  color: #dbeafe;
}

.feature-list li {
  color: rgba(226, 232, 240, 0.92);
}

.feature-list li::before {
  content: '✓';
  background: rgba(var(--welcome-primary-rgb), 0.15);
  border: 1.5px solid rgba(var(--welcome-primary-rgb), 0.4);
}

.hero-ctas .hero-btn {
  border-radius: 999px;
}

.hero-ctas .hero-btn.primary {
  background: linear-gradient(135deg, #16a34a, #38bdf8);
}

.hero-ctas .hero-btn.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(56, 189, 248, 0.16));
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  color: #e0f2fe;
}

.step-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 55%), linear-gradient(135deg, var(--welcome-primary), var(--welcome-secondary));
  color: #0f1723;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(var(--welcome-primary-rgb), 0.35);
}

.privacy-feature {
  border: 1px solid rgba(var(--welcome-primary-rgb), 0.25);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.8));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.privacy-feature h3 {
  color: #e0e7ff;
}

.privacy-feature p {
  color: rgba(226, 232, 240, 0.9);
}

/* Readability & layout tweaks */
.hero-btn.primary {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #0b1220;
  font-weight: 700;
}

.welcome-hero-steps {
  grid-template-columns: 1fr;
  max-width: 320px;
  margin: 0 auto;
}

.step-card {
  text-align: left;
}

/* === Overrides for welcome + trust sections === */
.welcome-hero.welcome-revamp {
  max-width: 1200px;
  margin: 0 auto 70px;
  padding: 50px 38px;
  background: radial-gradient(circle at 15% 15%, rgba(var(--welcome-primary-rgb), 0.08), transparent 45%), radial-gradient(circle at 80% 0%, rgba(124, 58, 237, 0.08), transparent 45%), linear-gradient(135deg, #0f172a, #0b1220 55%, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
}

.welcome-revamp-left h2 {
  font-size: 2.2rem;
  margin: 12px 0 12px;
  background: linear-gradient(135deg, #38bdf8, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.revamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(124, 58, 237, 0.18));
  border: 1px solid rgba(56, 189, 248, 0.32);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbeafe;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.2);
}

.revamp-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.metric-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 120px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.metric-chip .metric-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.7);
}

.metric-chip strong {
  display: block;
  font-size: 1.1rem;
  color: #e0f2fe;
}

.welcome-revamp-right {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.insight-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.78));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #22c55e, #38bdf8, #7c3aed);
  transition: width 0.35s ease;
}

.insight-card:hover::before {
  width: 100%;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: #e2e8f0;
  font-weight: 700;
}

.spark-label {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #cbeafe;
  font-size: 0.85rem;
}

.bar-stack {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  height: 120px;
  align-items: end;
}

.bar-stack span {
  display: block;
  width: 100%;
  height: var(--h);
  background: linear-gradient(180deg, #38bdf8, #7c3aed);
  border-radius: 10px 10px 6px 6px;
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.25);
  animation: pulse-bar 2.8s ease-in-out infinite;
}

.bar-stack span:nth-child(odd) {
  animation-delay: 0.3s;
}

@keyframes pulse-bar {

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

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

.card-foot {
  margin-top: 10px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.95rem;
}

.donut-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 6px auto 10px;
}

.donut-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#22c55e 0% 64%, #38bdf8 64% 92%, rgba(255, 255, 255, 0.08) 92% 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.donut-center {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: #0b1220;
  display: grid;
  place-items: center;
  text-align: center;
  color: #e2e8f0;
}

.donut-center strong {
  font-size: 1.4rem;
}

.donut-center small {
  color: rgba(226, 232, 240, 0.7);
}

.micro-legend {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
  color: rgba(226, 232, 240, 0.78);
}

.micro-legend .dot {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-green {
  background: #22c55e;
}

.dot-cyan {
  background: #38bdf8;
}

.dot-muted {
  background: rgba(255, 255, 255, 0.25);
}

.welcome-revamp-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 720px) {
  .welcome-revamp-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .welcome-hero.welcome-revamp {
    grid-template-columns: 1fr;
    padding: 38px 26px;
    text-align: left;
    gap: 22px;
  }

  .welcome-revamp-left h2 {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    text-align: left;
  }

  .revamp-metrics {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .welcome-hero.welcome-revamp {
    padding: 30px 20px;
    border-radius: 22px;
    text-align: center;
  }

  .welcome-revamp-left,
  .revamp-metrics {
    align-items: center;
    justify-content: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .welcome-revamp-right {
    grid-template-columns: 1fr;
  }

  .bar-stack {
    height: 96px;
  }

  .donut-wrap {
    width: 120px;
    height: 120px;
  }
}

.hero-btn.primary {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #0b1220;
  font-weight: 700;
}

.privacy-section {
  background: radial-gradient(circle at 15% 15%, rgba(var(--welcome-primary-rgb), 0.08), transparent 40%), radial-gradient(circle at 85% 0%, rgba(124, 58, 237, 0.08), transparent 40%), linear-gradient(135deg, #0f172a 0%, #0b1220 40%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 56px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .privacy-section {
    padding: 72px 48px;
  }
}

.privacy-grid {
  gap: 28px;
}

.privacy-feature {
  position: relative;
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.78));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--welcome-primary-rgb), 0.18);
  border-radius: 18px;
  padding: 28px;
  text-align: left;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.privacy-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #22c55e, #38bdf8, #7c3aed);
  transition: width 0.35s ease;
}

.privacy-feature:hover::before {
  width: 100%;
}

.privacy-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--welcome-primary-rgb), 0.4);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(var(--welcome-primary-rgb), 0.14);
}

.privacy-feature h3 {
  font-weight: 800;
  color: #e5edff;
}

.privacy-feature p {
  color: rgba(226, 232, 240, 0.9);
}

/* ============================================
   ENHANCED RESPONSIVE & ACCESSIBILITY
   ============================================ */

/* Very Small Mobile (≤360px) */
@media (max-width: 360px) {
  body {
    font-size: 13px;
  }

  .welcome-wrapper {
    padding: 30px 15px 60px;
  }

  .welcome-hero {
    padding: 40px 20px !important;
    border-radius: 16px;
  }

  .welcome-hero h1,
  .welcome-hero h2 {
    font-size: 2rem !important;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-tagline {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .welcome-card,
  .feature-card {
    padding: 28px 20px;
  }

  .welcome-card h3,
  .feature-card h3 {
    font-size: 1.35rem;
  }

  .role-icon {
    width: 65px;
    height: 65px;
    font-size: 32px;
  }

  .privacy-section {
    padding: 40px 20px;
  }

  .privacy-section h2,
  .cta-section h2 {
    font-size: 1.75rem;
  }

  .cta-section {
    padding: 50px 25px;
  }

  .cta-button {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .metric-chip {
    min-width: 100px;
    padding: 8px 10px;
  }

  .donut-wrap {
    width: 110px;
    height: 110px;
  }

  .bar-stack {
    height: 90px;
  }
}

/* Landscape Orientation (Mobile ≤900px) */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .welcome-wrapper {
    padding: 25px 20px 50px;
  }

  .welcome-hero {
    padding: 40px 30px !important;
  }

  .welcome-hero h1,
  .welcome-hero h2 {
    font-size: 2.25rem !important;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .roles-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .welcome-card,
  .feature-card {
    padding: 25px 20px;
  }

  .privacy-section,
  .cta-section {
    padding: 40px 30px;
  }

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

  .tester-dog-container {
    height: 220px;
  }
}

/* Touch-Friendly Improvements */
@media (hover: none) and (pointer: coarse) {

  /* Minimum 44px touch targets (iOS standard) */
  .cta-button,
  .hero-btn,
  .welcome-card,
  .feature-card,
  .privacy-feature {
    min-height: 44px;
  }

  .cta-button,
  .hero-btn {
    min-width: 44px;
    padding: 14px 32px;
  }

  /* Touch highlights */
  .cta-button.primary,
  .hero-btn.primary {
    -webkit-tap-highlight-color: rgba(56, 189, 248, 0.3);
  }

  .cta-button.secondary,
  .hero-btn.secondary,
  .hero-btn.ghost {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  }

  .welcome-card,
  .feature-card,
  .privacy-feature {
    -webkit-tap-highlight-color: rgba(56, 189, 248, 0.15);
  }

  /* Prevent text selection on UI elements */
  .welcome-wrapper,
  .roles-grid,
  .features-grid,
  .privacy-grid,
  .cta-buttons,
  .hero-ctas {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* Allow text selection in content areas */
  .hero-subtitle,
  .card-description,
  .feature-list,
  .privacy-feature p,
  .cta-description {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
  }

  /* Larger touch targets for cards */
  .welcome-card:hover,
  .feature-card:hover,
  .privacy-feature:hover {
    transform: translateY(-2px);
  }
}

/* High DPI Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .welcome-hero,
  .welcome-card,
  .feature-card,
  .privacy-feature {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Optimize images/icons for retina */
  .role-icon,
  .feature-icon,
  .feature-icon-large {
    -webkit-font-smoothing: antialiased;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .welcome-card:hover,
  .feature-card:hover,
  .privacy-feature:hover {
    transform: none;
  }

  .tagline-icon {
    animation: none;
  }

  .bar-stack span {
    animation: none;
  }

  @keyframes heroGlow,
  @keyframes pearlShimmer,
  @keyframes floating,
  @keyframes pulse {
    to {
      transform: none;
      opacity: 1;
    }
  }
}

/* Prevent Horizontal Overflow */
.welcome-wrapper,
.welcome-hero,
.roles-grid,
.features-grid,
.privacy-section,
.privacy-grid,
.cta-section,
.welcome-hero-grid,
.welcome-revamp-right {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}