/* ==========================================================================
   ALFAIZ Web Agency - Production Stylesheet (Revised)
   Author: ALFAIZ Web Agency
   Version: 2.0.0 (Refined Corporate Design)
   Palette: Soft Blue Primary, Dark Navy Headings/Footer, White/Cyan Accents
   Fonts: Poppins (Headings), Inter (Body)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   [REVISION]: Consistent 16px card radius, increased section spacing,
   single clear primary accent color, and soft modern shadows.
   -------------------------------------------------------------------------- */
:root {
  /* [REVISION]: Single clear primary accent blue from logo */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-primary-subtle: #eff6ff;
  --color-primary-soft: #dbeafe;

  /* Dark Navy for Headings, Header & Footer */
  --color-navy-950: #070d1e;
  --color-navy-900: #0b152d;
  --color-navy-800: #132347;
  --color-navy-700: #1e3567;

  /* Accent Tints */
  --color-accent-cyan: #06b6d4;
  --color-accent-cyan-light: #e0f7fa;

  /* Neutral Backgrounds & Text */
  --color-bg-body: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-card: #ffffff;
  --color-text-main: #334155;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-white: #ffffff;
  --color-border-light: #e2e8f0;
  --color-border-hover: #cbd5e1;

  /* Status Colors */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-error: #ef4444;
  --color-error-bg: #fef2f2;

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Soft Shadows */
  --shadow-xs: 0 1px 3px rgba(11, 21, 45, 0.04);
  --shadow-sm: 0 4px 12px rgba(11, 21, 45, 0.05);
  --shadow-md: 0 12px 28px -6px rgba(11, 21, 45, 0.08), 0 6px 12px -4px rgba(11, 21, 45, 0.03);
  --shadow-lg: 0 24px 44px -8px rgba(11, 21, 45, 0.12), 0 12px 18px -6px rgba(11, 21, 45, 0.04);
  --shadow-card-hover: 0 18px 36px -4px rgba(37, 99, 235, 0.14), 0 8px 16px -2px rgba(11, 21, 45, 0.05);

  /* [REVISION]: Uniform 16px radius for all cards */
  --radius-card: 16px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* [REVISION]: Increased spacing between sections */
  --container-max: 1220px;
  --section-padding: 7rem 1.5rem;
  --header-height: 72px;
  --header-height-compact: 62px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  line-height: 1.68;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* [REVISION]: Bolder headings with tighter letter spacing */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy-900);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--color-primary-hover);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3.5vw, 1.5rem);
  padding-right: clamp(1rem, 3.5vw, 1.5rem);
  box-sizing: border-box;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--color-primary-subtle);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-soft);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.15rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  color: var(--color-navy-900);
  margin-bottom: 1.1rem;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   3. Buttons & Interactive Controls
   [REVISION]: Single primary brand accent blue button; no WhatsApp buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.975rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: var(--color-white);
  color: var(--color-navy-900);
  border: 1.5px solid var(--color-border-light);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  transition: height var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  height: var(--header-height-compact);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(11, 21, 45, 0.08);
  border-bottom-color: var(--color-border-light);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-navy-900);
}

.brand-logo img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-normal);
  object-fit: contain;
}

.navbar.scrolled .brand-logo img {
  height: 38px;
}

.brand-logo:hover img {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy-900);
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.68rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.nav-menu .mobile-nav-cta {
  display: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-navy-800);
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-soft);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-navy-900);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   [REVISION]: Layout fixed: padding-bottom at least 48px, 16px extra space
   between subtext and buttons, headline line breaks on desktop.
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: clamp(64px, 8vh, 88px); /* [REVISION]: padding-bottom at least 64px */
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 50%, #eff6ff 100%);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 580px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--color-white);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-xs);
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  color: var(--color-navy-900);
  line-height: 1.15;
  margin-bottom: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* [REVISION]: Headline line breaks on desktop: "Business Websites That" & "Bring Customers" */
.hero-title-break {
  display: block;
}

.hero-title .highlight-blue {
  color: var(--color-primary);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  font-weight: 700;
  color: var(--color-navy-800);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.hero-subtext {
  font-size: clamp(0.925rem, 1.25vw, 1.025rem);
  color: var(--color-text-main);
  line-height: 1.62;
  margin-bottom: calc(1.25rem + 16px); /* [REVISION]: 16px more space between subtext and buttons */
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-cta-group .btn {
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
}

/* [REVISION]: Hero Right-Side Looping Decorative Workflow Animation
   12-second CSS keyframe loop displaying four stage scenes:
   - Card height auto, with no fixed height.
   - display: flex; flex-direction: column; gap: 16px; padding: 24px.
   - Scale wireframe and code scenes with width: 100% and aspect-ratio: 4 / 3.
   - Stage tracker and footer row inside the card.
   -------------------------------------------------------------------------- */
.hero-banner-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.workflow-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 55%, #e0f2fe 100%);
  border: 1.5px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-card); /* 16px */
  box-shadow: 0 20px 40px -8px rgba(37, 99, 235, 0.14), 0 8px 18px -4px rgba(11, 21, 45, 0.06);
  padding: 24px; /* [REVISION]: 24px padding */
  width: 100%;
  max-width: 100%;
  height: auto; /* [REVISION]: Card height auto, no fixed height */
  display: flex; /* [REVISION]: display: flex; flex-direction: column; gap: 16px */
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Card Header: ALFAIZ Inbox with window dots on the left */
.workflow-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  margin-bottom: 0;
}

.workflow-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workflow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.workflow-header-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy-900);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.workflow-header-icon {
  width: 14px;
  height: 14px;
  stroke: var(--color-primary);
}

/* Workflow Visual Loop Body */
.workflow-card-body {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 16px;
  width: 100%;
}

/* [REVISION]: 4-Stage Scene Viewport: aspect-ratio 4/3 scales responsively without overflowing */
.hero-scenes-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
}

.scene-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
  will-change: opacity, transform;
}

/* Caption pill at bottom of each scene */
.scene-caption {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 99, 235, 0.16);
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(11, 21, 45, 0.04);
}

