/* ==========================================================================
   Will Fortes Landing — DESIGN.md structure + cyberpunk purple/blue
   MagicUI-inspired: retro-grid, border-beam, marquee, shimmer-button,
   gradient-text, flickering-grid, number-ticker
   ========================================================================== */

:root {
  /* Cyberpunk palette (mapped from DESIGN.md roles) */
  --primary: #a855f7;
  --primary-active: #c084fc;
  --primary-neutral: #7c3aed;
  --primary-pale: rgba(168, 85, 247, 0.12);
  --accent-cyan: #38bdf8;
  --accent-blue: #6366f1;
  --ink: #07070f;
  --ink-deep: #0d0d1a;
  --body: #b8b8d0;
  --mute: #6b6b8a;
  --canvas: #0c0c18;
  --canvas-soft: #12122a;
  --canvas-card: rgba(18, 18, 40, 0.85);
  --positive: #34d399;
  --positive-deep: #059669;
  --negative: #f472b6;
  --border: rgba(168, 85, 247, 0.25);
  --border-subtle: rgba(56, 189, 248, 0.15);
  --glow-purple: rgba(168, 85, 247, 0.45);
  --glow-cyan: rgba(56, 189, 248, 0.35);

  /* Typography — DESIGN.md tokens */
  --font-display: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Spacing — DESIGN.md 4px base */
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* Radius — DESIGN.md rounded.xl = 24px */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --container: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  background: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

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

/* Typography scale — DESIGN.md */
.display-xl {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f0f0ff;
}

.display-md {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: #f0f0ff;
}

.display-sm {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #f0f0ff;
}

.display-xs {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #f0f0ff;
}

.body-lg { font-size: 1.25rem; line-height: 1.5; }
.body-md { font-size: 1rem; line-height: 1.5; }
.body-md-strong { font-size: 1rem; font-weight: 600; line-height: 1.5; color: #e8e8ff; }
.body-sm { font-size: 0.875rem; line-height: 1.43; }
.body-sm-strong { font-size: 0.875rem; font-weight: 600; line-height: 1.43; color: #e8e8ff; }
.caption { font-size: 0.75rem; line-height: 1.33; color: var(--mute); }

/* Noise overlay — cyberpunk texture */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   MagicUI: Animated Gradient Text
   ========================================================================== */
.gradient-text {
  display: inline;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--accent-cyan),
    var(--accent-blue),
    var(--primary)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ==========================================================================
   MagicUI: Retro Grid
   ========================================================================== */
.retro-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.55;
}

.retro-grid__plane {
  position: absolute;
  inset: 0;
  perspective: 200px;
}

.retro-grid__scroll {
  position: absolute;
  inset: 0;
  margin-left: -200%;
  width: 600%;
  height: 300vh;
  transform-origin: 100% 0 0;
  transform: rotateX(65deg) translateY(-50%);
  background-image:
    linear-gradient(to right, rgba(99, 102, 241, 0.35) 1px, transparent 0),
    linear-gradient(to bottom, rgba(168, 85, 247, 0.35) 1px, transparent 0);
  background-size: 60px 60px;
  animation: retro-grid-scroll 15s linear infinite;
}

@keyframes retro-grid-scroll {
  from { transform: rotateX(65deg) translateY(-50%); }
  to { transform: rotateX(65deg) translateY(0); }
}

.retro-grid__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, transparent 60%, rgba(7, 7, 15, 0.4) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .retro-grid__scroll { animation: none; }
}

/* ==========================================================================
   MagicUI: Flickering Grid (canvas container)
   ========================================================================== */
.flickering-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

.flickering-grid canvas {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   MagicUI: Marquee
   ========================================================================== */
.marquee-band {
  border-block: 1px solid var(--border-subtle);
  background: var(--canvas-soft);
  padding-block: var(--space-md);
}

.marquee {
  display: flex;
  overflow: hidden;
  gap: var(--space-xl);
  --duration: 40s;
}

.marquee__track {
  display: flex;
  shrink: 0;
  gap: var(--space-2xl);
  animation: marquee-scroll var(--duration) linear infinite;
}

.marquee.group:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
  transition: color 0.3s;
}

.marquee__track span:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px var(--glow-cyan);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--space-xl))); }
}

/* ==========================================================================
   MagicUI: Border Beam
   ========================================================================== */
.border-beam-container {
  position: relative;
  overflow: hidden;
}

.border-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 2;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  overflow: hidden;
}

