/* ═══════════════════════════════════════════════════════════════
   RepairOX Landing Page — Design System (Mobile-First)
   Premium, performance-safe animations. Event/exhibition optimized.
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);

  --background: hsl(228, 30%, 95%);
  --foreground: hsl(228, 25%, 12%);
  --muted: hsl(228, 22%, 91%);
  --muted-foreground: hsl(228, 12%, 50%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(228, 25%, 12%);
  --border: hsl(228, 20%, 88%);
  --ring: hsl(231, 80%, 57%);
  --primary: hsl(231, 80%, 57%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(228, 22%, 91%);
  --secondary-foreground: hsl(228, 25%, 12%);
  --accent: hsl(231, 80%, 96%);
  --accent-foreground: hsl(231, 80%, 40%);
  --success: hsl(152, 65%, 38%);
  --radius: 16px;

  --brand-50: #EEF1FD;
  --brand-100: #D9DFFA;
  --brand-200: #B3BFF6;
  --brand-300: #8DA0F2;
  --brand-400: #6780EE;
  --brand-500: #4361EE;
  --brand-600: #3B54E8;
  --brand-700: #3347D6;
  --brand-800: #2A3AB8;
  --brand-900: #1E2B8A;

  /* Premium easing (spring-like) */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}

::selection {
  background: hsla(231, 80%, 57%, 0.15);
  color: hsl(231, 80%, 42%);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; -webkit-touch-callout: none; }
button { cursor: pointer; border: none; background: none; font: inherit; -webkit-touch-callout: none; }
input, select, textarea { font: inherit; -webkit-appearance: none; appearance: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--foreground);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 8vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.625rem, 5vw, 2.75rem); }
h3 { font-size: 1rem; }
p { color: var(--muted-foreground); line-height: 1.7; }

