:root {
  color-scheme: dark;
  --canvas: #0b0c12;
  --panel: #171824;
  --ink: #f7f6fc;
  --muted: #bcbdd2;
  --accent: #d9cbff;
  --line: #ffffff26;
  --radius: 26px;
  --display: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, sans-serif;
  --gutter: clamp(1rem, 4.5vw, 4.5rem);
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  width: min(100%, 94rem);
  min-height: 4.6rem;
  margin: auto;
  padding: .7rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font: 750 1.65rem/1 var(--display); letter-spacing: -.07em; }
.brand-mark {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border: 1px solid #c8aaff93;
  border-radius: .58rem;
  background: linear-gradient(135deg, #6746aa, #36246b);
  box-shadow: inset 0 1px 2px #ffffff40;
}
.brand-mark::before {
  width: .75rem;
  height: .75rem;
  content: "";
  border-radius: 50%;
  border: 1px solid #f4edff;
  background: radial-gradient(circle, #f4edff 0 26%, transparent 31%);
}
.header-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.premium-link, .locale-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .48rem .88rem;
  border: 1px solid var(--line);
  border-radius: .72rem;
  font-size: .875rem;
  font-weight: 650;
  transition: background-color 170ms, border-color 170ms;
}
.premium-link { background: #a680ff29; border-color: #b89bf373; }
.premium-link:hover, .premium-link[aria-current], .locale-link:hover { background: #a680ff46; }
.locale-link { min-width: 2.75rem; padding-inline: .48rem; }

.site-header a, .site-footer a, .tool-switcher a { color: inherit; text-decoration: none; }
.site-header *, .site-footer *, .tool-switcher * { box-sizing: border-box; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: .65rem 1.25rem;
  flex-wrap: wrap;
  width: min(100%, 94rem);
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  padding: 1.15rem var(--gutter) 1.65rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.site-footer > span { font-weight: 700; }
.site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.15rem; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

.tool-switcher ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.tool-switcher a { display: inline-block; padding: .4rem .6rem; border-radius: .5rem; }
.tool-switcher a:hover, .tool-switcher a[aria-current] { background: #a680ff29; }

@media (max-width: 480px) {
  .wordmark { font-size: 1.45rem; }
  .brand-mark { width: 1.5rem; height: 1.5rem; }
  .header-nav { gap: .35rem; }
  .premium-link { padding-inline: .55rem; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse 75rem 53rem at 51% -14rem, #2a2148 0%, #131522 57%, transparent 93%), var(--canvas);
  font: 400 1rem/1.5 var(--body);
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid #e4d6ff; outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 4;
  left: 1rem;
  top: 1rem;
  padding: .65rem 1rem;
  border-radius: .55rem;
  color: var(--canvas);
  background: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.home, .premium-page { width: min(100%, 94rem); margin: 0 auto; flex: 1; }
.home-heading { padding: clamp(2.6rem, 6.4vw, 5rem) var(--gutter) 2.1rem; }
h1, h2, p { margin: 0; }
h1 {
  font: 700 clamp(3.05rem, 7vw, 6.4rem)/1 var(--display);
  letter-spacing: -.062em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.home-heading h1 span { color: #c1a5ff; }
.home-heading p { margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.carousel {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(12.25rem, calc((100% - 4 * 1rem) / 5), 16.4rem);
  gap: 1rem;
  overflow-x: auto;
  padding: .55rem var(--gutter) 1rem;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-color: #8473ab #1b1927;
  scrollbar-width: thin;
}
.carousel:focus-visible { outline-offset: -3px; }
.tool-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 25.8rem;
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid #ffffff35;
  border-radius: var(--radius);
  background: var(--glass-solid, var(--panel));
  box-shadow: inset 0 1px 0 #ffffff33, 0 8px 18px #03030a44;
  animation: enter 380ms both;
}
.tool-card:nth-child(2) { animation-delay: 45ms; }
.tool-card:nth-child(3) { animation-delay: 90ms; }
.tool-card:nth-child(4) { animation-delay: 135ms; }
.tool-card:nth-child(5) { animation-delay: 180ms; }
.tool-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at 42% 4%, var(--glow), transparent 59%), linear-gradient(158deg, #ffffff16, #ffffff00 46%, #08091272);
  pointer-events: none;
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .tool-card {
    background: linear-gradient(164deg, #ffffff14, #0c0b17c9 72%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
.visualizer { --hue: #b998ff; --glow: #764dd390; --glass-solid: #22183b; }
.celars { --hue: #88eccd; --glow: #428e8894; --glass-solid: #152c30; }
.detector { --hue: #ffb88b; --glow: #c76c4c91; --glass-solid: #382223; }
.compare { --hue: #93baff; --glow: #426ec69c; --glass-solid: #1b2841; }
.pdf { --hue: #ff9bc8; --glow: #ae468592; --glass-solid: #392039; }

.tool-art {
  position: relative;
  height: 13.3rem;
  flex: none;
  overflow: hidden;
  perspective: 360px;
  mask-image: linear-gradient(#000 90%, transparent);
}
.tool-art::before {
  position: absolute;
  inset: 1.15rem;
  content: "";
  border: 1px solid #ffffff21;
  border-radius: 1.1rem;
  background: radial-gradient(circle at 50% 52%, var(--glow), transparent 57%),
    repeating-linear-gradient(90deg, #ffffff12 0 1px, transparent 1px 1rem),
    repeating-linear-gradient(#ffffff12 0 1px, transparent 1px 1rem);
  mask-image: radial-gradient(ellipse, black 32%, transparent 81%);
}
.tool-art i, .tool-art b {
  position: absolute;
  display: block;
  box-shadow: inset 0 1px 1px #ffffffb3, 0 .8rem 1.85rem #09061566;
  transition: translate 260ms ease;
}
@media (hover: hover) { .tool-card:hover .tool-art i, .tool-card:hover .tool-art b { translate: 0 -.28rem; } }
.visualizer .tool-art i {
  top: 37%;
  left: calc(50% - 3.1rem);
  width: 6.2rem;
  height: 4.8rem;
  border-radius: .7rem;
  border: 1px solid #e0adff96;
  background: radial-gradient(circle at 32% 22%, #f9d5ff, transparent 52%), linear-gradient(135deg, #9874ee, #413185cc);
  transform: rotateX(49deg) rotateZ(-33deg);
}
.visualizer .tool-art i:nth-child(2) { margin-top: -.85rem; opacity: .77; }
.visualizer .tool-art i:nth-child(3) { margin-top: -1.7rem; }
.visualizer .tool-art b {
  top: 30%;
  left: 64%;
  width: .72rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe1ff;
  box-shadow: 0 0 1rem #f5a7ff;
}
.celars .tool-art i {
  top: 30%;
  left: calc(50% - 2.6rem);
  width: 5.2rem;
  height: 5.9rem;
  border-radius: .43rem .82rem .82rem .43rem;
  border: 1px solid #aeffe2a3;
  background: linear-gradient(119deg, #c6ffecda, #55b9a7 32%, #236b6d);
  transform: rotate(-16deg) skew(6deg, -4deg);
}
.celars .tool-art i:nth-child(2) { translate: .44rem .36rem; }
.celars .tool-art i:nth-child(3) {
  translate: .85rem .72rem;
  background: linear-gradient(90deg, #091a2833 0 15%, transparent 16%), linear-gradient(130deg, #a5f8dd, #56aaab 58%, #358b93);
}
.celars .tool-art b {
  top: 49%;
  left: 50%;
  width: 2rem;
  height: 1.3rem;
  border-top: 2px solid #e3fff1;
  border-bottom: 2px solid #e3fff1;
  transform: rotate(-16deg);
  box-shadow: none;
}
.detector .tool-art i {
  top: calc(51% - 3.35rem);
  left: calc(50% - 3.35rem);
  width: 6.7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #ffdfba9c;
  background: repeating-radial-gradient(circle, #ffc9a24d 0 1px, transparent 2px 15px), radial-gradient(circle at 44% 37%, #fa966e, #572637 72%);
}
.detector .tool-art i:nth-child(2) { scale: .74; background: conic-gradient(from 0deg, #ffd1a9, transparent 26% 100%); }
.detector .tool-art i:nth-child(3) { scale: .38; background: radial-gradient(circle, #ffe3ca, #ef845e 44%, #a9444a); }
.detector .tool-art b {
  top: 28%;
  left: 60%;
  width: .45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff0d8;
  box-shadow: 0 0 .65rem #ff9e69;
}
.compare .tool-art i {
  top: 28%;
  left: calc(50% - 3.6rem);
  width: 4.5rem;
  height: 5.8rem;
  border-radius: .63rem;
  border: 1px solid #d5eaff9c;
  background: repeating-linear-gradient(#f3f7ff8f 0 2px, transparent 3px .8rem) center 1.35rem / 60% 57% no-repeat, linear-gradient(145deg, #cde4ff, #609adf 50%, #304a9a);
  transform: rotate(-14deg);
}
.compare .tool-art i:nth-child(2) {
  left: calc(50% - .4rem);
  top: 33%;
  background: repeating-linear-gradient(#edf7ffad 0 2px, transparent 3px .8rem) center 1.35rem / 60% 57% no-repeat, linear-gradient(145deg, #d3e7ff, #7b90ea 50%, #574ab2);
  transform: rotate(13deg);
}
.compare .tool-art b {
  top: 53%;
  left: calc(50% - .95rem);
  width: 1.9rem;
  height: .65rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #c0dcff, #ffffff);
  box-shadow: 0 0 .85rem #a9e9ff;
}
.pdf .tool-art i {
  top: 28%;
  left: calc(50% - 2.4rem);
  width: 4.8rem;
  height: 6.05rem;
  border: 1px solid #ffd1ec9c;
  border-radius: .7rem 1.3rem .7rem .7rem;
  transform: rotate(15deg);
  background: linear-gradient(160deg, #ffcbe9, #e66cae 45%, #662e83);
}
.pdf .tool-art i:nth-child(2) {
  margin-left: -.48rem;
  margin-top: -.36rem;
  transform: rotate(-12deg);
  background: linear-gradient(142deg, #ffdcf5, #ef81bc 45%, #83368e);
}
.pdf .tool-art b {
  top: 48%;
  left: calc(50% - 1.75rem);
  padding: .35rem .6rem;
  border-radius: .4rem;
  background: #49214d;
  color: #fff3fe;
  font: 750 .9rem/1.15 var(--display);
  transform: rotate(-12deg);
}

.card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: .7rem 1.13rem 1.2rem; }
.card-copy h2 { font: 700 clamp(1.3rem, 1.85vw, 1.72rem)/1.06 var(--display); letter-spacing: -.045em; }
.card-copy p { color: var(--muted); margin: .6rem 0 1.15rem; font-size: .94rem; }
.card-status, .card-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: auto;
  font-size: .875rem;
  font-weight: 650;
}
.card-status { color: var(--hue); }
.card-action {
  justify-content: center;
  padding: .35rem .9rem;
  border: 1px solid #ffffff55;
  border-radius: .7rem;
  background: #ffffff13;
}
.card-action:hover { background: #ffffff2b; }

.carousel-controls { display: flex; justify-content: flex-end; gap: .55rem; padding: .65rem var(--gutter) 0; }
.carousel-controls button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #ffffff0d;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.carousel-controls button:hover { background: #ffffff28; }
.carousel-controls button[aria-disabled="true"] { opacity: .45; cursor: default; }

.premium-page { display: grid; align-items: center; padding: clamp(2.2rem, 7vw, 6rem) var(--gutter) 0; }
.premium-panel {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: clamp(1.75rem, 6vw, 5rem);
  padding: clamp(1.4rem, 5vw, 4.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 6% 25%, #4a3373 0, transparent 64%), linear-gradient(135deg, #282337, #151522);
  box-shadow: inset 0 1px 0 #ffffff24;
  animation: enter 380ms both;
}
.premium-panel h1 { font-size: clamp(2.65rem, 6.6vw, 6.5rem); }
.premium-intro { margin-top: 1rem; font-size: 1.14rem; }
.premium-status { margin-top: .55rem; color: var(--muted); }
.browse-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .48rem .88rem;
  border: 1px solid var(--line);
  border-radius: .72rem;
  font-size: .875rem;
  font-weight: 650;
  transition: background-color 170ms, border-color 170ms;
}
.browse-link { margin-top: 1.55rem; background: var(--accent); color: #21143b; }
.browse-link:hover { background: #f2ebff; }
.premium-tools h2 { color: var(--muted); font: 550 .95rem/1.4 var(--body); }
.premium-tools ul { list-style: none; margin: .7rem 0 0; padding: 0; }
.premium-tools li { display: flex; align-items: center; gap: .85rem; padding: .64rem 0; border-top: 1px solid var(--line); }
.premium-tools li span { width: .72rem; aspect-ratio: 1; border-radius: 50%; background: var(--hue); }

@keyframes enter { from { opacity: .65; translate: 0 .5rem; } }
@media (max-width: 780px) {
  .carousel { grid-auto-columns: clamp(12.5rem, 37vw, 16.4rem); }
  .premium-panel { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  :lang(es) .home-heading h1 { font-size: clamp(2.4rem, 9vw, 3rem); }
  .carousel { grid-auto-columns: min(80%, 16.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