.border-beam::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan), transparent);
  border-radius: 50%;
  filter: blur(2px);
  animation: border-beam-travel 6s linear infinite;
  offset-path: rect(0 auto auto 0 round 24px);
  offset-distance: 0%;
}

.border-beam--slow::before { animation-duration: 10s; }
.border-beam--reverse::before { animation-direction: reverse; animation-duration: 8s; }

@keyframes border-beam-travel {
  to { offset-distance: 100%; }
}

@supports not (offset-path: rect(0 auto auto 0 round 24px)) {
  .border-beam::before {
    inset: -50%;
    width: auto;
    height: auto;
    border-radius: 0;
    background: conic-gradient(from 0deg, transparent, var(--primary), var(--accent-cyan), transparent 30%);
    animation: border-beam-spin 4s linear infinite;
  }
}

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

/* ==========================================================================
   MagicUI: Shimmer Button
   ========================================================================== */
.shimmer-button {
  --spread: 90deg;
  --shimmer-color: var(--accent-cyan);
  --radius: var(--radius-xl);
  --speed: 3s;
  --cut: 1px;
  --bg: linear-gradient(135deg, var(--primary-neutral), var(--accent-blue));

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 24px var(--glow-purple);
}

.shimmer-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--glow-purple), 0 0 20px var(--glow-cyan);
}

.shimmer-button:active { transform: translateY(0); }

.shimmer-button::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from calc(270deg - (var(--spread) * 0.5)),
    transparent 0,
    var(--shimmer-color) var(--spread),
    transparent var(--spread)
  );
  animation: spin-around var(--speed) linear infinite;
  z-index: -1;
}

.shimmer-button::after {
  content: "";
  position: absolute;
  inset: var(--cut);
  border-radius: calc(var(--radius) - var(--cut));
  background: var(--bg);
  z-index: -1;
}

.shimmer-button__label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.shimmer-button--full { width: 100%; }

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

/* ==========================================================================
   Components — DESIGN.md
   ========================================================================== */

/* Nav */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(7, 7, 15, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-lg);
}

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

.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  font-weight: 900;
  font-size: 0.75rem;
  color: #fff;
  box-shadow: 0 0 16px var(--glow-purple);
}

.logo__mark--sm { width: 32px; height: 32px; font-size: 0.65rem; }

.logo__text {
  font-weight: 700;
  font-size: 0.875rem;
  color: #f0f0ff;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-drawer {
  display: contents;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--body);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--accent-cyan); }

.nav-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f0f0ff;
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.button-secondary {
  display: inline-flex;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--canvas-soft);
  color: #f0f0ff;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}

.button-secondary:hover {
  background: var(--primary-pale);
  border-color: var(--primary);
}

.button-tertiary {
  display: inline-flex;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-xl);
  background: transparent;
  color: #f0f0ff;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(240, 240, 255, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.button-tertiary:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--glow-cyan);
}

/* Badges */
.badge-positive {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--primary-pale);
  color: var(--positive);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(52, 211, 153, 0.25);
  margin-bottom: var(--space-xl);
}

.badge-positive--sm {
  font-size: 0.65rem;
  padding: 2px var(--space-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 8px var(--positive);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Cards */
.card-content,
.card-feature-sage,
.card-feature-dark {
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border-subtle);
}

.card-content {
  background: var(--canvas-card);
  backdrop-filter: blur(12px);
}

.card-feature-sage {
  background: linear-gradient(145deg, rgba(18, 18, 42, 0.9), rgba(30, 20, 60, 0.6));
}

.card-feature-dark {
  background: linear-gradient(145deg, #0a0a14, #1a0a2e);
  color: var(--primary-active);
}

.card-feature-dark .display-xs,
.card-feature-dark .body-md { color: #e8d5ff; }

/* Sections */
.hero-band {
  position: relative;
  min-height: auto;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  overflow-x: clip;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.2), transparent),
              radial-gradient(ellipse 60% 40% at 80% 60%, rgba(168, 85, 247, 0.12), transparent),
              var(--ink);
}

.hero-band__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  width: 100%;
  min-width: 0;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: min(520px, 100%);
}

.hero-glow {
  position: absolute;
  top: 10%;
  right: 5%;
  width: min(520px, 45vw);
  height: min(640px, 70vh);
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.35), rgba(56, 189, 248, 0.12) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-art-wrap,
.hero-photo-wrap {
  position: relative;
  padding: 3px;
  border-radius: var(--radius-xl);
}

.hero-art-ring {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.5),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(168, 85, 247, 0.25);
}

.hero-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.04);
}

