/* ------- Nubea Studio — Landing Page ------- */
:root {
  --blue: #0057b8;
  --blue-deep: #003b7a;
  --blue-ink: #022046;
  --blue-soft: #eaf4ff;
  --blue-mist: #f3f6fa;
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #6b7280;
  --line: #e5ecf3;
  --white: #ffffff;
  --primary-dark: #0a0e27;
  --secondary: #1a1f3a;
  --shadow-sm: 0 2px 6px rgba(15, 32, 60, 0.06);
  --shadow-md:
    0 18px 40px -16px rgba(7, 36, 80, 0.18), 0 4px 12px rgba(7, 36, 80, 0.06);
  --shadow-lg:
    0 40px 80px -24px rgba(0, 59, 122, 0.35),
    0 10px 30px -8px rgba(0, 59, 122, 0.18);
  --shadow-glow:
    0 0 0 1px rgba(0, 87, 184, 0.08), 0 30px 60px -20px rgba(0, 87, 184, 0.35);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --grad-sky: linear-gradient(180deg, #eaf4ff 0%, #ffffff 60%);
  --grad-cta: linear-gradient(135deg, #0057b8 0%, #003b7a 100%);
  --grad-btn: linear-gradient(180deg, #0a64c8 0%, #0050a8 100%);
  --grad-text: linear-gradient(180deg, #0057b8 0%, #003b7a 100%);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    "Manrope",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
textarea,
select {
  font-family: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

/* Section common */
section {
  position: relative;
  padding: 120px 0;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.18);
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
}
h1 {
  font-size: clamp(48px, 7.2vw, 96px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 900;
}
h2 {
  font-size: clamp(32px, 3.6vw, 48px);
}
h3 {
  font-size: 20px;
  line-height: 1.3;
}
p {
  color: var(--ink-2);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition:
    transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.25s ease,
    color 0.2s ease;
  white-space: nowrap;
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.3),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.btn:hover::before {
  opacity: 1;
}
.btn-primary {
  background: var(--grad-btn);
  color: white;
  box-shadow:
    0 8px 18px -8px rgba(0, 87, 184, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 40px -10px rgba(0, 87, 184, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:active {
  transform: translateY(-1px);
}
.btn-ghost {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px rgba(0, 87, 184, 0.2);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px rgba(0, 87, 184, 0.25);
}
.btn .arrow {
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 32px);
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 6px 20px -8px rgba(7, 36, 80, 0.14);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    top 0.25s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px -16px rgba(7, 36, 80, 0.18);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 87, 184, 0.18));
}
.brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-name .dot {
  color: var(--blue);
}
.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav a {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-2);
  transition:
    color 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.2s ease;
  position: relative;
  will-change: transform;
}
.nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--blue-soft);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}
.nav a:hover {
  color: var(--blue);
  background: var(--blue-soft);
  transform: scale(1.08);
}
.nav a:active {
  transform: scale(0.98);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-cta .btn {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}
.menu-toggle {
  display: none;
}

/* ============ HERO ============ */
.hero {
  padding: 200px 0 140px;
  position: relative;
  overflow: hidden;
  will-change: contents;
  background:
    radial-gradient(
      1200px 600px at 80% -10%,
      rgba(0, 87, 184, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 0% 30%,
      rgba(180, 213, 250, 0.6),
      transparent 60%
    ),
    var(--grad-sky);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero h1 {
  background: linear-gradient(180deg, #0a1d3a 0%, #002b5c 60%, #0057b8 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@property --shine-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 82%;
}

@property --shine-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 82%;
}

.hero h1 .accent {
  --shine-x: 42%;
  --shine-y: 82%;

  background: radial-gradient(
    circle at var(--shine-x) var(--shine-y),
    rgba(255, 255, 255, 0.32) 0%,
    rgba(111, 177, 248, 0.28) 16%,
    #0057b8 44%,
    #003f88 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  position: relative;
  display: inline-block;

  animation: accentRightReflection 6.5s ease-in-out infinite alternate;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -6px;
  height: 8px;

  background: radial-gradient(
    circle at var(--shine-x) var(--shine-y),
    rgba(255, 255, 255, 0.16) 0%,
    rgba(111, 177, 248, 0.14) 24%,
    transparent 68%
  );

  filter: blur(8px);
  opacity: 0.35;
  pointer-events: none;

  animation: accentRightReflection 6.5s ease-in-out infinite alternate;
}

@keyframes accentRightReflection {
  from {
    --shine-x: 88%;
    --shine-y: 85%;
  }

  to {
    --shine-x: 88%;
    --shine-y: 18%;
  }
}

.hero p.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 22px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-meta .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta .stat strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-meta .stat span {
  color: var(--ink-3);
  font-size: 13px;
}
.hero-meta .divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

/* Hero visual — floating mockup composition */
.hero-visual {
  position: relative;
  height: 540px;
}
.cloud-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.float {
  position: absolute;
  border-radius: var(--r-lg);
  background: white;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
.float--browser {
  top: 30px;
  left: 30px;
  right: 60px;
  height: 360px;
  animation-delay: 0s;
}
.float--card {
  bottom: 40px;
  left: 0;
  width: 230px;
  padding: 18px;
  animation-delay: 1.4s;
}
.float--metric {
  top: 320px;
  right: 20px;
  width: 220px;
  padding: 18px;
  animation-delay: 0.8s;
}
.float--chip {
  top: 0;
  right: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  animation-delay: 0.4s;
}
.float--chip .pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #21c46a;
  box-shadow: 0 0 0 0 rgba(33, 196, 106, 0.55);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(33, 196, 106, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(33, 196, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(33, 196, 106, 0);
  }
}

/* Browser mock */
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--blue-mist);
}
.dot-bar {
  display: flex;
  gap: 5px;
}
.dot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d9dee6;
  display: inline-block;
}
.browser-url {
  flex: 1;
  height: 24px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 11px;
  color: var(--ink-3);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.browser-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  height: calc(100% - 49px);
  background:
    radial-gradient(
      400px 200px at 0% 0%,
      rgba(0, 87, 184, 0.08),
      transparent 70%
    ),
    white;
}
.bm-h1 {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--ink) 30%, transparent 30%);
  background-size: 100% 100%;
  width: 80%;
}
.bm-line {
  height: 9px;
  border-radius: 4px;
  background: var(--blue-mist);
  margin-top: 10px;
}
.bm-line.short {
  width: 60%;
}
.bm-btn {
  margin-top: 16px;
  height: 32px;
  width: 110px;
  border-radius: 999px;
  background: var(--grad-btn);
}
.bm-graphic {
  border-radius: 14px;
  background: linear-gradient(135deg, #cfe3fb 0%, #a9c8f0 100%);
  position: relative;
  overflow: hidden;
}
.bm-graphic::before,
.bm-graphic::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(0.5px);
}
.bm-graphic::before {
  width: 90px;
  height: 90px;
  top: 14px;
  left: -10px;
}
.bm-graphic::after {
  width: 130px;
  height: 130px;
  bottom: -28px;
  right: -16px;
  opacity: 0.8;
}

/* Mini metric card */
.metric-title {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.metric-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.metric-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #16a04b;
  font-weight: 600;
  margin-top: 6px;
}
.spark {
  margin-top: 10px;
  height: 38px;
}
.spark path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
}
.spark .area {
  fill: rgba(0, 87, 184, 0.12);
  stroke: none;
}

/* Mini avatar card */
.avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0057b8, #6fb1f8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}
.avatar-name {
  font-weight: 700;
  font-size: 14px;
}
.avatar-sub {
  font-size: 12px;
  color: var(--ink-3);
}
.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tag {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-weight: 600;
}

/* ============ CLOUDS / DECOR ============ */
.cloud {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  z-index: 0;
}
.cloud-1 {
  top: 10%;
  left: -120px;
  width: 360px;
  height: 200px;
  background: #b9d6f8;
}
.cloud-2 {
  top: 60%;
  right: -120px;
  width: 420px;
  height: 240px;
  background: #cfe2fb;
}
.cloud-3 {
  top: 150%;
  left: 30%;
  width: 320px;
  height: 180px;
  background: #dbeaff;
}

/* SVG cloud illustration */
.svg-cloud {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 18px 30px rgba(0, 59, 122, 0.18));
}

/* ============ LOGO STRIP ============ */
.logo-strip {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}
.logo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.logo-strip-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.logo-strip-list {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
  opacity: 0.55;
}
.logo-strip-list span {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.logo-strip-list span small {
  font-weight: 500;
  opacity: 0.65;
  font-size: 12px;
}

/* ============ SERVICES ============ */
.services {
  background: #f5f9ff;
  background-image: radial-gradient(
    circle,
    rgba(0, 87, 184, 0.07) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  position: relative;
  overflow: hidden;
}
/* Decorative side clouds — services */
.svc-cloud {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.svc-cloud--a {
  top: 5%;
  left: -55px;
  width: 220px;
  opacity: 0.5;
  animation: projDrift 14s ease-in-out infinite;
}
.svc-cloud--b {
  top: 50%;
  left: -40px;
  width: 155px;
  opacity: 0.32;
  animation: projDrift 19s ease-in-out infinite reverse;
  animation-delay: 3.5s;
}
.svc-cloud--c {
  top: 18%;
  right: -50px;
  width: 195px;
  opacity: 0.45;
  animation: projDrift 12s ease-in-out infinite;
  animation-delay: 1.8s;
}
.svc-cloud--d {
  top: 62%;
  right: -35px;
  width: 130px;
  opacity: 0.28;
  animation: projDrift 17s ease-in-out infinite reverse;
  animation-delay: 6s;
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    white 0%,
    transparent 10%,
    transparent 90%,
    white 100%
  );
  pointer-events: none;
  z-index: 0;
}
.services .container {
  position: relative;
  z-index: 1;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 36px 30px 32px;
  border-radius: var(--r-lg);
  background: white;
  border: 1px solid var(--line);
  transition:
    box-shadow 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s ease;
  overflow: hidden;
  will-change: transform;
  transform-origin: center 60%;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px 180px at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--card-color, #0057b8) 14%, transparent),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--card-color, var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-card:hover {
  box-shadow:
    0 30px 60px -20px rgba(0, 87, 184, 0.22),
    0 8px 20px -8px rgba(0, 87, 184, 0.12);
  border-color: rgba(0, 87, 184, 0.18);
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover::after {
  transform: scaleX(1);
}

/* Background decorative number */
.service-card-num {
  position: absolute;
  top: -8px;
  right: 14px;
  font-size: 92px;
  font-weight: 800;
  color: var(--card-color, var(--blue));
  opacity: 0.055;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 0;
}
.service-card:hover .service-card-num {
  opacity: 0.1;
  transform: scale(1.06) translateY(-4px);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #eaf4ff 0%, #d8e9fc 100%);
  color: var(--card-color, var(--blue-deep));
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.4s ease;
  will-change: transform;
  z-index: 1;
}
.service-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.55),
    transparent 60%
  );
}
.service-card:hover .service-icon {
  transform: scale(1.14) rotate(-6deg);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.2);
}
.service-card h3 {
  font-size: 19px;
  position: relative;
  z-index: 1;
}
.service-card p {
  font-size: 14.5px;
  margin-top: 8px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.service-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--card-color, var(--blue));
  font-weight: 600;
  font-size: 14px;
  opacity: 0.4;
  transform: translateX(0px);
  transition:
    opacity 0.3s,
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  z-index: 1;
}
.service-card:hover .arrow-link {
  opacity: 1;
  transform: translateX(5px);
}

