:root {
  color-scheme: dark;
  --l-bg: #05060f;
  --l-bg-2: #090c1c;
  --l-surface: rgba(255, 255, 255, 0.04);
  --l-surface-strong: rgba(255, 255, 255, 0.07);
  --l-line: rgba(148, 163, 255, 0.16);
  --l-ink: #f3f5ff;
  --l-muted: #99a2c7;
  --l-cyan: #35e6d1;
  --l-purple: #8b6bff;
  --l-purple-2: #c14fd8;
  --l-shadow: 0 24px 60px rgba(4, 6, 20, 0.55);
}

* {
  box-sizing: border-box;
}

.landing {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 82% -6%, rgba(139, 107, 255, 0.22), transparent 60%),
    radial-gradient(900px 520px at -10% 12%, rgba(53, 230, 209, 0.14), transparent 55%),
    var(--l-bg);
  color: var(--l-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.landing .wrap {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(5, 6, 15, 0.72);
  border-bottom: 1px solid var(--l-line);
}

.landing-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--l-cyan), var(--l-purple));
  color: #05060f;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.06em;
}

.brand-text span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--l-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--l-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--l-cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--l-purple), var(--l-purple-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(139, 107, 255, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--l-line);
  color: var(--l-ink);
}

.btn-outline:hover {
  border-color: var(--l-cyan);
  color: var(--l-cyan);
}

.btn-ghost {
  background: var(--l-surface);
  color: var(--l-ink);
  border: 1px solid var(--l-line);
}

/* Hero */
.hero {
  padding: 64px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--l-line);
  background: var(--l-surface);
  color: var(--l-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--l-cyan), var(--l-purple-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin: 20px 0 0;
  max-width: 52ch;
  color: var(--l-muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
}

.hero-glow {
  position: relative;
  width: min(100%, 300px);
}

.hero-glow::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(139, 107, 255, 0.5), rgba(53, 230, 209, 0.22) 55%, transparent 72%);
  z-index: 0;
}

.hero-card {
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--l-line);
  box-shadow: var(--l-shadow);
  background: var(--l-bg-2);
}

.hero-card.aspect-square {
  aspect-ratio: 1 / 1;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-card img.crop-right {
  object-position: top right;
}

.hero-card img.pos-center {
  object-position: center center;
}

.hero-seed-badge {
  position: absolute;
  z-index: 2;
  top: -14px;
  right: -14px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--l-bg-2);
  border: 1px solid var(--l-line);
  display: grid;
  place-items: center;
  color: var(--l-cyan);
  box-shadow: var(--l-shadow);
}

.avatar-strip {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}

.avatar-strip img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--l-bg);
  outline: 1px solid var(--l-line);
}

.avatar-strip img.crop-right {
  object-position: right top;
}

.avatar-strip-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--l-muted);
  text-align: center;
  max-width: 260px;
}

/* Section shell */
.section {
  padding: 30px 0;
  scroll-margin-top: 90px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--l-muted);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--l-line);
  border-radius: 16px;
  padding: 26px;
  background: linear-gradient(180deg, var(--l-surface), rgba(255, 255, 255, 0.015));
  box-shadow: var(--l-shadow);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--l-surface-strong);
  color: var(--l-cyan);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--l-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Avatars gallery */
.avatar-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.avatar-card {
  border: 1px solid var(--l-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--l-surface);
  text-align: center;
}

.avatar-card figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--l-bg-2);
}

.avatar-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.avatar-card img.crop-right {
  object-position: top right;
}

.avatar-card figcaption {
  padding: 12px 8px 16px;
  font-size: 13px;
  font-weight: 700;
}

.avatar-gallery-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--l-muted);
  font-size: 14px;
}

/* Platform / features band */
.platform-band {
  border: 1px solid var(--l-line);
  border-radius: 22px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(139, 107, 255, 0.1), rgba(53, 230, 209, 0.06));
  box-shadow: var(--l-shadow);
}

.platform-band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.platform-band-head h2 {
  margin: 6px 0 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
}

.platform-band-head p {
  margin: 8px 0 0;
  max-width: 46ch;
  color: var(--l-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--l-surface);
  border: 1px solid var(--l-line);
}

.feature-item .card-icon {
  margin-bottom: 0;
  flex: none;
}

.feature-item h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.feature-item p {
  margin: 0;
  font-size: 13px;
  color: var(--l-muted);
}

.endpoint-note {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--l-muted);
  font-size: 13px;
}

/* Footer */
.landing-footer {
  border-top: 1px solid var(--l-line);
  padding: 28px 0 40px;
  margin-top: 20px;
}

.landing-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--l-muted);
}

.footer-links a:hover {
  color: var(--l-cyan);
}

.footer-copy {
  font-size: 12px;
  color: var(--l-muted);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .card-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .avatar-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .avatar-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-band {
    padding: 24px;
  }
}

/* ---------- Login page ---------- */

.login-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: 40px 0 64px;
}

.login-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7vh;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--l-muted);
  font-size: 13px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--l-cyan);
}

.login-card {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 34px;
  border-radius: 22px;
  border: 1px solid var(--l-line);
  background: linear-gradient(180deg, var(--l-surface), rgba(255, 255, 255, 0.015));
  box-shadow: var(--l-shadow);
  display: grid;
  gap: 24px;
}

.login-card h1 {
  margin: 8px 0 0;
  font-size: 27px;
  font-weight: 800;
}

