:root {
  --bg: #020713;
  --bg-soft: #061326;
  --panel: rgba(8, 21, 39, 0.82);
  --panel-strong: #081729;
  --panel-soft: rgba(255, 255, 255, 0.055);
  --text: #f5f9ff;
  --text-soft: #a8bad1;
  --muted: #6f82a1;
  --line: rgba(101, 180, 255, 0.2);
  --line-strong: rgba(80, 176, 255, 0.42);
  --accent: #1177ff;
  --accent-2: #22d3ee;
  --accent-3: #8ab8ff;
  --whatsapp: #25d366;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 10px;
  --container: 1180px;
}

[data-theme="light"] {
  --bg: #f5f8fc;
  --bg-soft: #eaf2ff;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: #ffffff;
  --panel-soft: rgba(17, 119, 255, 0.06);
  --text: #061326;
  --text-soft: #40556f;
  --muted: #64758b;
  --line: rgba(13, 75, 140, 0.16);
  --line-strong: rgba(17, 119, 255, 0.34);
  --shadow: 0 24px 60px rgba(15, 52, 91, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 8%, rgba(17, 119, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 15% 18%, rgba(34, 211, 238, 0.14), transparent 28rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 54%, var(--bg) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(119, 184, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 184, 255, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 86%);
  animation: gridPan 24s linear infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

header,
main,
footer,
.top-banner,
.floating-whatsapp {
  position: relative;
  z-index: 2;
}

section {
  scroll-margin-top: 110px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}

.site-glow {
  position: fixed;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(32px);
  opacity: 0.4;
  animation: glowDrift 12s ease-in-out infinite;
}

.site-glow-one {
  top: -12rem;
  right: -8rem;
  background: rgba(17, 119, 255, 0.34);
}

.site-glow-two {
  left: -12rem;
  bottom: 8rem;
  background: rgba(34, 211, 238, 0.18);
  animation-duration: 16s;
  animation-direction: reverse;
}

.top-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 7, 19, 0.9);
  color: #e9f4ff;
  font-size: 13px;
  text-align: center;
}

[data-theme="light"] .top-banner {
  background: #061326;
}

.top-banner span {
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  animation: textGlow 2.8s ease-in-out infinite;
}

.top-banner a {
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 7, 19, 0.76);
  backdrop-filter: blur(18px);
}

[data-theme="light"] .site-header {
  background: rgba(245, 248, 252, 0.82);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  background: #020713;
  box-shadow: 0 0 24px rgba(17, 119, 255, 0.26);
  animation: logoPulse 4s ease-in-out infinite;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-name span {
  color: var(--accent);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--text);
  background: var(--panel-soft);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-cta::after,
.button.primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.42) 42%, transparent 70%);
  transform: translateX(-130%);
  animation: buttonSheen 4.8s ease-in-out infinite;
  pointer-events: none;
}