.hero-photo-ring {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.5),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(168, 85, 247, 0.25);
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.95) contrast(1.06);
}

.hero-photo-stats {
  position: absolute;
  left: var(--space-lg);
  bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 2;
}

.hero-photo-stat {
  display: inline-flex;
  width: fit-content;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  background: rgba(7, 7, 15, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0f0ff;
}

.hero-photo-stat--accent {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 16px var(--glow-cyan);
}

.hero-title .gradient-text {
  display: block;
}

.hero-band__content,
.hero-visual {
  min-width: 0;
  max-width: 100%;
}

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

.hero-lead { max-width: 540px; margin-top: var(--space-lg); }
.hero-note { margin-top: var(--space-lg); font-style: italic; }

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

.lang-switch {
  display: flex;
  align-items: center;
}

.lang-select {
  appearance: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
  color: #f0f0ff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-select:hover,
.lang-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--glow-purple);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.content-band {
  padding: var(--space-3xl) 0;
  background: var(--canvas);
}

.hero-band-dark {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, var(--ink-deep) 0%, #0f0820 50%, var(--ink) 100%);
  border-block: 1px solid var(--border-subtle);
}

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

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-md);
  color: var(--primary-active);
}

.section-eyebrow--accent { color: var(--accent-cyan); }
.section-lead { margin-top: var(--space-lg); max-width: 520px; }

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

.bento-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

.bento-item { position: relative; }
.bento-item--wide { grid-column: span 2; }

.section-lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 640px;
}

.bento-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.tag-list li,
.tag-list span {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-pale);
  color: var(--primary-active);
  border: 1px solid var(--border);
}

.tag-list--light li { background: rgba(168, 85, 247, 0.2); color: #e8d5ff; }
.tag-list--inline { margin-top: var(--space-md); }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid var(--border);
}

.stat-value {
  display: block;
  background: linear-gradient(135deg, var(--primary-active), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-sm);
}

.number-ticker {
  font-variant-numeric: tabular-nums;
}

/* Case study — Visual Super / CiaSuper (precificadores · supermercados) */
.case-study {
  position: relative;
  margin-bottom: var(--space-3xl);
  background: linear-gradient(145deg, rgba(18, 18, 42, 0.95), rgba(30, 15, 55, 0.85));
  border: 1px solid var(--border);
  box-shadow: 0 0 48px rgba(168, 85, 247, 0.12);
}

.case-study__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.case-study__title {
  margin-top: var(--space-sm);
}

.case-study__subtitle {
  margin-top: var(--space-sm);
  color: var(--mute);
}

.case-study__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

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

.case-study__block {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
}

.case-study__label {
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin-bottom: var(--space-sm);
}

.case-study__tags {
  margin-top: 0;
}

/* ---------- Portfólio — carrossel com mockups web + mobile ---------- */
.portfolio-band {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(168, 85, 247, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 5% 90%, rgba(56, 189, 248, 0.1), transparent 50%),
    linear-gradient(180deg, #070712 0%, #0c0c18 50%, #070712 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pf-carousel {
  margin-top: var(--space-3xl);
}

.pf-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.pf-carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.pf-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: center;
  padding: clamp(0.5rem, 1.5vw, 1rem);
}

.pf-slide__media {
  min-width: 0;
}

.pf-devices {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  aspect-ratio: 16 / 10.5;
}

.pf-browser {
  position: absolute;
  inset: 0 12% 6% 0;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: #0a0a14;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(168, 85, 247, 0.1);
}

.pf-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 14px;
  background: #12122a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-browser__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3f3f55;
}

