/* Paultecnology — premium SaaS layer */

:root {
  --color-accent: #2563eb;
  --color-accent-soft: rgba(37, 99, 235, 0.08);
  --surface: #fafafa;
  --surface-elevated: #ffffff;
  --border-hairline: rgba(15, 23, 42, 0.06);
  --shadow-premium: 0 1px 0 rgba(15, 23, 42, 0.04), 0 12px 40px -16px rgba(15, 23, 42, 0.12);
  --shadow-card-hover: 0 1px 0 rgba(15, 23, 42, 0.04), 0 24px 48px -20px rgba(15, 23, 42, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

::selection {
  background: rgba(37, 99, 235, 0.14);
  color: rgb(15 23 42);
}

/* Hero — quiet depth (Stripe-style ambient) */
.hero-mesh {
  background:
    radial-gradient(120% 80% at 50% -30%, rgba(37, 99, 235, 0.06), transparent 55%),
    radial-gradient(80% 50% at 100% 0%, rgba(251, 191, 36, 0.04), transparent 45%),
    radial-gradient(60% 40% at 0% 100%, rgba(249, 115, 22, 0.03), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black 35%, transparent 92%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  pointer-events: none;
  animation: float 28s ease-in-out infinite;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, #3b82f6, #93c5fd);
  top: 5%;
  right: -5%;
}

.orb-2 {
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, #fbbf24, #fdba74);
  bottom: 15%;
  left: -3%;
  animation-delay: -9s;
}

.orb-3 {
  display: none;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-8px, 12px) scale(1.03);
  }
}

/* Section rhythm */
.section-y {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

@media (min-width: 768px) {
  .section-y {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

@media (min-width: 1024px) {
  .section-y {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* Eyebrow label */
.eyebrow {
  letter-spacing: 0.22em;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgb(148 163 184);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-children.visible > *:nth-child(1) {
  transition-delay: 0.04s;
}
.stagger-children.visible > *:nth-child(2) {
  transition-delay: 0.08s;
}
.stagger-children.visible > *:nth-child(3) {
  transition-delay: 0.12s;
}
.stagger-children.visible > *:nth-child(4) {
  transition-delay: 0.16s;
}
.stagger-children.visible > *:nth-child(5) {
  transition-delay: 0.2s;
}
.stagger-children.visible > *:nth-child(6) {
  transition-delay: 0.24s;
}

/* Premium card */
.card-lift {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-premium);
}

.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* Nav — minimal */
.nav-link {
  position: relative;
  color: rgb(100 116 139);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: rgb(15 23 42);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: rgb(15 23 42);
  transition: width 0.25s ease;
}

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

.contact-field:focus {
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

#mobile-menu:not(.hidden) {
  animation: slideDown 0.28s ease;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: rgb(15 23 42);
  color: white;
  border-radius: 0.375rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* Why us row */
.why-row {
  border-bottom: 1px solid var(--border-hairline);
  transition: background 0.2s ease;
}

.why-row:last-child {
  border-bottom: none;
}

.why-row:hover {
  background: rgba(248, 250, 252, 0.8);
}
