/* --- CSS Variables --- */
:root {
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-300: #ddd6fe;
  --violet-400: #a78bfa;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --violet-900: #4c1d95;
  --violet-base: #8b5cf6;

  --pink-50: #fdf2f8;
  --pink-200: #fbcfe8;
  --pink-700: #be185d;
  --pink-base: #ec4899;

  --orange-50: #fff7ed;
  --orange-300: #fed7aa;
  --orange-700: #c2410c;
  --orange-base: #f97316;

  --teal-700: #0f766e;
  --teal-base: #0d9488;

  --sky-700: #0369a1;
  --sky-base: #0ea5e9;

  --indigo-700: #4338ca;
  --indigo-base: #4f46e5;

  --slate-100: #f1f5f9;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #1e293b;

  --green-100: #dcfce7;
  --green-300: #86efac;
  --green-800: #166534;

  --red-100: #fee2e2;
  --red-300: #fca5a5;
  --red-800: #991b1b;

  --white: #ffffff;
  --black-t-10: rgba(0, 0, 0, 0.1);
  --black-t-05: rgba(0, 0, 0, 0.05);
}

/* --- Base & Typography --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  scroll-behavior: smooth;
  background-color: var(--violet-50);
  color: var(--slate-700);
  margin: 0;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: var(--white);
  color: var(--slate-900);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 2px 10px var(--black-t-10);
  z-index: 1000;
}

h1,
h2,
h3 {
  font-weight: 800;
  color: var(--slate-900);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.25rem;
}

p {
  line-height: 1.6;
  color: var(--slate-600);
}

a {
  text-decoration: none;
  color: var(--violet-700);
  transition: color 0.3s ease;
}
a:hover {
  color: var(--violet-900);
}

/* Back-to-top button (homepage) */
.back-to-top {
  position: fixed;
  right: 1.25rem; /* 20px */
  bottom: 1.25rem; /* 20px */
  z-index: 80;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 9999px;
  background: var(--violet-base);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--violet-700);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  margin-bottom: 1rem;
}
.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.bg-white {
  background-color: var(--white);
}
.bg-violet-light {
  background-color: var(--violet-50);
}

/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Grids --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* --- Buttons --- */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.button-primary {
  background-color: var(--violet-600);
  color: var(--white);
  border-color: var(--violet-600);
  position: relative;
  overflow: hidden;
}
.button-primary:hover {
  background-color: var(--violet-700);
  border-color: var(--violet-700);
  color: var(--white);
}
/* Gradient border + soft glow for primary CTAs */
.button-primary.button-glow {
  background-image: linear-gradient(90deg, var(--violet-base), var(--indigo-base), var(--sky-base));
  background-size: 300% 100%;
  animation: border-shift 8s linear infinite;
  box-shadow: 0 8px 24px -12px rgba(139, 92, 246, 0.45);
}
.button-primary.button-glow:hover {
  box-shadow: 0 16px 36px -16px rgba(139, 92, 246, 0.55);
}
.button-animated-border {
  background-image: linear-gradient(90deg, var(--violet-base), var(--indigo-base), var(--sky-base));
  background-size: 300% 100%;
  animation: border-shift 6s linear infinite;
}
@keyframes border-shift {
  0% { background-position: 0 0, 0% 0; }
  100% { background-position: 0 0, 300% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .button-animated-border { animation: none; }
}
.button-secondary {
  background-color: transparent;
  color: var(--violet-600);
  border-color: var(--violet-300);
}
.button-secondary:hover {
  background-color: var(--violet-100);
  color: var(--violet-700);
  border-color: var(--violet-400);
}

.button-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}
.button-glow:hover {
  box-shadow: 0 0 25px 0 rgba(139, 92, 246, 0.6);
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Forms: Consent Checkbox --- */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.form-consent input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--violet-600);
  /* Keep checkbox from shrinking in flex on small screens */
  flex: 0 0 auto;
}
.form-consent .consent-text {
  font-size: 0.95rem;
  color: var(--slate-600);
  /* Allow text to wrap nicely alongside the checkbox */
  flex: 1 1 0;
  min-width: 0;
  line-height: 1.4;
  word-break: break-word;
}
.form-consent a {
  text-decoration: underline;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--slate-300);
  box-shadow: 0 -10px 30px var(--black-t-10);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  z-index: 1000;
  transition: transform 0.3s ease;
  padding: 0.5rem 0; /* breathing room around inner content */
}
.cookie-banner.hidden {
  display: none;
}
.cookie-banner.show {
  transform: translateY(0);
}

