/* ================================================================
   DigiFlexi — Style System
   A clean, modern design system. No AI slop. No gimmicks.
   ================================================================ */

/* ── Reset & Foundation ───────────────────────────────────────── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color System */
  --color-bg: #0a0a0f;
  --color-bg-raised: #12121a;
  --color-bg-card: #16161f;
  --color-bg-card-hover: #1c1c28;
  --color-surface: #1e1e2a;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(255, 255, 255, 0.1);

  --color-text: #f5f5fa;
  --color-text-secondary: #c5c5db;
  --color-text-muted: #a6a6bc;

  --color-accent: #6c5ce7;
  --color-accent-light: #b8b2ff;
  --color-accent-dark: #5a4bd1;
  --color-accent-glow: rgba(108, 92, 231, 0.18);

  --color-secondary: #00cec9;
  --color-success: #00b894;
  --color-warning: #fdcb6e;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 250ms var(--ease-out);
  --transition-slow: 400ms var(--ease-out);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--color-accent-glow);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

input,
select,
textarea {
  font: inherit;
}

/* ── Container ───────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ── Header ──────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 10;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.cta-nav {
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: var(--space-md) var(--space-lg);
  margin-left: var(--space-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.cta-nav:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

/* Mobile toggle & Navigation Overlay */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 1002;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav Backdrop Overlay */
.nav-overlay {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  z-index: 998;
  pointer-events: none;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--color-accent-light);
  color: var(--color-accent-light);
  background: var(--color-accent-glow);
}

.btn-full {
  width: 100%;
}

/* ── Section Common ──────────────────────────────────────────── */

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-md);
}

.section-tag-light {
  color: rgba(255, 255, 255, 0.7);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  padding: calc(72px + var(--space-4xl)) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: stretch;
  /* Match height of hero-mockup and hero-content exactly */
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent-light);
  background: var(--color-accent-glow);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

/* Trust bar */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-top: auto;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-item strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.trust-item span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border-strong);
}

/* Hero Visual / Mockup — Equal height with .hero-content */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  width: 100%;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-shape-1 {
  width: 320px;
  height: 320px;
  background: rgba(108, 92, 231, 0.18);
  top: -20px;
  right: -20px;
}

.hero-shape-2 {
  width: 240px;
  height: 240px;
  background: rgba(0, 206, 201, 0.14);
  bottom: -20px;
  left: -20px;
}

.hero-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mockup-browser {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(108, 92, 231, 0.15);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

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

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:first-child {
  background: #ff5f57;
}

.mockup-dots span:nth-child(2) {
  background: #febc2e;
}

.mockup-dots span:nth-child(3) {
  background: #28c840;
}

.mockup-address-bar {
  flex: 1;
  max-width: 240px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--color-text-secondary);
}

.mockup-lock {
  font-size: 0.65rem;
  opacity: 0.8;
}

.mockup-url {
  font-family: monospace;
  letter-spacing: 0.02em;
}

.mockup-content {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.08), transparent 60%);
}

/* Mini Website Navigation */
.mockup-mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-mini-brand {
  width: 68px;
  height: 10px;
  background: linear-gradient(90deg, var(--color-accent-light), var(--color-secondary));
  border-radius: var(--radius-full);
}

.mockup-mini-links {
  display: flex;
  gap: 8px;
}

.mockup-mini-links span {
  width: 28px;
  height: 6px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
}

.mockup-mini-btn {
  width: 48px;
  height: 14px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

/* Mini Hero */
.mockup-mini-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-mini-tag {
  width: 76px;
  height: 8px;
  background: var(--color-accent-glow);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: var(--radius-full);
}

.mockup-bar {
  height: 14px;
  width: 82%;
  background: linear-gradient(90deg, var(--color-accent-light), var(--color-secondary));
  border-radius: var(--radius-full);
}

.mockup-bar-sub {
  height: 8px;
  width: 58%;
  background: var(--color-surface);
  border-radius: var(--radius-full);
}

.mockup-mini-ctas {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.mockup-pill-btn {
  width: 60px;
  height: 18px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
}

.mockup-pill-btn.outline {
  width: 50px;
  background: transparent;
  border: 1px solid var(--color-border-strong);
}

/* Metrics row */
.mockup-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mockup-metric-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mockup-metric-card .metric-num {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
}

.mockup-metric-card .metric-num.text-success {
  color: #00cec9;
}

.mockup-metric-card .metric-num.text-secondary {
  color: #a29bfe;
}

.mockup-metric-card .metric-lbl {
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

/* Mockup project cards */
.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mockup-block-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-card-thumb {
  height: 52px;
  width: 100%;
}

.mockup-card-thumb.thumb-1 {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.35) 0%, rgba(0, 206, 201, 0.25) 100%);
}

.mockup-card-thumb.thumb-2 {
  background: linear-gradient(135deg, rgba(0, 206, 201, 0.35) 0%, rgba(108, 92, 231, 0.25) 100%);
}

.mockup-card-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  width: 100%;
}