.caption-icon {
  width: 13px;
  height: 13px;
  stroke: var(--color-primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   STAGE 1: CONSULTATION (0s to 3s)
   -------------------------------------------------------------------------- */
.scene-consultation {
  animation: stage1Scene 12s infinite ease-in-out;
}

.chat-messages-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.workflow-bubble {
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.42;
  box-shadow: 0 4px 12px rgba(11, 21, 45, 0.05);
  word-break: break-word;
  will-change: transform, opacity;
}

.workflow-bubble p {
  margin: 0;
}

.client-bubble {
  align-self: flex-start;
  max-width: 84%;
  background: var(--color-white);
  color: var(--color-navy-900);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px 14px 14px 4px;
  animation: stage1ClientBubble 12s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.reply-bubble {
  align-self: flex-end;
  max-width: 84%;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  animation: stage1ReplyBubble 12s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stage 1 Keyframe: Consultation Scene Container */
@keyframes stage1Scene {
  0% {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  22.5% {
    opacity: 1;
    transform: none;
  }
  25%, 100% {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }
}

/* Stage 1 Keyframe: Client Bubble Slide from Left */
@keyframes stage1ClientBubble {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  4.5%, 22.5% {
    opacity: 1;
    transform: translateX(0);
  }
  25%, 100% {
    opacity: 0;
    transform: translateX(-20px);
  }
}

/* Stage 1 Keyframe: Reply Bubble Slide from Right */
@keyframes stage1ReplyBubble {
  0%, 6.5% {
    opacity: 0;
    transform: translateX(20px);
  }
  11.5%, 22.5% {
    opacity: 1;
    transform: translateX(0);
  }
  25%, 100% {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* --------------------------------------------------------------------------
   STAGE 2: DESIGN (3s to 6s)
   -------------------------------------------------------------------------- */
.scene-design {
  animation: stage2Scene 12s infinite ease-in-out;
}

.design-canvas {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 4px 14px rgba(11, 21, 45, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
}

.design-swatches {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: stage2Swatches 12s infinite ease-out;
}

.swatch-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.swatch-pill {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.swatch-soft-blue { background: #60a5fa; }
.swatch-navy { background: #0b152d; }
.swatch-cyan { background: #38bdf8; }

.wireframe-art {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.wireframe-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.45rem;
  border: 1.5px solid var(--color-primary);
  border-radius: 5px;
  background: rgba(37, 99, 235, 0.03);
  animation: stage2WireNav 12s infinite ease-out;
}

.wire-logo {
  width: 36px;
  height: 7px;
  background: var(--color-primary);
  border-radius: 2px;
}

.wire-links {
  display: flex;
  gap: 4px;
}

.wire-links span {
  width: 14px;
  height: 5px;
  background: rgba(37, 99, 235, 0.4);
  border-radius: 2px;
}

.wireframe-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.35rem;
  border: 1.5px dashed var(--color-primary);
  border-radius: 5px;
  background: rgba(37, 99, 235, 0.02);
  animation: stage2WireHero 12s infinite ease-out;
}

.wire-heading {
  width: 60%;
  height: 7px;
  background: var(--color-primary);
  border-radius: 2px;
}

.wire-subtext {
  width: 80%;
  height: 4px;
  background: rgba(37, 99, 235, 0.35);
  border-radius: 2px;
}

.wire-btn {
  width: 42px;
  height: 9px;
  background: var(--color-primary);
  border-radius: 3px;
}

.wireframe-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  animation: stage2WireCards 12s infinite ease-out;
}

.wire-card {
  border: 1.5px solid var(--color-primary);
  border-radius: 5px;
  padding: 0.3rem 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: #ffffff;
}

.wire-card-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
}

.wire-card-line {
  width: 75%;
  height: 4px;
  background: rgba(37, 99, 235, 0.35);
  border-radius: 2px;
}

/* Stage 2 Keyframe: Design Scene Container */
@keyframes stage2Scene {
  0%, 24.9% {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
  }
  25% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  47.5% {
    opacity: 1;
    transform: translateY(0);
  }
  50%, 100% {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }
}

/* Stage 2 Keyframe: Swatches Fade In */
@keyframes stage2Swatches {
  0%, 25.5% {
    opacity: 0;
    transform: translateY(-6px);
  }
  29%, 47.5% {
    opacity: 1;
    transform: translateY(0);
  }
  50%, 100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Stage 2 Keyframe: Wireframe Navbar Reveal */
@keyframes stage2WireNav {
  0%, 28% {
    opacity: 0;
    transform: scaleX(0.85);
  }
  32%, 47.5% {
    opacity: 1;
    transform: scaleX(1);
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Stage 2 Keyframe: Wireframe Hero Block Reveal */
@keyframes stage2WireHero {
  0%, 32% {
    opacity: 0;
    transform: translateY(6px);
  }
  36%, 47.5% {
    opacity: 1;
    transform: translateY(0);
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Stage 2 Keyframe: Wireframe Service Cards Reveal */
@keyframes stage2WireCards {
  0%, 36.5% {
    opacity: 0;
    transform: translateY(8px);
  }
  41%, 47.5% {
    opacity: 1;
    transform: translateY(0);
  }
  50%, 100% {
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   STAGE 3: DEVELOPMENT (6s to 9s)
   -------------------------------------------------------------------------- */
.scene-development {
  animation: stage3Scene 12s infinite ease-in-out;
}

.code-editor-panel {
  background: #0b152d;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 8px 24px rgba(11, 21, 45, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-dots {
  display: flex;
  gap: 4px;
}

.editor-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.editor-file {
  font-family: monospace;
  font-size: 0.68rem;
  color: #94a3b8;
}

.editor-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: clamp(0.7rem, 2.3vw, 0.78rem);
  line-height: 1.45;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
}

.line-num {
  color: #475569;
  width: 12px;
  flex-shrink: 0;
  user-select: none;
  font-size: 0.68rem;
}

.code-text {
  color: #38bdf8;
  font-weight: 500;
}

.code-line-1 {
  animation: stage3CodeLine1 12s infinite ease-out;
}

.code-line-2 {
  animation: stage3CodeLine2 12s infinite ease-out;
}

.code-line-3 {
  animation: stage3CodeLine3 12s infinite ease-out;
}

.code-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: #38bdf8;
  margin-left: 3px;
  vertical-align: middle;
  animation: stage3CursorBlink 0.8s infinite;
}

/* Stage 3 Keyframe: Development Scene Container */
@keyframes stage3Scene {
  0%, 49.9% {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
  }
  50% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  72.5% {
    opacity: 1;
    transform: translateY(0);
  }
  75%, 100% {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }
}

/* Stage 3 Keyframe: Code Line 1 Typing Reveal */
@keyframes stage3CodeLine1 {
  0%, 51% {
    opacity: 0;
    transform: translateX(-10px);
  }
  54.5%, 72.5% {
    opacity: 1;
    transform: translateX(0);
  }
  75%, 100% {
    opacity: 0;
  }
}

/* Stage 3 Keyframe: Code Line 2 Typing Reveal */
@keyframes stage3CodeLine2 {
  0%, 57% {
    opacity: 0;
    transform: translateX(-10px);
  }
  60.5%, 72.5% {
    opacity: 1;
    transform: translateX(0);
  }
  75%, 100% {
    opacity: 0;
  }
}

/* Stage 3 Keyframe: Code Line 3 Typing Reveal */
@keyframes stage3CodeLine3 {
  0%, 63% {
    opacity: 0;
    transform: translateX(-10px);
  }
  66.5%, 72.5% {
    opacity: 1;
    transform: translateX(0);
  }
  75%, 100% {
    opacity: 0;
  }
}

/* Stage 3 Keyframe: Blinking Cursor */
@keyframes stage3CursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   STAGE 4: LAUNCH (9s to 11s)
   -------------------------------------------------------------------------- */
.scene-launch {
  animation: stage4Scene 12s infinite ease-in-out;
}

.browser-window {
  background: #ffffff;
  border: 1.5px solid rgba(37, 99, 235, 0.2);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(11, 21, 45, 0.05);
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.browser-chrome {
  background: #f8fafc;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  padding: 0.35rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.browser-dots {
  display: flex;
  gap: 4px;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-address-bar {
  flex: 1;
  max-width: 160px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.12rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.browser-lock-icon {
  width: 10px;
  height: 10px;
  stroke: #94a3b8;
  flex-shrink: 0;
}

.browser-url {
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
}

.browser-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  animation: stage4LiveBadge 12s infinite ease-out;
}

.live-check-icon {
  width: 11px;
  height: 11px;
  stroke: #059669;
}

.browser-viewport {
  padding: 0.45rem 0.55rem;
  background: #f8fbff;
}

.launch-site-preview {
  animation: stage4SiteSlide 12s infinite ease-out;
}

.launch-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.22rem 0.45rem;
  background: var(--color-primary);
  border-radius: 4px;
  margin-bottom: 0.3rem;
}

.launch-logo {
  width: 30px;
  height: 6px;
  background: #ffffff;
  border-radius: 2px;
}

.launch-links {
  display: flex;
  gap: 4px;
}

.launch-links span {
  width: 12px;
  height: 4px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
}

.launch-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 4px;
  padding: 0.4rem 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.3rem;
  border: 1px solid #bfdbfe;
}

.launch-heading {
  width: 55%;
  height: 6px;
  background: var(--color-navy-900);
  border-radius: 2px;
}

.launch-subtext {
  width: 75%;
  height: 4px;
  background: #64748b;
  border-radius: 2px;
}

.launch-btn {
  width: 38px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 3px;
}

.launch-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
}

.launch-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 2.5px solid var(--color-primary);
  border-radius: 4px;
  padding: 0.25rem 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.launch-card-bar {
  width: 60%;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

.launch-card-text {
  width: 75%;
  height: 3px;
  background: #cbd5e1;
  border-radius: 1.5px;
}

/* Stage 4 Keyframe: Launch Scene Container */
@keyframes stage4Scene {
  0%, 74.9% {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
  }
  75% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  91.67% {
    opacity: 1;
    transform: translateY(0);
  }
  97%, 100% {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }
}

/* Stage 4 Keyframe: Live Badge Pop */
@keyframes stage4LiveBadge {
  0%, 78% {
    opacity: 0;
    transform: scale(0.6);
  }
  82%, 91.67% {
    opacity: 1;
    transform: scale(1);
  }
  97%, 100% {
    opacity: 0;
    transform: scale(0.6);
  }
}

/* Stage 4 Keyframe: Website Slide In & Color Fill */
@keyframes stage4SiteSlide {
  0%, 74.9% {
    opacity: 0;
    transform: translateY(12px);
  }
  78%, 91.67% {
    opacity: 1;
    transform: translateY(0);
  }
  97%, 100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* --------------------------------------------------------------------------
   STAGE TRACKER: Synced 12-second 4-stage progression
   0s - 3s: Consultation (Dot 1)
   3s - 6s: Design (Dots 1 & 2)
   6s - 9s: Development (Dots 1, 2, & 3)
   9s - 11s: Launch (All 4 Dots)
   11s - 12s: Fade out and reset
   -------------------------------------------------------------------------- */
.workflow-tracker-wrap {
  position: relative;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
  animation: trackerFade12s 12s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* Keyframe: Stage Tracker Overall Fade */
@keyframes trackerFade12s {
  0%, 91.67% {
    opacity: 1;
  }
  97%, 100% {
    opacity: 0.2;
  }
}

.workflow-tracker-line {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: rgba(37, 99, 235, 0.15);
  z-index: 1;
}

.workflow-tracker-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  animation: trackerProgress12s 12s infinite cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Keyframe: Progress Line Filling Between Stages */
@keyframes trackerProgress12s {
  0%, 24.9% {
    transform: scaleX(0);
  }
  25%, 49.9% {
    transform: scaleX(0.33);
  }
  50%, 74.9% {
    transform: scaleX(0.66);
  }
  75%, 91.67% {
    transform: scaleX(1);
  }
  97%, 100% {
    transform: scaleX(0);
  }
}

.workflow-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
  gap: 0.25rem;
}

.workflow-stage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.28rem;
}

.stage-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid rgba(37, 99, 235, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.stage-dot-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  will-change: opacity;
}

.stage-dot svg {
  width: 11px;
  height: 11px;
  color: var(--color-white);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.5);
  will-change: opacity, transform;
}

.stage-label {
  font-family: var(--font-heading);
  font-size: clamp(0.58rem, 1.8vw, 0.7rem);
  color: var(--color-text-muted);
  font-weight: 500;
  line-height: 1.2;
}

/* Stage 1 Tracker: Active from 0s */
.stage-1 .stage-dot-fill { animation: stageDotFill1 12s infinite; }
.stage-1 .stage-dot svg { animation: stageDotCheck1 12s infinite; }
.stage-1 .stage-label { animation: stageText1 12s infinite; }

/* Stage 1 Tracker Keyframes */
@keyframes stageDotFill1 {
  0%, 91.67% {
    opacity: 1;
  }
  97%, 100% {
    opacity: 0;
  }
}

@keyframes stageDotCheck1 {
  0%, 91.67% {
    opacity: 1;
    transform: scale(1);
  }
  97%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes stageText1 {
  0%, 91.67% {
    opacity: 1;
    color: var(--color-navy-900);
    font-weight: 700;
  }
  97%, 100% {
    opacity: 0.7;
    color: var(--color-text-muted);
    font-weight: 500;
  }
}

/* Stage 2 Tracker: Active from 3s (25%) */
.stage-2 .stage-dot-fill { animation: stageDotFill2 12s infinite; }
.stage-2 .stage-dot svg { animation: stageDotCheck2 12s infinite; }
.stage-2 .stage-label { animation: stageText2 12s infinite; }

/* Stage 2 Tracker Keyframes */
@keyframes stageDotFill2 {
  0%, 24.9% {
    opacity: 0;
  }
  25%, 91.67% {
    opacity: 1;
  }
  97%, 100% {
    opacity: 0;
  }
}

@keyframes stageDotCheck2 {
  0%, 24.9% {
    opacity: 0;
    transform: scale(0.5);
  }
  25%, 91.67% {
    opacity: 1;
    transform: scale(1);
  }
  97%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes stageText2 {
  0%, 24.9% {
    opacity: 0.7;
    color: var(--color-text-muted);
    font-weight: 500;
  }
  25%, 91.67% {
    opacity: 1;
    color: var(--color-navy-900);
    font-weight: 700;
  }
  97%, 100% {
    opacity: 0.7;
    color: var(--color-text-muted);
    font-weight: 500;
  }
}

/* Stage 3 Tracker: Active from 6s (50%) */
.stage-3 .stage-dot-fill { animation: stageDotFill3 12s infinite; }
.stage-3 .stage-dot svg { animation: stageDotCheck3 12s infinite; }
.stage-3 .stage-label { animation: stageText3 12s infinite; }

/* Stage 3 Tracker Keyframes */
@keyframes stageDotFill3 {
  0%, 49.9% {
    opacity: 0;
  }
  50%, 91.67% {
    opacity: 1;
  }
  97%, 100% {
    opacity: 0;
  }
}

@keyframes stageDotCheck3 {
  0%, 49.9% {
    opacity: 0;
    transform: scale(0.5);
  }
  50%, 91.67% {
    opacity: 1;
    transform: scale(1);
  }
  97%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes stageText3 {
  0%, 49.9% {
    opacity: 0.7;
    color: var(--color-text-muted);
    font-weight: 500;
  }
  50%, 91.67% {
    opacity: 1;
    color: var(--color-navy-900);
    font-weight: 700;
  }
  97%, 100% {
    opacity: 0.7;
    color: var(--color-text-muted);
    font-weight: 500;
  }
}

/* Stage 4 Tracker: Active from 9s (75%) */
.stage-4 .stage-dot-fill { animation: stageDotFill4 12s infinite; }
.stage-4 .stage-dot svg { animation: stageDotCheck4 12s infinite; }
.stage-4 .stage-label { animation: stageText4 12s infinite; }

/* Stage 4 Tracker Keyframes */
@keyframes stageDotFill4 {
  0%, 74.9% {
    opacity: 0;
  }
  75%, 91.67% {
    opacity: 1;
  }
  97%, 100% {
    opacity: 0;
  }
}

@keyframes stageDotCheck4 {
  0%, 74.9% {
    opacity: 0;
    transform: scale(0.5);
  }
  75%, 91.67% {
    opacity: 1;
    transform: scale(1);
  }
  97%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes stageText4 {
  0%, 74.9% {
    opacity: 0.7;
    color: var(--color-text-muted);
    font-weight: 500;
  }
  75%, 91.67% {
    opacity: 1;
    color: var(--color-navy-900);
    font-weight: 700;
  }
  97%, 100% {
    opacity: 0.7;
    color: var(--color-text-muted);
    font-weight: 500;
  }
}

/* Card Footer: Small logo in footer, clean corporate styling */
.workflow-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
}

.workflow-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.workflow-mini-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(11, 21, 45, 0.08);
}

.workflow-brand-title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy-900);
  line-height: 1.15;
}

/* --------------------------------------------------------------------------
   6. Stats Bar (Separate full-width section directly below hero)
   [REVISION]: Position static, margin-top: 0, no negative margin or overlap,
   max-width 900px, 24px padding, rounded 16px, soft shadow.
   -------------------------------------------------------------------------- */
.stats-section,
.stats-bar-wrapper {
  position: static; /* [REVISION]: position: static */
  margin-top: 0;
  margin-bottom: 0;
  padding: 36px 0 48px 0;
  z-index: 5;
  background: transparent;
  transform: none;
}

.stats-card {
  background: var(--color-white);
  border-radius: 16px; /* [REVISION]: rounded 16px */
  padding: 24px; /* [REVISION]: 24px padding */
  box-shadow: 0 10px 30px -4px rgba(11, 21, 45, 0.08), 0 4px 12px -2px rgba(11, 21, 45, 0.04); /* soft shadow */
  border: 1px solid var(--color-border-light);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px; /* [REVISION]: max-width 900px */
  margin: 0 auto; /* centered */
  box-sizing: border-box;
  width: 100%;
  transform: none;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--color-border-light);
}

.stat-number-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy-800);
}

/* --------------------------------------------------------------------------
   7. Services Section
   [REVISION]: 8 cards (removed WordPress & Shopify Setup), 16px card radius
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  padding: 2.25rem 1.75rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.4);
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  transition: all var(--transition-normal);
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.service-card:hover .service-icon-box svg {
  transform: scale(1.08);
}

.service-title {
  font-size: 1.2rem;
  color: var(--color-navy-900);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.service-desc {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Packages Section
   [REVISION]: Removed WhatsApp reference; uniform 16px card radius
   -------------------------------------------------------------------------- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.package-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.4);
}

.package-card.popular {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  white-space: nowrap;
}

.package-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 1.5rem;
}

.package-name {
  font-size: 1.65rem;
  color: var(--color-navy-900);
  margin-bottom: 0.35rem;
}

.package-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.package-delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.4rem 0.9rem;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
}

.package-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.package-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--color-text-main);
  line-height: 1.5;
}

.package-feature-item svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.package-note-box {
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary-light);
  font-size: 0.825rem;
  color: var(--color-text-muted);
}

.packages-disclaimer {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   8. Portfolio Demo Section (Dynamic Demo Management System)
   [REVISION]: Reusable Dynamic System driven by js/demos.js
   - Dynamic Category Filter Bar (Pill style buttons, active blue state)
   - 3-column responsive card grid (2-col tablet, 1-col mobile)
   - 16px radius cards, soft shadows, hover elevation
   - Resilient preview container with branded SVG/HTML fallback for missing images
   - Accessible Live Preview button opening demo in new tab
   -------------------------------------------------------------------------- */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy-800);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.filter-btn:hover {
  color: var(--color-primary);
  border-color: rgba(37, 99, 235, 0.4);
  background: var(--color-primary-subtle);
  transform: translateY(-1px);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.filter-btn.active {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.portfolio-card {
  background: var(--color-white);
  border-radius: var(--radius-card); /* 16px */
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.35);
}

/* Card Preview Box: 230px height, relative, overflow hidden */
.portfolio-preview {
  position: relative;
  height: 230px;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #070d1e 0%, #0b152d 50%, #1e3a8a 100%);
  border-bottom: 1px solid var(--color-border-light);
}

/* Preview Image: Positioned over fallback, object-fit cover */
.portfolio-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 2;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

/* When image fails to load, gracefully hidden to display clean fallback */
.portfolio-img.is-hidden {
  display: none !important;
}

/* Sleek Branded Fallback (Never shows broken image icon) */
.portfolio-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(145deg, #070d1e 0%, #0b152d 55%, #172554 100%);
  color: var(--color-white);
  user-select: none;
}

.fallback-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.fallback-browser-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.fallback-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.fallback-dot.dot-red { background-color: #ef4444; }
.fallback-dot.dot-yellow { background-color: #f59e0b; }
.fallback-dot.dot-green { background-color: #10b981; }

.fallback-browser-url {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.68rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fallback-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
}

.fallback-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.fallback-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.fallback-cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-cyan);
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
}

.fallback-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
}

.fallback-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fallback-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Hover Overlay with Instant Launch Link */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(7, 13, 30, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  padding: 1.5rem;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay .overlay-btn {
  transform: translateY(10px);
  transition: transform var(--transition-normal), background var(--transition-fast);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.portfolio-card:hover .portfolio-overlay .overlay-btn {
  transform: translateY(0);
}

/* Card Info Body */
.portfolio-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.95rem;
}

.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.portfolio-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.portfolio-category-pill .meta-icon {
  display: inline-flex;
  align-items: center;
}

.portfolio-category-pill .meta-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

.portfolio-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.portfolio-status-pill .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
}

.portfolio-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-navy-900);
  line-height: 1.3;
  margin: 0;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--color-text-main);
  line-height: 1.58;
  margin: 0;
  flex-grow: 1;
}

.portfolio-card-footer {
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.portfolio-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.portfolio-launch-btn .btn-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.portfolio-launch-btn:hover .btn-icon {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   8b. Dynamic Demos Archive, Search & View All Components
   -------------------------------------------------------------------------- */
/* Homepage: "View All Demos" Button Container (Requirement 4) */
.portfolio-view-all-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3.5rem;
  width: 100%;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-view-all:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-view-all .btn-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform var(--transition-fast);
}

.btn-view-all:hover .btn-icon {
  transform: translateX(3px);
}

.view-all-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.btn-view-all:hover .view-all-badge {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

/* Dedicated Demos Archive Page Styles (demos.html - Requirement 5) */
.page-archive .navbar .nav-link[href="demos.html"] {
  color: var(--color-primary);
}

.archive-hero {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 3.5rem;
  background: radial-gradient(circle at 50% 0%, rgba(219, 234, 254, 0.5) 0%, rgba(255, 255, 255, 0.95) 60%, #ffffff 100%);
}

.archive-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.archive-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-navy-900);
  line-height: 1.2;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.archive-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 660px;
}

/* Demo Search Component (demos.html) */
.demo-search-container {
  max-width: 620px;
  margin: 0 auto 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-search-box {
  position: relative;
  width: 100%;
}

.demo-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #94a3b8;
  pointer-events: none;
}

.demo-search-input {
  width: 100%;
  padding: 0.95rem 3.25rem 0.95rem 3.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-navy-900);
  background: var(--color-white);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: all var(--transition-fast);
  outline: none;
}

.demo-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 4px 16px rgba(15, 23, 42, 0.08);
}

.demo-search-input::placeholder {
  color: #94a3b8;
}

.demo-search-clear {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all var(--transition-fast);
}

.demo-search-clear:hover {
  background: #e2e8f0;
  color: var(--color-navy-900);
}

.demo-search-clear svg {
  width: 14px;
  height: 14px;
}

.demo-search-status {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.demo-search-status strong {
  color: var(--color-navy-900);
  font-weight: 700;
}

/* Archive Bottom Call-To-Action Card */
.archive-cta-section {
  padding: 2.5rem 0 5.5rem;
}

.archive-cta-card {
  background: linear-gradient(135deg, #070d1e 0%, #0b152d 50%, #1e3a8a 100%);
  border-radius: var(--radius-card);
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: var(--color-white);
  box-shadow: 0 20px 40px rgba(7, 13, 30, 0.25);
  position: relative;
  overflow: hidden;
}

.archive-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.archive-cta-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.archive-cta-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.archive-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--color-navy-900);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   9. Process Section (Zig-Zag Timeline with Center Line)
   [REVISION]:
   - Desktop (768px+): 4 steps zig-zag across a single vertical center blue line
     (Step 1 Left, Step 2 Right, Step 3 Left, Step 4 Right)
   - Line draws down using transform: scaleY only
   - Step circle lights up (brand blue fill, white icon) when line reaches it
   - Text cards: white background, 16px radius, soft shadow, padding 24px
   - Hover: Card lifts 4px with a soft blue glow (desktop only)
   -------------------------------------------------------------------------- */
.process-timeline-wrapper {
  position: relative;
  max-width: 1060px;
  margin: 3.5rem auto 0 auto;
}

/* Center vertical blue line: single line connecting all steps */
.process-timeline-line {
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  overflow: hidden;
  z-index: 1;
}

/* Blue center line progress: draws down via transform: scaleY (transform only) */
.process-timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary) 0%, #38bdf8 100%);
  border-radius: 999px;
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Line animation triggered when wrapper or individual steps are revealed */
.process-timeline-wrapper.is-revealed .process-timeline-progress {
  transform: scaleY(1);
}

.process-timeline-wrapper:has(.step-1.is-revealed) .process-timeline-progress {
  transform: scaleY(0.28);
}

.process-timeline-wrapper:has(.step-2.is-revealed) .process-timeline-progress {
  transform: scaleY(0.55);
}

.process-timeline-wrapper:has(.step-3.is-revealed) .process-timeline-progress {
  transform: scaleY(0.82);
}

.process-timeline-wrapper:has(.step-4.is-revealed) .process-timeline-progress {
  transform: scaleY(1);
}

.process-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

/* Desktop Zig-Zag Row: 1fr 84px 1fr */
.process-timeline-item {
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  align-items: center;
  gap: 2.5rem;
  position: relative;
}

/* Center Node / Circle on the line */
.process-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
}

.step-marker {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid rgba(37, 99, 235, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--color-primary-subtle);
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  position: relative;
  z-index: 3;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition-normal);
}

.step-marker svg {
  width: 26px;
  height: 26px;
  color: var(--color-navy-900);
  transition: color var(--transition-normal);
}

/* Step Circle Lights Up: brand blue fill, white icon */
.process-timeline-item.is-revealed .step-marker {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.22), 0 10px 24px rgba(37, 99, 235, 0.35);
}

.process-timeline-item.is-revealed .step-marker .step-num {
  color: #ffffff;
}

.process-timeline-item.is-revealed .step-marker svg {
  color: #ffffff;
}

/* Text Card: white background, 16px radius, soft shadow, padding 24px */
.process-card {
  background: var(--color-white);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-card); /* 16px */
  box-shadow: 0 4px 20px -2px rgba(11, 21, 45, 0.07), 0 2px 6px -1px rgba(11, 21, 45, 0.04);
  padding: 24px;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.step-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step-title {
  font-size: 1.25rem;
  color: var(--color-navy-900);
  font-weight: 800;
  margin: 0;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Card Fades In From Its Side */
.process-timeline-item.step-left .process-card {
  opacity: 0;
  transform: translateX(-32px);
}

.process-timeline-item.step-right .process-card {
  opacity: 0;
  transform: translateX(32px);
}

.process-timeline-item.is-revealed .process-card {
  opacity: 1;
  transform: translateX(0);
}

/* Hover: Card lifts 4px with a soft blue glow (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px -4px rgba(37, 99, 235, 0.2), 0 4px 12px -2px rgba(11, 21, 45, 0.06);
    border-color: rgba(37, 99, 235, 0.3);
  }
}

/* --------------------------------------------------------------------------
   10. Why Choose Us Section
   -------------------------------------------------------------------------- */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.why-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.4);
}

.why-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  transition: all var(--transition-normal);
}

.why-icon-box svg {
  width: 28px;
  height: 28px;
}

.why-card:hover .why-icon-box {
  background: var(--color-primary);
  color: var(--color-white);
}

.why-title {
  font-size: 1.15rem;
  color: var(--color-navy-900);
  margin-bottom: 0.65rem;
  font-weight: 800;
}

.why-desc {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faq-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-primary-soft);
}

