/* ============================================================
   XyberOne — Shared styles
   ============================================================ */

:root {
  --bg-deep: #04071a;
  --bg-base: #050a1f;
  --bg-elev: #0a1230;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  /* Hairlines difuminadas: se desvanecen hacia los extremos (sutil y fino) */
  --hair: rgba(255, 255, 255, 0.11);
  --hair-soft: rgba(255, 255, 255, 0.085);
  --fade-h: linear-gradient(90deg, transparent 0%, var(--hair) 15%, var(--hair) 85%, transparent 100%);
  --fade-v: linear-gradient(180deg, transparent 0%, var(--hair) 15%, var(--hair) 85%, transparent 100%);
  --fade-edge: linear-gradient(90deg, transparent 0%, var(--hair-soft) 8%, var(--hair-soft) 92%, transparent 100%);
  --text: #ffffff;
  --text-dim: #a8b1c7;
  --text-mute: #6b7593;

  /* Accent gradients */
  --grad-blue: linear-gradient(90deg, #2fb3ff 0%, #6c7bff 100%);
  --grad-blue-soft: linear-gradient(180deg, rgba(47,179,255,0.18) 0%, rgba(108,123,255,0.05) 100%);
  --grad-purple: linear-gradient(90deg, #c66bff 0%, #7b3eff 100%);
  --grad-purple-soft: linear-gradient(180deg, rgba(198,107,255,0.20) 0%, rgba(123,62,255,0.04) 100%);

  --accent-blue: #3b9eff;
  --accent-purple: #b06bff;

  --radius-card: 22px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: #03060f; }

body {
  background: linear-gradient(180deg,
    #0b1330 0%,
    #080f28 22%,
    #060b1e 45%,
    #050817 68%,
    #04060f 88%,
    #03050d 100%);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   Logo
   ============================================================ */
.xy-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.xy-logo .x-mark { width: 32px; height: 28px; flex-shrink: 0; }
.xy-logo .word {
  font-family: 'Barlow Condensed', 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
}
/* Official brand lockups (vector) */
.xy-logo .brand-logo { height: 66px; width: auto; display: block; flex-shrink: 0; }
.brand-logo-v { height: 140px; width: auto; display: block; }
.product-card .card-brand { width: 232px; max-width: 80%; height: auto; display: block; margin: 0 auto 22px; }

/* ============================================================
   Top Nav
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 44px;
  background: rgba(4, 7, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--fade-edge);
  pointer-events: none;
}
.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
  font-family: 'Barlow Condensed', 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.site-nav .nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.site-nav .nav-links a:hover { color: var(--accent-blue); }
.site-nav .nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--grad-blue);
  border-radius: 2px;
}
.btn-login {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #fff;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all .2s;
}
.btn-login:hover {
  border-color: var(--accent-blue);
  background: rgba(59,158,255,0.08);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  padding: 16px 42px;
  white-space: nowrap;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.btn-pill.blue {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.45) 0%, transparent 60%),
    linear-gradient(180deg, #4ea8ff 0%, #1a6bff 55%, #2c4fe6 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset;
}
.btn-pill.blue:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.28) inset,
    0 0 22px 2px rgba(59,158,255,0.55),
    0 0 46px 10px rgba(59,158,255,0.40);
}
.btn-pill.purple {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.4) 0%, transparent 60%),
    linear-gradient(180deg, #c277ff 0%, #7b3eff 55%, #4f1ebf 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset;
}
.btn-pill.purple:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.28) inset,
    0 0 22px 2px rgba(176,107,255,0.55),
    0 0 46px 10px rgba(176,107,255,0.40);
}

.btn-pill.sm { padding: 11px 28px; font-size: 12px; }

/* ============================================================
   Headings
   ============================================================ */
.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.headline {
  font-family: 'Barlow Condensed', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0;
}
.headline .grad-blue {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.headline .grad-purple {
  background: linear-gradient(90deg, #c66bff 0%, #5ea7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ============================================================
   Page hero (top of each subpage)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 80px 24px 120px;
  text-align: center;
}
.page-hero .glow {
  position: absolute;
  top: -160px; left: 0; right: 0;
  width: 100%; height: 900px;
  background: radial-gradient(ellipse 60% 100% at center, rgba(59,158,255,0.38) 0%, rgba(59,158,255,0) 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 60%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.page-hero.purple .glow {
  background: radial-gradient(ellipse at center, rgba(176,107,255,0.45) 0%, rgba(176,107,255,0) 60%);
}
.page-hero > * { position: relative; z-index: 1; }

.hero-logo-block { margin: 0 auto 36px; }
.hero-logo-block .x-mark { width: 64px; height: 56px; }
.hero-logo-block .word { font-size: 38px; font-weight: 500; letter-spacing: 0.02em; }
.hero-logo-block .sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--accent-blue);
  margin-top: -4px;
  letter-spacing: 0.04em;
}
.hero-logo-block.purple .sub { color: var(--accent-purple); }
.hero-logo-block .product-name {
  display: block;
  margin-top: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.page-hero .headline {
  font-size: 72px;
  max-width: 1100px;
  margin: 0 auto;
}
.page-hero .copy {
  max-width: 740px;
  margin: 34px auto 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}
.page-hero .cta-row { margin-top: 42px; }

/* ============================================================
   Section: 9-card grid (features)
   ============================================================ */
.features-section {
  padding: 80px 44px 120px;
}
.features-section .intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 64px;
}
.features-section .intro .eyebrow { margin-bottom: 18px; }
.features-section .intro h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.features-section .intro p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  padding: 36px 32px 44px;
  position: relative;
}
/* Divisores difuminados (se desvanecen hacia los extremos) */
.feature-card::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 1px;
  background: var(--fade-v);
  pointer-events: none;
}
.feature-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--fade-h);
  pointer-events: none;
}
.feature-card:nth-child(3n)::after { display: none; }
/* Quitar la primera y última línea horizontal: la primera no existe (no hay borde superior),
   la última fila no lleva línea inferior */
.feature-card:nth-last-child(-n+3)::before { display: none; }
.feature-card .tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 22px;
}
.feature-card .tag .num { color: var(--text-dim); }
.feature-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
  line-height: 1.15;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  padding: 60px 44px 40px;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--fade-edge);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.2fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.footer-grid .logo-col .xy-logo { transform: scale(0.75); transform-origin: left top; margin-top: 6px; }
.footer-grid .contact-col {
  position: relative;
  padding: 6px 32px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 2.2;
}
.footer-grid .contact-col::before,
.footer-grid .contact-col::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--fade-v);
  pointer-events: none;
}
.footer-grid .contact-col::before { left: 0; }
.footer-grid .contact-col::after { right: 0; }
.footer-grid .contact-col .item { display: block; }
.footer-grid .links-col {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-grid .links-col a { color: var(--text); transition: color .2s; }
.footer-grid .links-col a:hover { color: var(--accent-blue); }

/* ============================================================
   Misc
   ============================================================ */
.bg-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 20%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 80% 18%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(1px 1px at 35% 70%, rgba(255,255,255,0.35), transparent 50%),
    radial-gradient(1px 1px at 65% 85%, rgba(255,255,255,0.25), transparent 50%),
    radial-gradient(1px 1px at 25% 55%, rgba(255,255,255,0.2), transparent 50%),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.3), transparent 50%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .features-section .intro h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .contact-col { padding: 0; }
  .footer-grid .contact-col::before,
  .footer-grid .contact-col::after { display: none; }
}