/* When open, ensure page content isn't covered */
body.cookie-banner-open {
  /* padding-bottom set dynamically via JS for accurate height */
}
.cookie-banner-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem; /* increased inner padding for comfort */
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
}
.cookie-text {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 0.5rem;
}
.cookie-icon {
  color: var(--violet-600);
  width: 16px;
  height: 16px;
  display: inline-block;
  line-height: 0;
  margin-top: 0.2rem;
}
.cookie-text p {
  margin: 0;
  color: var(--slate-700);
}
.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.cookie-actions .button {
  padding: 0.65rem 1.25rem;
}

@media (min-width: 768px) {
  .cookie-banner-content {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.25rem 2.25rem; /* a touch more padding on desktop */
  }
  .cookie-actions {
    grid-template-columns: auto auto;
  }
}

/* --- Header --- */
.header {
  background-color: rgba(247, 243, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--violet-100);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}

.desktop-menu {
  display: none;
}
.mobile-menu-button-container {
  display: block;
}
#mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-900);
}
.header .icon {
  width: 1.75rem;
  height: 1.75rem;
}
.mobile-menu {
  border-top: 1px solid var(--violet-100);
}
.mobile-menu a {
  display: block;
  padding: 0.75rem 2rem;
}
.mobile-menu a:hover {
  background-color: var(--violet-100);
}
.hidden {
  display: none;
}
@media (min-width: 768px) {
  .desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .mobile-menu-button-container {
    display: none;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  /* Full-height hero with modern viewport unit fallback */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* above mesh, behind content */
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% -10% -10%;
  background:
    radial-gradient(40rem 30rem at 10% 20%, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(35rem 28rem at 90% 10%, rgba(236, 72, 153, 0.22), transparent 60%),
    radial-gradient(28rem 24rem at 50% 85%, rgba(249, 115, 22, 0.18), transparent 60%);
  filter: blur(40px);
  animation: hero-mesh 16s ease-in-out infinite alternate;
  z-index: 1;
}
/* Subtle noise/vignette below liquid blobs for depth */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 100%, rgba(0,0,0,0.05), transparent 40%),
    radial-gradient(120% 80%  at 50% 0%,   rgba(255,255,255,0.12), transparent 40%);
  opacity: 0.7;
}
@keyframes hero-mesh {
  from { transform: translateY(-2%) scale(1.02); }
  to   { transform: translateY(2%)  scale(1.06); }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
  text-align: center;
}
.hero-content h1 {
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  line-height: 1.1;
}
/* Hero headline splits across two lines, each kept on a single line */
#hero-headline { display: block; }
#hero-headline #typewriter-text,
#hero-headline > span:last-child {
  display: block;
  white-space: nowrap;
}
#hero-headline > span:last-child { margin-top: 0.25rem; }
.hero-content p {
  max-width: 600px;
  margin: 1.5rem auto 2rem;
}
@media (min-width: 768px) {
  .hero-content {
    padding: 8rem 2rem;
  }
}

/* --- Cards & Special Sections --- */
.info-card {
  padding: 2rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px var(--black-t-10);
}
.info-card.bg-violet { border-color: rgba(139, 92, 246, 0.35); }
.info-card.bg-pink { border-color: rgba(236, 72, 153, 0.35); }
.info-card.bg-orange { border-color: rgba(249, 115, 22, 0.35); }
.info-card h3 {
  margin-bottom: 0.75rem;
}
.bg-violet h3 {
  color: var(--violet-700);
}
.bg-pink h3 {
  color: var(--pink-700);
}
.bg-orange h3 {
  color: var(--orange-700);
}

.guarantee-card {
  text-align: center;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--violet-100);
  box-shadow: 0 4px 6px -1px var(--black-t-05);
}
.guarantee-card.glass-card {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px var(--black-t-10);
}
.guarantee-card h3 {
  margin-bottom: 0.75rem;
}

.about-us-content {
  text-align: center;
}
.about-us-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.subtitle {
  color: var(--violet-600);
  font-weight: 600;
  margin-top: 0;
}
.bio {
  max-width: 600px;
  margin: 1.5rem auto 0;
}

.timeline-step {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px var(--black-t-10);
}
.timeline-number {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--violet-base);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 9999px;
  box-shadow: 0 10px 30px var(--black-t-10);
}
.timeline-step h3 {
  margin-bottom: 0.5rem;
}