.mockup-line.short {
  width: 60%;
}

/* Status bar */
.mockup-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--color-text-secondary);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #00cec9;
  border-radius: 50%;
  box-shadow: 0 0 8px #00cec9;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {

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

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.status-time {
  font-family: monospace;
  color: var(--color-accent-light);
}

/* Floating Badge */
.hero-floating-badge {
  position: absolute;
  bottom: -14px;
  right: -14px;
  z-index: 2;
  background: rgba(18, 19, 29, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(108, 92, 231, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(108, 92, 231, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float-badge 4s infinite ease-in-out;
}

@keyframes float-badge {

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

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

.badge-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.badge-info {
  display: flex;
  flex-direction: column;
}

.badge-info strong {
  font-size: 0.8125rem;
  color: var(--color-text);
  line-height: 1.2;
}

.badge-info span {
  font-size: 0.72rem;
  color: var(--color-accent-light);
}

/* ── Services ────────────────────────────────────────────────── */

.services {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-raised);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}

.service-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-card.featured {
  border-color: rgba(108, 92, 231, 0.3);
  background: linear-gradient(145deg, var(--color-bg-card) 0%, rgba(108, 92, 231, 0.05) 100%);
}

.service-badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-light);
  background: var(--color-accent-glow);
  border: 1px solid rgba(108, 92, 231, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-glow);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: var(--radius-md);
  color: var(--color-accent-light);
  margin-bottom: var(--space-lg);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.service-card>p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-features li {
  position: relative;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ── Process ─────────────────────────────────────────────────── */

.process {
  padding: var(--space-4xl) 0;
}

.process-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-lg);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.3;
  margin-bottom: var(--space-md);
  font-variant-numeric: tabular-nums;
}

.process-step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.process-step p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.process-connector {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: var(--color-border-strong);
  margin-top: 28px;
}

/* ── Portfolio ────────────────────────────────────────────────── */

.portfolio {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-raised);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.portfolio-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.portfolio-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.portfolio-icon {
  margin-bottom: var(--space-lg);
}

.portfolio-card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.portfolio-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.portfolio-meta {
  margin-top: auto;
  padding-top: var(--space-sm);
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-light);
  background: var(--color-accent-glow);
  border: 1px solid rgba(108, 92, 231, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ── Testimonials ────────────────────────────────────────────── */

.testimonials {
  padding: var(--space-4xl) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: border-color var(--transition-base);
}

.testimonial-card:hover {
  border-color: rgba(108, 92, 231, 0.15);
}

.testimonial-stars {
  color: var(--color-warning);
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-lg);
}

.testimonial-card>p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial-card footer cite {
  display: flex;
  flex-direction: column;
  font-style: normal;
}

.testimonial-card footer cite strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-card footer cite span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ── FAQ ─────────────────────────────────────────────────────── */

.faq {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-raised);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

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

.faq-item[open] {
  border-color: rgba(108, 92, 231, 0.2);
}

.faq-item summary {
  padding: var(--space-lg) var(--space-xl);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.faq-answer {
  padding: 0 var(--space-xl) var(--space-lg);
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ── CTA / Contact ───────────────────────────────────────────── */

.cta-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(165deg, var(--color-bg) 0%, rgba(108, 92, 231, 0.06) 50%, var(--color-bg) 100%);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.cta-content>p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.cta-perks {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cta-perks li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.cta-perks li svg {
  flex-shrink: 0;
  color: var(--color-success);
}

/* Form */
.cta-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  position: relative;
}

/* Multi-step Progress Indicator */
.form-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  gap: 12px;
}

.step-indicator-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  transition: opacity var(--transition-base), color var(--transition-base);
}

.step-indicator-item.active {
  opacity: 1;
}

.step-indicator-item.completed {
  opacity: 0.9;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.step-indicator-item.active .step-num {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(108, 92, 231, 0.4);
}

.step-indicator-item.completed .step-num {
  background: var(--color-secondary);
  color: #0c0d14;
  border-color: var(--color-secondary);
}

.step-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.step-indicator-divider {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  position: relative;
}

.step-indicator-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  transition: width 0.35s ease;
}

.form-steps-indicator.step-2-active .step-indicator-divider::after {
  width: 100%;
}

/* Step Panes */
.form-step-pane {
  display: none;
  animation: fadeInStep 0.28s ease;
}

.form-step-pane.active {
  display: block;
}

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

.required-star {
  color: #ff7675;
}

.optional-tag {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239a9ab0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  margin-top: var(--space-xl);
}

.form-actions-split {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.form-actions-split .btn-outline {
  flex: 0 0 auto;
}

.form-actions-split .btn-primary {
  flex: 1;
}

/* Recaptcha Container */
.recaptcha-wrapper {
  display: flex;
  justify-content: center;
  margin: var(--space-md) 0;
  min-height: 78px;
}

/* Form Status Message */
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: var(--space-md);
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(0, 206, 201, 0.12);
  border: 1px solid rgba(0, 206, 201, 0.4);
  color: #00cec9;
}

.form-status.error {
  display: block;
  background: rgba(255, 95, 87, 0.12);
  border: 1px solid rgba(255, 95, 87, 0.4);
  color: #ff7675;
}

/* Button Spinner */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.75s linear infinite;
  margin-left: 8px;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

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

.btn.loading .btn-text {
  opacity: 0.85;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2s infinite ease-out;
  pointer-events: none;
  z-index: -1;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(18, 19, 29, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── Footer ──────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-bg-raised);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.footer-brand p {
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 300px;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-links h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dcdceb;
  margin-bottom: var(--space-lg);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── Scroll-Based Animations ─────────────────────────────────── */

/* Entrance animations for sections */
.service-card,
.process-step,
.portfolio-card,
.testimonial-card,
.faq-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.service-card.visible,
.process-step.visible,
.portfolio-card.visible,
.testimonial-card.visible,
.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for grids */
.services-grid .service-card:nth-child(2),
.portfolio-grid .portfolio-card:nth-child(2),
.testimonials-grid .testimonial-card:nth-child(2) {
  transition-delay: 80ms;
}

.services-grid .service-card:nth-child(3),
.portfolio-grid .portfolio-card:nth-child(3),
.testimonials-grid .testimonial-card:nth-child(3) {
  transition-delay: 160ms;
}

.services-grid .service-card:nth-child(4) {
  transition-delay: 240ms;
}

.process-step:nth-child(3) {
  transition-delay: 80ms;
}

.process-step:nth-child(5) {
  transition-delay: 160ms;
}

.process-step:nth-child(7) {
  transition-delay: 240ms;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1024px) {

  /* Mobile & Tablet Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-container {
    position: static;
    padding: 0 var(--space-lg);
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(11, 12, 19, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    padding: var(--space-lg) var(--space-xl) var(--space-2xl);
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
    z-index: 1001;
  }

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

  .nav-menu .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link:focus-visible {
    background: rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.35);
    color: var(--color-accent-light);
    transform: translateX(4px);
  }

  .nav-menu .cta-nav {
    margin: 0.75rem 0 0 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
  }

  .nav-menu .cta-nav:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
  }

  /* Tablet Hero Layout */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .hero-visual {
    order: -1;
    height: auto;
  }

  .hero-mockup {
    height: auto;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-floating-badge {
    bottom: -8px;
    right: 0;
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    align-self: center;
  }

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

  .hero-trust {
    justify-content: center;
    margin-top: var(--space-xl);
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 4rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.75rem);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
  }

  .process-connector {
    width: 2px;
    height: 30px;
    margin-top: 0;
  }

  .process-step {
    max-width: 400px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-trust {
    flex-direction: column;
    gap: var(--space-md);
  }

  .trust-divider {
    width: 40px;
    height: 1px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .nav-menu {
    padding: var(--space-md) var(--space-md) var(--space-xl);
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.875rem;
  }

  .hero-mockup {
    max-width: 100%;
  }

  .mockup-content {
    padding: 14px;
    gap: 12px;
  }

  .mockup-metrics-row {
    gap: 6px;
  }

  .mockup-metric-card {
    padding: 6px 4px;
  }

  .mockup-metric-card .metric-num {
    font-size: 0.95rem;
  }

  .mockup-grid {
    gap: 8px;
  }

  .mockup-card-thumb {
    height: 42px;
  }

  .hero-floating-badge {
    position: static;
    margin-top: 14px;
    width: 100%;
    justify-content: center;
    animation: none;
  }

  .cta-form {
    padding: var(--space-lg);
  }

  .floating-whatsapp {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .recaptcha-wrapper {
    transform: scale(0.86);
    transform-origin: center;
  }

  .form-actions-split {
    flex-direction: column-reverse;
  }

  .form-actions-split .btn {
    width: 100%;
  }
}

/* ── 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;
  }

  .service-card,
  .process-step,
  .portfolio-card,
  .testimonial-card,
  .faq-item {
    opacity: 1;
    transform: none;
  }
}

/* ── Print ────────────────────────────────────────────────────── */

@media print {

  .site-header,
  .hero-visual,
  .nav-toggle {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  .hero {
    padding-top: var(--space-xl);
  }
}