.form-eyebrow {
  margin: 0;
  color: var(--l-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-intro {
  margin: 10px 0 0;
  color: var(--l-muted);
  font-size: 14px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form[hidden] {
  display: none;
}

.form-field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--l-ink);
}

.form-field input {
  min-height: 46px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--l-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--l-ink);
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
}

.form-field input:focus {
  outline: 2px solid var(--l-purple);
  outline-offset: 1px;
  border-color: var(--l-purple);
}

.btn-block {
  width: 100%;
  margin-top: 4px;
}

.form-error {
  margin: 0;
  color: #ff8a8a;
  font-size: 13px;
  font-weight: 700;
}

.form-notice {
  margin: 0;
  color: var(--l-cyan);
  font-size: 13px;
  font-weight: 700;
}

.link-button {
  justify-self: start;
  background: transparent;
  border: 0;
  padding: 0;
  min-height: auto;
  color: var(--l-cyan);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover {
  color: var(--l-purple);
}

.login-card .footer-links {
  padding-top: 4px;
  border-top: 1px solid var(--l-line);
  font-size: 12px;
}

/* ---------- Chooser (root) page ---------- */

.chooser-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: 48px 0 64px;
}

.chooser-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8vh;
}

.chooser-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.chooser-hero .eyebrow-pill {
  margin-bottom: 18px;
}

.chooser-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.chooser-hero p {
  margin: 16px auto 0;
  max-width: 52ch;
  color: var(--l-muted);
  font-size: 16px;
}

.choice-grid {
  width: min(100%, 880px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.choice-card {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 40px 28px 32px;
  border-radius: 22px;
  border: 1px solid var(--l-line);
  background: linear-gradient(180deg, var(--l-surface), rgba(255, 255, 255, 0.015));
  box-shadow: var(--l-shadow);
  text-decoration: none;
  color: var(--l-ink);
  opacity: 0;
  transform: translateY(24px);
  animation: choice-in 0.6s ease forwards;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.choice-card:nth-child(1) {
  animation-delay: 0.05s;
}

.choice-card:nth-child(2) {
  animation-delay: 0.22s;
}

.choice-card:hover {
  transform: translateY(-6px);
  border-color: var(--choice-accent, var(--l-purple));
  box-shadow: 0 26px 60px rgba(4, 6, 20, 0.6), 0 0 0 1px var(--choice-accent, var(--l-purple)) inset;
}

.choice-avatar-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--choice-accent, var(--l-purple)), var(--choice-accent-2, var(--l-purple-2)));
  animation: choice-float 4.5s ease-in-out infinite;
}

.choice-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 3px solid var(--l-bg);
}

.choice-avatar-ring img.pos-center {
  object-position: center center;
}

.choice-card h2 {
  margin: 6px 0 0;
  font-size: 21px;
  font-weight: 800;
}

.choice-card p {
  margin: 0;
  color: var(--l-muted);
  font-size: 14px;
  line-height: 1.55;
}

.choice-card .btn {
  margin-top: 14px;
  width: 100%;
  background: linear-gradient(135deg, var(--choice-accent, var(--l-purple)), var(--choice-accent-2, var(--l-purple-2)));
  color: #05060f;
  font-weight: 900;
}

.choice-card.card-empresa {
  --choice-accent: var(--l-cyan);
  --choice-accent-2: #17b6a4;
}

.choice-card.card-personal {
  --choice-accent: var(--l-purple);
  --choice-accent-2: var(--l-purple-2);
}

.chooser-footer-note {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--l-muted);
}

@keyframes choice-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes choice-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 720px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Enterprise landing extras ---------- */

.hero-enterprise .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 0.75fr);
  align-items: center;
}

.hero-orbit {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 34px 26px;
}

.orbit-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--l-line);
  background: rgba(9, 12, 28, 0.85);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--l-shadow);
}

.orbit-badge svg {
  color: var(--l-cyan);
  flex: none;
}

.orbit-badge.pos-tl {
  top: 22%;
  left: -14%;
}

.orbit-badge.pos-bl {
  bottom: 16%;
  left: -18%;
}

.orbit-badge.pos-tr {
  top: 22%;
  right: -16%;
}

.orbit-badge.pos-br {
  bottom: 16%;
  right: -20%;
}

.trust-chips {
  margin-top: 26px;
}

.trust-chips-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--l-muted);
  margin-bottom: 10px;
}

.trust-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--l-line);
  background: var(--l-surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--l-muted);
}

.sidebar-panel {
  border: 1px solid var(--l-line);
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(53, 230, 209, 0.08), rgba(255, 255, 255, 0.015));
  box-shadow: var(--l-shadow);
  display: grid;
  gap: 16px;
}

.sidebar-panel h3 {
  margin: 0;
  font-size: 17px;
}

.sidebar-list {
  display: grid;
  gap: 14px;
}

.sidebar-list li {
  list-style: none;
  display: flex;
  gap: 10px;
}

.sidebar-list h4 {
  margin: 0 0 3px;
  font-size: 13px;
}

.sidebar-list p {
  margin: 0;
  font-size: 12px;
  color: var(--l-muted);
  line-height: 1.5;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.benefit-item {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.benefit-item .card-icon {
  margin-bottom: 0;
}

.benefit-item h4 {
  margin: 0;
  font-size: 14px;
}

.benefit-item p {
  margin: 0;
  font-size: 13px;
  color: var(--l-muted);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .hero-enterprise .wrap {
    grid-template-columns: 1fr;
  }

  .orbit-badge {
    position: static;
    margin: 4px;
    display: inline-flex;
  }

  .hero-orbit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}