.business-card {
  background: rgba(255, 255, 255, 0.22);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px var(--black-t-10);
}
.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px var(--black-t-10), 0 4px 6px -2px var(--black-t-10);
}
.icon-large {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
}
.business-card h3 {
  font-weight: 700;
  font-size: 1.125rem;
  margin-top: 1.5rem;
}
.bg-violet .icon-large {
  color: var(--violet-600);
}
.bg-pink .icon-large {
  color: var(--pink-base);
}
.bg-orange .icon-large {
  color: var(--orange-base);
}
.bg-teal .icon-large {
  color: var(--teal-base);
}
.bg-sky .icon-large {
  color: var(--sky-base);
}
.bg-indigo .icon-large {
  color: var(--indigo-base);
}
.bg-slate .icon-large {
  color: var(--slate-600);
}

.bg-violet h3 {
  color: var(--violet-900);
}
.bg-pink h3 {
  color: var(--pink-700);
}
.bg-orange h3 {
  color: var(--orange-700);
}
.bg-teal h3 {
  color: var(--teal-700);
}
.bg-sky h3 {
  color: var(--sky-700);
}
.bg-indigo h3 {
  color: var(--indigo-700);
}
.bg-slate h3 {
  color: var(--slate-700);
}

.portfolio-card {
  display: block;
  background-color: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--violet-100);
  box-shadow: 0 4px 6px -1px var(--black-t-10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px var(--black-t-10);
}
.portfolio-card img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  transition: transform 300ms ease;
}
/* Subtle image zoom on hover */
.portfolio-card:hover img { transform: scale(1.03); }
/* Gradient outline on portfolio card hover */
.portfolio-card { position: relative; }
.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.9rem;
  padding: 2px;
  background: linear-gradient(120deg, var(--violet-base), var(--pink-base), var(--orange-base));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.portfolio-card:hover::before { opacity: 0.75; }
.device-mockup {
  position: relative;
  width: 100%;
  height: 14rem;
  background: transparent;
  border-radius: 0.75rem;
  padding: 0; /* remove thick border */
  box-shadow: none;
}
.device-mockup.phone::before {
  content: none; /* remove notch */
}
.device-screen {
  position: static;
  inset: auto;
  width: 100% !important;
  height: 14rem !important;
  border-radius: 0.75rem;
  object-fit: cover;
  background: transparent;
}
/* Ensure device-screen uses full area with no frame */
.portfolio-card .device-mockup .device-screen { height: 14rem !important; width: 100% !important; }
.portfolio-content {
  padding: 1.5rem;
}
.portfolio-content h3 {
  font-size: 1.25rem;
}
.portfolio-content p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.package-details {
  max-width: 896px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 0.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Reveal-on-scroll utility */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (min-width: 768px) {
  .package-details {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}
.package-column h3 {
  color: var(--violet-700);
  margin-bottom: 1.5rem;
}
.package-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.package-column li {
  display: flex;
  align-items: flex-start;
}
.package-column li span:first-child {
  color: var(--violet-base);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

.pricing-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Hero Glass Panel */
.glass-panel {
  margin: 0 auto;
  max-width: 820px;
  position: relative;
  /* Content glass layer + gradient border layer */
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0)) padding-box,
    linear-gradient( to bottom right,
      rgba(255,255,255,0.85) 0%,
      rgba(255,255,255,0.52) 28%,
      rgba(0,0,0,0.08) 68%,
      rgba(255,255,255,0.60) 100%
    ) border-box;
  border: 1px solid transparent; /* gradient stroke via background-clip */
  -webkit-backdrop-filter: blur(0px) saturate(140%);
  backdrop-filter: blur(0px) saturate(140%);
  border-radius: 1rem;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.32),/* inner rim highlight */
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.06);
  padding: 2rem 1.5rem;
}
@media (min-width: 768px) {
  .glass-panel { padding: 3rem 3rem; }
}

/* Specular highlight and micro-noise for liquid glass */
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* Refined specular highlight concentrated at top-left edge */
  background:
    radial-gradient(90% 80% at 8% 6%, rgba(255,255,255,0.60), rgba(255,255,255,0.14) 46%, transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
  mix-blend-mode: screen;
}
.glass-panel::after { content: none; }

