/* ORVEXA website. Brand tokens are the same as the console mark. */
:root {
  --night: #070b1a;
  --ink: #0b1020;
  --ink-2: #1a2238;
  --muted: #6b7690;
  --paper: #f7f8fc;
  --white: #fff;
  --line: #e4e8f2;
  --indigo: #4c65e9;
  --peri: #7892ff;
  --teal: #20b8c6;
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, #7892ff 0%, #4c65e9 55%, #20b8c6 100%);
  --radius: 18px;
  --head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
[data-lang="es"] [lang="en"], [data-lang="en"] [lang="es"] { display: none !important; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; padding: 8px 12px; background: #fff; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(7, 11, 26, .88); backdrop-filter: blur(14px); border-bottom: 1px solid #ffffff14; }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.brand img { display: block; height: 36px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: #c9d2ea; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; }
.lang { padding: 6px 12px; border: 1px solid #ffffff2e; border-radius: 99px; background: transparent; color: #e6ebf8; font: 600 13px var(--body); cursor: pointer; }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 12px; background: var(--grad); color: #fff; font: 600 15px var(--body); text-decoration: none; box-shadow: 0 10px 30px -10px #4c65e9aa; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px #4c65e9cc; }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; box-shadow: none; opacity: .9; }
.top .btn-ghost { color: #fff; border-color: #ffffff3d; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
@media (max-width: 520px) {
  .top .wrap { gap: 10px; }
  .brand img { height: 28px; }
  .lang { padding: 5px 9px; font-size: 12px; }
  .top .btn-ghost { padding: 7px 10px; font-size: 13px; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 110px; background: var(--night); color: #fff; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), #4c65e933, transparent 60%),
  radial-gradient(800px 500px at 10% 100%, #20b8c622, transparent 70%); transition: background .2s; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .orbit { max-width: 380px; justify-self: center; } }
@media (max-width: 600px) {
  .hero { padding: 64px 0 80px; }
  .orbit { width: 78%; margin-top: 20px; }
  .node { font-size: 12px; padding: 6px 10px; }
  .n2 { left: 80%; } .n5 { left: 18%; } .n3 { left: 74%; } .n4 { left: 26%; }
}
.eyebrow { margin: 0 0 14px; color: var(--teal); font: 600 13px var(--body); letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; }
h1 { margin: 0 0 20px; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; font-weight: 700; }
h1 em, h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 54ch; margin: 0 0 30px; color: #b9c3dd; font-size: 19px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.badges li { padding: 6px 12px; border: 1px solid #ffffff1f; border-radius: 99px; color: #c9d2ea; font-size: 13px; }

/* Orbit visual */
.orbit { position: relative; aspect-ratio: 1; width: 100%; }
.ring { position: absolute; inset: 0; margin: auto; border: 1px solid #7892ff40; border-radius: 50%; }
.r1 { width: 100%; height: 100%; animation: spin 60s linear infinite; border-style: dashed; }
.r2 { width: 70%; height: 70%; border-color: #20b8c655; animation: spin 40s linear infinite reverse; }
.r3 { width: 40%; height: 40%; border-color: #8b5cf655; }
.core { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 26%; height: 26%; border-radius: 50%; background: radial-gradient(circle, #1b2b66, #0b1020); box-shadow: 0 0 60px #4c65e966; }
.core img { width: 60%; }
.node { position: absolute; padding: 7px 12px; border: 1px solid #ffffff26; border-radius: 99px; background: #0f1630d9; color: #e6ebf8; font-size: 13px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -50%); animation: float 6s ease-in-out infinite; }
.node::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); vertical-align: 1px; }
.n1 { left: 50%; top: 2%; } .n2 { left: 96%; top: 38%; animation-delay: -1s; } .n3 { left: 80%; top: 90%; animation-delay: -2s; }
.n4 { left: 18%; top: 88%; animation-delay: -3s; } .n4::before { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.n5 { left: 4%; top: 36%; animation-delay: -4s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { margin-top: -8px; } }

/* Sections */
.section { padding: 100px 0; }
.section h2 { max-width: 20ch; margin: 0 0 40px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.section.dark { background: var(--night); color: #fff; }
.section.soft { background: #eef1fa; }
.muted { color: #a9b4d0; }
.features { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .25s, box-shadow .25s, border-color .25s; transform-style: preserve-3d; }
.feature:hover { border-color: #c9d2f5; box-shadow: 0 24px 50px -28px #4c65e980; }
.feature .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 20px; }
.feature h3 { margin: 18px 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* AI team demo */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.prompts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.prompt { padding: 10px 14px; border: 1px solid #ffffff2e; border-radius: 12px; background: #ffffff0a; color: #fff; font: 500 14px var(--body); cursor: pointer; transition: background .2s, border-color .2s; }
.prompt:hover, .prompt.active { border-color: var(--peri); background: #4c65e92e; }
.office { position: relative; padding: 26px; border: 1px solid #ffffff1a; border-radius: 22px; background: radial-gradient(circle at 50% 30%, #1b3a8a55, transparent 70%), #0b1226; }
.hub { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 20px; padding: 10px 16px; width: max-content; border: 1px solid #4c65e980; border-radius: 99px; color: #9fc0ff; font: 700 12px var(--body); letter-spacing: .2em; }
.office.working .hub { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 30px #4c65e9aa; } }
.agents { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.agents li { display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 14px; background: #0f1733; }
.agents .av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; font: 700 14px var(--body); font-style: normal; box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); }
.agents b { color: #fff; font-size: 14px; }
.agents span { color: #c9d2ea; font-size: 13px; font-weight: 600; }
.agents i { justify-self: end; max-width: 100%; color: #e6ebf8; font-size: 13px; font-style: normal; text-align: right; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s; }
.agents i.on { opacity: 1; transform: none; }
.office.working .agents i:empty::after { content: "···"; color: var(--c); animation: blink 1s infinite; }
.office.working .agents i { opacity: 1; }
@keyframes blink { 50% { opacity: .2; } }
.office-status { margin: 14px 0 0; color: #8b9bd0; font-size: 13px; }

/* Steps and trust */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 26px; border-top: 2px solid var(--ink); }
.steps b { font: 700 14px var(--head); color: var(--indigo); }
.steps h3 { margin: 10px 0 6px; font-size: 21px; }
.steps p { margin: 0; color: var(--muted); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }
.trust div { padding: 22px; border-radius: var(--radius); background: var(--white); }
.trust h3 { margin: 0 0 6px; font-size: 18px; }
.trust p { margin: 0; color: var(--muted); font-size: 15px; }

/* CTA and footer */
.cta { padding: 90px 0; background: var(--grad); color: #fff; }
.cta h2 { max-width: 22ch; margin: 0 0 26px; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; }
.cta .btn { background: #fff; color: var(--ink); }
.cta .btn-ghost { background: transparent; color: #fff; }
.foot { padding: 44px 0; background: var(--night); color: #9aa6c4; font-size: 14px; }
.foot img { height: 30px; width: auto; }
.foot .fine { color: #6b7690; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring, .node, .office.working .hub { animation: none; }
}