/* ============================================================
   Responsive — mobile menu, hero/typography scaling, dashboards
   ============================================================ */

/* Hamburger button (hidden by default on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: #fff;
  margin-left: auto;
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.site-nav.is-open .nav-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav.is-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* General fluid tweaks */
@media (max-width: 1180px) {
  .features-section { padding: 70px 28px 100px; }
  .site-footer { padding: 50px 28px 36px; }
}

@media (max-width: 1180px) {
  .site-nav { padding: 16px 24px; }
  .site-nav .nav-links { gap: 24px; font-size: 12px; }
}

/* MOBILE NAV breakpoint — raised so long links never overflow */
@media (max-width: 1080px) {
  .site-nav { padding: 14px 18px; flex-wrap: wrap; }
  .site-nav .xy-logo .word { font-size: 18px; }
  .site-nav .xy-logo .x-mark { width: 26px; height: 22px; }
  .site-nav .xy-logo .brand-logo { height: 48px; }
  .btn-login { display: none; }

  .nav-toggle { display: block; }

  .site-nav .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid transparent;
    border-image: var(--fade-edge) 1;
  }
  .site-nav.is-open .nav-links { display: flex; }
  .site-nav .nav-links a {
    padding: 14px 4px;
    font-size: 13px;
    letter-spacing: 0.18em;
    border-bottom: 1px solid transparent;
    border-image: var(--fade-edge) 1;
  }
  .site-nav .nav-links a:last-child { border-image: none; border-bottom-color: transparent; }
  .site-nav .nav-links a.active::after { display: none; }
  .site-nav .nav-links a.active { color: var(--accent-blue); }
}