/* Glass Buttons */
.button-glass {
  background: rgba(255, 255, 255, 0.18);
  color: var(--slate-900);
  border: none;
  box-shadow: 0 8px 24px -12px var(--black-t-10), inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.button-glass:hover {
  background: rgba(255, 255, 255, 0.26);
  color: var(--slate-900);
}
/* Ensure hero CTA on dark background uses white text */
.hero .button-glass { color: var(--white); }
.hero .button-glass:hover { color: var(--white); }
/* Subtle gradient rim for glass buttons */
.button-glass.button-glow {
  background-image: linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)),
    linear-gradient(90deg, var(--violet-base), var(--indigo-base), var(--sky-base));
  background-size: auto, 300% 100%;
  animation: border-shift 10s linear infinite;
  box-shadow: 0 10px 30px -14px rgba(236, 72, 153, 0.35);
}
.button-glass.button-glow:hover { box-shadow: 0 14px 40px -16px rgba(236,72,153,0.45); }

/* CTA shine (glass or any button) */
.button-glass.cta-shine::after,
.button.cta-shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 30%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.65) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: cta-shine-sweep 1.1s ease forwards;
  pointer-events: none;
}
@keyframes cta-shine-sweep {
  0% { left: -30%; opacity: 0; }
  10% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}
.button.cta-shine { position: relative; overflow: hidden; }

/* Softer default buttons (no hard borders) */
.button {
  border-width: 1px;
}
.button:focus, .button:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 3px;
}
.button-primary {
  border-color: transparent;
}
.button-secondary {
  border-color: rgba(139, 92, 246, 0.2);
  background-color: rgba(139, 92, 246, 0.08);
}
.button-secondary:hover {
  background-color: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.3);
}
.billing-toggle {
  display: inline-flex;
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  border-radius: 9999px;
  padding: 0.25rem;
  gap: 0.25rem;
}
.toggle-btn {
  border: none;
  background: transparent;
  color: var(--slate-600);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle-btn.active {
  background: linear-gradient(90deg, var(--violet-base), var(--pink-base));
  color: var(--white);
  box-shadow: 0 4px 12px var(--black-t-10);
}
.pricing-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch; /* Fix: ensures grid items are equal height */
  }
}

.pricing-box {
  background-color: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px var(--black-t-10);
  border: 1px solid var(--violet-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; /* Fix: enables flexbox for vertical alignment */
  flex-direction: column; /* Fix: stacks content vertically */
}

.pricing-grid[data-selected="monthly"] .pricing-box[data-plan="annual"] {
  opacity: 0.7;
  transform: scale(0.98);
}
.pricing-grid[data-selected="annual"] .pricing-box[data-plan="monthly"] {
  opacity: 0.7;
  transform: scale(0.98);
}
.pricing-grid .pricing-box[data-plan="annual"].selected,
.pricing-grid .pricing-box[data-plan="monthly"].selected {
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff),
    linear-gradient(135deg, var(--violet-base), var(--pink-base));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 12px 30px -10px var(--black-t-10);
}

.pricing-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px var(--black-t-10);
}

.pricing-box.popular {
  border: 2px solid var(--violet-base);
  position: relative;
}

.best-value-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--violet-600);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}
.savings-pulse {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--violet-700);
  background: var(--violet-100);
  border-radius: 9999px;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

/* Confetti */
.confetti-wrap {
  position: fixed;
  top: -10px;
  will-change: transform;
  animation: confetti-sway var(--sway, 2s) ease-in-out infinite alternate;
  pointer-events: none;
}
.confetti-piece {
  display: block;
  width: 10px;
  height: 16px;
  opacity: 0.95;
  transform: translateY(-20px) rotate(0deg);
  animation: confetti-fall var(--fall, 3.2s) cubic-bezier(0.25, 0.1, 0.2, 1) forwards;
  will-change: transform, opacity;
  border-radius: 2px;
}
@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
@keyframes confetti-sway {
  from { transform: translateX(var(--sx, -30px)); }
  to { transform: translateX(var(--tx, 30px)); }
}

.plan-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.price-amount {
  font-size: 4rem;
  font-weight: 800;
}
.price-term {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--slate-500);
}
.price-setup-fee {
  margin-top: 1rem;
  margin-bottom: 2rem; /* Add spacing before the button */
  color: var(--slate-400);
}
.pricing-box .button {
  width: 100%;
  margin-top: auto; /* Fix: pushes button to the bottom */
}

@media (max-width: 400px) {
  .price-amount {
    font-size: 3rem;
  }
}