.text-gradient {
  background: linear-gradient(180deg, var(--foreground) 0%, hsla(228, 25%, 12%, 0.65) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-gradient-text {
  background: linear-gradient(135deg, #4361EE 0%, #3A4FD8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Layout (mobile-first) ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
section {
  padding: 4rem 0;
}
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.section-header p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  border: 1px solid var(--brand-200);
}

/* ── Buttons (premium with blue hover glow) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 1.25rem;
  height: 2.875rem;
  min-width: 44px;
  min-height: 44px;
  transition: transform 500ms var(--ease-spring),
              box-shadow 500ms var(--ease-spring),
              background 300ms,
              color 300ms;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(180deg, #4361EE 0%, #3B54E8 100%);
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(67, 97, 238, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  box-shadow: 0 12px 40px -8px rgba(67, 97, 238, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.22),
              0 0 0 4px rgba(67, 97, 238, 0.12);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--brand-300);
  color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.08);
  transform: translateY(-1px);
}

.btn-lg {
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 0.9375rem;
  border-radius: 14px;
}
.btn-xl {
  height: 3.25rem;
  padding: 0 1.75rem;
  font-size: 0.9375rem;
  border-radius: 14px;
}

@media (min-width: 769px) {
  .btn-xl { height: 3.5rem; padding: 0 2rem; font-size: 1rem; }
}

/* ── Cards (with blue hover glow) ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 1px 3px 0 rgba(20, 30, 80, 0.03),
              0 2px 8px -2px rgba(20, 30, 80, 0.05),
              0 8px 20px -8px rgba(20, 30, 80, 0.06);
  transition: transform 600ms var(--ease-spring),
              box-shadow 600ms var(--ease-spring),
              border-color 400ms;
}
.card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--brand-200);
  box-shadow: 0 8px 30px -8px rgba(67, 97, 238, 0.15),
              0 20px 50px -12px rgba(20, 30, 80, 0.08),
              0 0 0 1px rgba(67, 97, 238, 0.08);
}
.card-static {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 1px 3px 0 rgba(20, 30, 80, 0.03),
              0 2px 8px -2px rgba(20, 30, 80, 0.05),
              0 8px 20px -8px rgba(20, 30, 80, 0.06);
  transition: border-color 300ms, box-shadow 400ms var(--ease-spring);
}
.card-static:hover {
  border-color: var(--brand-200);
  box-shadow: 0 4px 16px -4px rgba(67, 97, 238, 0.12),
              0 8px 24px -8px rgba(20, 30, 80, 0.06);
}

/* ── Navigation (glass, mobile-optimized) ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  background: hsla(228, 30%, 95%, 0.75);
  border-bottom: 1px solid var(--border);
  transition: background 300ms, box-shadow 300ms;
}
.nav.scrolled {
  background: hsla(228, 30%, 95%, 0.92);
  box-shadow: 0 1px 4px rgba(20, 30, 80, 0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--foreground);
  letter-spacing: -0.02em;
  transition: opacity 200ms;
}
.nav-logo:active { opacity: 0.7; }
.nav-logo span { color: var(--brand-500); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 250ms var(--ease-spring);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-500);
  border-radius: 1px;
  transition: width 350ms var(--ease-spring);
}
.nav-links a:hover { color: var(--brand-600); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: none; margin-left: 1rem; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--foreground);
  transition: background 200ms;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle:active { background: var(--muted); }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }

/* Mobile Menu (full-screen overlay) */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 3.5rem;
  background: var(--card);
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 350ms var(--ease-spring), transform 350ms var(--ease-spring);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  transition: color 200ms, padding-left 300ms var(--ease-spring);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:active { color: var(--brand-600); padding-left: 0.5rem; }

@media (min-width: 769px) {
  .nav-inner { height: 4rem; }
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ── Hero (mobile-first) ── */
.hero {
  padding: 5.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 150vw);
  height: 600px;
  background: radial-gradient(50% 50% at 50% 30%, rgba(67, 97, 238, 0.1) 0%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { margin-bottom: 1rem; }
.hero-content > p {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 1.75rem;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-buttons .btn { width: 100%; }

.hero-visual { position: relative; z-index: 1; }
.hero-video-frame {
  border-radius: calc(var(--radius) + 8px);
  border: 4px solid rgba(255, 255, 255, 0.9);
  background: var(--card);
  box-shadow: 0 20px 60px -16px rgba(20, 30, 80, 0.12),
              0 8px 20px -8px rgba(20, 30, 80, 0.08),
              0 0 0 1px var(--border);
  overflow: hidden;
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.hero-mockup {
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 20px 60px -16px rgba(20, 30, 80, 0.1),
              0 8px 20px -8px rgba(20, 30, 80, 0.06);
  overflow: hidden;
  padding: 1rem;
}

@media (min-width: 769px) {
  .hero { padding: 8rem 0 5rem; }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: center;
  }
  .hero-content > p { font-size: 1.125rem; }
  .hero-buttons { flex-direction: row; }
  .hero-buttons .btn { width: auto; }
  .hero-mockup { padding: 1.25rem; }
}

@media (max-width: 768px) {
  .hero-visual { order: -1; }
}

/* ── Features Grid (mobile: 1 col, tablet: 2, desktop: 4) ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.feature-card {
  padding: 1.5rem;
  cursor: default;
}
.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  display: grid;
  place-items: center;
  color: var(--brand-500);
  margin-bottom: 1rem;
  transition: background 300ms, transform 500ms var(--ease-spring), box-shadow 400ms;
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; }
.feature-card:hover .feature-icon {
  background: var(--brand-500);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 20px -6px rgba(67, 97, 238, 0.4);
}
.feature-card:hover .feature-icon svg { stroke: #fff; }
.feature-card h3 {
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.feature-card p {
  font-size: 0.8125rem;
  line-height: 1.65;
}

@media (min-width: 540px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .feature-card { padding: 1.75rem; }
}

/* ── Why RepairOX ── */
.why-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  transition: background 250ms, transform 400ms var(--ease-spring);
}
.why-item:hover {
  background: var(--brand-50);
  transform: translateX(4px);
}
.why-check {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 7px;
  background: linear-gradient(145deg, #4361EE 0%, #3B54E8 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
  transition: transform 400ms var(--ease-spring), box-shadow 400ms;
}
.why-check svg { width: 0.625rem; height: 0.625rem; color: #fff; }
.why-item:hover .why-check {
  transform: scale(1.15);
  box-shadow: 0 4px 12px -4px rgba(67, 97, 238, 0.5);
}
.why-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.5;
}

@media (min-width: 540px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
}

/* ── Screen Preview ── */
.screens-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.screen-card {
  overflow: hidden;
  cursor: default;
}
.screen-preview {
  aspect-ratio: 16/10;
  background: var(--muted);
  border-radius: calc(var(--radius) - 2px);
  margin: 0.625rem;
  overflow: hidden;
  position: relative;
}
.screen-preview-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.screen-preview-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.screen-label {
  padding: 0.75rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.screen-label-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand-500);
  transition: box-shadow 400ms;
}
.screen-card:hover .screen-label-dot {
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2), 0 0 8px rgba(67, 97, 238, 0.4);
}

@media (min-width: 540px) {
  .screens-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .screens-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .screen-preview { margin: 0.75rem; }
  .screen-preview-inner { padding: 0; gap: 0; }
}

/* ── Benefits ── */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.25rem;
  transition: transform 400ms var(--ease-spring);
}
.benefit-item:hover { transform: translateX(4px); }
.benefit-number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-600);
  transition: background 300ms, color 300ms, transform 400ms var(--ease-spring);
}
.benefit-item:hover .benefit-number {
  background: var(--brand-500);
  color: #fff;
  transform: scale(1.08);
}
.benefit-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.benefit-item p {
  font-size: 0.8125rem;
  line-height: 1.6;
}

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

/* ── Contact Section (2-column: content left, form right) ── */
.contact-section {
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--card);
  border-left: 1px solid var(--border);
  z-index: 0;
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.contact-content {
  max-width: 440px;
}
.contact-content h2 {
  margin-bottom: 0.75rem;
  text-align: left;
}
.contact-content > p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.contact-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.contact-feature svg {
  color: var(--brand-500);
  flex-shrink: 0;
}

/* Form card with animated gradient border */
.form-card-wrapper {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  padding: 2px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-200), var(--brand-500), var(--brand-300));
  background-size: 300% 300%;
  animation: border-glow 4s ease-in-out infinite;
}
@keyframes border-glow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.form-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--brand-50);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.25rem;
}