/* Hero typography scaling */
@media (max-width: 1100px) {
  .page-hero { padding: 70px 22px 90px; }
  .page-hero .headline { font-size: 56px; }
}
@media (max-width: 760px) {
  .page-hero { padding: 48px 16px 60px; }
  .page-hero .headline { font-size: 38px; }
  .hero-logo-block .x-mark { width: 44px; height: 38px; }
  .hero-logo-block .word { font-size: 26px; }
  .hero-logo-block .sub { font-size: 16px; }
}

/* Features grid breakpoints */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  /* Divisores difuminados recalculados para 2 columnas */
  .feature-card:nth-child(3n)::after { display: block; }
  .feature-card:nth-child(2n)::after { display: none; }
  .feature-card:nth-last-child(-n+3)::before { display: block; }
  .feature-card:nth-last-child(-n+2)::before { display: none; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 28px 22px 32px; }
  .feature-card::after { display: none; }
  .features-section .intro h2 { font-size: 28px; }
  .features-section { padding: 50px 18px 70px; }
  /* Divisores difuminados recalculados para 1 columna */
  .feature-card:nth-last-child(-n+2)::before { display: block; }
  .feature-card:last-child::before { display: none; }
}

/* Footer responsive */
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid .contact-col { padding: 0; line-height: 1.9; }
  .footer-grid .contact-col::before,
  .footer-grid .contact-col::after { display: none; }
  .footer-grid .logo-col .xy-logo { transform: none; margin: 0; }
}

/* Buttons scale on small */
@media (max-width: 540px) {
  .btn-pill { padding: 14px 28px; font-size: 12px; letter-spacing: 0.14em; }
}

/* ============================================================
   Contact Modal
   ============================================================ */
.contact-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.contact-modal.is-open { display: flex; }
.contact-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 4, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-modal__panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, #0a0f2a 0%, #050a1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 38px 38px 32px;
  box-shadow:
    0 40px 100px -20px rgba(59, 158, 255, 0.35),
    0 0 0 1px rgba(176, 107, 255, 0.10) inset,
    0 60px 140px -30px rgba(0, 0, 0, 0.6);
  animation: cmIn .25s ease-out;
}
@keyframes cmIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.contact-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-dim);
  font-size: 14px; line-height: 1;
  cursor: pointer; transition: all .2s;
}
.contact-modal__close:hover { color: #fff; border-color: rgba(255,255,255,0.25); }

.contact-modal__head { text-align: center; margin-bottom: 26px; }
.contact-modal__brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.contact-modal__brand svg { width: 34px; height: 30px; }
.contact-modal__brand .cm-word {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500; font-size: 20px; color: #fff;
  line-height: 1;
}
.contact-modal__brand .cm-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500; font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  margin-top: 2px;
}
.contact-modal__eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500; font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.contact-modal__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 34px;
  line-height: 1.08;
  margin: 0 0 12px;
}
.contact-modal__title .grad {
  background: linear-gradient(95deg, #36a8ff 0%, #6c7bff 50%, #b06bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-modal__lead {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
  max-width: 460px;
  margin-left: auto; margin-right: auto;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.cf-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field > span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500; font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  background: rgba(8, 12, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: #4a5273; }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.16);
}
.cf-field textarea { resize: vertical; min-height: 90px; font-family: inherit; }
.cf-field input.cf-error,
.cf-field select.cf-error,
.cf-field textarea.cf-error {
  border-color: #ff5f5f;
  box-shadow: 0 0 0 3px rgba(255, 95, 95, 0.16);
}

.cf-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cf-privacy {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 11px;
  color: #6b7593;
  line-height: 1.5;
}
.cf-actions .btn-pill { padding: 13px 30px; font-size: 12px; }

.contact-success {
  text-align: center;
  padding: 16px 6px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.contact-success .cs-check svg { width: 60px; height: 60px; }
.contact-success h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 26px; text-transform: uppercase;
  letter-spacing: 0.02em; margin: 0;
}
.contact-success p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 420px;
}

@media (max-width: 560px) {
  .contact-modal__panel { padding: 28px 22px 22px; }
  .contact-modal__title { font-size: 26px; }
  .cf-row { grid-template-columns: 1fr; }
  .cf-actions { flex-direction: column; align-items: stretch; }
}
