/* =====================================================================
   YourName Web — Portfolio & Features Website
   Stylesheet (shared across all 4 pages)
   Swiss-minimalist · Black / Gray / White · Auto dark/light mode
   ===================================================================== */

/* ------------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   ------------------------------------------------------------------ */
:root {
  /* Light mode defaults */
  --bg:               #FFFFFF;
  --bg-dark:          #0A0A0A;
  --bg-darker:        #000000;
  --bg-card:          #F5F5F5;
  --bg-card-dark:     #1A1A1A;
  --bg-section-dark:  #0A0A0A;
  --bg-section-light: #FFFFFF;

  --text:             #1A1A1A;
  --text-secondary:   #666666;
  --text-muted:       #888888;
  --text-on-dark:     #FFFFFF;
  --text-on-dark-2:   #AAAAAA;

  --border:           #E5E5E5;
  --border-dark:      #333333;
  --accent:           #333333;
  --accent-dark:      #AAAAAA;

  --shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:        0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg:        0 16px 48px rgba(0, 0, 0, 0.14);

  --radius-sm:        6px;
  --radius-md:        8px;
  --radius-lg:        12px;
  --radius-pill:      999px;

  --container:        1200px;
  --container-narrow: 800px;

  --ease:             cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition:       0.4s var(--ease);

  --font-sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:               #0A0A0A;
    --bg-dark:          #000000;
    --bg-darker:        #000000;
    --bg-card:          #1A1A1A;
    --bg-card-dark:     #1A1A1A;
    --bg-section-dark:  #000000;
    --bg-section-light: #0A0A0A;

    --text:             #FFFFFF;
    --text-secondary:   #AAAAAA;
    --text-muted:       #888888;

    --border:           #333333;
    --border-dark:      #333333;
    --accent:           #AAAAAA;
    --accent-dark:      #AAAAAA;

    --shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.40);
    --shadow-md:        0 8px 24px rgba(0, 0, 0, 0.55);
    --shadow-lg:        0 16px 48px rgba(0, 0, 0, 0.70);
  }
}

/* ------------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 9999;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus {
  top: 0;
}

/* ------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-section-dark);
  color: var(--text-on-dark);
}

.section-light {
  background: var(--bg-section-light);
  color: var(--text);
}

.section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-heading {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-dark .section-label { color: var(--text-on-dark-2); }
.section-dark .section-sub   { color: var(--text-on-dark-2); }

.section-head-center {
  text-align: center;
  margin-bottom: 64px;
}

/* ------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: #FFFFFF;
  color: #000000;
}
.btn-white:hover {
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
}
.btn-outline-white:hover {
  background: #FFFFFF;
  color: #000000;
}

.btn-outline-on-dark {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid var(--border-dark);
}
.btn-outline-on-dark:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.btn-sm  { padding: 10px 22px; font-size: 14px; }
.btn-lg  { padding: 18px 40px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ------------------------------------------------------------------
   5. Sticky Header
   ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--bg);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

/* When header sits over a dark hero */
.site-header.over-dark .header-logo,
.site-header.over-dark .nav-link {
  color: #FFFFFF;
}
.site-header.over-dark .header-cta {
  background: #FFFFFF;
  color: #000000;
}
.site-header.over-dark.scrolled {
  background: var(--bg);
}
.site-header.over-dark.scrolled .header-logo,
.site-header.over-dark.scrolled .nav-link {
  color: var(--text);
}
.site-header.over-dark.scrolled .header-cta {
  background: var(--text);
  color: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.header-cta {
  background: var(--text);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1100;
}
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), top 0.4s var(--ease);
}
.site-header.over-dark:not(.scrolled) .hamburger span {
  background: #FFFFFF;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

.hamburger.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 100px 32px 40px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu .nav-link {
  font-size: 22px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-menu .header-cta {
  margin-top: 32px;
  text-align: center;
  padding: 16px;
  font-size: 16px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #2A2A2A 100%);
  color: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  .hero {
    background: linear-gradient(135deg, #000000 0%, #0A0A0A 50%, #1A1A1A 100%);
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.04), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,0.03), transparent 50%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: -10% 0;
  background: inherit;
  will-change: transform;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-narrow);
  padding: 0 24px;
  width: 100%;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: #888888;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease) forwards;
  animation-delay: 0ms;
}

.hero-headline {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease) forwards;
  animation-delay: 200ms;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.7;
  color: #AAAAAA;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease) forwards;
  animation-delay: 400ms;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease) forwards;
  animation-delay: 600ms;
}