.nav-cta,
.button.primary {
  color: #f8fbff;
  background: linear-gradient(135deg, var(--accent) 0%, #0061ff 42%, var(--accent-2) 120%);
  box-shadow: 0 16px 34px rgba(17, 119, 255, 0.32);
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

.nav-cta:hover,
.button:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(17, 119, 255, 0.24);
}

.nav-cta:focus-visible,
.button:focus-visible,
.theme-toggle:focus-visible,
.contact-card:focus-visible,
.brand:focus-visible,
.floating-whatsapp:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 22px 72px;
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: 44px;
  align-items: center;
  min-width: 0;
  padding: clamp(44px, 7vh, 72px) 0 76px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(6, 19, 38, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(17, 119, 255, 0.2);
  animation: badgePulse 3.6s ease-in-out infinite;
}

[data-theme="light"] .badge {
  background: rgba(255, 255, 255, 0.8);
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-top: 24px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 680px;
  margin: 12px 0 18px;
  font-size: clamp(2.7rem, 5.8vw, 5.45rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

h2 {
  margin: 10px 0 18px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.lead {
  width: 100%;
  max-width: 620px;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.typing {
  min-height: 27px;
  margin: 0 0 16px;
  color: var(--accent-3);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.caret {
  display: inline-block;
  width: 10px;
  height: 1em;
  margin-left: 6px;
  border-left: 2px solid var(--accent-2);
  transform: translateY(2px);
  animation: caretBlink 1s steps(2, end) infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
}

.hero-metrics div {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hero-metrics strong {
  display: block;
  color: var(--text);
  font-size: 1.48rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-image-card {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow), 0 0 42px rgba(17, 119, 255, 0.22);
  animation: floatCard 7s ease-in-out infinite;
}

.hero-image-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 10px;
  border-radius: 8px;
  background: linear-gradient(100deg, transparent 0%, rgba(34, 211, 238, 0.22) 44%, transparent 68%);
  transform: translateX(-120%);
  animation: scanSheen 5.8s ease-in-out infinite;
  pointer-events: none;
}

.hero-image-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  animation: borderPulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

.hero-image-card img {
  width: 100%;
  aspect-ratio: 1600 / 607;
  border-radius: 8px;
  object-fit: cover;
}

.hero-chip {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: -26px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  max-width: min(390px, calc(100% - 48px));
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(3, 11, 23, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  animation: floatChip 6s ease-in-out infinite;
}

[data-theme="light"] .hero-chip {
  background: rgba(255, 255, 255, 0.86);
}

.hero-chip img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.hero-chip strong,
.hero-chip span {
  display: block;
}

.hero-chip span {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.hero-orbit {
  position: absolute;
  inset: -28px -26px auto auto;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 50%;
  opacity: 0.72;
  animation: slowSpin 26s linear infinite;
}

.hero-orbit span {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px var(--accent-2);
  animation: nodePulse 2.6s ease-in-out infinite;
}

.hero-orbit span:nth-child(1) {
  top: 16px;
  left: 50%;
}

.hero-orbit span:nth-child(2) {
  right: 16px;
  bottom: 48px;
  animation-delay: 0.4s;
}

.hero-orbit span:nth-child(3) {
  left: 28px;
  bottom: 28px;
  animation-delay: 0.8s;
}

.section {
  margin: 96px 0;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 44px;
  align-items: center;
  min-width: 0;
  padding: clamp(44px, 7vh, 76px) 0 64px;
}

.portfolio-hero-copy {
  min-width: 0;
}

.portfolio-summary {
  position: relative;
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow), 0 0 42px rgba(17, 119, 255, 0.22);
  overflow: hidden;
  animation: floatCard 7s ease-in-out infinite;
}

.portfolio-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(34, 211, 238, 0.12), transparent);
  transform: translateX(-120%);
  animation: scanSheen 5.8s ease-in-out infinite;
  pointer-events: none;
}

.portfolio-summary img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 1;
  object-fit: cover;
}

.portfolio-summary div {
  padding: 0 6px 8px;
}

.portfolio-summary strong,
.portfolio-summary span {
  display: block;
}

.portfolio-summary span {
  margin-top: 6px;
  color: var(--text-soft);
  line-height: 1.55;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
  min-width: 0;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 58px rgba(17, 119, 255, 0.16);
}

.app-shot {
  position: relative;
  min-height: 220px;
  background:
    radial-gradient(circle at 70% 18%, rgba(34, 211, 238, 0.18), transparent 12rem),
    rgba(2, 7, 19, 0.72);
  overflow: hidden;
}

.app-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(34, 211, 238, 0.12) 46%, transparent 70%);
  transform: translateX(-120%);
  animation: scanSheen 5.8s ease-in-out infinite;
}

.app-shot-dark {
  display: grid;
  place-items: center;
}

.app-shot-dark span {
  display: inline-grid;
  place-items: center;
  min-width: 92px;
  height: 92px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: var(--accent-2);
  background: rgba(17, 119, 255, 0.12);
  font-size: 1.45rem;
  font-weight: 900;
  animation: iconFloat 4.2s ease-in-out infinite;
}

.app-card-body {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
}

.app-type {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(17, 119, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.app-card-body p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  font-weight: 700;
}

.app-link {
  width: fit-content;
  color: var(--accent-2);
  font-weight: 900;
  border-bottom: 1px solid currentColor;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading .lead {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.process-step,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  transform: translateZ(0);
}

.service-card {
  position: relative;
  min-height: 230px;
  padding: 22px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -54px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 119, 255, 0.24), transparent 68%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.service-card::before,
.process-step::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(34, 211, 238, 0.12), transparent);
  opacity: 0;
  transform: translateX(-110%);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 58px rgba(17, 119, 255, 0.16);
}

.service-card:hover::after,
.service-card:hover::before,
.process-step:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

.service-card:hover::before,
.process-step:hover::before,
.contact-card:hover::before {
  animation: surfaceSweep 1.1s ease;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 38px;
  margin-bottom: 22px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--accent-2);
  background: rgba(17, 119, 255, 0.11);
  font-size: 0.86rem;
  font-weight: 900;
  animation: iconFloat 4.2s ease-in-out infinite;
}

.service-card p,
.process-step p,
.contact-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.feature-section {
  position: relative;
  padding: 90px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(34, 211, 238, 0.16), transparent 26rem),
    linear-gradient(180deg, rgba(5, 13, 29, 0.94), rgba(3, 8, 18, 0.98));
}

