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

    :root {
      --violet: #7c3aed;
      --violet-hero: #8b2fe8;
      --violet-dark: #5b21b6;
      --violet-lt: #ede9fe;
      --violet-mid: #f5f3ff;
      --green: #10b981;
      --blue: #3b82f6;
      --gray-50: #f9fafb;
      --gray-100: #f3f4f6;
      --gray-200: #e5e7eb;
      --gray-400: #9ca3af;
      --gray-500: #6b7280;
      --gray-600: #4b5563;
      --gray-800: #1f2937;
      --gray-900: #111827;
      --bg: #fafaf8;
      --border: #e8e8e4;
      --font-serif: 'DM Serif Display', Georgia, serif;
      --font-sans: 'DM Sans', sans-serif;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-sans);
      background: var(--bg);
      color: var(--gray-900);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 48px;
      background: rgba(250, 250, 248, 0.92);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      font-family: var(--font-serif);
      font-size: 1.2rem;
      color: var(--gray-900);
      text-decoration: none;
      letter-spacing: -0.02em;
    }

    .nav-logo span {
      color: var(--violet);
    }

    .nav-pill {
      background: var(--violet);
      color: #fff;
      font-size: 0.8rem;
      font-weight: 500;
      padding: 8px 20px;
      border-radius: 999px;
      text-decoration: none;
      transition: background 0.2s;
    }

    .nav-pill:hover {
      background: var(--violet-dark);
    }

    /* ── HERO ── */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 120px 24px 80px;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 70% 50% at 50% -5%, rgba(124, 58, 237, 0.1) 0%, transparent 65%),
        radial-gradient(ellipse 35% 25% at 88% 88%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
      pointer-events: none;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--violet-mid);
      color: var(--violet);
      font-size: 0.72rem;
      font-weight: 600;
      padding: 6px 16px;
      border-radius: 999px;
      margin-bottom: 32px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      border: 1px solid var(--violet-lt);
      opacity: 0;
      transform: translateY(12px);
      animation: fadeUp 0.6s ease forwards 0.1s;
    }

    .badge-dot {
      width: 6px;
      height: 6px;
      background: var(--violet);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1)
      }

      50% {
        opacity: .5;
        transform: scale(.8)
      }
    }

    h1 {
      font-family: var(--font-serif);
      font-size: clamp(2.8rem, 7vw, 5.2rem);
      line-height: 1.05;
      letter-spacing: -0.03em;
      max-width: 780px;
      margin-bottom: 24px;
      opacity: 0;
      transform: translateY(16px);
      animation: fadeUp 0.7s ease forwards 0.2s;
    }

    h1 em {
      font-style: italic;
      color: var(--violet);
    }

    .hero-sub {
      font-size: 1.05rem;
      color: var(--gray-500);
      max-width: 460px;
      font-weight: 300;
      margin-bottom: 44px;
      opacity: 0;
      transform: translateY(16px);
      animation: fadeUp 0.7s ease forwards 0.35s;
    }

    .hero-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
      opacity: 0;
      transform: translateY(16px);
      animation: fadeUp 0.7s ease forwards 0.5s;
    }

    .btn-primary {
      background: var(--violet);
      color: #fff;
      font-size: 0.9rem;
      font-weight: 500;
      padding: 13px 28px;
      border-radius: 999px;
      text-decoration: none;
      transition: transform .2s, box-shadow .2s, background .2s;
      box-shadow: 0 4px 20px rgba(124, 58, 237, .3);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(124, 58, 237, .4);
      background: var(--violet-dark);
    }

    .btn-ghost {
      background: transparent;
      color: var(--gray-800);
      font-size: 0.9rem;
      font-weight: 500;
      padding: 13px 28px;
      border-radius: 999px;
      text-decoration: none;
      border: 1.5px solid var(--border);
      transition: border-color .2s, color .2s;
    }

    .btn-ghost:hover {
      border-color: var(--violet);
      color: var(--violet);
    }

    /* ── MOCKUPS WRAPPER ── */
    .mockups-wrap {
      opacity: 0;
      transform: translateY(28px);
      animation: fadeUp 0.9s ease forwards 0.65s;
      margin-top: 72px;
      display: flex;
      justify-content: center;
      align-items: flex-end;
      position: relative;
    }

    /* ── PHONE SHELL ── */
    .phone-wrap {
      position: relative;
      transition: transform 0.45s cubic-bezier(.34, 1.56, .64, 1);
    }

    .phone-wrap.left {
      transform: rotate(-5deg) translateX(30px) translateY(14px);
      z-index: 1;
    }

    .phone-wrap.right {
      transform: rotate(5deg) translateX(-30px) translateY(14px);
      z-index: 1;
    }

    .phone-wrap:hover {
      transform: rotate(0deg) translateY(-10px) !important;
      z-index: 10;
    }

    .phone {
      width: 220px;
      aspect-ratio: 9 / 19.5;
      border-radius: 42px;
      background: #0a0a0a;
      box-shadow: 0 0 0 1px #2a2a2a, 0 0 0 8px #111, 0 40px 90px rgba(0, 0, 0, .28);
      overflow: hidden;
      position: relative;
    }

    /* .phone {
      width: 220px;
      border-radius: 42px;
      background: #0a0a0a;
      box-shadow: 0 0 0 1px #2a2a2a, 0 0 0 8px #111, 0 40px 90px rgba(0,0,0,.28), 0 8px 24px rgba(0,0,0,.15);
      overflow: hidden; position: relative;
    } */
    /* camera punch-hole */
    .phone::before {
      content: '';
      position: absolute;
      top: 12px;
      left: 50%;
      transform: translateX(-50%);
      width: 18px;
      height: 18px;
      background: #0a0a0a;
      border-radius: 50%;
      z-index: 30;
      box-shadow: 0 0 0 2px #1a1a1a;
    }

    .phone-inner {
      border-radius: 36px;
      overflow: hidden;
    }

    /* ════════════════════════════════════════
       SCREEN 1 — LOGIN (pixel-accurate)
    ════════════════════════════════════════ */
    .screen-login {
      background: #fff;
      min-height: 470px;
      display: flex;
      flex-direction: column;
    }

    .screen-login,
    .screen-dashboard {
      height: 100%;
      /* ← ocupa todo el teléfono */
      overflow: hidden;
      /* ← sin scroll en el mockup */
      /* elimina min-height: 470px */
    }

    /* Purple top section */
    .login-top {
      background: var(--violet-hero);
      padding: 30px 20px 28px;
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      overflow: hidden;
    }

    /* decorative circles */
    .login-top::before {
      content: '';
      position: absolute;
      top: -20px;
      left: -20px;
      width: 90px;
      height: 90px;
      background: rgba(255, 255, 255, 0.12);
      border-radius: 50%;
    }

    .login-top::after {
      content: '';
      position: absolute;
      top: 10px;
      right: -15px;
      width: 110px;
      height: 110px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
    }

    .login-app-icon {
      width: 52px;
      height: 52px;
      background: rgba(255, 255, 255, 0.22);
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
      position: relative;
      z-index: 1;
    }

    .login-app-icon svg {
      width: 30px;
      height: 30px;
    }

    .login-title {
      font-size: 0.9rem;
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.02em;
      margin-bottom: 1px;
      position: relative;
      z-index: 1;
    }

    .login-powered {
      font-size: 0.5rem;
      color: rgba(255, 255, 255, 0.65);
      position: relative;
      z-index: 1;
    }

    /* White bottom section */
    .login-bottom {
      padding: 10px 16px 10px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .login-welcome {
      font-size: 0.9rem;
      font-weight: 800;
      color: var(--gray-900);
      margin-bottom: 4px;
    }

    .login-desc {
      font-size: 0.55rem;
      color: var(--gray-500);
      margin-bottom: 10px;
      line-height: 1.4;
    }

    .login-features {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-bottom: 10px;
    }

    .login-feat-row {
      display: flex;
      align-items: center;
      gap: 6px;
      background: var(--gray-50);
      border-radius: 8px;
      padding: 5px 8px;
    }

    .login-feat-emoji {
      font-size: 0.6rem;
    }

    .login-feat-text {
      font-size: 0.52rem;
      font-weight: 500;
      color: var(--gray-700, #374151);
    }

    .login-cta-btn {
      background: var(--violet-hero);
      border-radius: 10px;
      padding: 7px;
      text-align: center;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .login-cta-text {
      font-size: 0.62rem;
      font-weight: 700;
      color: #fff;
    }

    .login-cta-arrow {
      font-size: 0.65rem;
      color: rgba(255, 255, 255, 0.8);
    }

    .login-legal {
      font-size: 0.45rem;
      color: var(--gray-400);
      text-align: center;
      line-height: 1.4;
    }

    /* ════════════════════════════════════════
       SCREEN 2 — DASHBOARD (pixel-accurate)
    ════════════════════════════════════════ */
    .screen-dashboard {
      background: var(--gray-50);
      min-height: 470px;
    }

    /* Status bar */
    .dash-status {
      background: var(--violet-hero);
      height: 22px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      padding: 0 12px 3px;
    }

    .dash-status span {
      color: rgba(255, 255, 255, .9);
      font-size: 0.45rem;
      font-weight: 700;
    }

    /* Header */
    .dash-header {
      background: var(--violet-hero);
      padding: 6px 14px 18px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      justify-content: start;
      align-items: start;
    }

    .dash-header-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 4px;
    }

    .dash-header-label {
      font-size: 0.48rem;
      color: rgba(255, 255, 255, .7);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    .dash-header-right {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .dash-date-badge {
      background: rgba(255, 255, 255, .2);
      border-radius: 99px;
      padding: 2px 4px;
      font-size: 0.32rem;
      color: #fff;
      font-weight: 400;
    }

    .dash-logout {
      background: rgba(255, 255, 255, .2);
      border-radius: 7px;
      width: 18px;
      height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.6rem;
    }

    .dash-title {
      font-size: 0.8rem;
      font-weight: 900;
      color: #fff;
      letter-spacing: -0.02em;
      margin-bottom: 1px;
    }

    .dash-subtitle {
      font-size: 0.48rem;
      color: rgba(255, 255, 255, .6);
    }

    /* Scroll */
    .dash-scroll {
      padding: 10px 10px 16px;
      overflow: hidden;
    }

    /* KPI cards */
    .kpi-row {
      display: flex;
      gap: 6px;
      margin-bottom: 10px;
    }

    .kpi {
      flex: 1;
      border-radius: 12px;
      padding: 5px 6px;
    }

    .kpi-v {
      background: #f5f3ff;
    }

    .kpi-b {
      background: #eff6ff;
    }

    .kpi-g {
      background: #ecfdf5;
    }

    .kpi-icon {
      font-size: 0.85rem;
      margin-bottom: 3px;
    }

    .kpi-label {
      font-size: 0.3rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--gray-400);
      margin-bottom: 2px;
    }

    .kpi-value {
      font-size: 0.9rem;
      font-weight: 900;
      color: var(--gray-900);
      line-height: 1;
    }

    .kpi-sub {
      font-size: 0.38rem;
      color: var(--gray-400);
      margin-top: 1px;
    }

    /* Grand total banner */
    .grand-banner {
      background: linear-gradient(135deg, var(--violet-dark) 0%, var(--violet-hero) 100%);
      border-radius: 14px;
      padding: 12px 14px;
      margin-bottom: 10px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      justify-content: start;
      align-items: start;
    }

    .gb-label {
      font-size: 0.42rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: rgba(255, 255, 255, .55);
      margin-bottom: 2px;
    }

    .gb-num {
      font-size: 1.6rem;
      font-weight: 900;
      color: #fff;
      line-height: 1;
    }

    .gb-sub {
      font-size: 0.45rem;
      color: rgba(255, 255, 255, .55);
      margin-top: 1px;
      margin-bottom: 8px;
    }

    .gb-eq {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .gb-eq-item {
      text-align: center;
    }

    .gb-eq-lbl {
      font-size: 0.36rem;
      color: rgba(255, 255, 255, .4);
      font-weight: 600;
    }

    .gb-eq-val {
      font-size: 0.7rem;
      font-weight: 900;
      color: #fff;
    }

    .gb-eq-val.tot {
      color: #c4b5fd;
      font-size: 0.75rem;
    }

    .gb-eq-op {
      font-size: 0.7rem;
      color: rgba(255, 255, 255, .3);
    }

    /* Date range */
    .filter-label {
      font-size: 0.3rem;
      font-weight: 700;
      text-align: left;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--gray-400);
      margin-bottom: 5px;
    }

    .date-row {
      display: flex;
      gap: 6px;
      margin-bottom: 10px;
    }

    .date-box {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: start;
      align-items: start;
      background: #fff;
      border-radius: 8px;
      padding: 6px 8px;
      border: 1px solid var(--gray-200);
    }

    .date-box-label {
      font-size: 0.38rem;
      color: var(--gray-400);
      font-weight: 600;
      margin-bottom: 1px;
      text-transform: uppercase;
    }

    .date-box-val {
      font-size: 0.52rem;
      font-weight: 700;
      color: var(--gray-900);
    }

    /* Filter chips */
    .chip-row {
      display: flex;
      gap: 5px;
      overflow-x: auto;
      margin-bottom: 10px;
    }

    .chip-row::-webkit-scrollbar {
      display: none;
    }

    .fchip {
      flex: 0 0 auto;
      padding: 4px 9px;
      border-radius: 99px;
      font-size: 0.45rem;
      font-weight: 600;
      background: #fff;
      color: var(--gray-600);
      border: 1px solid var(--gray-200);
      white-space: nowrap;
    }

    .fchip.active {
      background: var(--violet);
      color: #fff;
      border-color: var(--violet);
    }

    /* Customer filter */
    .customer-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 5px;
    }

    .customer-badge {
      font-size: 0.38rem;
      font-weight: 600;
      color: var(--violet);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .customer-input {
      width: 100%;
      background: #fff;
      border-radius: 8px;
      padding: 6px 10px;
      border: 1px solid var(--gray-200);
      font-size: 0.48rem;
      color: var(--gray-400);
      margin-bottom: 10px;
    }

    /* Breakdown card */
    .bcard {
      background: #fff;
      border-radius: 12px;
      padding: 9px 10px;
      border: 1px solid var(--gray-100);
      box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    }

    .bcard-hdr {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 7px;
    }

    .bcard-title {
      font-size: 0.6rem;
      font-weight: 800;
      color: var(--gray-900);
    }

    .bcard-count {
      font-size: 0.42rem;
      color: var(--gray-400);
    }

    .brow {
      padding: 5px 0;
    }

    .brow-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 3px;
    }

    .brow-left {
      display: flex;
      align-items: center;
      gap: 5px;
      flex: 1;
    }

    .bdot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .brow-name {
      font-size: 0.5rem;
      font-weight: 600;
      color: var(--gray-800);
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 100px;
    }

    .brow-qty {
      font-size: 0.52rem;
      font-weight: 800;
      color: var(--gray-900);
    }

    .btrack {
      height: 3px;
      background: var(--gray-100);
      border-radius: 99px;
      overflow: hidden;
      margin-bottom: 3px;
    }

    .bfill {
      height: 100%;
      border-radius: 99px;
    }

    .bmeta {
      display: flex;
      justify-content: space-between;
    }

    .bmeta-inv {
      font-size: 0.38rem;
      color: var(--gray-400);
    }

    .bmeta-amt {
      font-size: 0.42rem;
      font-weight: 600;
      color: var(--gray-500);
    }

    .bdivider {
      height: 1px;
      background: var(--gray-50);
      margin: 2px 0;
    }

    /* ── SECTIONS ── */
    hr.div {
      border: none;
      border-top: 1px solid var(--border);
    }

    .section {
      max-width: 1000px;
      margin: 0 auto;
      padding: 100px 24px;
    }

    .sec-label {
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--violet);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 14px;
    }

    .sec-title {
      font-family: var(--font-serif);
      font-size: clamp(2rem, 4vw, 3rem);
      line-height: 1.1;
      letter-spacing: -0.03em;
      margin-bottom: 14px;
      max-width: 540px;
    }

    .sec-sub {
      font-size: 1rem;
      color: var(--gray-500);
      font-weight: 300;
      max-width: 460px;
      margin-bottom: 52px;
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: 20px;
      overflow: hidden;
    }

    .feat {
      background: #fff;
      padding: 32px 28px;
      transition: background .2s;
    }

    .feat:hover {
      background: var(--violet-mid);
    }

    .feat-icon {
      width: 40px;
      height: 40px;
      background: var(--violet-lt);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      margin-bottom: 18px;
    }

    .feat-title {
      font-size: 0.95rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      margin-bottom: 7px;
    }

    .feat-desc {
      font-size: 0.85rem;
      color: var(--gray-500);
      line-height: 1.6;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tag {
      background: #fff;
      border: 1.5px solid var(--border);
      border-radius: 999px;
      padding: 7px 18px;
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--gray-500);
      transition: all .2s;
    }

    .tag:hover {
      border-color: var(--violet);
      color: var(--violet);
      background: var(--violet-mid);
    }

    .tag.hi {
      background: var(--violet-lt);
      border-color: transparent;
      color: var(--violet);
      font-weight: 600;
    }

    .cta {
      text-align: center;
      padding: 100px 24px 120px;
      position: relative;
      overflow: hidden;
    }

    .cta::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(124, 58, 237, .06) 0%, transparent 70%);
      pointer-events: none;
    }

    .cta h2 {
      font-family: var(--font-serif);
      font-size: clamp(2rem, 5vw, 3.4rem);
      letter-spacing: -0.03em;
      margin-bottom: 18px;
    }

    .cta p {
      font-size: 1rem;
      color: var(--gray-500);
      font-weight: 300;
      margin-bottom: 40px;
    }

    footer {
      border-top: 1px solid var(--border);
      padding: 28px 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }

    .footer-logo {
      font-family: var(--font-serif);
      font-size: 1rem;
      color: var(--gray-900);
      text-decoration: none;
    }

    .footer-logo span {
      color: var(--violet);
    }

    .footer-copy {
      font-size: 0.78rem;
      color: var(--gray-400);
    }

    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity .7s ease, transform .7s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: none;
    }

    @keyframes fadeUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 640px) {
      nav {
        padding: 16px 20px;
      }

      .phone {
        width: 170px;
      }

      .phone-wrap.left {
        transform: rotate(-4deg) translateX(20px) translateY(10px);
      }

      .phone-wrap.right {
        transform: rotate(4deg) translateX(-20px) translateY(10px);
      }

      footer {
        padding: 24px 20px;
      }
    }