:root {
  --bg: #0a0a0f;
  --bg-soft: #0e0e16;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf2;
  --muted: #8b90a3;
  --cyan: #00f0ff;
  --green: #00ff88;
  --violet: #8b5cf6;
  --gradient: linear-gradient(135deg, #00f0ff, #00ff88);
  --gradient-soft: linear-gradient(135deg, rgba(0, 240, 255, 0.14), rgba(0, 255, 136, 0.14));
  --font-sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 16px;
  --max-w: 1140px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(0, 240, 255, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--max-w), 92%);
  margin-inline: auto;
}

.container--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(10px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}

[data-reveal="left"] {
  transform: translateX(-48px);
}

[data-reveal="right"] {
  transform: translateX(48px);
}

[data-reveal="scale"] {
  transform: scale(0.9);
}

[data-reveal].in-view {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav__inner {
  width: min(var(--max-w), 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav__logo {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.nav__link.is-active::after,
.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--gradient-soft);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--cyan);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
  border-color: rgba(0, 240, 255, 0.7);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Barra de progreso ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  transition: width 0.15s ease-out;
}

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(14, 14, 22, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cyan);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, box-shadow 0.3s ease, border-color 0.3s ease;
}

.to-top svg {
  width: 20px;
  height: 20px;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.orb--cyan {
  width: 480px;
  height: 480px;
  background: rgba(0, 240, 255, 0.22);
  top: -8%;
  left: -8%;
}

.orb--green {
  width: 420px;
  height: 420px;
  background: rgba(0, 255, 136, 0.16);
  bottom: -12%;
  right: -6%;
}

.orb--violet {
  width: 360px;
  height: 360px;
  background: rgba(139, 92, 246, 0.18);
  top: 30%;
  right: 22%;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--max-w), 92%);
  margin-inline: auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.06);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero__title {
  margin-top: 1.6rem;
  font-size: clamp(2.3rem, 6.5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero__line {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.55em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero__gradient {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__typed-wrap {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 3.2vw, 1.8rem);
  color: var(--text);
  font-weight: 500;
  min-height: 1.4em;
}

.hero__typed {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--cyan);
  margin-left: 4px;
  vertical-align: -0.1em;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__subtitle {
  margin-top: 1.4rem;
  max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
}

.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__sep {
  color: var(--cyan);
  opacity: 0.6;
}

.hero__scroll {
  margin-top: 3rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  animation: bounceDown 1.8s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

.hero__code {
  position: absolute;
  z-index: 1;
  right: max(4vw, 1rem);
  bottom: clamp(3rem, 12vh, 7rem);
  background: rgba(14, 14, 22, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  white-space: pre;
}

.hero__code::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

.hero__code code {
  display: block;
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Tokens (sintaxis) ---------- */
.tok-kw { color: var(--violet); }
.tok-id { color: var(--cyan); }
.tok-prop { color: #82aaff; }
.tok-str { color: var(--green); }
.tok-bool { color: #ff9e64; }
.tok-pun { color: var(--muted); }
.tok-fn { color: #c792ea; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  scroll-margin-top: var(--nav-h);
}

.section--stack {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section--contact {
  overflow: hidden;
}

.section__head {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.section__tag::before {
  content: "#";
  margin-right: 0.3rem;
  color: var(--green);
}

.section__title {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.section__lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Cards (servicios) ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, background 0.35s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: rgba(0, 240, 255, 0.35);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  margin-bottom: 1.3rem;
  transition: box-shadow 0.35s ease;
}

.card:hover .card__icon {
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.card__text {
  color: var(--muted);
  font-size: 0.95rem;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 240, 255, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card.tilting {
  transition: transform 0.08s linear, border-color 0.35s ease, background 0.35s ease;
}

/* ---------- Stack ---------- */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  cursor: default;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.chip:hover {
  color: var(--text);
  border-color: rgba(0, 255, 136, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.18);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 1.4rem 0;
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

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

.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
}

.marquee__group span {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--muted);
  white-space: nowrap;
}

.marquee__group span::before {
  content: "#";
  color: var(--cyan);
  margin-right: 0.35rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Proceso ---------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  counter-reset: step;
}

.process::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), rgba(0, 240, 255, 0.5), rgba(0, 255, 136, 0.5), rgba(0, 255, 136, 0.1));
  border-radius: 2px;
}

.process__step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.7rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.process__step:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.35);
}

.process__num {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bg);
  background: var(--gradient);
  border-radius: 50%;
  margin-bottom: 1.3rem;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.process__title {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process__text {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Sobre mí ---------- */
.terminal {
  background: rgba(14, 14, 22, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green { background: #28c840; }

.terminal__file {
  margin-left: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.terminal__body {
  padding: 1.3rem 1.4rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.9;
  min-height: 260px;
}

.about__content .section__tag {
  margin-bottom: 0.6rem;
}

.about__content .section__title {
  margin-bottom: 1.4rem;
}

.about__text {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about__text strong {
  color: var(--text);
  font-weight: 600;
}

.about__list {
  margin: 1.6rem 0 2.2rem;
  display: grid;
  gap: 0.7rem;
}

.about__list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text);
  font-size: 0.98rem;
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7em;
  height: 0.7em;
  background: var(--gradient);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ---------- Contacto ---------- */
.contact {
  text-align: center;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  background:
    radial-gradient(600px 300px at 50% -10%, rgba(0, 240, 255, 0.12), transparent 70%),
    radial-gradient(500px 300px at 90% 110%, rgba(0, 255, 136, 0.1), transparent 70%),
    var(--surface);
}

@property --ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.contact::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), transparent 12%, rgba(0, 240, 255, 0.7), rgba(0, 255, 136, 0.7), transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  animation: rotate-border 5s linear infinite;
  pointer-events: none;
}

@keyframes rotate-border {
  to { --ang: 360deg; }
}

.contact .section__tag,
.contact .section__title,
.contact .section__lead {
  margin-inline: auto;
}

.contact .section__title {
  margin-bottom: 1rem;
}

.contact .section__lead {
  max-width: 560px;
  margin-bottom: 2.4rem;
}

.contact__socials {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact__link svg {
  width: 18px;
  height: 18px;
}

.contact__link:hover {
  color: var(--text);
  border-color: rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn--primary {
  background: var(--gradient);
  color: #04121a;
  box-shadow: 0 6px 26px rgba(0, 240, 255, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(0, 240, 255, 0.42);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: rgba(0, 255, 136, 0.55);
  color: var(--green);
  transform: translateY(-2px);
}

.btn--big {
  font-size: 1.05rem;
  padding: 1.1rem 2.4rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0;
  background: var(--bg-soft);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy,
.footer__brand {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__code {
    display: none;
  }

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

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

  .process::before {
    display: none;
  }

  .container--split {
    grid-template-columns: 1fr;
  }

  .about__visual {
    order: 2;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: calc(var(--nav-h) + 0.75rem) 0 2.5rem;
    align-items: flex-start;
  }

  .hero__title {
    margin-top: 1.1rem;
  }

  .hero__subtitle {
    margin-top: 1rem;
  }

  .hero__actions {
    margin-top: 1.7rem;
  }

  .hero__meta {
    margin-top: 1.8rem;
  }

  .hero__scroll {
    margin-top: 2.2rem;
  }

  .hero__actions .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .btn--big {
    font-size: 0.95rem;
    padding: 1rem 1.2rem;
    max-width: 100%;
  }

  .nav__toggle {
    display: flex;
    z-index: 101;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    background: rgba(10, 10, 15, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__link {
    font-size: 1.3rem;
    color: var(--text);
  }

  .nav__link--cta {
    font-size: 1.05rem;
  }

  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(36px);
  }

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

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

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