/* Submit button animated border */
.btn-glow-border {
  position: relative;
  z-index: 1;
  border: none;
  isolation: isolate;
}
.btn-glow-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-300), var(--brand-500), var(--brand-400), var(--brand-600));
  background-size: 300% 300%;
  animation: border-glow 3s ease-in-out infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 400ms var(--ease-spring);
}
.btn-glow-border:hover::before {
  opacity: 1;
}

@media (min-width: 540px) {
  .form-card { padding: 2rem 1.75rem; }
}

@media (min-width: 769px) {
  .contact-section::before { display: none; }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
  }
  .contact-content {
    padding-top: 2rem;
  }
  .form-card { padding: 2.5rem; }
}

@media (max-width: 768px) {
  .contact-section::before { display: none; }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}
.form-grid .full-width { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  height: 3rem;
  width: 100%;
  border-radius: 12px;
  border: 1px solid hsl(228, 20%, 78%);
  background: var(--card);
  padding: 0 0.875rem;
  font-size: 1rem;
  color: var(--foreground);
  transition: border-color 200ms, box-shadow 200ms, transform 300ms var(--ease-spring);
  min-height: 44px;
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--brand-300);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
  transform: scale(1.01);
}
.form-group textarea {
  height: auto;
  min-height: 5rem;
  padding: 0.75rem 0.875rem;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}
.form-group select {
  color: var(--muted-foreground);
}

/* Validation */
.form-group.error input,
.form-group.error select {
  border-color: hsl(0, 72%, 51%);
  box-shadow: 0 0 0 3px hsla(0, 72%, 51%, 0.08);
}
.form-group .error-msg {
  font-size: 0.6875rem;
  color: hsl(0, 72%, 51%);
  display: none;
}
.form-group.error .error-msg { display: block; }

