:root {
  --piedra-950: #121214;
  --piedra-900: #1a1a1d;
  --piedra-850: #212125;
  --piedra-800: #2a2a2f;
  --piedra-700: #3d3d44;
  --piedra-600: #52525b;
  --piedra-500: #6b6b76;
  --atlantico-300: #7dd3e8;
  --atlantico-400: #38bcd8;
  --atlantico-500: #0891b2;
  --lava-400: #f87171;
  --lava-500: #dc2626;
  --sol-50: #fffbeb;
  --sol-100: #fef3c7;
  --sol-200: #fde68a;
  --sol-300: #fcd34d;
  --sol-400: #fbbf24;
  --sol-500: #f59e0b;
  --sol-600: #d97706;
  --arena-50: #fafaf9;
  --arena-100: #f5f5f4;
  --arena-200: #e7e5e4;
  --arena-300: #d6d3d1;
  --arena-400: #a8a29e;
  --arena-500: #78716c;
  --arena-600: #57534e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 5rem;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--piedra-950);
  color: var(--arena-100);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--sol-400); text-decoration: none; transition: color .15s; }
a:hover { color: var(--sol-500); }

code {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: .875em;
  background: var(--piedra-800);
  padding: .15em .4em;
  border-radius: 6px;
  color: var(--sol-300);
}

pre {
  background: var(--piedra-900);
  border: 1px solid var(--piedra-700);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: .875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

pre code { background: none; padding: 0; font-size: inherit; color: var(--arena-200); }

img { max-width: 100%; height: auto; }

::selection { background: var(--sol-500); color: var(--piedra-950); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--piedra-700); border-radius: 999px; }

/* ---------- LAYOUT ---------- */

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 860px; }

/* ---------- NAV ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(18,18,20,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61,61,68,.3);
  transition: background .25s, box-shadow .25s;
}
.nav.scrolled { background: rgba(18,18,20,.95); box-shadow: 0 1px 24px rgba(0,0,0,.4); }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.nav__logo {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.125rem; color: var(--arena-50); letter-spacing: -.025em;
}
.nav__logo svg { width: 28px; height: 28px; }

.nav__links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav__link {
  color: var(--arena-400); font-size: .875rem; font-weight: 500;
  padding: .4rem .75rem; border-radius: 8px; transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--arena-100); background: rgba(61,61,68,.3); }
.nav__link--active { color: var(--sol-400); }

.nav__cta {
  display: inline-flex; align-items: center; gap: .25rem;
  background: var(--sol-500); color: var(--piedra-950);
  font-weight: 600; font-size: .8125rem; padding: .5rem 1rem;
  border-radius: 10px; margin-left: .5rem; transition: background .15s, transform .15s;
}
.nav__cta:hover { background: var(--sol-600); color: var(--piedra-950); transform: translateY(-1px); }
.nav__cta svg { width: 16px; height: 16px; }

.nav__toggle { display: none; background: none; border: none; color: var(--arena-300); cursor: pointer; padding: .5rem; }
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(18,18,20,.98);
    backdrop-filter: blur(16px); border-bottom: 1px solid rgba(61,61,68,.3);
    padding: 1rem; gap: .25rem;
  }
  .nav__links.open { display: flex; }
  .nav__link { padding: .75rem 1rem; width: 100%; }
  .nav__cta { margin: .5rem 0 0 0; justify-content: center; }
  .nav__toggle { display: block; }
}

/* ---------- HERO ---------- */

.hero {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh; padding: 8rem 1.5rem 4rem; text-align: center; overflow: hidden;
}
.hero__orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -55%);
  width: 440px; height: 440px; pointer-events: none; z-index: 0; opacity: .35;
}
.hero__content { position: relative; z-index: 1; max-width: 720px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .25rem;
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2);
  color: var(--sol-400); font-size: .8125rem; font-weight: 500;
  padding: .35rem .85rem; border-radius: 999px; margin-bottom: 2rem;
  animation: fadeInUp .6s cubic-bezier(.16,1,.3,1) both;
}