.pf-browser__bar span:nth-child(1) { background: #f87171; }
.pf-browser__bar span:nth-child(2) { background: #fbbf24; }
.pf-browser__bar span:nth-child(3) { background: #34d399; }

.pf-browser__url {
  margin-left: 8px;
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: #070712;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pf-browser__screen {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #05050c;
}

.pf-browser__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.pf-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(32%, 176px);
  aspect-ratio: 9 / 19.2;
  padding: 8px 7px 10px;
  border-radius: 26px;
  background: linear-gradient(160deg, #2a2a32 0%, #0c0c10 55%, #1a1a22 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(56, 189, 248, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.pf-phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 9px;
  border-radius: 999px;
  background: #050505;
  z-index: 3;
  pointer-events: none;
}

.pf-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #05050c;
}

.pf-phone__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.pf-slide__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pf-slide__tag {
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.pf-slide__body .tag-list {
  margin: var(--space-lg) 0 var(--space-xl);
}

.pf-slide__cta {
  display: inline-flex;
}

.pf-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.pf-carousel__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e0e0ff;
  background: rgba(18, 18, 40, 0.9);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.pf-carousel__btn:hover {
  border-color: var(--accent-cyan);
  color: #fff;
  background: rgba(56, 189, 248, 0.12);
}

.pf-carousel__btn:active {
  transform: scale(0.96);
}

.pf-carousel__dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pf-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.2s;
}

.pf-carousel__dot.is-active {
  background: var(--accent-cyan);
  width: 28px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.hero-note strong {
  color: var(--primary-active);
  font-weight: 600;
}

.hero-note--muted {
  margin-top: var(--space-xs);
  font-style: italic;
}

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

.proof-grid--4 {
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-xl);
}

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

.proof-card h3 { margin-bottom: 0; }

.proof-card__label {
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-card__link {
  margin-top: auto;
  padding-top: var(--space-md);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.proof-card__link:hover {
  color: #fff;
}

.section-head--tight {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-xl);
}

.product-spotlight {
  position: relative;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  background: linear-gradient(145deg, rgba(18, 18, 42, 0.95), rgba(20, 40, 60, 0.85));
  border: 1px solid var(--border);
}

.product-spotlight__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.product-spotlight__subtitle {
  margin-top: var(--space-sm);
  color: var(--mute);
  max-width: 640px;
}

.product-spotlight__link {
  display: inline-flex;
  margin-top: var(--space-xl);
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 1rem;
}

.product-spotlight__link:hover {
  color: #fff;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  border-left: 2px solid var(--border);
  padding-left: var(--space-xl);
}

.timeline-item { position: relative; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-xl) - 5px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--glow-purple);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

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

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(18, 18, 40, 0.55);
  padding: var(--space-lg) var(--space-xl);
}

.faq-q {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: #f0f0ff;
}

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

.faq-q::after {
  content: "+";
  float: right;
  color: var(--accent-cyan);
  font-weight: 700;
}

.faq-item[open] .faq-q::after { content: "–"; }

.faq-a {
  margin-top: var(--space-md);
  color: var(--body);
  line-height: 1.6;
}

/* ---------- Time ---------- */
.team-band {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(ellipse 60% 45% at 10% 20%, rgba(56, 189, 248, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(168, 85, 247, 0.12), transparent 50%),
    linear-gradient(180deg, #070712 0%, #0b0b16 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: var(--space-3xl);
  max-width: 1100px;
  margin-inline: auto;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  min-width: 0;
}

.team-member__photo-wrap {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: #0a0a14;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(56, 189, 248, 0.08);
}

.team-member__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.team-member__body {
  width: 100%;
}

.team-member__role {
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.team-member__body .tag-list {
  margin-top: var(--space-lg);
}

/* Contact */
.connect-band {
  border-top: 1px solid var(--border-subtle);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.connect-panel {
  position: relative;
  z-index: 1;
}

.connect-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: var(--space-3xl);
  max-width: 980px;
  margin-inline: auto;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
}

.contact-form__hint {
  margin: calc(var(--space-sm) * -1) 0 var(--space-sm);
  color: var(--body);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__field label {
  color: var(--mute);
  letter-spacing: 0.04em;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7, 7, 18, 0.85);
  color: #f2f2ff;
  font: inherit;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.contact-form__field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9aa0c3 50%),
    linear-gradient(135deg, #9aa0c3 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.connect-direct {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-md);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: rgba(12, 12, 24, 0.65);
  text-align: left;
}

.connect-direct__text {
  color: var(--body);
  margin: 0;
}

.whatsapp-cta--block {
  width: 100%;
  justify-content: center;
}

.profile-photo-wrap {
  position: relative;
  width: fit-content;
  padding: 3px;
  border-radius: var(--radius-xl);
}

.profile-photo-ring {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.4),
    0 0 40px rgba(168, 85, 247, 0.25),
    0 0 60px rgba(56, 189, 248, 0.12);
}

.profile-photo {
  display: block;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.92) contrast(1.05);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-cyan);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(56, 189, 248, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.social-link__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.social-link:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(168, 85, 247, 0.18);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
  transform: translateY(-1px);
}

.social-links--footer {
  margin-top: 0;
}

.social-links--center {
  justify-content: center;
}

.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn-icon--sm {
  width: 1rem;
  height: 1rem;
}

.button-secondary.whatsapp-cta,
.shimmer-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.connect-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: var(--space-md);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(56, 189, 248, 0.06);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.connect-email:hover {
  color: #fff;
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.14);
}

.bento-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-md);
  border-radius: 12px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-subtle);
}

