/* ==========================================================================
   Trexnology Translate — same identity as trexnology.com (graphite + amber)
   Fonts: Unbounded (headings) · Figtree (body) · JetBrains Mono (data)
   ========================================================================== */

:root {
  --bg: #0A0E14;
  --bg-2: #0E131B;
  --panel: #121923;
  --panel-2: #161E2A;
  --line: #1F2938;
  --line-2: #2A3646;
  --text: #E8ECF1;
  --muted: #9AA5B4;
  --dim: #6B7684;
  --amber: #F5A623;
  --amber-2: #FFC55C;
  --amber-ink: #1A1206;
  --live: #3DDC97;

  --font-display: "Unbounded", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

a { color: var(--amber-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.2; font-weight: 600; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.amber { color: var(--amber); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-intro { color: var(--muted); font-size: 18px; margin-top: 14px; }
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; color: var(--amber); margin: 0 0 12px; letter-spacing: .02em; }
.note { color: var(--dim); font-size: 14px; margin-top: 18px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--amber-ink); padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 16px; line-height: 1.2;
  border: 1px solid var(--line-2); color: var(--text); background: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; border-color: var(--amber); }
.btn-primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-2); border-color: var(--amber-2); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,20,.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand small { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--amber); border: 1px solid var(--amber); border-radius: 3px; padding: 1px 6px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav .btn { color: var(--amber-ink); }
.lang { font-family: var(--font-mono); font-size: 13px; color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 9px; }
.lang:hover { color: var(--text); border-color: var(--amber); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 8px; box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulse 2s infinite; vertical-align: 1px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.55); } 70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); margin: 22px 0 30px; max-width: 620px; }
.lead strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 16px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 6vw, 64px); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.stat { padding: 20px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--font-mono); font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; color: var(--amber); }
.stat span { color: var(--muted); font-size: 14.5px; line-height: 1.45; display: block; margin-top: 4px; }

/* Flow diagram in the hero */
.flow { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: 20px; }
.flow-node { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel-2); padding: 14px 16px; }
.flow-node .who { font-family: var(--font-mono); font-size: 12px; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; }
.flow-node p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; }
.flow-node.out { border-color: rgba(245,166,35,.45); }
.flow-arrow { display: flex; align-items: center; gap: 10px; padding: 10px 6px; font-family: var(--font-mono); font-size: 12px; color: var(--amber); }
.flow-arrow::before { content: ""; width: 2px; height: 26px; background: linear-gradient(var(--line-2), var(--amber)); margin-left: 14px; }

/* ---------- Demo ---------- */
.pairs { display: grid; gap: 18px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: stretch; }
.post { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 16px 18px; }
.post.es { border-color: rgba(245,166,35,.35); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 500; flex: none; }
.avatar.en { background: #1d3557; color: #cfe3ff; }
.avatar.es { background: var(--amber); color: var(--amber-ink); }
.post-head b { font-size: 14.5px; font-weight: 600; display: block; line-height: 1.2; }
.post-head span { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); }
.post p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.pair-arrow { display: grid; place-items: center; color: var(--amber); font-family: var(--font-mono); font-size: 20px; }
.demo-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.demo-cta .note { margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: 13px; color: var(--amber); display: block; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { border-top: 1px solid var(--line-2); padding-top: 18px; }
.feature p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }
.nets { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--muted); font-size: 15.5px; }
.chip { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; background: var(--panel); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 18px; align-items: start; }
.price-card { border: 1px solid rgba(245,166,35,.5); border-radius: var(--r-lg); background: var(--panel); padding: clamp(22px, 3vw, 32px); }
.badge { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--amber-ink); background: var(--amber); border-radius: 3px; padding: 3px 8px; margin-bottom: 16px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 60px); line-height: 1; }
.price small { font-family: var(--font-body); font-size: 17px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.price-what { margin: 16px 0 18px; font-size: 17px; }
.price-extra { border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); }
.price-extra b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
.checks { margin: 18px 0 24px; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--live); border-bottom: 2px solid var(--live); transform: rotate(-45deg); }
.price-card .btn { width: 100%; }
.examples { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.examples h3 { padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 16px; }
.ex { display: flex; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.ex:last-child { border-bottom: 0; }
.ex span { color: var(--muted); font-size: 15.5px; }
.ex b { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--amber); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-box { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--panel); padding: clamp(26px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: center; }
.contact-box p { color: var(--muted); margin: 14px 0 0; }
.contact-links { display: grid; gap: 10px; }
.contact-links .btn { justify-content: flex-start; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-foot a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .price-grid, .contact-box { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav a.nav-link { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair-arrow { transform: rotate(90deg); height: 18px; }
  .brand small { display: none; }
  .site-nav { gap: 10px; }
  .cta-row .btn { flex: 1 1 100%; }
  .ex { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  .btn { transition: none; }
}