.hero-trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: #AAAAAA;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease) forwards;
  animation-delay: 800ms;
}
.hero-trust span { letter-spacing: 0.02em; }
.hero-trust span::before {
  content: '◆';
  margin-right: 8px;
  color: #555;
  font-size: 10px;
  vertical-align: middle;
}
.hero-trust span:first-child::before { display: none; }

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

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #888888;
  font-size: 22px;
  animation: scrollBounce 2s infinite;
  z-index: 2;
}

@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}

/* Hero variants for inner pages */
.hero-sm {
  min-height: 50vh;
  padding: 140px 0 80px;
}
.hero-md {
  min-height: 40vh;
  padding: 140px 0 60px;
}

/* ------------------------------------------------------------------
   7. Social Proof Bar (stats)
   ------------------------------------------------------------------ */
.stats-bar {
  background: var(--bg-dark);
  color: #FFFFFF;
  padding: 48px 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-num {
  font-size: 36px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 13px;
  font-weight: 500;
  color: #AAAAAA;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ------------------------------------------------------------------
   8. Perfect For (business type cards)
   ------------------------------------------------------------------ */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.biz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.biz-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, var(--text) 200%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.biz-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--text);
  box-shadow: var(--shadow-md);
}
.biz-card:hover::before { opacity: 0.04; }

.biz-card .biz-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.biz-card .biz-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--text);
  transition: stroke 0.4s var(--ease);
}
.biz-card:hover .biz-icon {
  transform: rotate(-6deg) scale(1.1);
  background: var(--text);
  border-color: var(--text);
}
.biz-card:hover .biz-icon svg { stroke: var(--bg); }

.biz-card .biz-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.4s var(--ease);
}
.biz-card:hover .biz-name { transform: translateY(2px); }

/* ------------------------------------------------------------------
   9. Featured Work / Projects Grid
   ------------------------------------------------------------------ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proj-card {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #555;
}

.proj-card .proj-img-wrap {
  overflow: hidden;
  background: #111;
}
.proj-card .proj-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.proj-card:hover .proj-img { transform: scale(1.05); }

.proj-card .proj-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.proj-tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  width: fit-content;
  background: #FFFFFF;
  color: #000000;
}
.proj-tier-badge.tier-pro,
.proj-tier-badge.tier-elite {
  background: #333333;
  color: #FFFFFF;
}

.proj-name {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.proj-meta {
  font-size: 14px;
  color: #AAAAAA;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.proj-link {
  font-size: 14px;
  font-weight: 600;
  color: #AAAAAA;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition), gap var(--transition);
}
.proj-link:hover { color: #FFFFFF; gap: 10px; }

.proj-link-light {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition), gap var(--transition);
}
.proj-link-light:hover { color: var(--text); gap: 10px; }

/* ------------------------------------------------------------------
   10. How It Works (steps)
   ------------------------------------------------------------------ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 0 16px;
  transition: transform 0.4s var(--ease);
}
.step-item:hover { transform: translateY(-4px); }

.step-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.5s var(--ease), color 0.5s var(--ease), text-shadow 0.5s var(--ease);
}
.step-item:hover .step-num {
  transform: scale(1.1);
  color: var(--text);
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.15);
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  transition: transform 0.4s var(--ease);
}
.step-item:hover .step-title { transform: translateY(-2px); }

.step-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ------------------------------------------------------------------
   11. Pricing Tiers
   ------------------------------------------------------------------ */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.tier-card {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  color: #FFFFFF;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  overflow: hidden;
}
/* Subtle themed accent strip at top of every tier card */
.tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tier-accent, #555);
  opacity: 0.85;
  transition: opacity 0.4s var(--ease), height 0.4s var(--ease);
}
/* Subtle themed radial glow behind card */
.tier-card::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse at center, var(--tier-glow, transparent), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}
.tier-card > * { position: relative; z-index: 1; }

