:root {
  --navy: #172b46;
  --navy-deep: #122238;
  --blue: #1e68f4;
  --blue-hover: #1557d6;
  --blue-soft: #e8f1ff;
  --blue-mist: #f3f8ff;
  --text: #1a2b45;
  --muted: #5b6b82;
  --border: #e5eaf2;
  --white: #ffffff;
  --bg: #ffffff;
  --shadow-sm: 0 6px 18px rgba(23, 43, 70, 0.06);
  --shadow-md: 0 16px 40px rgba(23, 43, 70, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 72px;
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(30, 104, 244, 0.45);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(30, 104, 244, 0.22);
}

.btn:hover {
  background: var(--blue-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.btn-lg {
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
}

.btn-header {
  padding: 0.7rem 1.05rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.btn-block {
  width: 100%;
  min-height: 52px;
}

.badge,
.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge {
  background: #eaf2ff;
  color: #2159c9;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.text-accent {
  color: var(--blue);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  min-height: var(--header-h);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.15;
}

.brand picture {
  display: block;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 28px;
  max-width: min(220px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.brand-tagline {
  font-size: 0.72rem;
  opacity: 0.78;
  font-weight: 400;
  margin: 0;
  padding-top: 0.1rem;
}

.nav-desktop {
  display: flex;
  justify-content: center;
  gap: 1.35rem;
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem 1.1rem;
  width: min(100% - 0rem, var(--container));
  margin-inline: auto;
}

.nav-mobile a {
  color: #fff;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  font-weight: 500;
}

.nav-mobile a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-mobile .btn {
  margin-top: 0.4rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(30, 104, 244, 0.08), transparent 42%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 72%);
  padding: 4.2rem 0 3.5rem;
}

.hero-dots {
  position: absolute;
  right: 8%;
  top: 12%;
  width: 180px;
  height: 180px;
  background-image: radial-gradient(circle, rgba(70, 130, 230, 0.35) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.22fr;
  gap: 1.35rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 3.4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin: 1.35rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust svg {
  color: #7b8aa3;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  min-height: 340px;
  justify-self: stretch;
}

.hero-shot {
  /* Sin transform 3D: evita desenfoque por interpolación GPU */
  transform: none;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(229, 234, 242, 0.9);
  box-shadow: 0 22px 44px rgba(23, 43, 70, 0.14);
  width: 100%;
}

.hero-shot img,
.hero-shot picture {
  width: 100%;
  display: block;
}

.hero-shot img {
  aspect-ratio: 1024 / 498;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  image-rendering: auto;
}

@media (min-width: 1200px) {
  .hero-grid {
    grid-template-columns: 0.85fr 1.3fr;
    gap: 1.1rem;
  }

  .hero-visual {
    min-height: 380px;
  }
}

/* Features */
.features {
  padding: 4.5rem 0 3.5rem;
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.4rem;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.section-head h2,
.ecommerce-copy h2,
.security-copy h2,
.trial-card h2 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-sub,
.ecommerce-copy > p,
.security-copy > p,
.trial-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.role-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.15rem 1rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 43, 70, 0.09);
}

.feature-card h3,
.role-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--navy);
}

.feature-card p,
.role-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.feature-icon,
.role-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.feature-icon--blue,
.role-icon--blue { background: #e8f1ff; color: #1e68f4; }
.feature-icon--green,
.role-icon--green { background: #e8f8ef; color: #1f9d57; }
.feature-icon--orange,
.role-icon--orange { background: #fff1e6; color: #e67a22; }
.feature-icon--purple,
.role-icon--purple { background: #f1eaff; color: #7a4de0; }
.feature-icon--red { background: #ffe8e8; color: #e04545; }
.feature-icon--teal,
.role-icon--cyan { background: #e6f7f7; color: #1aa0a8; }
.role-icon--gold { background: #fff4df; color: #d4a017; }

/* Trial zone: ecommerce + roles + security | sticky form */
.trial-zone {
  padding: 1.5rem 0 4rem;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.trial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.trial-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.ecommerce-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.4rem 1.4rem;
  overflow: hidden;
  background-image: radial-gradient(circle at 0% 0%, rgba(30, 104, 244, 0.08), transparent 45%);
}

.ecommerce-copy .eyebrow {
  margin-bottom: 0.65rem;
}

.check-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.check-list--green li::before { color: #22a45a; }
.check-list--blue li::before { color: var(--blue); }

.ecommerce-visual {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}

.device-mockup {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(23, 43, 70, 0.14));
}

/* Roles */
.roles {
  padding-top: 0.5rem;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.roles-note {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Security */
.security-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.1rem;
  align-items: center;
  background: #eef5ff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.35rem;
}

.security-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.security-side {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.security-cloud {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.security-side .check-list {
  margin: 0;
}

/* Trial form */
.trial-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.trial-card {
  background: #eef5ff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30, 104, 244, 0.08);
}

.trial-card .eyebrow {
  margin-bottom: 0.55rem;
}

.trial-lead {
  margin-bottom: 1.2rem;
}

.trial-form {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label,
.roles-fieldset legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.field label span,
.field label [aria-hidden="true"] {
  color: #e04545;
}

.field input,
.field select,
.stepper input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d7deed;
  border-radius: 10px;
  background: #fff;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.stepper input:focus {
  border-color: #8fb3ff;
  box-shadow: 0 0 0 3px rgba(30, 104, 244, 0.12);
  outline: none;
}

.field input.is-invalid,
.field select.is-invalid {
  border-color: #e04545;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.roles-fieldset {
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
}

.roles-fieldset legend {
  margin-bottom: 0.7rem;
  padding: 0;
}

.role-counters {
  display: grid;
  gap: 0.55rem;
}

.role-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(215, 222, 237, 0.9);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
}

.role-counter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--navy);
  font-size: 0.92rem;
}

.role-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b7d0ff;
  box-shadow: inset 0 0 0 2px #fff;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.15rem;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f3f6fb;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1;
}

.stepper-btn:hover {
  background: #e8eef8;
}

.stepper input {
  width: 42px;
  min-height: 32px;
  text-align: center;
  border: 0;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.checks {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.check input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.form-footnote {
  margin: 0.15rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-status {
  margin-top: 0.35rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.form-status.is-success {
  background: #e9f8ef;
  color: #146c3b;
  border: 1px solid #bfe8cf;
}

.form-status.is-error {
  background: #ffecec;
  color: #a12323;
  border: 1px solid #f3c0c0;
}

.form-status.is-loading {
  background: #eef4ff;
  color: #1d4f9c;
  border: 1px solid #c9dbff;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 2.2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #8eb6ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.footer-item strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

.footer-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 1199px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trial-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.95fr);
  }

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

  .device-stage {
    margin: 0.5rem auto 0;
    max-width: 420px;
  }

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .nav-mobile:not([hidden]) {
    display: block;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .hero-shot {
    transform: none;
    width: 100%;
  }

  .hero-dots {
    right: -5%;
    opacity: 0.7;
  }

  .trial-layout {
    grid-template-columns: 1fr;
  }

  .trial-main {
    display: contents;
  }

  .ecommerce-card {
    order: 1;
  }

  .trial-aside {
    position: static;
    order: 2;
  }

  .roles {
    order: 3;
  }

  .security {
    order: 4;
  }

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

  .security-side {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }

  .btn-header {
    display: none;
  }

  .brand-logo {
    height: 24px;
  }

  .brand {
    gap: 0.45rem;
  }

  .hero {
    padding: 2.6rem 0 2.4rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-lead br {
    display: none;
  }

  .hero-trust {
    flex-direction: column;
    gap: 0.7rem;
  }

  .hero-visual {
    min-height: 0;
    display: flex;
    justify-content: center;
  }

  .hero-shot {
    transform: none;
    width: min(100%, 320px);
    margin-inline: auto;
    background: transparent;
    border: 0;
    filter: drop-shadow(0 18px 32px rgba(23, 43, 70, 0.18));
  }

  .hero-shot img {
    aspect-ratio: 314 / 647;
    object-fit: contain;
    object-position: center top;
    border-radius: 14px;
  }

  .features {
    padding: 3rem 0 2rem;
  }

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

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

  .field-row {
    grid-template-columns: 1fr;
  }

  .trial-card,
  .ecommerce-card,
  .security-card {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 479px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .features-grid,
  .roles-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-tagline {
    display: none;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .role-counter {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .feature-card,
  .role-card,
  .menu-toggle span {
    transition: none;
  }
}
