/* ============================================
   Denis Camargo — Landing Page
   Design: Editorial Tech / Dark + Neon
============================================ */

:root {
  /* Palette */
  --bg:           #07070C;
  --bg-elev:     #0F0F18;
  --surface:     rgba(255,255,255,0.025);
  --surface-2:   rgba(255,255,255,0.04);
  --border:      rgba(255,255,255,0.08);
  --border-hi:   rgba(255,255,255,0.16);

  --text:        #FAFAFA;
  --text-mute:   #9090A0;
  --text-dim:    #5C5C6E;

  --magenta:     #FF2D7A;
  --magenta-2:   #D20E36;
  --cyan:        #00F5D4;
  --purple:      #8B5CF6;

  /* Fonts */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --radius:      14px;
  --radius-lg:   22px;
  --max:         1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: opacity .2s ease, color .2s ease; }
a:hover { opacity: 0.85; }

button { font-family: inherit; cursor: pointer; }

/* ============================================
   Decorative background
============================================ */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.bg-glow {
  position: fixed; z-index: -1;
  width: 600px; height: 600px; border-radius: 50%;
  filter: blur(120px); opacity: 0.35;
  pointer-events: none;
}
.bg-glow--magenta {
  background: var(--magenta);
  top: -200px; left: -150px;
  animation: float 14s ease-in-out infinite;
}
.bg-glow--cyan {
  background: var(--cyan);
  top: 40%; right: -200px;
  opacity: 0.18;
  animation: float 18s ease-in-out infinite reverse;
}
@keyframes float {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(40px,-30px); }
}

/* ============================================
   Layout helpers
============================================ */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015), transparent);
}
.section--quote {
  padding-bottom: 140px;
}

.section__head {
  max-width: 740px;
  margin-bottom: 64px;
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--magenta);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--text);
}
.section__title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__lead {
  font-size: 1.125rem;
  color: var(--text-mute);
  max-width: 640px;
  margin: 0;
}

/* ============================================
   Header
============================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,7,12,0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo__mark {
  display: inline-block;
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: none;
  box-shadow: 0 6px 18px -6px rgba(255,45,122,0.45);
  transition: transform .3s ease, box-shadow .3s ease;
}
.logo:hover .logo__mark {
  transform: rotate(-8deg);
  box-shadow: 0 8px 24px -6px rgba(255,45,122,0.6);
}
.logo__mark svg {
  width: 100%; height: 100%; display: block;
}
.logo__mark--sm {
  width: 30px; height: 30px;
  box-shadow: 0 4px 12px -4px rgba(255,45,122,0.35);
}

.logo__text {
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.logo__text em {
  font-weight: 400;
  font-style: italic;
}
.logo__text--sm { font-size: 0.95rem; font-weight: 600; }

.logo__dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--magenta);
  margin: 0 1px;
  flex-shrink: 0;
}

.nav {
  display: flex; gap: 32px;
  font-size: 0.95rem;
  color: var(--text-mute);
}
.nav a:hover { color: var(--text); opacity: 1; }

.header__actions {
  display: flex; align-items: center; gap: 14px;
}

.lang-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: none; background: transparent;
  color: var(--text-mute);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  border-radius: 999px;
  transition: all .2s ease;
}
.lang-btn.is-active {
  background: var(--text);
  color: var(--bg);
}

/* ============================================
   Buttons
============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--sm { padding: 10px 16px; font-size: 0.85rem; }
.btn--lg { padding: 18px 30px; font-size: 1rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--magenta), var(--magenta-2));
  color: #fff;
  box-shadow: 0 12px 32px -8px rgba(255,45,122,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px -8px rgba(255,45,122,0.7), inset 0 1px 0 rgba(255,255,255,0.25);
  opacity: 1;
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-hi);
  opacity: 1;
}

/* ============================================
   Hero
============================================ */
.hero {
  padding: 100px 0 80px;
  position: relative;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero__badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw + 1rem, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  max-width: 16ch;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 1.2rem;
  color: var(--text-mute);
  max-width: 560px;
  margin: 0 0 36px;
  line-height: 1.55;
}