/* ============ PROJECTS ============ */
.projects {
  background: var(--blue-mist);
  overflow: hidden;
}

/* Decorative side clouds */
.proj-cloud {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
}
.proj-cloud--a {
  top: 8%;
  left: -60px;
  width: 210px;
  animation: projDrift 13s ease-in-out infinite;
}
.proj-cloud--b {
  top: 52%;
  left: -40px;
  width: 150px;
  animation: projDrift 17s ease-in-out infinite reverse;
  animation-delay: 4s;
  opacity: 0.38;
}
.proj-cloud--c {
  top: 14%;
  right: -55px;
  width: 190px;
  animation: projDrift 15s ease-in-out infinite;
  animation-delay: 2s;
}
.proj-cloud--d {
  top: 62%;
  right: -35px;
  width: 130px;
  animation: projDrift 11s ease-in-out infinite reverse;
  animation-delay: 6s;
  opacity: 0.32;
}
@keyframes projDrift {
  0%,
  100% {
    transform: translateX(0) translateY(0px);
  }
  30% {
    transform: translateX(18px) translateY(-10px);
  }
  65% {
    transform: translateX(-8px) translateY(6px);
  }
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  color: white;
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--overlay-color, rgba(0, 0, 0, 0.5)), var(--overlay-color, rgba(0, 0, 0, 0.5)));
  pointer-events: none;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.pc-dotgrid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.15;
  z-index: 2;
}

