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

:root {
  --bg: #040814;
  --bg-elevated: #0b1220;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.22);
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --gradient: linear-gradient(105deg, var(--violet) 0%, #6366f1 45%, var(--cyan) 100%);
  --radius: 12px;
  --header-h: 72px;
  --wrap: min(1120px, calc(100% - 2rem));
  font-size: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Ubuntu,
    Cantarell,
    "Noto Sans",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 42% at 8% 22%, rgba(124, 58, 237, 0.28), transparent 68%),
    radial-gradient(ellipse 58% 48% at 92% 48%, rgba(6, 182, 212, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 35% at 78% 78%, rgba(99, 102, 241, 0.12), transparent);
  z-index: -1;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 6px;
}

.skip-link:focus {
  left: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}

.btn-gradient:hover {
  box-shadow: 0 10px 32px rgba(6, 182, 212, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(6, 182, 212, 0.55);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(4, 8, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}

.brand-logo {
  height: 36px;
  width: auto;
}

.nav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--cyan);
}

.header-cta {
  margin-left: auto;
  display: none;
}

.nav-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.site-header.is-open .nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 1rem 1.5rem 1.25rem;
  background: rgba(4, 8, 20, 0.97);
  border-bottom: 1px solid var(--border);
}

.site-header.is-open .header-cta {
  display: inline-flex;
  position: absolute;
  top: calc(var(--header-h) + 11.5rem);
  right: 1rem;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
    margin-left: 0;
  }

  .site-header.is-open .nav,
  .site-header.is-open .header-cta {
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
    border: none;
  }
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 40ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--cyan);
}

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(6, 182, 212, 0.55);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.08));
  box-shadow:
    0 0 20px rgba(6, 182, 212, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 640px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 0 10%;
  background: radial-gradient(
    ellipse at 55% 45%,
    rgba(6, 182, 212, 0.35) 0%,
    rgba(124, 58, 237, 0.2) 42%,
    transparent 72%
  );
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.hero-devices {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.55));
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 100%
  );
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 100%);
}

@media (min-width: 900px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem 2.5rem;
  }

  .hero-devices {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 100%);
  }
}

@media (max-width: 899px) {
  .hero-devices {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.benefit-grid {
  display: grid;
  gap: 1.25rem;
}

.benefit-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.benefit-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.1rem;
}

.benefit-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.45);
  display: grid;
  place-items: center;
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.1);
}

.benefit-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

@media (min-width: 640px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Steps */
.steps {
  background: rgba(11, 18, 32, 0.55);
  border-block: 1px solid var(--border);
}

.step-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.step-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .step-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .step-item {
    grid-template-columns: 1fr;
  }
}

/* Libro */
.libro-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.libro-copy .section-title {
  margin-bottom: 1rem;
}

.libro-copy p {
  color: var(--text-muted);
  margin: 0;
  max-width: 52ch;
}

.libro-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.libro-visual::before {
  content: "";
  position: absolute;
  inset: 10% 5% 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(6, 182, 212, 0.28),
    rgba(124, 58, 237, 0.15) 50%,
    transparent 75%
  );
  filter: blur(16px);
  pointer-events: none;
}

.libro-phone {
  position: relative;
  width: min(100%, 260px);
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 55%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.libro-phone-notch {
  width: 72px;
  height: 6px;
  margin: 4px auto 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
}

.libro-phone-screen {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 1rem 1rem 1.25rem;
  border: 1px solid var(--border);
}

.libro-phone-screen h3 {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.libro-phone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.libro-phone-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text);
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(4, 8, 20, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.libro-phone-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

@media (min-width: 768px) {
  .libro-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-copy p {
  color: var(--text-muted);
  max-width: 42ch;
}

.contact-note {
  font-size: 0.9rem;
}

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(6, 182, 212, 0.5);
  outline-offset: 1px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Legal placeholders */
.page-legal {
  padding: 6rem 0 4rem;
  max-width: 42rem;
}

.page-legal h1 {
  margin-top: 0;
}

.page-legal p {
  color: var(--text-muted);
}

.legal-meta {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.95rem;
}

.legal-meta dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 0.75rem;
}

.legal-meta dt:first-child {
  margin-top: 0;
}

.legal-meta dd {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.badge-pending {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.2);
  color: var(--cyan);
  font-size: 0.85rem;
}