/* ALL cards lift + scale on hover (consistent micro-interaction) */
.tier-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--tier-accent, #FFFFFF);
}
.tier-card:hover::before { height: 5px; opacity: 1; }
.tier-card:hover::after  { opacity: 0.45; }

/* Tier-themed colors (bronze / silver / gold / diamond) — colors, not names */
.tier-card.tier-starter { --tier-accent: #CD7F32; --tier-glow: rgba(205, 127, 50, 0.35); }   /* bronze   */
.tier-card.tier-growth  { --tier-accent: #C0C0C0; --tier-glow: rgba(192, 192, 192, 0.35); }  /* silver   */
.tier-card.tier-pro     { --tier-accent: #FFD700; --tier-glow: rgba(255, 215, 0, 0.30); }    /* gold     */
.tier-card.tier-elite   { --tier-accent: #B9F2FF; --tier-glow: rgba(185, 242, 255, 0.35); }  /* diamond  */

.tier-card.tier-popular {
  border: 2px solid #FFFFFF;
}
.tier-card.tier-best {
  border: 2px solid var(--tier-accent, #555);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  color: #000000;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  z-index: 5;
}
.tier-badge.best {
  background: #555;
  color: #FFFFFF;
}

/* "Most Popular" badge — colored + animated glowing border to catch the eye */
.tier-badge.popular {
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 50%, #FF6347 100%);
  color: #1A1A1A;
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.5),
    0 0 12px rgba(255, 165, 0, 0.6),
    0 0 24px rgba(255, 100, 50, 0.4);
  animation: popularGlow 2.4s ease-in-out infinite;
}
@keyframes popularGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 215, 0, 0.5),
      0 0 12px rgba(255, 165, 0, 0.6),
      0 0 24px rgba(255, 100, 50, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(255, 215, 0, 0.9),
      0 0 20px rgba(255, 165, 0, 0.85),
      0 0 40px rgba(255, 100, 50, 0.6);
  }
}

/* "Best Value" badge — colored but with a calmer, slower animation */
.tier-badge.best-value {
  background: linear-gradient(135deg, #B9F2FF 0%, #7FB3D5 100%);
  color: #0A1A2A;
  box-shadow: 0 0 0 1px rgba(185, 242, 255, 0.4), 0 0 8px rgba(127, 179, 213, 0.4);
  animation: bestValuePulse 4s ease-in-out infinite;
}
@keyframes bestValuePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(185, 242, 255, 0.4), 0 0 8px rgba(127, 179, 213, 0.4); }
  50%      { box-shadow: 0 0 0 1px rgba(185, 242, 255, 0.6), 0 0 14px rgba(127, 179, 213, 0.6); }
}

/* Tier price hover — all prices now animate */
.tier-price {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease), text-shadow 0.4s var(--ease);
  cursor: default;
}
.tier-card:hover .tier-price {
  transform: scale(1.08);
  color: var(--tier-accent, #FFFFFF);
  text-shadow: 0 0 24px var(--tier-glow, transparent);
}

.tier-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.tier-price {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1;
}
.tier-price .aed {
  font-size: 16px;
  font-weight: 500;
  color: #AAAAAA;
}

.tier-tag {
  font-size: 13px;
  color: #AAAAAA;
  margin-bottom: 20px;
  min-height: 18px;
}

.tier-features {
  text-align: left;
  list-style: none;
  margin: 0 0 24px;
  flex: 1;
}
.tier-features li {
  font-size: 13.5px;
  color: #DDDDDD;
  padding: 7px 0;
  border-bottom: 1px solid #2A2A2A;
  display: flex;
  gap: 8px;
  line-height: 1.5;
}
.tier-features li::before {
  content: '✓';
  color: #FFFFFF;
  font-weight: 700;
  flex-shrink: 0;
}

.tier-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Package customization note */
.custom-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------------
   12. FAQ Accordion
   ------------------------------------------------------------------ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.open {
  border-color: var(--text);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.faq-icon::before {
  top: 9px; left: 0;
  width: 20px; height: 2px;
}
.faq-icon::after {
  top: 0; left: 9px;
  width: 2px; height: 20px;
}
.faq-item.open .faq-icon::after {
  opacity: 0;
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------------
   13. Final CTA
   ------------------------------------------------------------------ */
.final-cta {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #2A2A2A 100%);
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}
@media (prefers-color-scheme: dark) {
  .final-cta {
    background: linear-gradient(135deg, #000000 0%, #0A0A0A 50%, #1A1A1A 100%);
  }
}

.final-cta h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.final-cta p {
  font-size: 18px;
  color: #AAAAAA;
  margin-bottom: 32px;
}

/* ------------------------------------------------------------------
   14. Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: #0A0A0A;
  color: #FFFFFF;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-desc {
  font-size: 14px;
  color: #AAAAAA;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 14px;
  color: #AAAAAA;
}
.footer-links a:hover { color: #FFFFFF; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #AAAAAA;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #222;
  font-size: 13px;
  color: #777777;
  text-align: center;
}

/* ------------------------------------------------------------------
   15. Floating WhatsApp Button — with radiating glow
   ------------------------------------------------------------------ */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #FFFFFF;
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}
@media (prefers-color-scheme: dark) {
  .fab-whatsapp {
    background: #FFFFFF;
    color: #000000;
  }
}

/* Radiating pulsing glow rings */
.fab-whatsapp::before,
.fab-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  opacity: 0;
  animation: fabRadiate 2.6s ease-out infinite;
}
.fab-whatsapp::after {
  animation-delay: 1.3s;
}
@keyframes fabRadiate {
  0%   { transform: scale(1);    opacity: 0.6; }
  70%  { transform: scale(2.2);  opacity: 0;   }
  100% { transform: scale(2.2);  opacity: 0;   }
}

.fab-whatsapp:hover {
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 16px 48px rgba(37, 211, 102, 0.45);
}
.fab-whatsapp:active { transform: scale(1.06) rotate(-2deg); }
.fab-whatsapp svg {
  width: 28px;
  height: 28px;
  transition: transform 0.4s var(--ease);
}
.fab-whatsapp:hover svg { transform: scale(1.08); }

/* ------------------------------------------------------------------
   16. Filter Bar (portfolio)
   ------------------------------------------------------------------ */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  backdrop-filter: blur(8px);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.filter-tab:hover {
  border-color: var(--border);
}
.filter-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ------------------------------------------------------------------
   17. Tabs (features page)
   ------------------------------------------------------------------ */
.tabs-nav {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.tabs-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.tab-btn:hover {
  color: var(--text);
}
.tab-btn.active {
  background: var(--text);
  color: var(--bg);
}

.tab-panel {
  display: none;
  animation: tabFadeIn 0.4s var(--ease);
}
.tab-panel.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------
   18. Feature Catalog
   ------------------------------------------------------------------ */
.feature-search {
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
}
.feature-search input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.feature-search input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
.feature-search::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--text-secondary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.feature-cats {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.cat-tab {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  transition: all var(--transition);
}
.cat-tab:hover { border-color: var(--text); }
.cat-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
/* Shimmer sweep on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}
.feature-card:hover::before { left: 130%; }

.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--text);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--text);
}
.feature-card:active { transform: translateY(-2px) scale(1.0); }

.feature-card .feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feature-card .feat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.feature-card .feat-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
}
.feature-card:hover .feat-icon {
  transform: rotate(-6deg) scale(1.1);
  background: var(--text);
  border-color: var(--text);
}
.feature-card:hover .feat-icon svg {
  stroke: var(--bg);
}
.feature-card .feat-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  transition: transform 0.4s var(--ease);
}
.feature-card:hover .feat-price { transform: scale(1.06); }
.feature-card .feat-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.feature-card .feat-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-card .feat-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 6px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ------------------------------------------------------------------
   19. Care Plans
   ------------------------------------------------------------------ */
.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.care-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.care-card:hover {
  transform: translateY(-4px);
  border-color: var(--text);
  box-shadow: var(--shadow-md);
}
.care-card.recommended {
  border: 2px solid var(--text);
}

.care-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.care-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.care-price {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1;
}
.care-price-year {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.care-features {
  text-align: left;
  margin-bottom: 24px;
  flex: 1;
}
.care-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  display: flex;
  gap: 10px;
  line-height: 1.5;
}
.care-features li::before {
  content: '✓';
  color: var(--text);
  font-weight: 700;
  flex-shrink: 0;
}

.bundle-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.bundle-section h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.bundle-section .bundle-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bundle-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.bundle-item .bundle-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.bundle-item .bundle-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.bundle-item .bundle-save {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ------------------------------------------------------------------
   20. Custom Builder embed
   ------------------------------------------------------------------ */
.builder-embed {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.builder-embed iframe {
  width: 100%;
  height: 800px;
  border: 0;
  display: block;
}
.builder-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ------------------------------------------------------------------
   21. Contact Page
   ------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.contact-col h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.contact-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.qr-wrap {
  text-align: center;
  margin: 20px 0;
}
.qr-wrap img {
  width: 180px;
  height: 180px;
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  background: #FFFFFF;
}
.qr-wrap .qr-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.contact-phone {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: inline-block;
  margin-top: 8px;
}

.contact-info-list li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  line-height: 1.6;
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list li:hover {
  padding-left: 6px;
  color: var(--text);
}
.contact-info-list li .info-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.contact-info-list li .info-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  transition: stroke 0.4s var(--ease);
}
.contact-info-list li:hover .info-icon {
  transform: rotate(-4deg) scale(1.08);
  background: var(--text);
  border-color: var(--text);
}
.contact-info-list li:hover .info-icon svg { stroke: var(--bg); }

.contact-info-list a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  margin-top: 8px;
}
.contact-info-list a:hover { color: var(--text-secondary); }

.contact-form-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.contact-form-embed iframe {
  width: 100%;
  height: 500px;
  border: 0;
  display: block;
}

/* ------------------------------------------------------------------
   22. Scroll Reveal Animation
   ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in-view > *:nth-child(2) { transition-delay: 100ms; }
.stagger.in-view > *:nth-child(3) { transition-delay: 200ms; }
.stagger.in-view > *:nth-child(4) { transition-delay: 300ms; }
.stagger.in-view > *:nth-child(5) { transition-delay: 400ms; }
.stagger.in-view > *:nth-child(6) { transition-delay: 500ms; }
.stagger.in-view > *:nth-child(7) { transition-delay: 600ms; }
.stagger.in-view > *:nth-child(8) { transition-delay: 700ms; }

/* ------------------------------------------------------------------
   23. Main wrapper (for sticky header offset)
   ------------------------------------------------------------------ */
main { padding-top: 0; }

/* ------------------------------------------------------------------
   24. Responsive — Tablet (768px)
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .biz-grid     { grid-template-columns: repeat(2, 1fr); }
  .proj-grid    { grid-template-columns: repeat(2, 1fr); }
  .tiers-grid   { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .care-grid    { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .bundle-grid  { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }

  .main-nav { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-heading { font-size: 28px; }
  .section-sub { font-size: 16px; margin-bottom: 40px; }

  .steps-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid::before { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-links li { margin-bottom: 8px; }
  .footer-social { justify-content: center; }

  .tier-card.tier-popular { transform: none; }
  .tier-card.tier-popular:hover { transform: translateY(-4px); }
}

/* ------------------------------------------------------------------
   25. Responsive — Mobile (375px)
   ------------------------------------------------------------------ */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-heading { font-size: 24px; }
  .section-head-center { margin-bottom: 40px; }

  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .hero-trust { gap: 16px; font-size: 12px; flex-direction: column; }
  .hero-trust span::before { display: none; }

  .biz-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .biz-card { padding: 20px 12px; }
  .biz-card .biz-icon { font-size: 26px; }
  .biz-card .biz-name { font-size: 13px; }

  .proj-grid { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-item .stat-num { font-size: 28px; }
  .stat-item .stat-label { font-size: 11px; }

  .filter-tabs { gap: 6px; }
  .filter-tab { padding: 6px 14px; font-size: 13px; }

  .tabs-row { gap: 4px; }
  .tab-btn { padding: 8px 14px; font-size: 13px; }

  .bundle-section { padding: 24px 20px; }

  .fab-whatsapp { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .fab-whatsapp svg { width: 26px; height: 26px; }

  .faq-question { padding: 16px 18px; font-size: 15px; }
  .faq-answer-inner { padding: 0 18px 18px; font-size: 14px; }
}

/* ------------------------------------------------------------------
   26. Reduced Motion
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ------------------------------------------------------------------
   27. Print (basic)
   ------------------------------------------------------------------ */
@media print {
  .site-header, .fab-whatsapp, .scroll-indicator, .filter-bar, .tabs-nav {
    display: none !important;
  }
  body { color: #000; background: #FFF; }
}

/* ==================================================================
   28. ENHANCEMENTS — slide-in animations, multi-step form, ripples
   ================================================================== */

/* --- Staggered slide-in from bottom-left (for filtered/sorted cards) --- */
@keyframes slideInFromBottomLeft {
  0%   { opacity: 0; transform: translate(-24px, 28px); }
  100% { opacity: 1; transform: translate(0, 0); }
}
.slide-in-bl {
  animation: slideInFromBottomLeft 0.55s var(--ease) both;
}

/* --- Button micro-interactions: lift + ripple-able + active squish --- */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.btn::after {
  /* subtle sheen sweep on hover */
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(1px) scale(0.98); }

/* --- Nav link micro-interaction (slide up arrow on hover) --- */
.nav-link {
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-link:hover { transform: translateY(-1px); }

/* --- Header CTA micro-interaction --- */
.header-cta {
  position: relative;
  overflow: hidden;
}
.header-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.header-cta:hover::before { opacity: 1; }

/* --- Proj card enhanced hover --- */
.proj-card .proj-img {
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.proj-card:hover .proj-img {
  transform: scale(1.08);
  filter: brightness(1.08);
}
.proj-card .proj-name {
  transition: transform 0.4s var(--ease);
}
.proj-card:hover .proj-name { transform: translateX(4px); }

/* --- Filter tab micro-interaction --- */
.filter-tab {
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.filter-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: -1;
}
.filter-tab:not(.active):hover::before { transform: scaleX(0.06); }
.filter-tab:not(.active):hover { color: var(--text); border-color: var(--text); }

/* --- Tab button micro-interaction --- */
.tab-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}
.tab-btn:not(.active):hover::after { width: 60%; }

/* --- Care card micro-interaction enhancement --- */
.care-card .care-name {
  transition: transform 0.4s var(--ease);
}
.care-card:hover .care-name { transform: translateY(-2px); }
.care-card .care-price {
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.care-card:hover .care-price { transform: scale(1.05); }

/* --- Bundle item micro-interaction --- */
.bundle-item {
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.bundle-item:hover {
  transform: translateY(-4px);
  border-color: var(--text);
  box-shadow: var(--shadow-md);
}

/* --- Stats bar number hover --- */
.stat-item {
  transition: transform 0.4s var(--ease);
}
.stat-item:hover { transform: translateY(-4px); }
.stat-item .stat-num {
  transition: text-shadow 0.4s var(--ease);
}
.stat-item:hover .stat-num {
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

/* --- Section heading reveal enhancement --- */
.section-heading {
  transition: letter-spacing 0.6s var(--ease);
}
.section-head-center:hover .section-heading { letter-spacing: 0.005em; }

/* --- Floating WhatsApp tooltip on hover --- */
.fab-whatsapp::after,
.fab-whatsapp::before { /* keep glow rings as defined in section 15 */ }

/* --- FAQ icon smoother --- */
.faq-item:hover .faq-question { color: var(--text); }
.faq-item:hover { border-color: var(--text); }

/* --- Scroll indicator subtle bounce already exists; add fade on scroll --- */
.scroll-indicator {
  transition: opacity 0.4s var(--ease);
}

/* --- Mobile biz icon override (was emoji-styled) --- */
@media (max-width: 480px) {
  .biz-card .biz-icon { width: 40px; height: 40px; }
  .biz-card .biz-icon svg { width: 22px; height: 22px; }
}

/* ==================================================================
   29. MULTI-STEP CUSTOM BUILDER FORM
   ================================================================== */
.ms-form {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.ms-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 56px;
  align-items: start;
}

/* Progress bar (top) */
.ms-progress-wrap {
  position: sticky;
  top: 130px;
  z-index: 5;
  margin-bottom: 32px;
  padding: 14px 0;
}
.ms-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border);
}
.ms-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--text) 0%, var(--text-secondary) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.55s var(--ease);
  position: relative;
}
.ms-progress-bar::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--text);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--text);
}
.ms-progress-text {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Timeline (right column, vertical) */
.ms-timeline {
  position: sticky;
  top: 200px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}
.ms-step-dot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  cursor: default;
  transition: color 0.4s var(--ease);
}
.ms-step-dot::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: all 0.4s var(--ease);
  z-index: 1;
}
.ms-step-dot .ms-step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  width: 22px;
}
.ms-step-dot .ms-step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.4s var(--ease);
}