.pc-watermark {
  display: none;
}

.pc-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: auto;
  position: relative;
  z-index: 3;
  font-size: 12px;
}

.pc-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.8);
}

.pc-year {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.pc-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
  padding: 32px 0;
  position: relative;
  z-index: 3;
}

.pc-emoji {
  display: none;
}

.pc-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  color: white;
}

.pc-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 32px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  max-width: 90%;
}

.pc-footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  width: 100%;
}

.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  color: white;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.pc-cta:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.pc-orb {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  z-index: 1;
}

/* ============ PROJECT MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-panel {
  background: white;
  border-radius: var(--r-xl);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge */
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.55);
  animation: modalSlideUp 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
}
.modal-panel::-webkit-scrollbar {
  display: none;                /* Chrome / Safari / Opera */
}
@keyframes modalSlideUp {
  from {
    transform: translateY(40px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition:
    background 0.2s ease,
    transform 0.25s ease;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.1) rotate(90deg);
}
.modal-hero {
  background: linear-gradient(160deg, #1a4228 0%, #2d6a4f 60%, #4a9e6f 100%);
  padding: 28px 36px 0;
  display: flex;
  gap: 24px;
  align-items: flex-end;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal-hero-text {
  flex: 1;
  padding-bottom: 20px;
}
.modal-hero-text h2 {
  color: white;
  font-size: clamp(22px, 3.2vw, 30px);
  margin-top: 8px;
}
.modal-hero-text p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
}
.modal-hero-browser {
  width: 260px;
  min-width: 180px;
  height: 155px;
  background: white;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}
.modal-browser-screen {
  padding: 8px;
  height: calc(100% - 22px);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mbs-hero {
  border-radius: 5px;
  background: linear-gradient(135deg, #2d6a4f, #4a9e6f);
  flex: 1;
  position: relative;
  overflow: hidden;
}
.mbs-hero::after {
  content: "🌲  El Campitoo  🌳";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: white;
}
.mbs-nav {
  height: 12px;
  border-radius: 3px;
  background: #f0f2f5;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.mbs-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.mbs-lines div {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
}
.mbs-lines div:first-child {
  width: 75%;
}
.mbs-lines div:nth-child(2) {
  width: 95%;
}
.mbs-lines div.short {
  width: 55%;
}
.mbs-cards {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.mbs-cards div {
  flex: 1;
  height: 18px;
  border-radius: 4px;
  background: #eaf4ff;
}
.modal-body {
  padding: 24px 36px 28px;
}
.modal-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 18px;
}
.modal-desc h3,
.modal-features h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
.modal-desc p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.modal-list li svg {
  color: #2d6a4f;
  flex-shrink: 0;
}
.modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.modal-soon {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--blue-mist);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px dashed var(--line);
}

/* Modal hero icon (non-browser projects) */
.modal-hero-icon {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 68px;
  align-self: center;
  margin-bottom: 10px;
}

/* Modal service icon */
.modal-service-icon {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: white;
  align-self: center;
  margin-bottom: 10px;
}

/* Lego mini grid inside modal hero */
.modal-lego-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100px;
}
.mlm-brick {
  background: var(--lc);
  border-radius: 4px;
  height: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}
.mlm-stud {
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lc);
  filter: brightness(1.2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .modal-hero {
    flex-direction: column;
    padding: 28px 24px 0;
    min-height: unset;
  }
  .modal-hero-browser {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    align-self: stretch;
  }
  .modal-hero-icon {
    width: 96px;
    height: 96px;
    font-size: 50px;
    align-self: center;
    margin-bottom: 16px;
  }
  .modal-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .modal-body {
    padding: 24px;
  }
}

/* ============ PROCESS ============ */
.process {
  background: white;
  position: relative;
  overflow: hidden;
}
.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.process-rail::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 87, 184, 0.45) 0 6px,
    transparent 6px 12px
  );
}
.step {
  position: relative;
  background: white;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  border: 1px solid var(--line);
  text-align: left;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: white;
  border: 2px solid var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  margin: -54px 0 18px;
  box-shadow:
    0 0 0 6px white,
    0 12px 24px -10px rgba(0, 87, 184, 0.4);
  position: relative;
}
.step-num::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad-cta);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.step:hover .step-num::after {
  opacity: 1;
}
.step .step-num {
  transition:
    color 0.7s ease,
    background 0.7s ease,
    border-color 0.7s ease,
    transform 0.7s ease,
    box-shadow 0.7s ease;
}

.step:hover .step-num {
  color: white;
  background: var(--grad-cta);
  border-color: transparent;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 40px rgba(0, 87, 184, 0.4);
}
.step h3 {
  font-size: 17px;
}
.step p {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.55;
}

/* ============ CTA ============ */
.cta-band {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  position: relative;
  background:
    radial-gradient(
      700px 300px at 80% 20%,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      500px 250px at 10% 80%,
      rgba(255, 255, 255, 0.08),
      transparent 60%
    ),
    var(--grad-cta);
  border-radius: var(--r-xl);
  padding: 88px 56px;
  color: white;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 59, 122, 0.5);
}
.cta-inner::before,
.cta-inner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: white;
  opacity: 0.08;
  filter: blur(2px);
}
.cta-inner::before {
  width: 320px;
  height: 320px;
  top: -110px;
  right: -80px;
}
.cta-inner::after {
  width: 220px;
  height: 220px;
  bottom: -90px;
  left: -50px;
  opacity: 0.06;
}
.cta-inner h2 {
  color: white;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.025em;
  position: relative;
}
.cta-inner p {
  color: rgba(255, 255, 255, 0.85);
  margin: 16px auto 36px;
  max-width: 580px;
  font-size: 17px;
  position: relative;
}
.cta-inner .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-inner .btn-primary {
  background: white;
  color: var(--blue-deep);
}
.cta-inner .btn-primary:hover {
  background: white;
  color: var(--blue);
}

/* svg clouds floating in cta */
.cta-cloud {
  position: absolute;
  fill: rgba(255, 255, 255, 0.12);
  filter: blur(1px);
}
.cta-cloud.a {
  top: 10%;
  left: 5%;
  width: 140px;
  animation: drift 12s ease-in-out infinite;
}
.cta-cloud.b {
  top: 30%;
  right: 8%;
  width: 110px;
  animation: drift 14s 1s ease-in-out infinite reverse;
}
.cta-cloud.c {
  bottom: 15%;
  left: 18%;
  width: 90px;
  animation: drift 10s 2s ease-in-out infinite;
}
@keyframes drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
}

/* ============ CONTACT ============ */
.contact {
  background: linear-gradient(180deg, #eaf4ff 0%, #ffffff 80%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: stretch;
}
.contact-info {
  background: white;
  border-radius: var(--r-xl);
  padding: 48px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 18px rgba(15, 32, 60, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(0, 87, 184, 0.08),
    transparent 70%
  );
  pointer-events: none;
}
.contact-info > * {
  position: relative;
  z-index: 1;
}
.contact-info h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}
.contact-info > p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f5fb 100%);
  border: 1px solid #e2e8f0;
  transition: all 0.22s ease;
}
.contact-item:hover {
  background: linear-gradient(135deg, #f0f5fb 0%, #e8f0f8 100%);
  border-color: #cbd5e1;
  transform: translateX(4px);
}
.contact-item .ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(0, 87, 184, 0.1),
    rgba(0, 87, 184, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  border: 1px solid rgba(0, 87, 184, 0.15);
  font-weight: 600;
}
.contact-item .label {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
}
.contact-item div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-item div:last-child > div:last-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}
.contact-item div:last-child > div:last-child a {
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s ease;
}
.contact-item div:last-child > div:last-child a:hover {
  color: var(--blue-deep);
}

.form-card {
  background: white;
  border-radius: var(--r-xl);
  padding: 48px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 18px rgba(15, 32, 60, 0.08);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(0, 87, 184, 0.08),
    transparent 70%
  );
  pointer-events: none;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  opacity: 0.85;
}
.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.22s,
    box-shadow 0.22s,
    background 0.22s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%230057B8' d='M1.5 1.5l5.5 5.5 5.5-5.5' stroke='%230057B8' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 9px;
  padding-right: 40px;
  position: relative;
  cursor: pointer;
  font-weight: 500;
}
select option {
  font-family: "Manrope", sans-serif;
  padding: 12px;
  background: white;
  color: var(--ink);
  font-weight: 500;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}
.field input:hover:not(:focus),
.field select:hover:not(:focus),
.field textarea:hover:not(:focus) {
  border-color: #cbd5e1;
  background: #fafbfc;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: white;
  box-shadow:
    0 0 0 3px rgba(0, 87, 184, 0.1),
    inset 0 0 0 1px rgba(0, 87, 184, 0.05);
}
.field select:focus {
  border-color: var(--blue);
  background-color: white;
  box-shadow:
    0 0 0 3px rgba(0, 87, 184, 0.1),
    inset 0 0 0 1px rgba(0, 87, 184, 0.05);
}
.field select.has-value {
  color: var(--ink);
  font-weight: 600;
}
.field textarea {
  resize: none;
  min-height: 130px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13.5px;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #f87171;
  background: #fef2f2;
}
.field .err {
  font-size: 12.5px;
  color: #dc2626;
  font-weight: 500;
  margin-top: 2px;
}
.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
.form-submit .legal {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.form-success {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(247, 254, 255, 0.95) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xl);
  padding: 48px 40px;
  text-align: center;
  gap: 18px;
  animation: fadeIn 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  backdrop-filter: blur(1px);
}
.form-success .check {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.15);
  animation: checkPop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.form-success h3 {
  font-size: 26px;
  color: var(--ink);
  font-weight: 700;
  margin: 0;
}
.form-success p {
  color: var(--ink-2);
  max-width: 380px;
  font-size: 15px;
  line-height: 1.6;
}
.form-success .btn {
  margin-top: 6px;
}
@keyframes checkPop {
  from {
    transform: scale(0) rotate(-20deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

/* Error state */
.form-error {
  margin-top: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fef2f2 0%, #fef5f5 100%);
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeIn 0.3s ease both;
}
.form-error strong {
  display: block;
  width: 100%;
  margin-bottom: 4px;
}

/* Sending button */
.btn-sending {
  opacity: 0.85;
  cursor: not-allowed !important;
}
.btn-sending:active {
  transform: none !important;
}
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-right-color: white;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}
.footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer .brand-name {
  color: white;
}
.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14.5px;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  transition: color 0.2s;
}
.footer ul a:hover {
  color: white;
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============ VALUE / DIFERENCIAL ============ */
.value {
  position: relative;
  background: linear-gradient(160deg, #062a5b 0%, #003b7a 55%, #002654 100%);
  color: white;
  overflow: hidden;
}
.value-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.value-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.value-orb.a {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -100px;
  background: #2a73d6;
}
.value-orb.b {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: -80px;
  background: #5aa5ec;
  opacity: 0.28;
}
.value-cloud {
  position: absolute;
  opacity: 0.12;
}
.value-cloud path {
  fill: white;
}
.value h2 {
  color: white;
  font-size: clamp(34px, 3.6vw, 50px);
}
.value h2 em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(90deg, #9bd0ff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.value p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  max-width: 480px;
  margin-top: 18px;
}
.eyebrow.eyebrow--dark {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
}
.eyebrow.eyebrow--dark .dot {
  background: #9bd0ff;
  box-shadow: 0 0 0 4px rgba(155, 208, 255, 0.25);
}

.value-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.metrics {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.metric {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  padding: 22px 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}
.metric:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.11);
}
.metric-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: white;
  line-height: 1;
}
.metric-label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
  font-weight: 500;
}

/* Benefit cards */
.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 20px !important;
}
.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 87, 184, 0.2);
  border-radius: 12px;
  flex-shrink: 0;
  color: white;
}
.benefit-content {
  flex: 1;
}
.benefit-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}
.benefit-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

/* Value visual cluster */
.value-visual {
  position: relative;
  height: 480px;
}
.vv-card {
  position: absolute;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.06)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -20px rgba(0, 20, 60, 0.55);
  overflow: hidden;
  animation: floaty 9s ease-in-out infinite;
}
.vv-main {
  top: 30px;
  left: 0;
  right: 60px;
  height: 360px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.06)
  );
}
.vv-main .browser-bar {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.vv-main .browser-url {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
}
.vv-main .dot-bar i {
  background: rgba(255, 255, 255, 0.3);
}
.vv-body {
  padding: 24px;
  height: calc(100% - 49px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}
.vv-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vv-stat-value {
  font-size: 36px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.vv-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.vv-bar {
  flex: 1;
  background: linear-gradient(
    180deg,
    rgba(155, 208, 255, 1) 0%,
    rgba(0, 87, 184, 0.5) 100%
  );
  border-radius: 8px 8px 4px 4px;
  min-height: 24px;
  animation: barGrow 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes barGrow {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  to {
    transform: scaleY(1);
  }
}
.vv-mini {
  bottom: 30px;
  right: 0;
  width: 200px;
  padding: 22px;
  animation-delay: 1s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vv-mini-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vv-mini-circle {
  position: relative;
  width: 80px;
  height: 80px;
  align-self: center;
}
.vv-mini-circle svg {
  width: 100%;
  height: 100%;
}
.vv-mini-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: white;
}
.vv-tag {
  top: 0;
  right: 30px;
  padding: 10px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  width: auto;
  animation-delay: 0.5s;
}
.vv-tag .pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6bf2a4;
  box-shadow: 0 0 0 0 rgba(107, 242, 164, 0.55);
  animation: pulse 1.8s infinite;
}

@media (max-width: 1080px) {
  .value-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .value-visual {
    height: 440px;
  }
}
@media (max-width: 720px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .vv-main {
    right: 30px;
    height: 320px;
  }
  .vv-mini {
    display: none;
  }
}
/* ============ SCROLL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-52px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal-left.in {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(52px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal-right.in {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.86) translateY(18px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal-scale.in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.reveal-blur {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(20px);
  transition:
    opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal-blur.in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.reveal-pop {
  opacity: 0;
  transform: scale(0.72) translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal-pop.in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ============ NAV ACTIVE STATE ============ */
.nav a.active {
  color: var(--blue);
  background: var(--blue-soft);
}

/* ============ SECTION DOTS ============ */
.section-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}
.sdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 87, 184, 0.2);
  border: 1.5px solid rgba(0, 87, 184, 0.32);
  display: block;
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sdot:hover {
  background: rgba(0, 87, 184, 0.5);
  transform: scale(1.5);
}
.sdot.active {
  background: var(--blue);
  width: 9px;
  height: 9px;
  border-color: var(--blue);
  box-shadow:
    0 0 0 4px rgba(0, 87, 184, 0.18),
    0 0 14px rgba(0, 87, 184, 0.35);
  transform: scale(1);
}
@media (max-width: 1100px) {
  .section-dots {
    display: none;
  }
}

/* Parallax clouds */
.cloud {
  transition: transform 0.2s linear;
}

/* Floating animation for hero mockups */
@keyframes floatySmooth {
  0%,
  100% {
    transform: translateY(0px) rotateZ(0deg);
  }
  50% {
    transform: translateY(-18px) rotateZ(0.6deg);
  }
}
.float {
  animation: floatySmooth 7s ease-in-out infinite !important;
}
.float--browser {
  animation-delay: 0s !important;
}
.float--card {
  animation-delay: 1.6s !important;
}
.float--metric {
  animation-delay: 0.8s !important;
}
.float--chip {
  animation-delay: 0.3s !important;
}

/* Service card 3D tilt — transition only applies on mouse-leave reset */
.service-card {
  transition:
    transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
  will-change: transform, box-shadow;
}

/* Project card lift */
.project-card {
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.25s ease;
  will-change: transform;
}

/* Metric cards pulse on scroll */
.metric {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Step number glow pulse */
.step-num {
  animation: stepGlow 2.2s ease-in-out infinite;
}
@keyframes stepGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(0, 87, 184, 0.08),
      0 12px 24px -10px rgba(0, 87, 184, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 87, 184, 0.15),
      0 12px 24px -10px rgba(0, 87, 184, 0.65);
  }
}

/* Process rail line draw effect */
@keyframes lineDrawRight {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}
.process-rail::before {
  animation: lineDrawRight 2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: 0.3s;
}

/* Value section floating cards stagger */
.vv-card {
  animation: floatySmooth 8.5s ease-in-out infinite;
}
.vv-main {
  animation-delay: 0s !important;
}
.vv-mini {
  animation-delay: 1.2s !important;
}
.vv-tag {
  animation-delay: 0.5s !important;
}

/* Bar chart grow stagger */
.vv-bar {
  animation: barGrow 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both !important;
}
.vv-bar:nth-child(1) {
  animation-delay: 0s !important;
}
.vv-bar:nth-child(2) {
  animation-delay: 0.1s !important;
}
.vv-bar:nth-child(3) {
  animation-delay: 0.2s !important;
}
.vv-bar:nth-child(4) {
  animation-delay: 0.3s !important;
}
.vv-bar:nth-child(5) {
  animation-delay: 0.4s !important;
}
.vv-bar:nth-child(6) {
  animation-delay: 0.5s !important;
}
.vv-bar:nth-child(7) {
  animation-delay: 0.6s !important;
}

/* Eyebrow dot pulse */
@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.18);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 12px 6px rgba(0, 87, 184, 0.35);
  }
}
.eyebrow .dot {
  animation: dotPulse 2.2s ease-in-out infinite;
}

/* Smooth scroll fade */
html {
  scroll-behavior: smooth;
}

/* Contact form success bounce */
@keyframes bounceIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.form-success {
  animation: bounceIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ============ TECH STRIP ============ */
.tech-strip {
  background: linear-gradient(160deg, #040f24 0%, #062a5b 45%, #003b7a 100%);
  padding: 100px 0;
  overflow: hidden;
  position: relative;
}
.tech-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      600px 300px at 20% 50%,
      rgba(0, 87, 184, 0.2),
      transparent 70%
    ),
    radial-gradient(
      400px 300px at 80% 50%,
      rgba(90, 165, 236, 0.15),
      transparent 70%
    );
  pointer-events: none;
}
.tech-strip-header {
  text-align: center;
  max-width: 680px;
  margin-bottom: 56px;
}
.tech-strip-header h2 {
  color: white;
  margin-top: 14px;
}
.tech-strip-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16.5px;
  margin-top: 14px;
}