[data-theme="light"] .feature-section {
  background:
    radial-gradient(circle at 78% 18%, rgba(34, 211, 238, 0.18), transparent 26rem),
    linear-gradient(180deg, #081729, #020713);
  color: #f5f9ff;
}

.feature-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.52;
}

.feature-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}

.feature-media {
  padding: 10px;
  border: 1px solid rgba(80, 176, 255, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 1;
  object-fit: cover;
}

.feature-copy .lead,
[data-theme="light"] .feature-copy .lead {
  color: rgba(232, 242, 255, 0.82);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.feature-list div {
  padding: 18px;
  border: 1px solid rgba(80, 176, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list span {
  margin-top: 5px;
  color: rgba(232, 242, 255, 0.78);
  line-height: 1.55;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  position: relative;
  padding: 22px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 58px rgba(17, 119, 255, 0.16);
}

.process-step span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent-2);
  font-weight: 900;
  letter-spacing: 1.8px;
  animation: textGlow 3.2s ease-in-out infinite;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-grid span {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--panel);
  font-weight: 700;
  animation: chipFloat 5.4s ease-in-out infinite;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.stack-grid span:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 30px;
  align-items: stretch;
  margin: 100px 0 40px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 18%, rgba(34, 211, 238, 0.17), transparent 22rem),
    linear-gradient(140deg, var(--panel-strong), rgba(17, 119, 255, 0.1));
  box-shadow: var(--shadow);
}

.contact-copy {
  align-self: center;
}

.contact-copy h2 {
  margin-bottom: 16px;
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 44px rgba(17, 119, 255, 0.16);
}

.contact-card span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.contact-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.04rem, 2.2vw, 1.35rem);
}

.contact-card small {
  color: var(--text-soft);
  line-height: 1.55;
}