.ms-step-dot.active::before {
  background: var(--text);
  border-color: var(--text);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06), 0 0 16px var(--text);
  animation: stepPulse 2s ease-in-out infinite;
}
.ms-step-dot.active .ms-step-num,
.ms-step-dot.active .ms-step-label {
  color: var(--text);
  font-weight: 700;
}
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,0,0,0.06), 0 0 16px var(--text); }
  50%      { box-shadow: 0 0 0 8px rgba(0,0,0,0.04), 0 0 24px var(--text); }
}

.ms-step-dot.done::before {
  background: #25D366;
  border-color: #25D366;
}
.ms-step-dot.done::after {
  content: '✓';
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  z-index: 2;
}
.ms-step-dot.done .ms-step-num,
.ms-step-dot.done .ms-step-label {
  color: var(--text);
}

/* Steps container */
.ms-steps {
  position: relative;
  min-height: 320px;
}
.ms-step-panel {
  display: none;
  animation: msStepFade 0.55s var(--ease);
}
.ms-step-panel.active { display: block; }
@keyframes msStepFade {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ms-step-panel h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.ms-step-panel .ms-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Range slider (Step 1) */
.ms-range-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.ms-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  outline: none;
}
.ms-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--text);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--text), 0 0 12px rgba(0,0,0,0.2);
  transition: transform 0.3s var(--ease);
}
.ms-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.ms-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--text);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--text);
}
.ms-range-output {
  min-width: 90px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
}