.tech-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  -webkit-mask: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}
.tech-marquee-wrap:hover .tech-track {
  animation-play-state: paused;
}

.tech-track {
  display: flex;
  gap: 12px;
  width: max-content;
}
.track-left {
  animation: marqueeLeft 38s linear infinite;
}
.track-right {
  animation: marqueeRight 34s linear infinite;
}

@keyframes marqueeLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes marqueeRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  cursor: default;
}
.tech-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============ NUBEA SCROLL EXPERIENCE (Premium 3D Process Animation) ============ */
.nubea-scroll-section {
  position: relative;
}

.nubea-scroll-container {
  perspective: 1000px;
  perspective-origin: 50% 50%;
}

.nubea-scroll-container h2 {
  text-shadow: 0 2px 8px rgba(0, 87, 184, 0.15);
  z-index: 10;
  position: relative;
}

.product-wrapper {
  transform-style: preserve-3d;
  will-change: transform;
}

.product-wrapper > div {
  transform-style: preserve-3d;
  will-change: transform;
}

.product-wrapper div {
  -webkit-font-smoothing: antialiased;
}

/* ============ NARRATIVA VISUAL ============ */
#narrativa {
  position: relative;
}

#narrativa h2 {
  font-family: "Manrope", sans-serif;
  line-height: 1.1;
}

#narrativa p {
  font-family: "Manrope", sans-serif;
}

#narrativa h3 {
  font-family: "Manrope", sans-serif;
}

/* Responsive para Narrativa */
@media (max-width: 1024px) {
  #narrativa {
    padding: 100px 32px !important;
    min-height: unset !important;
  }
}

@media (max-width: 768px) {
  #narrativa {
    padding: 80px 24px !important;
    min-height: unset !important;
  }

  #narrativa > div > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    min-width: 0 !important;
  }

  #narrativa h2 {
    font-size: 2.5rem !important;
  }

  #narrativa > div > div:nth-child(1) {
    margin-bottom: 60px !important;
  }

  #narrativa > div > div:nth-child(2) > div {
    text-align: left !important;
    min-width: 0 !important;
  }
}

@media (max-width: 640px) {
  #narrativa {
    padding: 60px 16px !important;
    min-height: unset !important;
  }

  #narrativa > div > div:nth-child(1) {
    margin-bottom: 40px !important;
  }

  #narrativa > div > div:nth-child(2) {
    gap: 20px !important;
  }

  #narrativa > div > div:nth-child(2) > div {
    padding: 28px 20px !important;
  }
}