.hero__title {
  font-size: clamp(2.5rem,6vw,4rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -.035em; margin-bottom: 1.5rem;
  animation: fadeInUp .6s cubic-bezier(.16,1,.3,1) .1s both;
}
.hero__title span {
  background: linear-gradient(135deg, var(--sol-300), var(--sol-500));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.05rem,2.2vw,1.25rem); color: var(--arena-300);
  line-height: 1.7; max-width: 600px; margin: 0 auto 2rem;
  animation: fadeInUp .6s cubic-bezier(.16,1,.3,1) .2s both;
}

.hero__actions {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  animation: fadeInUp .6s cubic-bezier(.16,1,.3,1) .3s both;
}

.hero__terminal { margin-top: 3rem; animation: fadeInUp .6s cubic-bezier(.16,1,.3,1) .5s both; }

.terminal {
  background: var(--piedra-900); border: 1px solid var(--piedra-700);
  border-radius: 16px; overflow: hidden; text-align: left;
  max-width: 620px; margin: 0 auto; box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.terminal__bar {
  display: flex; align-items: center; gap: 6px; padding: .75rem 1rem;
  background: var(--piedra-850); border-bottom: 1px solid rgba(61,61,68,.3);
}
.terminal__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--piedra-700); }
.terminal__body {
  padding: 1rem 1.25rem; font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: .8125rem; line-height: 1.8; color: var(--arena-300);
}
.terminal__prompt { color: var(--sol-400); }
.terminal__comment { color: var(--piedra-500); }
.terminal__url { color: var(--atlantico-400); }

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9375rem; padding: .7rem 1.5rem;
  border-radius: 10px; border: none; cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn--primary { background: var(--sol-500); color: var(--piedra-950); }
.btn--primary:hover { background: var(--sol-600); color: var(--piedra-950); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,.3); }
.btn--ghost { background: transparent; color: var(--arena-300); border: 1px solid var(--piedra-700); }
.btn--ghost:hover { color: var(--arena-100); background: rgba(61,61,68,.2); border-color: var(--piedra-600); }
.btn svg { width: 18px; height: 18px; }

/* ---------- SECTIONS ---------- */

section { padding: 6rem 0; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-label {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--sol-500); margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15; margin-bottom: 1rem;
}
.section-desc { font-size: 1.0625rem; color: var(--arena-400); line-height: 1.7; }

/* ---------- FEATURE CARDS ---------- */

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }

.feature-card {
  background: var(--piedra-900); border: 1px solid rgba(61,61,68,.4);
  border-radius: 16px; padding: 2rem;
  transition: border-color .25s, transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.feature-card:hover { border-color: rgba(245,158,11,.2); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.2); }