@media (min-width: 540px) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-card { padding: 2.5rem; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 0.875rem; height: 2.75rem; }
}

/* ── Success State ── */
.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}
.form-success.show { display: block; }
.form-success-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #4361EE, #3B54E8);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 32px -8px rgba(67, 97, 238, 0.45);
  animation: success-pop 600ms var(--ease-spring) both;
}
@keyframes success-pop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.form-success-icon svg { width: 1.75rem; height: 1.75rem; color: #fff; }
.form-success h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}
.form-success p {
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}
.form-success-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.footer-logo span { color: var(--brand-500); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  transition: color 200ms;
  padding: 0.25rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: var(--brand-600); }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 769px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM ANIMATIONS (GPU-safe: transform + opacity only)
   Following motion-performance & high-end-visual-design skills
   ═══════════════════════════════════════════════════════════════ */

/* Viewport entry: blur-fade-up */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition: opacity 700ms var(--ease-out-expo),
              transform 700ms var(--ease-out-expo),
              filter 700ms var(--ease-out-expo);
  will-change: opacity, transform;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered children with premium delays */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 320ms; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 400ms; }
.stagger-children .animate-on-scroll:nth-child(7) { transition-delay: 480ms; }
.stagger-children .animate-on-scroll:nth-child(8) { transition-delay: 560ms; }
.stagger-children .animate-on-scroll:nth-child(9) { transition-delay: 640ms; }

/* Hero elements: animate immediately on load (no observer delay) */
.hero .animate-on-scroll {
  transform: translateY(24px);
  filter: blur(6px);
  transition-duration: 900ms;
  transition-delay: 200ms;
}
.hero .animate-on-scroll:nth-child(2) { transition-delay: 400ms; }

/* Once page is loaded, hero is forced visible */
.hero.loaded .animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    will-change: auto;
  }
  .card:hover, .btn:hover, .btn-primary:hover, .btn-secondary:hover {
    transform: none;
  }
}

/* ── Dashboard Mockup Elements ── */
.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.625rem;
  margin-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 0.3rem; }
.mockup-dots span {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--border);
}
.mockup-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.mockup-kpi {
  background: var(--muted);
  border-radius: 8px;
  padding: 0.5rem 0.625rem;
}
.mockup-kpi-label {
  font-size: 0.5rem;
  color: var(--muted-foreground);
  margin-bottom: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.mockup-kpi-value {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--foreground);
}
.mockup-chart {
  background: var(--muted);
  border-radius: 8px;
  height: 4.5rem;
  position: relative;
  overflow: hidden;
}
.mockup-chart-bar {
  position: absolute;
  bottom: 0.625rem;
  width: 8%;
  border-radius: 3px 3px 0 0;
  background: var(--brand-200);
  transition: height 800ms var(--ease-spring);
}
.mockup-chart-bar.active { background: var(--brand-500); }

@media (min-width: 769px) {
  .mockup-kpi-value { font-size: 1rem; }
  .mockup-chart { height: 5.5rem; }
  .mockup-chart-bar { border-radius: 4px 4px 0 0; }
}

/* Skeleton elements */
.skel-row { display: flex; gap: 0.375rem; align-items: center; }
.skel-block { border-radius: 4px; background: var(--border); height: 0.4375rem; }
.skel-block-lg { height: 0.625rem; }
.skel-circle { width: 1rem; height: 1rem; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.skel-badge { border-radius: 9999px; background: var(--brand-50); height: 0.875rem; width: 2.5rem; }

/* ── Ripple animation (injected by JS) ── */
@keyframes ripple-effect {
  to { transform: scale(2.5); opacity: 0; }
}

/* ── Focus ring (accessible) ── */
:where(button, a, input, select, textarea):focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px rgba(67, 97, 238, 0.5);
  border-radius: 12px;
}

/* ── Print ── */
@media print {
  .nav, .footer, .contact-section, .mobile-menu { display: none; }
  section { padding: 1.5rem 0; }
  .animate-on-scroll { opacity: 1; transform: none; filter: none; }
  .card, .card-static { box-shadow: none; border: 1px solid #ddd; }
}