.faq-item.is-open {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy-900);
  text-align: left;
  gap: 1.25rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform var(--transition-normal);
}

.faq-icon svg {
  width: 18px;
  height: 18px;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-answer-inner {
  padding: 0 1.75rem 1.5rem 1.75rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.65;
  border-top: 1px solid transparent;
}

.faq-item.is-open .faq-answer-inner {
  border-top-color: var(--color-primary-subtle);
}

/* --------------------------------------------------------------------------
   13. Contact Section
   [REVISION]: Email is the main contact line; no WhatsApp; 16px radius
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-col h3 {
  font-size: 2rem;
  color: var(--color-navy-900);
  margin-bottom: 1rem;
}

.contact-info-col p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.contact-channel-card:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.channel-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon.email {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.channel-icon svg {
  width: 24px;
  height: 24px;
}

.channel-details h4 {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.channel-link {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 3.5vw, 1.05rem);
  font-weight: 700;
  color: var(--color-navy-900);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.channel-link:hover {
  color: var(--color-primary);
}

.contact-trust-note {
  padding: 1.25rem;
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-soft);
  border-radius: var(--radius-card);
  font-size: 0.875rem;
  color: var(--color-navy-800);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-trust-note svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 1rem; /* 16px prevents iOS Safari auto-zoom on input focus */
  color: var(--color-navy-900);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-alert {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.form-alert.success {
  background: var(--color-success-bg);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-alert.error {
  background: var(--color-error-bg);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.spinner {
  display: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.btn.is-loading .spinner {
  display: inline-block;
}

.btn.is-loading .btn-text {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   14. Footer
   [REVISION]: WhatsApp references removed; direct email contact displayed
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-navy-950);
  color: #94a3b8;
  padding-top: 5.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .brand-logo {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-brand .brand-name {
  color: var(--color-white);
}

.footer-brand p {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  transition: color var(--transition-fast);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.footer-contact-link:hover {
  color: var(--color-accent-cyan);
}

.footer-contact-link svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.925rem;
  color: #94a3b8;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--color-white);
  transform: translateX(4px);
}

.footer-social-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.social-connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.social-connect-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-fast);
}

.social-connect-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.social-connect-btn:hover svg {
  transform: scale(1.15);
}

.social-connect-btn.fiverr:hover { border-color: #00b22d; color: #1dbf73; }
.social-connect-btn.youtube:hover { border-color: #ff0000; color: #ff4e4e; }
.social-connect-btn.linkedin:hover { border-color: #0a66c2; color: #38bdf8; }
.social-connect-btn.instagram:hover { border-color: #e1306c; color: #f472b6; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #64748b;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--color-primary-light);
}

.back-to-top svg {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   15. Scroll Reveal Utilities
   -------------------------------------------------------------------------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(28px);
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* --------------------------------------------------------------------------
   16. Floating Email Contact Button (Replaces WhatsApp Floating Button)
   Fixed bottom-right corner, envelope icon, pulse animation, desktop hover tooltip
   -------------------------------------------------------------------------- */
.floating-email-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1080;
  display: flex;
  align-items: center;
}

.floating-email-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), 0 2px 6px rgba(11, 21, 45, 0.12);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  animation: emailPulse 2.8s infinite ease-in-out;
  text-decoration: none;
}

.floating-email-btn:hover,
.floating-email-btn:focus-visible {
  background: var(--color-primary-hover);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5), 0 4px 10px rgba(11, 21, 45, 0.16);
}

.floating-email-btn svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-white);
  pointer-events: none;
}

@keyframes emailPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), 0 0 0 0 rgba(37, 99, 235, 0.45);
  }
  50% {
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45), 0 0 0 12px rgba(37, 99, 235, 0);
  }
}

