/* ============================================================
   Unir Word — PREMIUM dark-purple SaaS design (Visuo/Mufi family)
   "WAO on open": gradient orbs, glassmorphism, 3D tilt,
   micro-interactions. Zero frameworks, zero remote assets.
   Fonts: Plus Jakarta Sans (OFL), self-hosted latin in assets/fonts/.
   ============================================================ */

/* ---------- self-hosted fonts ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* brand — deep purple-black, violet, orange accent */
  --bg-950: #12101d;
  --bg-900: #181527;
  --bg-800: #1f1b33;
  --violet-500: #8b5cf6;
  --violet-400: #a78bfa;
  --violet-700: #6d28d9;
  --orange-400: #fb923c;
  --orange-500: #f97316;

  --ink: #f4f2fb;
  --muted: #a9a3c7;
  --faint: #7c76a0;
  --line: rgba(139, 92, 246, 0.22);
  --card: rgba(31, 27, 51, 0.72);
  --card-solid: #1f1b33;
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.10);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.10);

  --radius: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 0 0 0 3px rgba(139, 92, 246, 0.45);
  --shadow-lift: 0 18px 50px -12px rgba(139, 92, 246, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-950);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--violet-400); }
.sr-only, .visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--violet-500); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0.6rem; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

/* ---------- background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-a { width: 480px; height: 480px; left: -140px; top: -120px;
  background: radial-gradient(circle, #6d28d9, transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
.orb-b { width: 420px; height: 420px; right: -120px; top: 30%;
  background: radial-gradient(circle, #f97316, transparent 70%); opacity: 0.28; animation: drift 20s ease-in-out infinite alternate-reverse; }
.orb-c { width: 520px; height: 520px; left: 30%; bottom: -200px;
  background: radial-gradient(circle, #4c1d95, transparent 70%); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.08); }
}

.container { width: min(1080px, 92vw); margin: 0 auto; }

/* ---------- header ---------- */
.site-header { padding: 1.1rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.25rem; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-500), var(--orange-500));
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.8); }
.tagline { color: var(--faint); font-size: 0.85rem; margin-left: 0.4rem; font-weight: 400; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 3rem 0 2rem; }
.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange-400);
  border: 1px solid rgba(251, 146, 60, 0.35); border-radius: 999px;
  padding: 0.35rem 0.9rem; margin-bottom: 1rem; background: rgba(249, 115, 22, 0.08);
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 1rem; font-weight: 800; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--violet-400), var(--orange-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0 auto; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: center; margin-top: 1.4rem; color: var(--muted); font-size: 0.92rem; }
.trust-row span::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ---------- tool card ---------- */
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  margin: 1rem 0 3rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lift);
  transition: transform 0.25s var(--ease-out);
  will-change: transform;
}

.dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.5);
  border-radius: var(--radius);
  padding: 2.6rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out);
  background: rgba(139, 92, 246, 0.05);
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--violet-400); background: rgba(139, 92, 246, 0.10); }
.dropzone.dragover { border-color: var(--orange-400); background: rgba(249, 115, 22, 0.10); transform: scale(1.01); }
.dropzone-icon { font-size: 2.6rem; margin-bottom: 0.6rem; }
.dropzone-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.3rem; }
.dropzone-sub { color: var(--muted); margin: 0 0 0.8rem; font-size: 0.95rem; }
.dropzone-cta {
  display: inline-block; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  padding: 0.7rem 1.6rem; border-radius: 999px;
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.7);
}
.dropzone-limits { margin-top: 0.9rem; font-size: 0.82rem; color: var(--faint); }