.hero__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 48px;
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  max-width: 700px;
}
.hero__stats li {
  display: flex; flex-direction: column; gap: 4px;
}
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero__stats span {
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ============================================
   Services
============================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(255,45,122,0.4), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
}
.service-card:hover::before { opacity: 1; }

.service-card--featured {
  background: linear-gradient(180deg, rgba(255,45,122,0.08), var(--surface));
  border-color: rgba(255,45,122,0.25);
}
.service-card__tag {
  position: absolute; top: -10px; right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--magenta);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}

.service-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--magenta);
  margin-bottom: 24px;
}
.service-card__icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.service-card p {
  color: var(--text-mute);
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.service-card ul {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.service-card ul li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 6px 0 6px 18px;
  position: relative;
}
.service-card ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--magenta);
  font-family: var(--font-mono);
}

/* ============================================
   Process
============================================ */
.process {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.process__step {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: border-color .3s ease;
}
.process__step:hover { border-color: var(--border-hi); }

.process__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 16px;
}

.process__step h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.process__step p {
  font-size: 0.9rem;
  color: var(--text-mute);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   Stack
============================================ */
.stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stack__col {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stack__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 16px;
}
.stack__col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.stack__col li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
}
.stack__col li:last-child { border-bottom: none; }

/* ============================================
   Work
============================================ */
.work {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.work-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.work-card:hover::after { transform: scaleX(1); }

/* Mockup container with 3D perspective */
.work-card__mockup {
  margin: -24px -24px 20px;
  padding: 24px 24px 0;
  height: 280px;
  background:
    radial-gradient(circle at 50% 100%, rgba(255,45,122,0.10), transparent 70%),
    radial-gradient(circle at 30% 0%, rgba(0,245,212,0.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.3));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 60%;
}

/* PREVIEW badge */
.work-card__mockup::before {
  content: 'PREVIEW';
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  background: rgba(7,7,12,0.7);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  z-index: 20;
}

/* "Floor reflection" gradient at bottom of mockup */
.work-card__mockup::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
  z-index: 5;
  pointer-events: none;
}

/* 3D scene */
.devices-3d {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.device {
  position: relative;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1), filter .4s ease;
}

/* ---------- 3 PHONES (Mega Tickets) ---------- */
.devices-3d--phones {
  display: block; /* override flex — we use absolute positioning */
}

.devices-3d--phones .device--phone {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 250px;
  margin-top: -125px;
  margin-left: -60px; /* half of approx phone width at scale=1 */
}
.devices-3d--phones .device--phone svg {
  height: 100%;
  width: auto;
  display: block;
  filter: drop-shadow(0 20px 35px rgba(0,0,0,0.55));
}

.devices-3d--phones .device--phone-left {
  transform: translateX(-95px) rotateY(32deg) scale(0.78);
  transform-origin: center center;
  filter: brightness(0.72) saturate(0.85);
  z-index: 1;
}
.devices-3d--phones .device--phone-center {
  transform: translateY(-10px) scale(1.08);
  z-index: 3;
}
.devices-3d--phones .device--phone-center svg {
  filter: drop-shadow(0 28px 55px rgba(255,45,122,0.4)) drop-shadow(0 10px 25px rgba(0,0,0,0.7));
}
.devices-3d--phones .device--phone-right {
  transform: translateX(95px) rotateY(-32deg) scale(0.78);
  transform-origin: center center;
  filter: brightness(0.72) saturate(0.85);
  z-index: 1;
}

/* Hover: spread the phones out further */
.work-card:hover .devices-3d--phones .device--phone-left {
  transform: translateX(-115px) rotateY(22deg) scale(0.82);
  filter: brightness(0.85) saturate(1);
}
.work-card:hover .devices-3d--phones .device--phone-center {
  transform: translateY(-18px) scale(1.12);
}
.work-card:hover .devices-3d--phones .device--phone-right {
  transform: translateX(115px) rotateY(-22deg) scale(0.82);
  filter: brightness(0.85) saturate(1);
}