/* Tooltip (Desktop hover only) */
.floating-email-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--color-navy-900);
  color: var(--color-white);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.floating-email-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--color-navy-900);
}

@media (hover: hover) and (pointer: fine) {
  .floating-email-btn:hover .floating-email-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   17. Responsive Media Queries (Rigorous multi-device responsive system:
       - 1024px+: Desktop / High-res monitors
       - 768px - 1023px: Tablets & iPad portrait/landscape
       - 480px - 767px: Phablets & standard smartphones (landscape/portrait)
       - 360px - 479px: Compact mobile (iPhone 12/13/14/15, Galaxy S series)
       - 320px - 359px: Ultra-compact mobile (iPhone SE, Galaxy Fold outer screen)
   -------------------------------------------------------------------------- */

/* Breakpoint: Below 1024px (Tablets & Medium Screens) */
@media (max-width: 1023px) {
  :root {
    --section-padding: 5rem 1.25rem;
  }

  /* Services Grid: 2 balanced columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Packages Grid: 2 columns with 3rd package centered below */
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .package-card:nth-child(3) {
    grid-column: span 2;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  /* Portfolio Grid: 2 balanced columns on tablet */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Breakpoint: Below 992px (Mobile / Tablet Portrait) */
@media (max-width: 991px) {
  :root {
    --header-height: 72px;
    --header-height-compact: 66px;
  }

  .hamburger {
    display: flex;
  }

  /* Full-width mobile dropdown menu */
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - var(--header-height));
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem 1.5rem;
    box-shadow: 0 16px 32px rgba(11, 21, 45, 0.12);
    border-bottom: 1px solid var(--color-border);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1050;
    gap: 0.5rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .nav-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--color-border-light);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-actions .btn {
    display: inline-flex;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    min-height: 42px;
  }

  .nav-menu .mobile-nav-cta {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    min-height: 44px;
    font-size: 0.95rem;
  }

  /* Hero: Stack to 1 column */
  .hero {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 64px; /* [REVISION]: padding-bottom at least 64px */
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-banner-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .workflow-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Contact section: Stack to 1 column on tablets */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-info-col h3 {
    font-size: 1.75rem;
  }
}

/* Breakpoint: Below 768px (Standard Smartphone Viewports) */
@media (max-width: 767px) {
  :root {
    --section-padding: 4rem 1rem;
    --header-height: 68px;
    --header-height-compact: 62px;
  }

  /* [REVISION]: Headline break inline on mobile */
  .hero-title-break {
    display: inline;
  }

  /* Ensure body has no bottom padding so the dark footer extends seamlessly to the bottom */
  body {
    padding-bottom: 0 !important;
  }

  /* Extra padding inside dark navy footer so floating button never obstructs text */
  .footer {
    padding-bottom: 5.5rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* [REVISION]: Stats Bar: separate section below hero, position: static, stack vertically with 16px gap */
  .stats-section,
  .stats-bar-wrapper {
    position: static; /* [REVISION]: position: static */
    margin-top: 0;
    margin-bottom: 0;
    padding: 24px 0 36px 0;
    transform: none;
  }

  .stats-card {
    grid-template-columns: 1fr;
    gap: 16px; /* [REVISION]: 16px gap on mobile */
    padding: 24px 20px;
    max-width: 100%;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item:not(:last-child) {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border-light);
  }

  .stat-number {
    font-size: 2.25rem;
  }

  /* Portfolio Grid & Filter Bar on Mobile */
  .portfolio-filter-bar {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.45rem 1.05rem;
    font-size: 0.8125rem;
    min-height: 40px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-preview {
    height: 210px;
  }

  .portfolio-overlay {
    display: none;
  }

  /* Portfolio Archive & Search on Mobile (below 992px) */
  .archive-hero {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2.5rem;
  }

  .archive-title {
    font-size: 2.15rem;
  }

  .demo-search-container {
    margin-bottom: 2rem;
  }

  .demo-search-input {
    font-size: 0.875rem;
    padding: 0.8rem 2.85rem 0.8rem 2.85rem;
  }

  .demo-search-icon {
    left: 1rem;
    width: 18px;
    height: 18px;
  }

  .archive-cta-section {
    padding: 1.5rem 0 4rem;
  }

  .archive-cta-card {
    padding: 2.25rem 1.25rem;
  }

  .archive-cta-title {
    font-size: 1.65rem;
  }

  .archive-cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .archive-cta-buttons .btn {
    width: 100%;
  }

  .btn-view-all {
    width: 100%;
    max-width: 360px;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
  }

  /* Process Timeline Mobile (below 768px):
     Single column. Line sits on the left edge, 48px circles on the line, cards to the right. No zig-zag. */
  .process-timeline-wrapper {
    margin-top: 1.75rem;
  }

  .process-timeline-line {
    left: 24px;
    top: 24px;
    bottom: 24px;
    transform: translateX(-50%);
  }

  .process-timeline-list {
    gap: 1.5rem;
  }

  .process-timeline-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1.15rem;
    align-items: flex-start;
  }

  .process-timeline-item .process-empty {
    display: none;
  }

  .process-timeline-item .process-node {
    grid-column: 1;
    grid-row: 1;
    width: 48px;
    height: 48px;
  }

  .process-timeline-item .process-card {
    grid-column: 2;
    grid-row: 1;
    padding: 1.15rem 1rem;
    min-width: 0;
  }

  /* Circles 48px, touch-friendly spacing */
  .step-marker {
    width: 48px;
    height: 48px;
    border-width: 2.5px;
    box-shadow: 0 0 0 4px var(--color-primary-subtle);
  }

  .step-marker .step-num {
    display: none;
  }

  .step-marker svg {
    width: 20px;
    height: 20px;
  }

  /* Cards on mobile fade in from right */
  .process-timeline-item.step-left .process-card,
  .process-timeline-item.step-right .process-card {
    opacity: 0;
    transform: translateX(20px);
  }

  .process-timeline-item.is-revealed .process-card {
    opacity: 1;
    transform: translateX(0);
  }

  /* FAQ: single column & full width */
  .faq-container {
    width: 100%;
  }

  /* Footer: single column */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .footer-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }

  /* Floating email button: compact on mobile */
  .floating-email-wrapper {
    bottom: 16px;
    right: 16px;
  }

  .floating-email-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }

  .floating-email-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* Breakpoint: Below 640px (Small Mobile) */
@media (max-width: 639px) {
  /* Services & Packages: 1 column below 640px */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .service-card {
    padding: 1.65rem 1.25rem;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .package-card {
    padding: 1.85rem 1.25rem;
  }

  .package-card:nth-child(3) {
    grid-column: span 1;
    max-width: 100%;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .why-card {
    padding: 1.65rem 1.25rem;
  }

  .contact-form-card {
    padding: 1.65rem 1.15rem;
  }

  .workflow-card {
    padding: 1.15rem 0.95rem 0.95rem 0.95rem;
  }
}

/* Breakpoint: Below 480px (Extra Small Phones e.g. 375px, 390px, 414px) */
@media (max-width: 479px) {
  :root {
    --header-height: 64px;
    --header-height-compact: 58px;
    --section-padding: 3.5rem 0.85rem;
  }

  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  /* Header adjustments for 375px / 390px / 414px */
  .navbar .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .brand-logo img {
    height: 36px;
    width: auto;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tag {
    font-size: 0.6rem;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .nav-actions .btn {
    padding: 0.38rem 0.65rem;
    font-size: 0.78rem;
    min-height: 38px;
    white-space: nowrap;
  }

  .hamburger {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  /* Hero Section Typography & CTA Stacking */
  .hero {
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: 64px; /* [REVISION]: padding-bottom at least 64px */
  }

  .hero-pill {
    font-size: 0.78rem;
    padding: 0.32rem 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.8vw, 2.2rem);
    line-height: 1.18;
    margin-bottom: 0.85rem;
  }

  .hero-tagline {
    font-size: 1rem;
    margin-bottom: 0.65rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: calc(1.25rem + 16px); /* [REVISION]: 16px more space */
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-banner-wrapper {
    width: 100%;
    max-width: 100%;
  }

  /* Hero 4-Stage Card on Small Screens */
  .workflow-card {
    padding: 20px 16px;
    gap: 16px;
    height: auto;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
  }

  .hero-scenes-viewport {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .workflow-bubble {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .client-bubble,
  .reply-bubble {
    max-width: 90%;
  }

  .scene-caption {
    font-size: 0.7rem;
    padding: 0.18rem 0.5rem;
    max-width: 100%;
  }

  .scene-caption span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .browser-chrome {
    padding: 0.28rem 0.45rem;
  }

  .browser-address-bar {
    max-width: 130px;
    padding: 0.1rem 0.35rem;
  }

  .browser-url {
    font-size: 0.62rem;
  }

  .browser-live-badge {
    font-size: 0.62rem;
    padding: 0.08rem 0.35rem;
  }

  .stage-label {
    font-size: 0.56rem;
    word-break: break-word;
  }

  /* Process Timeline below 480px */
  .process-timeline-line {
    left: 20px;
  }

  .process-timeline-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.85rem;
  }

  .process-timeline-item .process-node {
    width: 40px;
    height: 40px;
  }

  .step-marker {
    width: 40px;
    height: 40px;
    border-width: 2px;
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
  }

  .step-marker svg {
    width: 18px;
    height: 18px;
  }

  .process-timeline-item .process-card {
    padding: 0.95rem 0.85rem;
  }

  .step-title {
    font-size: 1.1rem;
  }

  .step-desc {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* Contact Cards below 480px */
  .contact-channel-card {
    padding: 0.95rem 0.85rem;
    gap: 0.75rem;
  }

  .channel-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .channel-details h4 {
    font-size: 0.72rem;
  }

  .contact-trust-note {
    padding: 1rem 0.85rem;
    font-size: 0.825rem;
  }

  .contact-form-card {
    padding: 1.35rem 0.95rem;
  }

  .form-control {
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  /* Portfolio Card on Small Screens (375px & 414px) */
  .portfolio-info {
    padding: 1.25rem 1rem;
    gap: 0.75rem;
  }

  .portfolio-name {
    font-size: 1.05rem;
  }

  .portfolio-desc {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* Archive Title & Search on Small Screens (375px & 414px) */
  .archive-title {
    font-size: 1.75rem;
  }

  .archive-subtitle {
    font-size: 0.925rem;
  }

  .demo-search-input {
    font-size: 0.8125rem;
    padding: 0.75rem 2.5rem 0.75rem 2.6rem;
  }

  .demo-search-icon {
    left: 0.85rem;
    width: 16px;
    height: 16px;
  }
}

/* Breakpoint: Below 360px (Ultra Compact Phones e.g. 320px iPhone SE 1st gen) */
@media (max-width: 359px) {
  :root {
    --header-height: 60px;
    --header-height-compact: 56px;
    --section-padding: 3rem 0.65rem;
  }

  .container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .brand-tag {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-menu .mobile-nav-cta {
    display: flex !important;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .workflow-card {
    padding: 0.85rem 0.65rem;
  }

  .browser-address-bar {
    max-width: 105px;
  }

  .process-timeline-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.65rem;
  }

  .process-timeline-line {
    left: 18px;
  }

  .process-timeline-item .process-node {
    width: 36px;
    height: 36px;
  }

  .step-marker {
    width: 36px;
    height: 36px;
  }

  .step-marker svg {
    width: 16px;
    height: 16px;
  }

  .process-timeline-item .process-card {
    padding: 0.85rem 0.65rem;
  }

  .step-title {
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   18. Accessibility: Prefers 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 {
    opacity: 1 !important;
    transform: none !important;
  }

  .floating-email-btn {
    animation: none !important;
  }

  /* Decorative workflow 4-stage hero: show final launch scene with all 4 dots active */
  .hero-scenes-viewport {
    height: auto !important;
  }

  .scene-stage {
    position: relative !important;
    opacity: 0 !important;
    display: none !important;
    animation: none !important;
  }

  .scene-stage.scene-launch {
    opacity: 1 !important;
    display: flex !important;
    transform: none !important;
    animation: none !important;
  }

  .launch-site-preview,
  .browser-live-badge {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .workflow-tracker-wrap {
    opacity: 1 !important;
    animation: none !important;
  }

  .workflow-tracker-progress {
    transform: scaleX(1) !important;
    animation: none !important;
  }

  .stage-dot-fill {
    opacity: 1 !important;
    animation: none !important;
  }

  .stage-dot svg {
    opacity: 1 !important;
    transform: scale(1) !important;
    animation: none !important;
  }

  .stage-label {
    opacity: 1 !important;
    color: var(--color-navy-900) !important;
    font-weight: 700 !important;
    animation: none !important;
  }

  /* [REVISION]: Process Timeline reduced motion: show full line and all cards immediately with no animation */
  .process-timeline-progress {
    transform: scaleY(1) !important;
    transition: none !important;
  }

  .process-timeline-item,
  .process-timeline-item .process-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .step-marker {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.22) !important;
    transition: none !important;
  }

  .step-marker svg,
  .step-marker .step-num {
    color: #ffffff !important;
  }
}