/* ============ STATS STRIP ============ */
.stats-strip {
  background: #0a0e27;
  padding: 80px 0;
  border-top: 1px solid rgba(0, 87, 184, 0.15);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-item {
  padding: 0 12px;
}
.stat-num {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #0057b8;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* ============ MOBILE MENU ============ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(2, 32, 70, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-panel {
  position: absolute;
  top: 78px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(0, 59, 122, 0.35);
  padding: 16px;
  transform: translateY(-12px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.28s ease;
}
.mobile-menu.open .mobile-menu-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav a {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.mobile-nav a:hover,
.mobile-nav a:active,
.mobile-nav a.active {
  background: var(--blue-soft);
  color: var(--blue);
}
.mobile-cta {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}
.menu-toggle {
  display: none;
}
.menu-toggle.is-open {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* ============ RESPONSIVE ============ */
/* Tablet large — 1180px and below */
@media (max-width: 1180px) {
  .container {
    padding: 0 24px;
  }
  section {
    padding: 100px 0;
  }
  .hero {
    padding: 170px 0 110px;
  }
  .hero-grid {
    gap: 48px;
  }
}

/* Tablet — 1080px and below */
@media (max-width: 1080px) {
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 24px;
  }
  .process-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }
  .process-rail::before {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-visual {
    height: 460px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer .container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .header {
    padding: 10px 12px 10px 18px;
  }
  .nav a {
    padding: 8px 12px;
    font-size: 14px;
  }
  .nav {
    gap: 2px;
  }
}

/* Hero image safety — never overflow viewport on mobile */
@media (max-width: 1080px) {
  .hero-visual img {
    width: 100% !important;
    max-width: 560px;
  }
}

/* Tablet small / Large mobile — 860px */
@media (max-width: 860px) {
  section {
    padding: 80px 0;
  }
  .hero {
    padding: 140px 0 80px;
  }
  .nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--blue-mist);
    border: 1px solid var(--line);
    color: var(--ink);
    transition:
      background 0.25s ease,
      color 0.25s ease,
      transform 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
  }
  .menu-toggle:hover {
    background: var(--blue-soft);
    color: var(--blue);
  }
  .menu-toggle:active {
    transform: scale(0.94);
  }
  .header-cta .btn {
    display: none;
  }
  .header {
    top: 12px;
    padding: 10px 10px 10px 16px;
    width: calc(100% - 24px);
  }
  .brand-name {
    font-size: 16px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .logo-strip-inner {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
  .logo-strip-list {
    gap: 24px;
    justify-content: center;
  }
}

/* Mobile — 640px */
@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
  section {
    padding: 70px 0;
  }
  .hero {
    padding: 130px 0 60px;
  }
  .section-head {
    margin-bottom: 44px;
  }
  h1 {
    font-size: clamp(40px, 11vw, 64px);
  }
  .hero p.lede {
    font-size: 17px;
    margin-top: 18px;
  }
  .hero-actions {
    gap: 10px;
    margin-top: 28px;
  }
  .hero-actions .btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  .hero-meta {
    gap: 20px;
    margin-top: 44px;
  }
  .hero-meta .divider {
    display: none;
  }
  .hero-visual {
    height: 360px;
  }
  .services-grid,
  .projects-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    padding: 60px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 16px;
  }
  .process-rail {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 72px;
  }
  .step {
    padding: 24px 22px;
  }
  .service-card {
    padding: 32px 26px 28px;
  }
  .cta-inner {
    padding: 56px 24px;
    border-radius: var(--r-lg);
  }
  .cta-inner h2 {
    font-size: clamp(28px, 7vw, 40px);
  }
  .cta-inner p {
    font-size: 15.5px;
    margin: 14px auto 28px;
  }
  .cta-inner .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cta-inner .actions .btn {
    justify-content: center;
  }
  .cta-band {
    padding: 80px 0;
  }
  .footer {
    padding: 56px 0 28px;
  }
  .footer .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 40px;
  }
  .float--browser {
    left: 12px;
    right: 12px;
    height: 280px;
  }
  .float--metric {
    width: 160px;
    top: 240px;
    right: 8px;
    padding: 14px;
  }
  .float--card {
    width: 180px;
    bottom: 18px;
    padding: 14px;
    left: -4px;
  }
  .float--chip {
    right: 14px;
    top: -4px;
    font-size: 12px;
    padding: 8px 12px;
  }
  .metric-value {
    font-size: 26px;
  }
  .form-card,
  .contact-info {
    padding: 32px 24px;
  }
  .contact-info h3 {
    font-size: 24px;
  }
  .form-submit {
    flex-direction: column;
    align-items: stretch;
  }
  .form-submit .btn {
    justify-content: center;
    width: 100%;
  }
  .form-submit .legal {
    text-align: center;
  }
  .metrics {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .metric-num {
    font-size: 32px;
  }
  .value-visual {
    height: 310px;
  }
  .vv-main {
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
  }
  .vv-mini {
    display: none;
  }
  .vv-tag {
    display: none;
  }
  .vv-stat-value {
    font-size: 28px;
  }
  /* ---- Modals: bottom-sheet on mobile ---- */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-panel {
    border-radius: 28px 28px 0 0;
    max-height: 92vh;
    width: 100%;
    max-width: 100%;
  }
  .modal-hero {
    padding: 28px 20px 0;
    border-radius: 28px 28px 0 0;
    min-height: unset;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .modal-hero-text {
    padding-bottom: 8px;
  }
  .modal-service-icon {
    width: 60px;
    height: 60px;
    align-self: flex-start;
    margin-bottom: 16px;
    flex-shrink: 0;
    order: -1;
  }
  .modal-service-icon svg {
    width: 32px !important;
    height: 32px !important;
  }
  .modal-body {
    padding: 22px 20px 32px;
  }
  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }
  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .tech-strip {
    padding: 72px 0;
  }
  .tech-item {
    padding: 9px 18px;
    font-size: 13px;
  }
  .eyebrow {
    font-size: 11.5px;
    padding: 6px 12px;
  }
}

/* Small phones — 420px */
@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }
  .header {
    width: calc(100% - 16px);
    left: 50%;
    padding: 8px 8px 8px 14px;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .menu-toggle {
    width: 38px;
    height: 38px;
  }
  .mobile-menu-panel {
    left: 12px;
    right: 12px;
    top: 70px;
  }
  h1 {
    font-size: clamp(34px, 10vw, 48px);
  }
  h2 {
    font-size: clamp(26px, 7vw, 34px);
  }
  .hero-actions .btn {
    height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }
  .hero-visual {
    height: 320px;
  }
  .float--browser {
    height: 240px;
  }
  .float--metric {
    top: 200px;
    width: 140px;
    padding: 12px;
  }
  .float--card {
    width: 160px;
  }
  .service-card {
    padding: 28px 22px 24px;
  }
  .service-card-num {
    font-size: 72px;
  }
  .modal-body {
    padding: 24px 20px 28px;
  }
}

/* Image Zoom Modal - Shared across all project pages */
.image-zoom-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}

.image-zoom-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-zoom-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-zoom-container img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.image-zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10000;
  padding: 0;
  font-family: inherit;
}

.image-zoom-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.project-zoomable {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.project-zoomable:hover {
  opacity: 0.85;
}

/* Touch device zoom modal adjustments */
@media (max-width: 768px) {
  .image-zoom-close {
    width: 40px;
    height: 40px;
    font-size: 20px;
    top: 16px;
    right: 16px;
  }
}

/* Touch device hover fix — disable hover-only effects */
@media (hover: none) {
  .project-card:hover {
    transform: none;
  }
  .service-card:hover {
    transform: none;
  }
  .step:hover {
    transform: none;
  }
}