/* ---------- DESKTOP + RESPONSIVE PHONE (Sites) ---------- */
.devices-3d--web {
  align-items: flex-end;
  padding-bottom: 10px;
}

.devices-3d--web .device--desktop {
  width: 85%;
  max-width: 380px;
  transform: rotateY(-8deg) rotateX(4deg);
  transform-origin: center bottom;
  z-index: 1;
}
.devices-3d--web .device--desktop svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.5));
}

.devices-3d--web .device--phone-responsive {
  position: absolute;
  bottom: 4px;
  right: 8%;
  height: 215px;
  z-index: 3;
  transform: rotateY(12deg) rotateX(-2deg) translateZ(40px);
  transform-origin: center bottom;
}
.devices-3d--web .device--phone-responsive svg {
  height: 100%;
  width: auto;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.6)) drop-shadow(0 0 0 1px rgba(255,255,255,0.04));
}

/* Hover on web: tilt straighter */
.work-card:hover .devices-3d--web .device--desktop {
  transform: rotateY(-4deg) rotateX(2deg) translateY(-4px);
}
.work-card:hover .devices-3d--web .device--phone-responsive {
  transform: rotateY(6deg) rotateX(-1deg) translateZ(60px) translateY(-8px);
}

.work-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.work-card p {
  color: var(--text-mute);
  font-size: 0.95rem;
  margin: 0;
}

.work-card__features {
  list-style: none;
  padding: 20px 0 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}
.work-card__features li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 4px 0 4px 22px;
  position: relative;
  line-height: 1.45;
}
.work-card__features li::before {
  content: '✓';
  position: absolute; left: 0; top: 4px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ============================================
   About
============================================ */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--text-mute);
  margin: 0 0 18px;
}

.about__list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about__list li {
  font-size: 0.95rem;
  color: var(--text);
}

.about__card {
  position: sticky; top: 100px;
}
.about__card-inner {
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,45,122,0.06), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.about__avatar {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-2));
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 16px 40px -10px rgba(255,45,122,0.5);
}
.about__card-inner > strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.about__card-inner > span {
  font-size: 0.9rem;
  color: var(--text-mute);
}

.about__divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.about__facts {
  margin: 0;
  display: grid;
  gap: 14px;
  text-align: left;
}
.about__facts > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
}
.about__facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0;
}
.about__facts dd {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* ============================================
   Form
============================================ */
.quote {
  max-width: 760px;
  margin: 0 auto;
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.field > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input,
.field select,
.field textarea {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(255,45,122,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%239090A0' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form__submit {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.form__submit small {
  font-size: 12px;
  color: var(--text-dim);
}

.form__success {
  margin-top: 24px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,245,212,0.08), rgba(255,45,122,0.06));
  border: 1px solid rgba(0,245,212,0.25);
  border-radius: var(--radius);
}
.form__success strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 6px;
}
.form__success p {
  margin: 0;
  color: var(--text-mute);
  font-size: 0.95rem;
}

/* ============================================
   Footer
============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.footer__links {
  display: flex; gap: 24px;
  font-size: 0.9rem;
  color: var(--text-mute);
}
.footer__links a:hover { color: var(--text); opacity: 1; }

/* ============================================
   Mockup animations (float, pulse, shimmer)
============================================ */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes float-y-delayed {
  0%, 100% { transform: translateY(-2px); }
  50%      { transform: translateY(-12px); }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.9;  transform: scale(1.08); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes count-tick {
  0%   { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}

/* Apply float to desktop + phone */
.work-card .devices-3d--web .device--desktop {
  animation: float-y 7s ease-in-out infinite;
}
.work-card .devices-3d--web .device--phone-responsive {
  animation: float-y-delayed 6s ease-in-out infinite;
  animation-delay: -1.5s;
}

/* Float on the 3-phone composition */
.work-card .devices-3d--phones .device--phone-left {
  animation: float-y 7s ease-in-out infinite;
  animation-delay: -2s;
}
.work-card .devices-3d--phones .device--phone-center {
  animation: float-y-delayed 6s ease-in-out infinite;
}
.work-card .devices-3d--phones .device--phone-right {
  animation: float-y 7s ease-in-out infinite;
  animation-delay: -3.5s;
}

/* Pulsing glow under center phone */
.work-card__mockup .glow-pulse {
  position: absolute;
  bottom: 5%;
  left: 50%;
  width: 65%;
  height: 28px;
  margin-left: -32.5%;
  background: radial-gradient(ellipse, rgba(255,45,122,0.45), transparent 70%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
  animation: glow-breathe 4s ease-in-out infinite;
}

/* Pause animations on hover so mouse-tilt parallax doesn't fight float */
.work-card:hover .devices-3d--web .device,
.work-card:hover .devices-3d--phones .device {
  animation-play-state: paused;
}

/* ============================================
   Mouse-tilt 3D parallax (controlled via JS)
============================================ */
.work-card__mockup {
  transition: none;
}
.work-card__mockup .devices-3d {
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* ============================================
   Shimmer on section titles when revealed
============================================ */
.section__title em {
  background-size: 200% auto;
  animation: shimmer 8s linear infinite;
}

/* ============================================
   Stat counters
============================================ */
.hero__stats strong {
  display: inline-block;
}
.hero__stats.is-counted strong {
  animation: count-tick .6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ============================================
   Mobile hamburger + drawer
============================================ */
.hamburger {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  width: 38px; height: 38px;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease;
}
.hamburger:hover { background: var(--surface-2); }
.hamburger span {
  display: block;
  position: absolute;
  left: 9px;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .35s ease, opacity .25s ease, top .35s ease;
}
.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 18px; }
.hamburger span:nth-child(3) { top: 25px; }

.hamburger.is-active span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7,7,12,0.985);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s ease, visibility .35s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 88px 28px 28px;
  display: flex;
  flex-direction: column;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

/* Animated background glows */
.mobile-menu__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.mobile-menu__glow {
  position: absolute;
  width: 60vmin;
  height: 60vmin;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  transition: opacity 1s ease;
}
.mobile-menu.is-open .mobile-menu__glow { opacity: 0.6; }
.mobile-menu__glow--magenta {
  background: #FF2D7A;
  top: -20vmin;
  left: -20vmin;
  animation: mm-float-1 12s ease-in-out infinite;
}
.mobile-menu__glow--cyan {
  background: #00F5D4;
  bottom: -25vmin;
  right: -25vmin;
  opacity: 0;
  animation: mm-float-2 14s ease-in-out infinite;
}
.mobile-menu.is-open .mobile-menu__glow--cyan { opacity: 0.25; }

@keyframes mm-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20vw, 10vh) scale(1.15); }
}
@keyframes mm-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-20vw, -10vh) scale(1.1); }
}

/* Nav structure */
.mobile-menu__nav {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
}
.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Menu items with stagger reveal */
.mobile-menu__item {
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .6s cubic-bezier(0.16, 1, 0.3, 1),
    transform .7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc((var(--i, 1) * 70ms) + 100ms);
}
.mobile-menu.is-open .mobile-menu__item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__item > a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.mobile-menu__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--magenta);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 24px;
}

/* Link with split-text hover effect */
.mobile-menu__link {
  display: inline-block;
  position: relative;
  overflow: hidden;
  line-height: 1;
}
.mobile-menu__text {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 11vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  transition: transform .55s cubic-bezier(0.7, 0, 0.3, 1);
}
.mobile-menu__text--hover {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}
.mobile-menu__item > a:hover .mobile-menu__text,
.mobile-menu__item > a:active .mobile-menu__text { transform: translateY(-100%); }
.mobile-menu__item > a:hover .mobile-menu__text--hover,
.mobile-menu__item > a:active .mobile-menu__text--hover { transform: translateY(-100%); }

/* Magenta sweep line */
.mobile-menu__item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  transition: width .5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu__item > a:hover::after,
.mobile-menu__item > a:active::after { width: 100%; }

/* CTA item */
.mobile-menu__item--cta { border-bottom: none; margin-top: 16px; }
.mobile-menu__cta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px;
  padding: 18px 24px !important;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-2));
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 14px 36px -10px rgba(255,45,122,0.5);
}
.mobile-menu__cta svg {
  width: 22px; height: 22px;
  transition: transform .35s ease;
}
.mobile-menu__cta:hover svg,
.mobile-menu__cta:active svg { transform: translateX(6px); }
.mobile-menu__item--cta > a::after { display: none; }

/* Footer */
.mobile-menu__footer {
  position: relative;
  z-index: 2;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .6s cubic-bezier(0.16, 1, 0.3, 1),
    transform .7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc((var(--i, 6) * 70ms) + 100ms);
}
.mobile-menu.is-open .mobile-menu__footer {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.mobile-menu__contact a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease;
}
.mobile-menu__contact a:hover { color: var(--magenta); }
.mobile-menu__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.mobile-menu__meta span:last-child::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  margin-right: 6px;
  animation: pulse 2s ease-in-out infinite;
  vertical-align: middle;
}

.wa-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.55), 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 100;
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 36px -6px rgba(37, 211, 102, 0.7), 0 0 0 1px rgba(255,255,255,0.1);
  opacity: 1;
}
.wa-fab svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 2;
}
.wa-fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: 1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 720px) {
  .wa-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .wa-fab svg { width: 26px; height: 26px; }
}

/* ============================================
   Animations on load
============================================ */
.hero__badge,
.hero__title,
.hero__sub,
.hero__actions,
.hero__stats {
  animation: rise .8s ease both;
}
.hero__title    { animation-delay: .08s; }
.hero__sub      { animation-delay: .16s; }
.hero__actions  { animation-delay: .24s; }
.hero__stats    { animation-delay: .32s; }

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

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: all .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
  .services,
  .work { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stack { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__card { position: static; }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .hamburger { display: inline-block; }
}

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .section__head { margin-bottom: 40px; }
  .header__inner { gap: 12px; height: 64px; }
  .header__actions { gap: 8px; }
  .btn { padding: 12px 18px; }
  .mobile-menu { padding-top: 80px; }

  .logo__text { display: none; }
  .footer__brand .logo__text { display: inline-flex; }

  .hero { padding: 50px 0 30px; }
  .hero__title { line-height: 1.02; }
  .hero__sub { font-size: 1.05rem; }
  .hero__actions { gap: 10px; }
  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 22px;
  }
  .hero__stats li:last-child { grid-column: 1 / -1; }
  .hero__stats strong { font-size: 1.5rem; }

  .services,
  .work,
  .process,
  .stack { grid-template-columns: 1fr; }

  /* Mockups: smaller height on mobile */
  .work-card { padding: 18px; }
  .work-card__mockup {
    height: 220px;
    margin: -18px -18px 16px;
    padding: 18px 18px 0;
  }

  .devices-3d--phones .device--phone { height: 200px; margin-top: -100px; }
  .devices-3d--phones .device--phone-left {
    transform: translateX(-65px) rotateY(28deg) scale(0.62);
    opacity: 0.55;
  }
  .devices-3d--phones .device--phone-center {
    transform: translateY(-4px) scale(0.92);
  }
  .devices-3d--phones .device--phone-right {
    transform: translateX(65px) rotateY(-28deg) scale(0.62);
    opacity: 0.55;
  }

  .devices-3d--web .device--desktop {
    width: 78%;
  }
  .devices-3d--web .device--phone-responsive {
    height: 150px;
    right: 2%;
  }

  .work-card h3 { font-size: 1.4rem; }

  /* Section titles smaller on mobile */
  .section__title { font-size: clamp(1.7rem, 7vw, 2.5rem); }

  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .field input, .field select, .field textarea { font-size: 16px; } /* prevent zoom on iOS */

  .footer__inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer__links { flex-direction: column; gap: 10px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: clamp(2rem, 11vw, 3rem); }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Mockup on very small phones: even simpler 3-phone composition */
  .devices-3d--phones .device--phone-left,
  .devices-3d--phones .device--phone-right { opacity: 0.35; }

  .work-card__features li { font-size: 0.85rem; }
}