/* ---------- queue ---------- */
.queue-head { display: flex; align-items: baseline; justify-content: space-between; margin: 1.6rem 0 0.8rem; }
.queue-head h2 { font-size: 1.1rem; margin: 0; }
#queue-count { color: var(--faint); font-weight: 400; font-size: 0.95rem; }
.empty-state {
  text-align: center; color: var(--faint); padding: 1.6rem;
  border: 1px dashed var(--line); border-radius: var(--radius); font-size: 0.95rem;
}
.queue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.queue-item {
  display: flex; align-items: center; gap: 0.9rem;
  background: rgba(18, 16, 29, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 0.7rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.queue-item.dragging { opacity: 0.5; border-color: var(--orange-400); }
.queue-pos {
  flex: 0 0 2rem; height: 2rem; display: grid; place-items: center;
  font-weight: 800; font-size: 0.9rem; color: #fff;
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  border-radius: 10px; cursor: grab;
}
.queue-info { flex: 1; min-width: 0; }
.queue-name { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-meta { color: var(--faint); font-size: 0.82rem; }
.queue-actions { display: flex; gap: 0.35rem; }
.icon-btn {
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--line);
  background: rgba(139, 92, 246, 0.10); color: var(--ink);
  font-size: 1rem; cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.icon-btn:hover:not(:disabled) { background: rgba(139, 92, 246, 0.25); transform: translateY(-1px); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.icon-btn.danger:hover:not(:disabled) { background: var(--danger-bg); border-color: var(--danger); }

/* ---------- buttons / actions ---------- */
.action-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.btn {
  appearance: none; border: none; cursor: pointer; font-family: var(--font);
  font-weight: 700; font-size: 1rem; border-radius: 999px;
  padding: 0.85rem 1.9rem; transition: transform 0.15s var(--ease-out), box-shadow 0.15s, opacity 0.15s;
  text-decoration: none; display: inline-block; text-align: center;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  box-shadow: 0 10px 28px -8px rgba(139, 92, 246, 0.7);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(139, 92, 246, 0.85); }
.btn-secondary {
  color: var(--ink); background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--line);
}
.btn-secondary:hover:not(:disabled) { background: rgba(139, 92, 246, 0.22); }
.btn-ghost { color: var(--muted); background: transparent; border: 1px solid transparent; }
.btn-ghost:hover:not(:disabled) { color: var(--ink); border-color: var(--line); }
.btn-large { font-size: 1.08rem; padding: 1rem 2.4rem; }

/* ---------- progress / result / notices ---------- */
.progress { margin-top: 1.4rem; }
.progress-text { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.5rem; }
.progress-track { height: 10px; border-radius: 999px; background: rgba(139, 92, 246, 0.15); overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--violet-500), var(--orange-400));
  transition: width 0.3s var(--ease-out);
}
.result {
  margin-top: 1.4rem; border: 1px solid rgba(52, 211, 153, 0.35);
  background: var(--success-bg); border-radius: var(--radius); padding: 1.4rem;
}
.result h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.result-meta { color: var(--muted); margin: 0 0 1rem; font-size: 0.95rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.notice { border-radius: 12px; padding: 0.9rem 1.1rem; margin-top: 1rem; font-size: 0.93rem; }
.notice-error { background: var(--danger-bg); border: 1px solid rgba(248, 113, 113, 0.4); color: #fecaca; }
.privacy-note {
  margin-top: 1.2rem; font-size: 0.88rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 1rem;
}
.privacy-note strong { color: var(--success); }

/* ---------- content sections ---------- */
.content-section { padding: 2.2rem 0; }
.content-section h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0 0 1rem; }
.content-section p { color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 0.9rem; margin: 1.4rem 0 0; }
.steps li {
  counter-increment: step; position: relative; padding: 1rem 1rem 1rem 3.4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1rem;
  width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  border-radius: 50%; font-weight: 800; font-size: 0.9rem; color: #fff;
  background: linear-gradient(135deg, var(--violet-500), var(--orange-500));
}
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem; margin-top: 1.4rem; }
.why-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.why-item h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.why-item p { margin: 0; font-size: 0.93rem; }
.limits-list { color: var(--muted); }
.limits-list li { margin-bottom: 0.5rem; }

/* ---------- compare table ---------- */
.compare-table-wrap { overflow-x: auto; margin-top: 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.compare-table th, .compare-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: rgba(139, 92, 246, 0.12); font-weight: 700; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .us { background: rgba(52, 211, 153, 0.06); font-weight: 700; }
.yes { color: var(--success); font-weight: 700; }
.no { color: var(--danger); }

/* ---------- FAQ ---------- */
.faq { margin-top: 1.2rem; display: grid; gap: 0.7rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.2rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: 0.9rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--violet-400); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; }

/* ---------- related tools ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; margin-top: 1.2rem; }
.related-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; transition: transform 0.15s var(--ease-out), border-color 0.15s;
}
.related-card:hover { transform: translateY(-3px); border-color: var(--violet-400); }
.related-card h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.related-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0; color: var(--faint); font-size: 0.88rem; }
.footer-tech { margin-top: 0.6rem; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .hero { padding: 2rem 0 1.4rem; }
  .tool-card { padding: 1.1rem; border-radius: 18px; }
  .dropzone { padding: 1.8rem 1rem; }
  .queue-item { gap: 0.6rem; padding: 0.6rem; }
  .action-row .btn { flex: 1 1 100%; }
  .steps li { padding-left: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
/* ============================================================
   REFERENCE PREMIUM SYSTEM — unified 2026-10-12
   Shared blocks appended to every page build so all six pages
   run on the homepage-premium tokens and behaviors:
   3D tilt target, [hidden] correctness, overflow-x guard,
   hub-card styles, entrance keyframes.
   Page-specific selectors above are untouched.
   ============================================================ */

/* ---------- 3D tilt: tilt-snippet.js adds .tilt-3d to .tool-card ---------- */
.tilt-3d { transform-style: preserve-3d; will-change: transform; transition: transform 0.18s ease-out; }
.hero { perspective: 1200px; }

/* ---------- the `hidden` attribute must win over any author `display`
   (e.g. .btn's inline-flex). Without this, [hidden] buttons stay visible. ---------- */
[hidden] { display: none !important; }

/* ---------- overflow-x guard ---------- */
body { overflow-x: hidden; }
html, body { overflow-x: clip; }

/* ---------- tilt fix: a finished entrance animation with fill "both"
   keeps overriding the JS-driven inline transform (animations beat
   inline styles). `backwards` keeps the delay-state but releases the
   element once the entrance completes, so tilt keeps working. ---------- */
.tool-card { animation-fill-mode: backwards; }

/* ---------- tools hub / related-tools cards (reference hub-card styles) ---------- */
.tools-hub { margin: 40px 0; }
.tools-hub > h2 { font-size: 1.45rem; margin: 0 0 6px; letter-spacing: -0.02em; }
.hub-sub { color: var(--muted); margin: 0 0 22px; max-width: 38rem; }
.hub-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.hub-card {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  text-decoration: none; color: var(--ink);
  transform-style: preserve-3d;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.hub-card:hover { transform: translateY(-4px) translateZ(12px); border-color: rgba(139, 92, 246, 0.5); box-shadow: var(--shadow-lift); }
.hub-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.hub-card:active { transform: translateY(-1px) translateZ(4px) scale(0.99); }
.hub-name { font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.hub-card:hover .hub-name { color: var(--violet-400); }
.hub-desc { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.55; }
.hub-lang {
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
  padding: 2px 10px; border-radius: 999px; border: 1px solid transparent;
}
.hub-lang-id { color: var(--success); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.hub-lang-es { color: var(--warning); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.hub-lang-tr { color: #93c5fd; border-color: rgba(96, 165, 250, 0.35); background: rgba(96, 165, 250, 0.08); }
@media (min-width: 640px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- keyframe entrance animations (reference motion language) ---------- */
@keyframes float-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) rotateX(6deg); } to { opacity: 1; transform: none; } }
.hero h1 { animation: float-in 0.7s var(--ease-out) both; }
.hero .lede { animation: float-in 0.7s var(--ease-out) 0.08s both; }
/* `backwards` (not `both`): after the entrance completes the element is
   released so the JS 3D-tilt transform keeps working (see tilt fix above). */
.tool-card { animation: card-in 0.8s var(--ease-out) 0.1s backwards; }
