/* NO-DO.DEV — hub corporativo. Paleta y tipografia alineadas al sistema de
   diseno real de TRACEZ (apps/web/style.css): mismo stack de fuentes
   self-hosted (Space Grotesk + JetBrains Mono) y mismas variables de color
   base, con acentos por producto (teal=TRACEZ, cian=GRIMZ, violeta=IA/hub). */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/space-grotesk-400.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400.woff2) format("woff2");
}

:root {
  --bg: #0b0f19;
  --bg2: #10151f;
  --surface: #0d1220;
  --panel: #131a26;
  --card-top: #141b28;
  --line: #1e2836;
  --btn-bg: #1a2331;

  --text: #d6e0ee;
  --muted: #6b7a90;
  --ink: #ffffff;

  --accent-tracez: #4fd1c5;
  --accent-tracez-ink: #04141a;
  --accent-grimz: #22d3ee;
  --accent-grimz-ink: #051b1f;
  --accent-ai: #a78bfa;
  --accent-ai-ink: #1a1230;
  --accent-ok: #6bcb77;
  --accent-alert: #ffb020;

  --mono: "JetBrains Mono", "Fira Code", ui-monospace, Menlo, monospace;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, ui-sans-serif, sans-serif;
  --disp: "Space Grotesk", var(--sans);

  --radius: 12px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 500px at 88% -8%, rgba(167, 139, 250, 0.10), transparent 60%),
                     radial-gradient(700px 420px at -5% 10%, rgba(79, 209, 197, 0.06), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

::selection { background: rgba(167, 139, 250, .32); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #24303f transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }

a { color: var(--accent-ai); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ---------- Header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(11,15,25,.92), rgba(11,15,25,.78));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
#site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo {
  font-family: var(--disp); font-weight: 700; letter-spacing: 1px;
  font-size: 18px; color: var(--ink);
}
.badge-ai {
  display: inline-block; font-family: var(--mono); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  padding: 3px 8px; border-radius: 999px;
  color: var(--accent-ai); border: 1px solid var(--accent-ai);
  background: rgba(167, 139, 250, 0.12);
}
#site-nav { display: flex; align-items: center; gap: 4px; }
#site-nav a {
  color: var(--muted); font-size: 13px; padding: 8px 12px; border-radius: 7px;
  transition: .15s;
}
#site-nav a:hover { color: var(--ink); background: var(--btn-bg); text-decoration: none; }
.btn {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--btn-bg); color: var(--text); cursor: pointer;
  transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--accent-ai); color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent-ai); border-color: var(--accent-ai); color: var(--accent-ai-ink);
}
.btn-primary:hover { filter: brightness(1.08); color: var(--accent-ai-ink); }
.btn-ghost { background: transparent; }
.btn-cyan { border-color: var(--accent-grimz); color: var(--accent-grimz); background: rgba(34,211,238,.08); }
.btn-cyan:hover { background: var(--accent-grimz); color: var(--accent-grimz-ink); }
.btn-teal { border-color: var(--accent-tracez); color: var(--accent-tracez); background: rgba(79,209,197,.08); }
.btn-teal:hover { background: var(--accent-tracez); color: var(--accent-tracez-ink); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  border-radius: 8px; width: 38px; height: 38px; color: var(--text); cursor: pointer;
}

/* ---------- Hero ---------- */
#hero { padding: 96px 0 72px; overflow: hidden; }
#hero-canvas {
  position: absolute; inset: 0; z-index: 0; opacity: .55;
  pointer-events: none;
}
#hero .wrap { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-ai); margin-bottom: 18px;
}
h1.hero-title {
  font-family: var(--disp); font-weight: 700; letter-spacing: -.5px;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 22px;
  color: var(--ink);
}
h1.hero-title .grad {
  background: linear-gradient(95deg, var(--accent-ai), var(--accent-tracez) 55%, var(--accent-grimz));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 640px; margin: 0 auto 36px; color: var(--muted);
  font-size: 16px; line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { padding: 13px 24px; font-size: 14px; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 {
  font-family: var(--disp); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; color: var(--ink);
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Product cards ---------- */
#ecosistema { padding: 64px 0; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-card {
  background: linear-gradient(180deg, var(--card-top), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 18px;
  transition: border-color .2s, transform .2s;
}
.product-card:hover { transform: translateY(-3px); }
.product-card.tracez:hover { border-color: var(--accent-tracez); }
.product-card.grimz:hover { border-color: var(--accent-grimz); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-top h3 {
  font-family: var(--disp); font-size: 22px; margin: 0; letter-spacing: .5px; color: var(--ink);
}
.status-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.status-badge.beta { color: var(--accent-tracez); border: 1px solid var(--accent-tracez); background: rgba(79,209,197,.10); }
.status-badge.active { color: var(--accent-grimz); border: 1px solid var(--accent-grimz); background: rgba(34,211,238,.10); }
.product-card p.desc { color: var(--muted); margin: 0; font-size: 14px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.feature-list li {
  font-family: var(--mono); font-size: 12.5px; color: var(--text);
  display: flex; align-items: center; gap: 9px;
}
.feature-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.product-card.tracez .feature-list li::before { background: var(--accent-tracez); }
.product-card.grimz .feature-list li::before { background: var(--accent-grimz); }
.product-card .card-cta { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Capability matrix ---------- */
#matrix { padding: 64px 0; }
.matrix-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.matrix-cell {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: left;
}
.matrix-cell .mi {
  width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(167, 139, 250, .12); color: var(--accent-ai); margin-bottom: 14px;
}
.matrix-cell h4 { font-family: var(--disp); font-size: 15px; margin: 0 0 8px; color: var(--ink); }
.matrix-cell p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Footer ---------- */
#site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
#site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Contact modal ---------- */
#contact-modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(5, 8, 13, .72); backdrop-filter: blur(3px);
}
#contact-modal.open { display: flex; }
#contact-modal .modal-box {
  width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; position: relative;
}
#contact-modal h3 { font-family: var(--disp); margin: 0 0 6px; color: var(--ink); font-size: 20px; }
#contact-modal .modal-sub { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
#contact-modal label {
  display: block; font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
#contact-modal .field { margin-bottom: 16px; }
#contact-modal input, #contact-modal textarea {
  width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font-family: var(--sans); font-size: 14px;
}
#contact-modal textarea { resize: vertical; min-height: 90px; }
#contact-modal input:focus, #contact-modal textarea:focus { outline: none; border-color: var(--accent-ai); }
#contact-modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.modal-close {
  position: absolute; top: 18px; right: 18px; background: transparent; border: none;
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
  .matrix-grid { grid-template-columns: 1fr 1fr; }
  #site-nav { position: fixed; top: 64px; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 10px 20px; display: none; gap: 2px; }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 12px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  #site-header .btn-primary.desktop-only { display: none; }
}
@media (max-width: 560px) {
  .matrix-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  #site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