.faq-accordion {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px var(--black-t-10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px 0 var(--black-t-10);
}
.faq-question {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.5rem;
  font-size: 1rem;
}
.faq-question h3 {
  font-size: 1.125rem;
}
.faq-icon {
  color: var(--violet-base);
  width: 1.5rem;
  height: 1.5rem;
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer > p {
  margin: 0;
  padding: 0 1.5rem 0; /* Adjust padding for smooth transition */
}
.faq-item.open .faq-answer {
  max-height: 200px;
}
.faq-item.open .faq-answer > p {
  padding: 0 1.5rem 1.5rem; /* Apply padding when open */
}

.contact-form-container {
  max-width: 576px;
  margin: 3rem auto 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px var(--black-t-10);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
#contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
}
#contact-form input,
#contact-form textarea {
  margin-top: 0.25rem;
  display: block;
  width: 100%;
  background-color: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 var(--black-t-05);
  padding: 0.75rem 1rem;
  color: var(--slate-900);
}
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--violet-400);
  border-color: var(--violet-base);
}

.contact-message {
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-align: center;
  display: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  margin-top: 1rem;
}
.contact-message.show {
  display: block;
}
.contact-message.success {
  background-color: var(--green-100);
  color: var(--green-800);
  border-color: var(--green-300);
}
.contact-message.error {
  background-color: var(--red-100);
  color: var(--red-800);
  border-color: var(--red-300);
}