.bento-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.bento-icon--light {
  color: #e8d5ff;
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.35);
}

.footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0;
}

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

.footer__copy { color: var(--mute); }

/* WhatsApp CTAs */
.whatsapp-cta--primary {
  --bg: linear-gradient(135deg, #128c7e, #25d366);
  --shimmer-color: #dcfce7;
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.35);
}

.whatsapp-cta--primary:hover {
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.45), 0 0 20px var(--glow-purple);
}

.whatsapp-fab {
  position: fixed;
  right: var(--space-xl);
  bottom: var(--space-xl);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #128c7e, #25d366);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab__icon {
  width: 28px;
  height: 28px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

/* ==========================================================================
   Responsive — DESIGN.md breakpoints
   ========================================================================== */
@media (max-width: 1023px) {
  .hero-band__grid {
    grid-template-columns: 1fr;
  }

  .bento-item--wide { grid-column: span 1; }
  .bento-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: 1fr; }
  .case-study__grid { grid-template-columns: 1fr; }
  .pf-slide { grid-template-columns: 1fr; gap: var(--space-xl); }
  .pf-devices { max-width: 520px; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; }
  .team-member__photo-wrap { max-width: none; }
  .connect-layout { grid-template-columns: 1fr; max-width: 560px; }
  .contact-form__row { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; text-align: center; }
  .connect-panel { text-align: initial; }
  .connect-cta { text-align: left; }
  .profile-photo-wrap { margin-inline: auto; }
  .social-links--center { justify-content: center; }
}

@media (max-width: 767px) {
  .container {
    padding-inline: var(--space-lg);
  }

  .nav-drawer,
  .nav-actions {
    display: none;
  }

  .nav-toggle { display: flex; }

  .nav-bar__inner.nav-open .nav-drawer {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    padding: var(--space-xl);
    background: rgba(7, 7, 15, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 101;
  }

  .nav-bar__inner.nav-open .nav-links {
    flex-direction: column;
  }

  .nav-bar__inner.nav-open .nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .nav-bar__inner.nav-open .lang-select,
  .nav-bar__inner.nav-open .nav-cta {
    width: 100%;
    text-align: center;
  }

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

  .hero-band {
    padding-bottom: var(--space-2xl);
  }

  .hero-band__grid {
    gap: var(--space-2xl);
  }

  .hero-visual {
    justify-self: stretch;
    max-width: none;
  }

  .hero-photo-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-glow {
    right: 50%;
    transform: translateX(50%);
    width: 90%;
  }

  .hero-title {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero-lead,
  .hero-note {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .shimmer-button,
  .button-tertiary {
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .shimmer-button__label {
    white-space: normal;
    text-align: center;
  }

  .retro-grid__scroll {
    width: 400%;
    margin-left: -150%;
  }

  .pf-phone {
    width: min(34%, 148px);
  }

  .pf-browser {
    inset: 0 10% 5% 0;
  }
}

@media (min-width: 768px) {
  .nav-drawer {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-left: auto;
  }

  .nav-cta { display: inline-flex; }
  .nav-actions { display: flex; }
}

/* Large screens — wider canvas, tighter hero, scaled type */
@media (min-width: 1280px) {
  :root {
    --container: 1240px;
  }

  .hero-band__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(3rem, 5vw, 5rem);
    align-items: center;
  }

  .hero-visual {
    max-width: 520px;
  }

  .hero-lead {
    max-width: 580px;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1320px;
    --space-3xl: 64px;
  }

  .display-xl {
    font-size: clamp(3rem, 3.5vw, 4.5rem);
  }

  .display-md {
    font-size: clamp(2rem, 2.5vw, 3rem);
  }

  .body-lg {
    font-size: 1.3125rem;
  }

  .hero-visual {
    max-width: 560px;
  }

  .bento-grid {
    gap: var(--space-2xl);
  }

  .stats-grid,
  .proof-grid {
    gap: var(--space-2xl);
  }

  .profile-photo {
    width: 300px;
    height: 300px;
  }

  .connect-cta {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (min-width: 1920px) {
  :root {
    --container: 1400px;
  }

  .display-xl {
    font-size: 4.5rem;
  }

  .hero-lead {
    max-width: 640px;
  }

  .section-head {
    max-width: 720px;
  }

  .case-study__grid {
    gap: var(--space-2xl);
  }
}

@media (min-width: 2560px) {
  :root {
    --container: 1480px;
  }
}