/* Text inputs */
.ms-input,
.ms-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  margin-bottom: 12px;
}
.ms-input:focus,
.ms-textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.ms-textarea { min-height: 120px; resize: vertical; }

.ms-input-group {
  margin-bottom: 16px;
}
.ms-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Page name inputs (Step 2) */
.ms-page-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ms-page-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ms-page-input-row .ms-page-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Feature checkboxes (Step 3) */
.ms-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.ms-feature-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  user-select: none;
}
.ms-feature-chip:hover {
  border-color: var(--text);
  transform: translateX(4px);
}
.ms-feature-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ms-feature-chip .ms-check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.ms-feature-chip .ms-check-box::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.ms-feature-chip input:checked ~ .ms-check-box {
  background: var(--text);
  border-color: var(--text);
}
.ms-feature-chip input:checked ~ .ms-check-box::after { opacity: 1; }
.ms-feature-chip input:checked ~ .ms-feature-name {
  color: var(--text);
  font-weight: 600;
}
.ms-feature-chip input:checked ~ .ms-feature-price {
  color: var(--text);
  font-weight: 700;
}
.ms-feature-chip .ms-feature-name {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
  transition: color 0.3s var(--ease);
}
.ms-feature-chip .ms-feature-price {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.3s var(--ease);
}