/* --- Footer --- */
.footer {
  background-color: var(--slate-900);
  color: var(--slate-400);
  padding: 4rem 0 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  border-bottom: 1px solid var(--slate-700);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-column h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-column a {
  color: var(--slate-400);
}
.footer-column a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-description {
  color: var(--slate-400);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* --- Animations & Effects --- */
.gradient-text {
  background: linear-gradient(90deg, var(--violet-base) 0%, var(--pink-base) 50%, var(--orange-base) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 6s ease infinite;
  background-size: 200% 200%;
}
.glassmorphism {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(139, 92, 246, 0.1);
}
.typewriter-cursor::after {
  content: "|";
  color: var(--violet-base);
  animation: blink 1s step-end infinite;
}
.bubbles {
  transform: translate3d(var(--bubbles-x, 0), var(--bubbles-shift, 0), 0);
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* above hero mesh, below glass */
  overflow: hidden;
  pointer-events: none;
}
.bubble {
  position: absolute;
  bottom: -150px;
  background-color: rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  animation: rise-bubble 32s infinite; /* slower default */
  opacity: 0;
}
.bubble:nth-child(1) {
  left: 10%;
  width: 80px;
  height: 80px;
  animation-duration: 24s; /* slower */
  animation-delay: 0s;
  background-color: rgba(236, 72, 153, 0.1);
}
.bubble:nth-child(2) {
  left: 20%;
  width: 30px;
  height: 30px;
  animation-duration: 18s;
  animation-delay: 2s;
}
.bubble:nth-child(3) {
  left: 25%;
  width: 50px;
  height: 50px;
  animation-duration: 28s;
  animation-delay: 5s;
  background-color: rgba(249, 115, 22, 0.1);
}
.bubble:nth-child(4) {
  left: 40%;
  width: 90px;
  height: 90px;
  animation-duration: 34s;
  animation-delay: 1s;
}
.bubble:nth-child(5) {
  left: 50%;
  width: 40px;
  height: 40px;
  animation-duration: 22s;
  animation-delay: 7s;
  background-color: rgba(139, 92, 246, 0.15);
}
.bubble:nth-child(6) {
  left: 65%;
  width: 110px;
  height: 110px;
  animation-duration: 30s;
  animation-delay: 3s;
  background-color: rgba(249, 115, 22, 0.1);
}
.bubble:nth-child(7) {
  left: 75%;
  width: 60px;
  height: 60px;
  animation-duration: 20s;
  animation-delay: 6s;
}
.bubble:nth-child(8) {
  left: 85%;
  width: 25px;
  height: 25px;
  animation-duration: 26s;
  animation-delay: 8s;
  background-color: rgba(236, 72, 153, 0.1);
}
.bubble:nth-child(9) {
  left: 55%;
  width: 45px;
  height: 45px;
  animation-duration: 30s;
  animation-delay: 10s;
}
.bubble:nth-child(10) {
  left: 5%;
  width: 70px;
  height: 70px;
  animation-duration: 22s;
  animation-delay: 4s;
  background-color: rgba(139, 92, 246, 0.1);
}

/* Additional bubbles: positions, sizes, and slower timings */
.bubble:nth-child(11) {
  left: 15%;
  width: 55px; height: 55px;
  animation-duration: 28s;
  animation-delay: 3s;
}
.bubble:nth-child(12) {
  left: 28%;
  width: 35px; height: 35px;
  animation-duration: 24s;
  animation-delay: 6s;
}
.bubble:nth-child(13) {
  left: 38%;
  width: 95px; height: 95px;
  animation-duration: 36s;
  animation-delay: 1s;
  background-color: rgba(236, 72, 153, 0.12);
}
.bubble:nth-child(14) {
  left: 48%;
  width: 42px; height: 42px;
  animation-duration: 26s;
  animation-delay: 9s;
}
.bubble:nth-child(15) {
  left: 62%;
  width: 60px; height: 60px;
  animation-duration: 32s;
  animation-delay: 5s;
}
.bubble:nth-child(16) {
  left: 72%;
  width: 36px; height: 36px;
  animation-duration: 27s;
  animation-delay: 7s;
}
.bubble:nth-child(17) {
  left: 82%;
  width: 85px; height: 85px;
  animation-duration: 38s;
  animation-delay: 2s;
  background-color: rgba(249, 115, 22, 0.12);
}
.bubble:nth-child(18) {
  left: 92%;
  width: 28px; height: 28px;
  animation-duration: 23s;
  animation-delay: 11s;
}
.bubble:nth-child(19) {
  left: 8%;
  width: 52px; height: 52px;
  animation-duration: 29s;
  animation-delay: 4s;
}
.bubble:nth-child(20) {
  left: 44%;
  width: 72px; height: 72px;
  animation-duration: 35s;
  animation-delay: 8s;
}

.timeline {
  position: relative;
}
.timeline::before {
  display: none; /* Remove connecting line */
}
.timeline.in-view::before { display: none; }
.timeline-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.timeline-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--black-t-10);
  border-color: rgba(255, 255, 255, 0.5);
}
.timeline.in-view .timeline-step:nth-child(1) {
  transition-delay: 0.2s;
}
.timeline.in-view .timeline-step:nth-child(2) {
  transition-delay: 0.4s;
}
.timeline.in-view .timeline-step:nth-child(3) {
  transition-delay: 0.6s;
}
.timeline.in-view .timeline-step:nth-child(4) {
  transition-delay: 0.8s;
}
.timeline.in-view .timeline-step {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline icons */
.timeline-step .timeline-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  box-shadow: 0 6px 18px var(--black-t-10);
  color: var(--violet-700);
}
.timeline-step .timeline-icon svg {
  width: 22px;
  height: 22px;
}


/* Glow animation on appear */
@keyframes subtle-glow {
  0% { box-shadow: 0 0 0 rgba(139, 92, 246, 0); }
  50% { box-shadow: 0 0 28px rgba(139, 92, 246, 0.45), 0 0 34px rgba(236, 72, 153, 0.35); }
  100% { box-shadow: 0 0 0 rgba(139, 92, 246, 0); }
}
.timeline.in-view .timeline-step .timeline-number {
  animation: subtle-glow 1.6s ease-out 0.2s 1;
}
.timeline.in-view .timeline-step:nth-child(2) .timeline-number { animation-delay: 0.35s; }
.timeline.in-view .timeline-step:nth-child(3) .timeline-number { animation-delay: 0.5s; }
.timeline.in-view .timeline-step:nth-child(4) .timeline-number { animation-delay: 0.65s; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-item.open .faq-answer {
  max-height: 200px;
}
.faq-icon {
  transition: transform 0.3s ease-out;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.fade-in-section {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}
@keyframes blink {
  from,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes rise-bubble {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10%, 90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}

/* Reduced Motion: respect user preferences */
@media (prefers-reduced-motion: reduce) {
  html, body {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .bubble {
    animation: none !important;
  }
  .typewriter-cursor {
    animation: none !important;
  }
}
/* --- Home extras --- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  opacity: 0.8;
}
.logo-strip img { max-height: 48px; width: auto; filter: grayscale(100%); }
.logo-strip img:hover { filter: grayscale(0%); opacity: 1; }

.stats-grid .stat {
  background: var(--white);
  border: 1px solid var(--violet-100);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px var(--black-t-10);
}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--violet-700); }
.stat-label { margin-top: .5rem; color: var(--slate-600); font-size: .9rem; }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--violet-100);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px var(--black-t-10);
}
.testimonial-card p { color: var(--slate-700); }
.testimonial-meta { display:flex; gap: .75rem; align-items: center; margin-top: 1rem; }
.testimonial-meta img { width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; }
.testimonial-meta strong { display:block; color: var(--slate-900); }
.testimonial-meta span { display:block; font-size: .85rem; color: var(--slate-500); }