.featured-contact {
  border-color: rgba(37, 211, 102, 0.44);
  background:
    radial-gradient(circle at 94% 20%, rgba(37, 211, 102, 0.16), transparent 12rem),
    var(--panel);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: #052413;
  background: var(--whatsapp);
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(37, 211, 102, 0.3);
  animation: whatsappPulse 2.8s ease-in-out infinite;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 22px 54px;
  color: var(--text-soft);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer p {
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: var(--text);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(5px);
  transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-visible .stagger > * {
  animation: fadeUp 0.58s ease forwards;
}

.reveal.is-visible .stagger > *:nth-child(1) { animation-delay: 0.04s; }
.reveal.is-visible .stagger > *:nth-child(2) { animation-delay: 0.1s; }
.reveal.is-visible .stagger > *:nth-child(3) { animation-delay: 0.16s; }
.reveal.is-visible .stagger > *:nth-child(4) { animation-delay: 0.22s; }
.reveal.is-visible .stagger > *:nth-child(5) { animation-delay: 0.28s; }
.reveal.is-visible .stagger > *:nth-child(6) { animation-delay: 0.34s; }

.reveal.is-visible .service-card,
.reveal.is-visible .process-step,
.reveal.is-visible .stack-grid span,
.reveal.is-visible .contact-card {
  animation: cardReveal 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal.is-visible .service-card:nth-child(2),
.reveal.is-visible .process-step:nth-child(2),
.reveal.is-visible .stack-grid span:nth-child(2),
.reveal.is-visible .contact-card:nth-child(2) { animation-delay: 0.08s; }

.reveal.is-visible .service-card:nth-child(3),
.reveal.is-visible .process-step:nth-child(3),
.reveal.is-visible .stack-grid span:nth-child(3),
.reveal.is-visible .contact-card:nth-child(3) { animation-delay: 0.16s; }

.reveal.is-visible .service-card:nth-child(4),
.reveal.is-visible .process-step:nth-child(4),
.reveal.is-visible .stack-grid span:nth-child(4) { animation-delay: 0.24s; }

.reveal.is-visible .service-card:nth-child(5),
.reveal.is-visible .stack-grid span:nth-child(5) { animation-delay: 0.32s; }

.reveal.is-visible .service-card:nth-child(6),
.reveal.is-visible .stack-grid span:nth-child(6) { animation-delay: 0.4s; }

.reveal.is-visible .stack-grid span:nth-child(7) { animation-delay: 0.48s; }
.reveal.is-visible .stack-grid span:nth-child(8) { animation-delay: 0.56s; }
.reveal.is-visible .stack-grid span:nth-child(9) { animation-delay: 0.64s; }
.reveal.is-visible .stack-grid span:nth-child(10) { animation-delay: 0.72s; }

.service-card:nth-child(2) .service-icon,
.stack-grid span:nth-child(2) { animation-delay: 0.2s; }

.service-card:nth-child(3) .service-icon,
.stack-grid span:nth-child(3) { animation-delay: 0.4s; }

.service-card:nth-child(4) .service-icon,
.stack-grid span:nth-child(4) { animation-delay: 0.6s; }

.service-card:nth-child(5) .service-icon,
.stack-grid span:nth-child(5) { animation-delay: 0.8s; }

.service-card:nth-child(6) .service-icon,
.stack-grid span:nth-child(6) { animation-delay: 1s; }

[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes gridPan {
  to {
    background-position: 0 136px, 136px 0;
  }
}

@keyframes glowDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.34;
  }

  50% {
    transform: translate3d(-20px, 18px, 0) scale(1.08);
    opacity: 0.52;
  }
}

@keyframes logoPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(17, 119, 255, 0.22);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 0 34px rgba(34, 211, 238, 0.42);
    transform: translateY(-2px);
  }
}

@keyframes textGlow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(34, 211, 238, 0);
  }

  50% {
    text-shadow: 0 0 16px rgba(34, 211, 238, 0.58);
  }
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(17, 119, 255, 0.18);
  }

  50% {
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.32);
  }
}

@keyframes buttonSheen {
  0%,
  58% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatChip {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes scanSheen {
  0%,
  48% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes borderPulse {
  0%,
  100% {
    opacity: 0.32;
  }

  50% {
    opacity: 0.86;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.45);
    opacity: 1;
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(34, 211, 238, 0);
  }

  50% {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.22);
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes surfaceSweep {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(110%);
  }
}

@keyframes whatsappPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 16px 38px rgba(37, 211, 102, 0.3);
  }

  50% {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 20px 46px rgba(37, 211, 102, 0.44);
  }
}

@keyframes caretBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

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

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-inner,
  .portfolio-hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  main {
    padding-inline: 18px;
  }

  .top-banner {
    flex-direction: column;
    gap: 4px;
  }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 18px;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 10px;
    margin-left: 0;
  }

  .theme-toggle,
  .nav-cta {
    min-width: 0;
    width: 100%;
    padding-inline: 10px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
  }

  .hero .lead {
    max-width: 32ch;
  }

  .typing {
    overflow-wrap: break-word;
  }

  .hero {
    padding: 28px 0 58px;
  }

  .hero-actions,
  .hero-metrics,
  .service-grid,
  .app-card,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-hero {
    padding: 28px 0 56px;
  }

  .portfolio-hero .lead {
    max-width: 31ch;
  }

  .portfolio-summary,
  .portfolio-grid,
  .app-card {
    max-width: 100%;
  }

  .app-card {
    min-height: 0;
  }

  .app-shot {
    min-height: 210px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-chip {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin-top: 12px;
  }

  .hero-orbit {
    display: none;
  }

  .section {
    margin: 72px 0;
  }

  .feature-section {
    padding-block: 68px;
  }

  .contact-section {
    margin-top: 72px;
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .floating-whatsapp::before {
    content: "WA";
    font-size: 0.88rem;
  }
}

@media (max-width: 430px) {
  .brand-name {
    font-size: 1.2rem;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .theme-toggle,
  .nav-cta {
    padding-inline: 12px;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