.ms-feature-chip:has(input:checked) {
  background: var(--bg);
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

/* Running total */
.ms-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 15px;
}
.ms-total-label {
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}
.ms-total-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  transition: transform 0.3s var(--ease);
}

/* Navigation buttons */
.ms-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.ms-nav .btn { min-width: 140px; }
.ms-nav .btn[hidden] { display: none; }

/* Summary card on final step */
.ms-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.ms-summary h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.ms-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.ms-summary-row:last-child { border-bottom: none; }
.ms-summary-row .ms-label { color: var(--text-secondary); }
.ms-summary-row .ms-value { color: var(--text); font-weight: 600; }

/* Responsive — form on tablet collapses timeline to top */
@media (max-width: 900px) {
  .ms-layout { grid-template-columns: 1fr; gap: 32px; }
  .ms-timeline {
    position: relative;
    top: 0;
    flex-direction: row;
    overflow-x: auto;
    padding-left: 0;
    border-left: none;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
    gap: 28px;
  }
  .ms-step-dot {
    padding: 8px 0;
    flex-shrink: 0;
  }
  .ms-step-dot::before {
    left: 50%;
    top: -14px;
    transform: translateX(-50%);
  }
  .ms-step-dot::after {
    left: 50%;
    top: -14px;
    transform: translate(-50%, 0);
  }
  .ms-step-dot .ms-step-label { display: none; }
  .ms-step-dot .ms-step-num { display: none; }
  .ms-feature-grid { grid-template-columns: 1fr; }
}

