:root {
  color-scheme: dark;
  --ink: #07111f;
  --panel: #0d1a2b;
  --panel-soft: #112238;
  --paper: #f2f5f6;
  --muted: #9eacb9;
  --line: rgba(255, 255, 255, 0.11);
  --blue: #4da3ff;
  --cyan: #64e5d5;
  --lime: #c8f65b;
  --orange: #ffb36b;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient,
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.ambient {
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  opacity: 0.13;
  filter: blur(110px);
}

.ambient-one {
  top: -18vw;
  right: -10vw;
  background: var(--blue);
}

.ambient-two {
  top: 45vh;
  left: -24vw;
  background: var(--cyan);
}

.grid-overlay {
  z-index: -1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand strong {
  color: var(--cyan);
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(100, 229, 213, 0.45);
  border-radius: 10px;
  background: rgba(100, 229, 213, 0.08);
}

.brand-mark span {
  position: absolute;
  width: 4px;
  border-radius: 4px;
  background: var(--cyan);
}

.brand-mark span:nth-child(1) {
  height: 10px;
  transform: translateX(-7px);
}

.brand-mark span:nth-child(2) {
  height: 20px;
}

.brand-mark span:nth-child(3) {
  height: 14px;
  transform: translateX(7px);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #c5ced6;
  font-size: 14px;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: white;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.back-link svg,
.primary-button svg,
.open-app svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(44px, 8vw, 112px);
  min-height: 700px;
  padding-block: 84px 100px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--lime);
  font-style: normal;
}

.hero-intro {
  max-width: 580px;
  margin-bottom: 34px;
  color: #b2bec8;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-actions > span {
  max-width: 190px;
  color: #7e8c9b;
  font-size: 12px;
  line-height: 1.5;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.hero-console {
  position: relative;
  overflow: hidden;
  min-height: 485px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 50%),
    rgba(10, 23, 39, 0.82);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
}

.console-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 52px;
  padding-inline: 18px;
  border-bottom: 1px solid var(--line);
  color: #788696;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #415064;
}

.console-dots span:first-child {
  background: var(--orange);
}

.live-indicator {
  justify-self: end;
}

.live-indicator i,
.status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

.console-body {
  position: relative;
  min-height: 432px;
  overflow: hidden;
  background-image:
    radial-gradient(circle at center, rgba(100, 229, 213, 0.08), transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}

.console-core,
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit {
  border: 1px solid rgba(100, 229, 213, 0.13);
}

.orbit::after {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  content: "";
}

.orbit-one {
  width: 220px;
  height: 220px;
  animation: spin 16s linear infinite;
}

.orbit-two {
  width: 310px;
  height: 310px;
  border-style: dashed;
  animation: spinReverse 26s linear infinite;
}

.console-core {
  display: grid;
  z-index: 2;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 1px solid rgba(100, 229, 213, 0.5);
  background: #10283a;
  box-shadow: 0 0 70px rgba(100, 229, 213, 0.16);
}

.core-symbol {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
}

.pulse {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(100, 229, 213, 0.35);
  border-radius: 50%;
  animation: pulse 2.8s ease-out infinite;
}

.pulse-two {
  animation-delay: 1.4s;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(17, 34, 56, 0.9);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.floating-card strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 13px;
}

.floating-card span:last-child {
  color: #8d9cac;
  font-size: 9px;
}

.memory-card {
  top: 74px;
  left: 26px;
  animation: float 5s ease-in-out infinite;
}

.ahorro-card {
  right: 24px;
  bottom: 86px;
  animation: float 5.7s ease-in-out 0.7s infinite;
}

.card-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-content: center;
  border-radius: 10px;
  background: rgba(77, 163, 255, 0.12);
}

.memory-icon {
  grid-template-columns: repeat(2, 6px);
  gap: 3px;
}

.memory-icon i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue);
}

.memory-icon i:nth-child(3) {
  background: var(--lime);
}

.chart-icon {
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  gap: 3px;
}

.chart-icon i {
  width: 4px;
  height: 9px;
  border-radius: 3px;
  background: var(--cyan);
}

.chart-icon i:nth-child(2) {
  height: 17px;
}

.chart-icon i:nth-child(3) {
  height: 13px;
}

.console-message {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #697888;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-message i {
  width: 28px;
  height: 1px;
  background: #3f5063;
}

.console-message strong {
  color: var(--cyan);
}

.apps-section {
  padding-block: 110px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 52px;
}

.section-heading h2,
.principles-intro h2,
.closing h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading > p,
.principles-intro > p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.app-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 26, 43, 0.88);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.app-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  color: #738294;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.status {
  color: #aeb9c2;
}

.app-visual {
  position: relative;
  height: 255px;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 15px;
}

.memory-visual {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  align-items: center;
  gap: 28px;
  padding: 35px;
  background:
    radial-gradient(circle at 25% 40%, rgba(77, 163, 255, 0.22), transparent 38%),
    #091624;
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  transform: rotate(-4deg);
}

.memory-board span {
  aspect-ratio: 1;
  border: 1px solid rgba(77, 163, 255, 0.25);
  border-radius: 8px;
  background: rgba(77, 163, 255, 0.08);
}