.feature-card__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.25rem;
}
.feature-card__icon--sol { background: rgba(245,158,11,.12); color: var(--sol-400); }
.feature-card__icon--atlantico { background: rgba(56,188,216,.12); color: var(--atlantico-400); }
.feature-card__icon--lava { background: rgba(248,113,113,.12); color: var(--lava-400); }
.feature-card__icon--purple { background: rgba(167,139,250,.12); color: #a78bfa; }
.feature-card__icon--green { background: rgba(74,222,128,.12); color: #4ade80; }
.feature-card__icon--pink { background: rgba(244,114,182,.12); color: #f472b6; }

.feature-card__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; color: var(--arena-50); }
.feature-card__desc { font-size: .875rem; color: var(--arena-400); line-height: 1.65; }

.feature-card__list { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.feature-card__list li {
  font-size: .8125rem; color: var(--arena-300); padding-left: 1.25rem; position: relative;
}
.feature-card__list li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--sol-500);
}

/* ---------- SCREENSHOTS ---------- */

.screenshots { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.screenshot {
  border-radius: 16px; border: 1px solid rgba(61,61,68,.4);
  box-shadow: 0 4px 24px rgba(0,0,0,.3); cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.screenshot:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 48px rgba(0,0,0,.4); }
.screenshot--phone { width: 200px; border-radius: 20px; }
.screenshot--desktop { width: 420px; }

@media (max-width: 900px) {
  .screenshot--desktop { width: 100%; max-width: 420px; }
}

/* ---------- GALLERY PHONES ---------- */

.gallery-phones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.gallery-phones__item { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.gallery-phones__item .screenshot--phone { width: 100%; max-width: 200px; }
.gallery-phones__label { font-size: .75rem; color: var(--arena-500); font-weight: 500; text-align: center; }

@media (max-width: 900px) {
  .gallery-phones { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-phones { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ---------- GALLERY DESKTOP ---------- */

.gallery-desktop {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.gallery-desktop--trio { grid-template-columns: repeat(3, 1fr); }
.gallery-desktop__item { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.gallery-desktop__item .screenshot { width: 100%; border-radius: 12px; }
.gallery-desktop__label { font-size: .75rem; color: var(--arena-500); font-weight: 500; text-align: center; }

@media (max-width: 900px) {
  .gallery-desktop--trio { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-desktop { grid-template-columns: 1fr; }
  .gallery-desktop--trio { grid-template-columns: 1fr; }
}

/* ---------- LIGHTBOX ---------- */

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; cursor: zoom-out;
  animation: fadeIn .2s ease;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 92vh; border-radius: 12px;
  box-shadow: 0 8px 48px rgba(0,0,0,.5);
}
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,.1); border: none; color: white;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transition: background .15s;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }

/* ---------- PROVIDERS ---------- */

.providers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.provider-card {
  background: var(--piedra-900); border: 1px solid rgba(61,61,68,.4);
  border-radius: 16px; padding: 1.25rem; text-align: center;
  transition: border-color .25s, transform .25s cubic-bezier(.16,1,.3,1);
}
.provider-card:hover { border-color: rgba(245,158,11,.2); transform: translateY(-2px); }
.provider-card__name { font-weight: 700; font-size: .9375rem; color: var(--arena-50); margin-bottom: .25rem; }
.provider-card__type { font-size: .75rem; color: var(--arena-500); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* ---------- CLIENTS ---------- */

.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.client-card {
  background: var(--piedra-900); border: 1px solid rgba(61,61,68,.4);
  border-radius: 16px; padding: 1.25rem; transition: border-color .25s;
}
.client-card:hover { border-color: rgba(61,61,68,.7); }
.client-card__name { font-weight: 700; font-size: .9375rem; color: var(--arena-50); }
.client-card__status { display: inline-flex; align-items: center; gap: 4px; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: .25rem; }
.client-card__status--ready { color: #4ade80; }
.client-card__status--soon { color: var(--arena-500); }
.client-card__desc { font-size: .8125rem; color: var(--arena-400); margin-top: 2px; line-height: 1.5; }

/* ---------- QUICK START ---------- */

.quickstart-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.quickstart-card {
  background: var(--piedra-900); border: 1px solid rgba(61,61,68,.4);
  border-radius: 16px; padding: 2rem;
}
.quickstart-card__tag {
  display: inline-block; font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: .25rem .6rem;
  border-radius: 6px; margin-bottom: 1rem;
}
.quickstart-card__tag--local { background: rgba(74,222,128,.1); color: #4ade80; }
.quickstart-card__tag--cloud { background: rgba(167,139,250,.1); color: #a78bfa; }
.quickstart-card__title { font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; color: var(--arena-50); }
.quickstart-card__desc { font-size: .875rem; color: var(--arena-400); margin-bottom: 1.5rem; line-height: 1.6; }
.quickstart-card__note { font-size: .8125rem; color: var(--arena-500); line-height: 1.5; }

.quickstart-oneliner {
  background: var(--piedra-900); border: 1px solid rgba(245,158,11,.25);
  border-radius: 16px; padding: 2rem; margin-bottom: 2rem; text-align: center;
}
.quickstart-oneliner pre {
  background: var(--piedra-950); border-radius: 10px; padding: 1.25rem 1.5rem;
  margin: 1rem auto 0; max-width: 640px; text-align: left; overflow-x: auto;
}
.quickstart-oneliner code { font-size: .9375rem; }
.quickstart-oneliner__desc { font-size: .875rem; color: var(--arena-400); margin-bottom: .25rem; }
.quickstart-oneliner__flags { font-size: .8125rem; color: var(--arena-500); margin-top: 1rem; line-height: 1.7; }
.quickstart-oneliner__flags code { font-size: .8125rem; background: rgba(255,255,255,.06); padding: .15em .4em; border-radius: 4px; }
.quickstart-separator { font-size: .8125rem; color: var(--arena-500); text-transform: uppercase; letter-spacing: .1em; text-align: center; margin-bottom: 1.5rem; }

/* ---------- ARCHITECTURE ---------- */

.architecture {
  background: var(--piedra-900);
  border-top: 1px solid rgba(61,61,68,.3);
  border-bottom: 1px solid rgba(61,61,68,.3);
}
.architecture__img { display: block; max-width: 900px; margin: 0 auto; }

/* ---------- FOOTER ---------- */

.footer { border-top: 1px solid rgba(61,61,68,.3); padding: 2rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__brand { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--arena-400); font-size: .875rem; }
.footer__brand svg { width: 20px; height: 20px; }
.footer__links { display: flex; gap: 1.5rem; list-style: none; }
.footer__links a { color: var(--arena-500); font-size: .8125rem; transition: color .15s; }
.footer__links a:hover { color: var(--arena-200); }

/* ---------- DOCS LAYOUT ---------- */

.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; padding-top: 6rem; min-height: 100vh; }

.docs-sidebar {
  position: sticky; top: 5rem; height: calc(100vh - 5rem);
  overflow-y: auto; padding: 1.5rem 0;
}
.docs-sidebar__group { margin-bottom: 2rem; }
.docs-sidebar__label {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--arena-500); padding: 0 1rem; margin-bottom: .5rem;
}
.docs-sidebar__link {
  display: block; font-size: .8125rem; color: var(--arena-400);
  padding: .4rem 1rem; border-radius: 8px; border-left: 2px solid transparent;
  transition: all .15s;
}
.docs-sidebar__link:hover { color: var(--arena-200); background: rgba(61,61,68,.2); }
.docs-sidebar__link--active { color: var(--sol-400); border-left-color: var(--sol-500); background: rgba(245,158,11,.06); }

.docs-content { padding: 1.5rem 0 6rem; max-width: 760px; }
.docs-content h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.docs-content h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em;
  margin-top: 3rem; margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid rgba(61,61,68,.3);
}
.docs-content h3 { font-size: 1.125rem; font-weight: 700; margin-top: 2rem; margin-bottom: .5rem; color: var(--arena-100); }
.docs-content p { margin-bottom: 1rem; color: var(--arena-300); line-height: 1.75; }
.docs-content ul, .docs-content ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--arena-300); }
.docs-content li { margin-bottom: .25rem; line-height: 1.7; }

.docs-content .screenshots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.docs-content .screenshots .screenshot { width: 100%; }
.docs-content .screenshots--single { grid-template-columns: 1fr; max-width: 480px; }

@media (max-width: 600px) {
  .docs-content .screenshots { grid-template-columns: 1fr; }
}

.docs-content table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; font-size: .875rem; }
.docs-content th {
  text-align: left; font-weight: 600; color: var(--arena-200);
  padding: .75rem 1rem; background: var(--piedra-850); border-bottom: 1px solid var(--piedra-700);
}
.docs-content th:first-child { border-radius: 12px 0 0 0; }
.docs-content th:last-child { border-radius: 0 12px 0 0; }
.docs-content td { padding: .75rem 1rem; border-bottom: 1px solid rgba(61,61,68,.3); color: var(--arena-300); }

.docs-callout {
  background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.15);
  border-radius: 12px; padding: 1rem 1.5rem; margin-bottom: 2rem;
  font-size: .875rem; color: var(--arena-300); line-height: 1.65;
}
.docs-callout--info { background: rgba(56,188,216,.06); border-color: rgba(56,188,216,.15); }
.docs-callout strong { color: var(--sol-400); }
.docs-callout--info strong { color: var(--atlantico-400); }

.docs-sidebar-toggle { display: none; margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: static; height: auto; display: none;
    background: var(--piedra-900); border: 1px solid rgba(61,61,68,.4);
    border-radius: 16px; padding: 1rem; margin-bottom: 1.5rem;
  }
  .docs-sidebar.open { display: block; }
  .docs-sidebar-toggle { display: inline-flex !important; }
}

/* ---------- ANIMATIONS ---------- */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger-children > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s cubic-bezier(.16,1,.3,1), transform .4s cubic-bezier(.16,1,.3,1);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: .05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: .1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: .15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: .2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: .25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: .3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: .35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: .4s; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }
