:root {
  --bg: #0b0f17;
  --bg-soft: #141c2b;
  --bg-elevated: #1a2540;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #0ea5e9;
  --primary-strong: #0284c7;
  --primary-muted: rgba(14, 165, 233, 0.12);
  --accent-violet: #8b5cf6;
  --accent-emerald: #34d399;
  --accent-cyan: #22d3ee;
  --border: #2d3748;
  --border-hover: #3b82f6;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 17px;
  letter-spacing: -0.01em;
  position: relative;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  background: transparent;
}

.scroll-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-strong), var(--primary));
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
  transition: width 0.08s linear;
}

.preloader {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 25, 0.98);
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 999;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  padding: 1.5rem;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(420px, 92vw);
}

.preloader-brand {
  position: relative;
  display: grid;
  place-items: center;
}

.preloader-logo {
  display: block;
  width: min(360px, 82vw);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  filter: brightness(1.08) drop-shadow(0 0 30px rgba(14, 165, 233, 0.45)) drop-shadow(0 16px 40px rgba(14, 165, 233, 0.22));
  animation: preloaderLogoFloat 4s ease-in-out infinite;
}

@keyframes preloaderLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.preloader-text {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.preloader-bar {
  width: 160px;
  height: 3px;
  margin-top: 1rem;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  animation: preloaderFill 5.2s ease forwards;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  position: absolute;
  inset: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
  transition: transform 0.4s ease-out;
  will-change: transform;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-one {
  background: var(--primary-strong);
  top: -140px;
  right: -90px;
}

.orb-two {
  background: #1d4ed8;
  bottom: -200px;
  left: -150px;
  animation-delay: -4s;
}

.orb-three {
  background: var(--accent-violet);
  top: 45%;
  left: 55%;
  width: 320px;
  height: 320px;
  opacity: 0.14;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -12px) scale(1.04); }
  66% { transform: translate(-14px, 16px) scale(0.96); }
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.container-wide {
  width: min(1180px, 94%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 20, 25, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(15, 20, 25, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
}

.logo-brand {
  gap: 0;
  line-height: 0;
}

.logo-brand-shine {
  position: relative;
  isolation: isolate;
}

.logo-brand-shine::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: min(220px, 70vw);
  height: 90px;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.28) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.logo-brand-img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.logo-brand-img-nav {
  height: 74px;
  max-width: min(300px, 58vw);
  filter: brightness(1.1) contrast(1.05) drop-shadow(0 0 18px rgba(14, 165, 233, 0.5)) drop-shadow(0 6px 16px rgba(14, 165, 233, 0.25));
}

.logo-brand-img-footer {
  height: 132px;
  max-width: 340px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.logo-compact {
  gap: 0.65rem;
  line-height: normal;
}

.logo-compact .logo-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.logo-compact .logo-text {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.logo-compact .logo-tagline {
  font-size: 0.62rem;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #94a3b8;
}


.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 18px rgba(14, 165, 233, 0.28));
}

.logo-mark-lg {
  width: 54px;
  height: 54px;
}

.logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.logo-text {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--white);
}

.logo-tagline {
  font-size: 0.58rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).active {
  color: var(--primary);
}

.site-nav a:not(.btn).active {
  position: relative;
}

.site-nav a:not(.btn).active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
}

.btn-nav {
  padding: 0.55rem 0.9rem !important;
  font-size: 0.9rem !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  padding: 4.5rem 0 3.2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14) 0%, transparent 52%),
    radial-gradient(circle at 15% 10%, rgba(29, 78, 216, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
}

.section-showcase {
  position: relative;
  overflow: hidden;
}

@media (max-width: 960px) {
  .section-showcase {
    overflow: visible;
  }
}

.showcase-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(139, 92, 246, 0.1), transparent),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(14, 165, 233, 0.1), transparent);
  animation: meshShift 10s ease-in-out infinite alternate;
}

@keyframes meshShift {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.03); }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.hero-tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  z-index: 4;
}

.hero-tech-stack span {
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.kicker {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin: 0 0 0.75rem;
}

h1 {
  margin: 0.55rem 0 1rem;
  max-width: 780px;
  line-height: 1.14;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  color: var(--white);
  font-weight: 800;
}

.text-accent {
  color: var(--primary);
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 0 0 0.25rem;
}

.code-terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 16, 24, 0.92);
  box-shadow: var(--shadow), 0 0 40px rgba(14, 165, 233, 0.08);
  overflow: hidden;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.terminal-dots span:nth-child(1) { background: #ef4444; opacity: 0.75; }
.terminal-dots span:nth-child(2) { background: #eab308; opacity: 0.75; }
.terminal-dots span:nth-child(3) { background: #22c55e; opacity: 0.75; }

.terminal-file {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.terminal-status {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: statusPulse 1.8s ease infinite;
}

.terminal-code {
  margin: 0;
  padding: 1rem 1rem 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  min-height: 148px;
  color: var(--text);
  overflow: hidden;
}

.terminal-code code {
  white-space: pre-wrap;
}

.tok-keyword { color: #7dd3fc; }
.tok-fn { color: #fbbf24; }
.tok-plain { color: #cbd5e1; }

.terminal-cursor {
  color: var(--primary);
  animation: cursorBlink 1s step-end infinite;
}

.terminal-logs {
  margin: 0;
  padding: 0.65rem 1rem 1rem;
  list-style: none;
  border-top: 1px solid var(--border);
}

.terminal-log {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.28rem 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.terminal-log.visible {
  opacity: 1;
  transform: translateX(0);
}

.actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}


.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn-block {
  display: block;
  text-align: center;
  margin-top: 1.1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: btnShine 3.5s ease infinite;
}

.btn-primary.success {
  background: #16a34a;
}

.btn-secondary {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.section {
  padding: 3.6rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-soft) 0%, rgba(20, 28, 43, 0.95) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-showcase .section-header,
.section-showcase .portfolio {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 1.6rem;
  overflow: hidden;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  font-weight: 800;
  color: var(--white);
  position: relative;
  display: inline-block;
  padding-bottom: 0.15rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 42px;
  height: 3px;
  border-radius: 99px;
  background: var(--primary);
  transform-origin: left center;
}

.section-intro {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 640px;
  line-height: 1.7;
}

.stats {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  background: var(--bg-soft);
  text-align: center;
}

.stat-number {
  margin: 0;
  font-size: 2.65rem;
  line-height: 1;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.grid-services {
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

.card-minimal {
  text-align: center;
  padding: 1.5rem 0.75rem;
}

.card-minimal .svc-icon {
  margin: 0 auto 1rem;
  width: 52px;
  height: 52px;
}

.card-minimal .svc-icon svg {
  width: 26px;
  height: 26px;
}

.card-minimal h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
}

.card-minimal p {
  display: none;
}

.stack-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stack-band span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: var(--bg-soft);
}

.steps-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step-compact {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.step-compact span {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}

.step-compact strong {
  display: block;
  font-size: 1.15rem;
  color: var(--white);
}

.plan-minimal ul {
  display: none;
}

.plan-minimal h3 {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0.5rem 0 0.35rem;
  letter-spacing: -0.02em;
}

.plan-tagline {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1rem;
}

.cta-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem !important;
}

.cta-title::after {
  display: none !important;
}

.cta-sub {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-simple p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--bg-soft);
  transition: transform 0.35s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  transform-style: preserve-3d;
}

.card:hover {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: var(--shadow), 0 0 28px rgba(14, 165, 233, 0.08);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-muted);
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

@media (min-width: 961px) {
  .timeline::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--primary), var(--border));
    background-size: 200% 100%;
    animation: lineFlow 4s linear infinite;
    z-index: 0;
  }

  .timeline .step {
    position: relative;
    z-index: 1;
  }
}

.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: var(--bg-soft);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}

.chips span {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  background: var(--primary-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stack-grid span {
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(139, 92, 246, 0.06));
  color: var(--text);
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stack-grid span:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.15);
}

.stack-grid span.pop {
  opacity: 1;
  transform: scale(1);
}

.cases-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.carousel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 1.4rem 2.8rem 2.6rem;
  overflow: hidden;
  min-height: 240px;
}

.carousel-track {
  position: relative;
  min-height: 170px;
}

.case-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.case-card.active {
  opacity: 1;
  transform: translateX(0);
}

.case-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.25rem;
  color: var(--white);
}

.case-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.case-tag {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--primary-muted);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.case-tech {
  margin-top: 0.85rem !important;
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.9rem !important;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-muted);
  color: var(--text);
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: var(--primary);
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

.mockups {
  display: grid;
  gap: 1rem;
}

.mockup-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: var(--bg);
  transition: transform 0.35s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.mockup-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.mockup-preview {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
  margin-bottom: 0.85rem;
}

.mockup-bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
}

.mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-bar span:first-child {
  background: #ef4444;
  opacity: 0.7;
}

.mockup-bar span:nth-child(2) {
  background: #eab308;
  opacity: 0.7;
}

.mockup-bar span:nth-child(3) {
  background: #22c55e;
  opacity: 0.7;
}

.mockup-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 110px;
}

.mockup-sidebar {
  background: rgba(14, 165, 233, 0.08);
  border-right: 1px solid var(--border);
}

.mockup-content {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.mockup-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.25);
}

.mockup-line.short {
  width: 65%;
}

.mockup-chart {
  height: 48px;
  border-radius: 6px;
  margin-top: 4px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 4px;
  background: rgba(14, 165, 233, 0.06);
}

.mockup-chart span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--primary), rgba(14, 165, 233, 0.3));
  transform-origin: bottom;
  animation: barGrow 1.2s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.1s);
}

.mockup-chart span:nth-child(1) { --i: 0; }
.mockup-chart span:nth-child(2) { --i: 1; }
.mockup-chart span:nth-child(3) { --i: 2; }
.mockup-chart span:nth-child(4) { --i: 3; }
.mockup-chart span:nth-child(5) { --i: 4; }

.mockup-preview.mobile {
  max-width: 140px;
  margin-left: auto;
  margin-right: auto;
}

.mockup-preview.mobile .mockup-content {
  min-height: 100px;
}

.mockup-pill {
  width: 70%;
  height: 22px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: var(--primary-muted);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.mockup-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: var(--white);
}

.mockup-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  transform-style: preserve-3d;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.plan-card h3 {
  margin: 0.4rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--white);
}

.plan-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}

.plan-badge {
  margin: 0;
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary-muted);
  border: 1px solid var(--border);
  color: var(--primary);
}

.featured-badge {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, var(--bg-soft) 100%);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2), 0 0 30px rgba(14, 165, 233, 0.12);
  transform: scale(1.02);
  animation: featuredGlow 3s ease-in-out infinite;
}

.plan-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.plan-card__trigger {
  display: contents;
}

.plan-card__head {
  display: block;
}

.plan-card__chevron {
  display: none;
}

.plan-card__body {
  display: block;
}

.marquee-wrap {
  display: none;
}

.marquee-band {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.55rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-band:last-child {
  margin-bottom: 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0.5rem;
}

.marquee-group {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.marquee-group span {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: var(--primary-muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.marquee-band--stack .marquee-group span {
  border-color: rgba(14, 165, 233, 0.25);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(139, 92, 246, 0.06));
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.marquee-track--left {
  animation: marqueeLeft 28s linear infinite;
}

.marquee-track--right {
  animation: marqueeRight 32s linear infinite;
}

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.benefit-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: var(--bg);
}

.benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary-muted);
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.benefit-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--white);
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.testimonial-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--bg-soft);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-muted);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.testimonial-card p {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.testimonial-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  gap: 0.65rem;
  max-width: 760px;
}

.faq-grid details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: var(--bg);
}

.faq-grid details[open] {
  border-color: var(--border-hover);
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid p {
  margin: 0.65rem 0 0.05rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.cta {
  padding-bottom: 4rem;
}

.cta-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 1.25rem;
  max-width: 360px;
  position: relative;
  text-align: center;
}

.cta-brand::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.cta-brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: min(340px, 78vw);
  height: auto;
  margin: 0 auto;
  filter: brightness(1.1) drop-shadow(0 0 28px rgba(14, 165, 233, 0.45)) drop-shadow(0 10px 24px rgba(14, 165, 233, 0.2));
}

.cta-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem 2rem;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, var(--bg-soft) 100%);
  box-shadow: var(--shadow);
  position: relative;
}

.cta-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  padding: 1px;
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 30%, var(--primary), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ctaRotate 4s linear infinite;
  pointer-events: none;
}

.cta-box h2,
.cta-box .cta-title {
  display: block;
  text-align: center;
}

.form-notice {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-notice.success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.form-notice.error {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.contact-form {
  display: grid;
  gap: 0.7rem;
  text-align: left;
}

.btn-email-contact {
  font-size: clamp(0.72rem, 2.8vw, 0.88rem);
  letter-spacing: 0.01em;
  word-break: break-all;
}

.contact-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 0.84rem 0.9rem;
  font: inherit;
  font-size: 0.97rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.contact-hint {
  margin: 0.85rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0 1.2rem;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  margin-bottom: 1rem;
  display: inline-block;
  line-height: 0;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-heading {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}

.footer-nav {
  display: grid;
  gap: 0.45rem;
}

.footer-nav a,
.site-footer a:not(.logo) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  display: block;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.site-footer a:not(.logo):hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  animation: pulse 2.2s infinite;
  z-index: 15;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 74px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  z-index: 15;
}

.scroll-top:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal:not(:has(.section-header)):not(.cta) {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}

.reveal:not(:has(.section-header)):not(.cta).visible {
  opacity: 1;
  transform: translateY(0);
}

/* Títulos: caída sólida, sin fade — estilo agencia tech */
.reveal .section-header h2,
.reveal.cta .cta-box > h2 {
  opacity: 1;
  transform: translate3d(0, -32px, 0);
  clip-path: inset(0 0 100% 0);
  will-change: transform, clip-path;
  transition:
    transform 1.55s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 1.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible .section-header h2,
.reveal.cta.visible .cta-box > h2 {
  transform: translate3d(0, 0, 0);
  clip-path: inset(0 0 0 0);
}

.reveal .section-header h2::after {
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}

.reveal.cta .cta-box > h2::after {
  left: 50%;
  transform: scaleX(0) translateX(-50%);
  transform-origin: center;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}

.reveal.visible .section-header h2::after {
  transform: scaleX(1);
}

.reveal.cta.visible .cta-box > h2::after {
  transform: scaleX(1) translateX(-50%);
}

.reveal .section-intro,
.reveal.cta .cta-box > p:not(.form-notice):not(.contact-hint) {
  opacity: 1;
  transform: translate3d(0, 26px, 0);
  clip-path: inset(0 0 100% 0);
  will-change: transform, clip-path;
  transition:
    transform 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.32s,
    clip-path 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.32s;
}

.reveal.visible .section-intro,
.reveal.visible .cta-box > p:not(.form-notice):not(.contact-hint) {
  transform: translate3d(0, 0, 0);
  clip-path: inset(0 0 0 0);
}

.reveal.cta .contact-hint,
.reveal.cta .contact-form,
.reveal.cta .contact-links {
  opacity: 1;
  transform: translate3d(0, 20px, 0);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.cta.visible .contact-hint {
  transform: translate3d(0, 0, 0);
  transition-delay: 0.48s;
}

.reveal.cta.visible .contact-form {
  transform: translate3d(0, 0, 0);
  transition-delay: 0.62s;
}

.reveal.cta.visible .contact-links {
  transform: translate3d(0, 0, 0);
  transition-delay: 0.76s;
}

.stagger-item {
  opacity: 1;
  transform: translate3d(0, 32px, 0);
  will-change: transform;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-item.visible {
  transform: translate3d(0, 0, 0);
}

body:not(.loaded) .animate-in {
  opacity: 0;
  transform: translateY(22px);
}

body.loaded .animate-in {
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloaderFill {
  to { width: 100%; }
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

@keyframes btnShine {
  0%, 80%, 100% { left: -120%; }
  40% { left: 140%; }
}

@keyframes lineFlow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2), 0 0 24px rgba(14, 165, 233, 0.1); }
  50% { box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.35), 0 0 36px rgba(14, 165, 233, 0.18); }
}

@keyframes ctaRotate {
  to { --cta-angle: 360deg; }
}

@property --cta-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal .section-header h2,
  .reveal .section-intro,
  .reveal.cta .cta-box > h2,
  .reveal.cta .cta-box > p,
  .reveal.cta .contact-hint,
  .reveal.cta .contact-form,
  .reveal.cta .contact-links,
  .stagger-item,
  .stack-grid span {
    opacity: 1;
    transform: none;
  }

  .reveal .section-header h2::after {
    transform: scaleX(1);
  }

  .reveal.cta .cta-box > h2::after {
    transform: scaleX(1) translateX(-50%);
  }

  .reveal .section-header h2,
  .reveal.cta .cta-box > h2,
  .reveal .section-intro,
  .reveal.cta .cta-box > p {
    clip-path: none;
  }

  .hero-canvas {
    display: none;
  }
}

@media (max-width: 960px) {
  .stats-grid,
  .plans-grid,
  .benefits-grid,
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-services {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps,
  .steps-compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-layout {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: none;
  }

  .plan-card.featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 4%;
    background: rgba(15, 20, 25, 0.98);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
  }

  .site-header .nav {
    position: relative;
    flex-wrap: wrap;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.4rem 0 1.4rem;
  }

  .hero .kicker {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
  }

  h1 {
    margin: 0.35rem 0 0.65rem;
    font-size: clamp(1.55rem, 6.5vw, 2rem);
    line-height: 1.2;
  }

  .hero .lead {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .actions {
    gap: 0.55rem;
  }

  .actions .btn {
    padding: 0.58rem 0.85rem;
    font-size: 0.84rem;
  }

  .hero-visual {
    display: none;
  }

  .stats-grid,
  .plans-grid,
  .benefits-grid,
  .testimonials,
  .steps,
  .steps-compact,
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel {
    padding: 1.2rem 1rem;
  }

  .carousel-btn {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.85rem;
  }

  .footer-tagline {
    max-width: 22rem;
    text-align: center;
  }

  .logo-brand-img-footer {
    height: 118px;
    max-width: 300px;
    object-position: center center;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
  }

  .scroll-top {
    right: 12px;
    bottom: 64px;
  }

  .container,
  .container-wide {
    width: 94%;
  }

  .section {
    padding: 1.45rem 0;
  }

  .section-showcase {
    padding: 1.35rem 0;
  }

  .section-header {
    margin-bottom: 0.9rem;
  }

  h2 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    margin-bottom: 0.35rem;
  }

  .section-intro {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .stats {
    padding-top: 0.25rem;
    padding-bottom: 1.1rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .plans-grid,
  .testimonials {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .benefits-grid,
  .steps,
  .steps-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .grid-services {
    grid-template-columns: 1fr;
  }

  #especialidades .chips--desktop,
  #especialidades .stack-grid--desktop {
    display: none;
  }

  #especialidades .section-intro {
    font-size: 0.82rem;
    margin-top: 0.35rem;
  }

  #especialidades .marquee-wrap {
    display: block;
    margin-top: 0.35rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.55rem 0.3rem;
  }

  .stat-number {
    font-size: 1.55rem;
  }

  .stat-label {
    font-size: 0.56rem;
    margin-top: 0.25rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
  }

  .card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem;
    align-items: start;
    padding: 0.72rem 0.8rem;
  }

  .card .svc-icon {
    margin: 0;
    width: 38px;
    height: 38px;
  }

  .card h3 {
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
  }

  .card p {
    font-size: 0.8rem;
    line-height: 1.4;
    grid-column: 1 / -1;
    padding-left: calc(38px + 0.55rem);
    margin-top: -0.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .step {
    padding: 0.72rem 0.65rem;
  }

  .step span {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }

  .step h3 {
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
  }

  .step p {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .plan-card {
    padding: 0;
    overflow: hidden;
  }

  .plan-card__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    padding: 0.8rem 0.85rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
  }

  .plan-card__head {
    flex: 1;
    min-width: 0;
  }

  .plan-card__head h3 {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
  }

  .plan-card__head .plan-badge {
    margin: 0;
  }

  .plan-card__chevron {
    display: block;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.28s ease;
  }

  .plan-card.is-open .plan-card__chevron {
    transform: rotate(-135deg);
  }

  .plan-card__body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 0.85rem;
    transition: max-height 0.35s ease, opacity 0.28s ease, padding 0.28s ease;
  }

  .plan-card.is-open .plan-card__body {
    max-height: 280px;
    opacity: 1;
    padding: 0 0.85rem 0.85rem;
  }

  .plan-card ul {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-top: 0;
  }

  .plan-card .btn-block {
    margin-top: 0.65rem;
    padding: 0.58rem 0.85rem;
    font-size: 0.84rem;
  }

  .plan-card.featured {
    transform: none;
    animation: none;
  }

  .plan-card.featured.is-open {
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2), 0 0 24px rgba(14, 165, 233, 0.1);
  }

  .benefit-card {
    padding: 0.75rem 0.7rem;
  }

  .benefit-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
  }

  .benefit-card h3 {
    font-size: 0.84rem;
    margin-bottom: 0.2rem;
  }

  .benefit-card p {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .chips,
  .stack-grid {
    justify-content: center;
    gap: 0.35rem;
  }

  .chips span,
  .stack-grid span {
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
  }

  .cta-box {
    padding: 1.15rem 0.85rem 1rem;
  }

  .cta-brand {
    max-width: 280px;
  }

  .cta-brand-logo {
    max-width: min(220px, 72vw);
    margin: 0 auto 0.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
  }

  .contact-form textarea {
    min-height: 88px;
  }

  .contact-hint {
    margin: 0.55rem 0 0.4rem;
    font-size: 0.84rem;
  }

  .site-footer {
    padding-top: 1.5rem;
  }

  .footer-grid {
    gap: 0.9rem;
    margin-bottom: 1rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-links .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0 1.1rem;
  }

  .logo-brand-img-nav {
    height: 52px;
    max-width: min(220px, 58vw);
  }

  h1 {
    font-size: clamp(1.45rem, 6.8vw, 1.9rem);
    line-height: 1.18;
  }

  h2 {
    font-size: clamp(1.22rem, 4.8vw, 1.55rem);
  }

  .section {
    padding: 1.15rem 0;
  }

  .section-showcase {
    padding: 1.1rem 0;
  }

  .section-intro {
    font-size: 0.84rem;
  }

  .hero-tech-stack {
    display: none;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .actions .btn-primary {
    grid-column: 1 / -1;
  }

  .stats-grid {
    gap: 0.35rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .logo-brand-img-footer {
    height: 108px;
    max-width: 280px;
  }

  .cta-brand-logo {
    max-width: min(200px, 68vw);
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
  }
}