.memory-board span:nth-child(2),
.memory-board span:nth-child(6),
.memory-board span:nth-child(8) {
  background: rgba(77, 163, 255, 0.26);
}

.memory-board .active {
  background: var(--lime);
  box-shadow: 0 0 30px rgba(200, 246, 91, 0.42);
}

.memory-stats {
  color: #708198;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.memory-stats strong {
  display: block;
  margin: 8px 0 14px;
  color: white;
  font-family: var(--font-display);
  font-size: 24px;
}

.memory-stats i {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: #203148;
}

.memory-stats b {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.ahorro-visual {
  padding: 34px;
  background:
    radial-gradient(circle at 70% 25%, rgba(100, 229, 213, 0.2), transparent 40%),
    #0a1924;
}

.voice-pill {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 4px;
  margin-bottom: 27px;
  padding: 9px 13px;
  border: 1px solid rgba(100, 229, 213, 0.22);
  border-radius: 999px;
  background: rgba(100, 229, 213, 0.07);
}

.voice-pill span {
  width: 3px;
  height: 10px;
  border-radius: 3px;
  background: var(--cyan);
  animation: voice 1.2s ease-in-out infinite alternate;
}

.voice-pill span:nth-child(2n) {
  height: 18px;
  animation-delay: 0.2s;
}

.voice-pill span:nth-child(3n) {
  height: 13px;
  animation-delay: 0.4s;
}

.expense-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
}

.expense-row > span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.expense-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 179, 107, 0.13);
  color: var(--orange);
  font-style: normal;
}

.expense-row strong {
  color: var(--lime);
  font-size: 15px;
}

.mini-chart {
  display: flex;
  height: 76px;
  align-items: end;
  gap: 9px;
  padding-top: 19px;
}

.mini-chart span {
  flex: 1;
  height: var(--height);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(to top, rgba(100, 229, 213, 0.2), var(--cyan));
}

.app-content > p:first-child {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-card-ahorro .app-content > p:first-child {
  color: var(--cyan);
}

.app-content h3 {
  margin-bottom: 12px;
  font-size: 38px;
  letter-spacing: -0.045em;
}

.app-description {
  min-height: 54px;
  margin-bottom: 24px;
  color: #a2afbb;
  font-size: 14px;
  line-height: 1.65;
}

.open-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.open-app svg {
  transition: transform 180ms ease;
}

.app-card:hover .open-app svg {
  transform: translateX(5px);
}

.next-app {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  color: #7f8d9a;
}

.next-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cyan);
  font-size: 22px;
}

.next-app p {
  margin-bottom: 3px;
  color: #778695;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-app strong {
  color: #c0cad2;
  font-family: var(--font-display);
  font-size: 14px;
}

.next-app > span {
  font-size: 12px;
}

.principles {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 9vw, 130px);
  padding-block: 110px;
  border-top: 1px solid var(--line);
}

.principles-intro > p {
  max-width: 480px;
  margin-top: 28px;
}

.principles-list article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 22px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

.principles-list article:first-child {
  padding-top: 0;
}

.principles-list article > span {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.principles-list h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.principles-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.closing {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 80px;
  padding: clamp(34px, 5vw, 64px);
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 85% 20%, rgba(200, 246, 91, 0.16), transparent 30%),
    linear-gradient(135deg, #14273d, #0d1b2b);
}

.closing a {
  display: grid;
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  transition: transform 200ms ease;
}

.closing a:hover {
  transform: translateX(6px);
}

.closing svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 110px;
  border-top: 1px solid var(--line);
  color: #748391;
  font-size: 11px;
}

footer p {
  margin: 0;
}

footer p:last-child {
  justify-self: end;
}

.footer-brand {
  color: #c4ced6;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spinReverse {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.88);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

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

@keyframes voice {
  to {
    transform: scaleY(0.48);
  }
}

@media (max-width: 900px) {
  nav > a:not(.back-link) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-console {
    min-height: 460px;
  }

  .section-heading,
  .principles {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  nav {
    gap: 0;
  }

  .back-link {
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding-block: 60px 76px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-console {
    min-height: 390px;
  }

  .console-body {
    min-height: 337px;
  }

  .orbit-one {
    width: 170px;
    height: 170px;
  }

  .orbit-two {
    width: 250px;
    height: 250px;
  }

  .memory-card {
    top: 36px;
    left: 14px;
  }

  .ahorro-card {
    right: 14px;
    bottom: 62px;
  }

  .floating-card {
    min-width: 155px;
    padding: 10px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .apps-section,
  .principles {
    padding-block: 78px;
  }

  .app-card {
    padding: 16px;
  }

  .app-visual {
    height: 220px;
  }

  .memory-visual,
  .ahorro-visual {
    padding: 24px;
  }

  .next-app {
    grid-template-columns: auto 1fr;
  }

  .next-app > span {
    display: none;
  }

  .closing {
    align-items: flex-start;
    flex-direction: column;
    gap: 32px;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer > p:first-of-type {
    display: none;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