/* ==================================================================
   30. MISC ENHANCEMENTS
   ================================================================== */

/* Scroll-down bounce enhancement */
@keyframes scrollBounceEnhanced {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.8; }
  50%      { transform: translate(-50%, 12px); opacity: 0.4; }
}
.scroll-indicator { animation: scrollBounceEnhanced 2s infinite; }

/* Hero headline subtle character breathing */
.hero-headline {
  animation: heroFadeIn 0.8s var(--ease) forwards, heroBreath 8s ease-in-out infinite 1.2s;
}
@keyframes heroBreath {
  0%, 100% { letter-spacing: -0.02em; }
  50%      { letter-spacing: -0.015em; }
}

/* Pricing card name themed color on hover */
.tier-card .tier-name {
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.tier-card:hover .tier-name {
  color: var(--tier-accent, #FFFFFF);
  transform: translateY(-2px);
}

/* Tier features list — animated check on hover */
.tier-features li {
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.tier-card:hover .tier-features li:hover {
  transform: translateX(4px);
  color: #FFFFFF;
}

/* Care features list animated check on hover */
.care-features li {
  transition: transform 0.3s var(--ease);
}
.care-card:hover .care-features li:hover { transform: translateX(4px); }

/* Hero trust row micro-interaction */
.hero-trust span {
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-trust span:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* FAQ question hover */
.faq-question { transition: color 0.3s var(--ease); }
.faq-question:hover { color: var(--accent); }

/* Card glow ring on focus (accessibility + looks) */
.tier-card:focus-within,
.feature-card:focus-within,
.care-card:focus-within,
.proj-card:focus-within,
.biz-card:focus-within {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}
