:root {
  --bg: #0b0d12;
  --bg-2: #11141c;
  --panel: #161a24;
  --line: #232838;
  --text: #f3f5f9;
  --muted: #9aa3b5;
  --accent: #5b8cff;
  --accent-2: #7b5bff;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; border: 1px solid transparent; }
.btn:active { transform: scale(.97); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 8px 30px rgba(91,140,255,.35); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(91,140,255,.5); }
.btn-outline { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-outline:hover { border-color: var(--accent); }
.btn-ghost { background: var(--panel); border-color: var(--line); padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; text-align: center; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11,13,18,.8);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 6px 16px rgba(91,140,255,.38); }
.logo-mark svg { width: 21px; height: 21px; }
.logo-word { font-family: 'Sora', system-ui, -apple-system, sans-serif; font-size: 22px; font-weight: 800;
  letter-spacing: -.6px; color: #eef2ff; }
.logo-word i { font-style: normal; background: linear-gradient(120deg, #6f9cff 0%, #9a63ff 52%, #ff7ad5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 84px 0 60px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-badge { display: inline-block; background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); padding: 7px 16px; border-radius: 999px; font-size: 13px; margin-bottom: 24px; }
.hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.04; margin-bottom: 20px;
  background: linear-gradient(180deg, #fff, #b9c2da); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-platforms { margin-top: 26px; color: var(--muted); font-size: 13.5px; letter-spacing: .2px; }
.hero-glow { position: absolute; top: -160px; right: -120px;
  width: 620px; height: 560px; background: radial-gradient(ellipse, rgba(123,91,255,.30), transparent 62%);
  filter: blur(50px); z-index: 0; pointer-events: none; }

/* Device mockup */
.hero-art { position: relative; display: flex; justify-content: center; z-index: 2; }
.phone { position: relative; z-index: 2; width: 290px; max-width: 78vw;
  background: linear-gradient(165deg, #1b2030, #0e111a); border: 1px solid #2b3146;
  border-radius: 34px; padding: 16px 14px; box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05); }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 6px; border-radius: 999px; background: #2b3146; }
.phone-screen { margin-top: 16px; background: #0a0c12; border: 1px solid #20283c; border-radius: 22px; padding: 18px 16px; }
.cap-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: #ff6b8a; text-transform: uppercase; margin-bottom: 16px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5277; box-shadow: 0 0 0 0 rgba(255,82,119,.6);
  animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,82,119,.55); } 70% { box-shadow: 0 0 0 9px rgba(255,82,119,0); } 100% { box-shadow: 0 0 0 0 rgba(255,82,119,0); } }
.cap { font-size: 14px; line-height: 1.5; padding: 10px 12px; border-radius: 12px; margin-bottom: 9px;
  border: 1px solid #1d2436; opacity: 0; transform: translateY(6px); animation: rise .5s forwards; }
.cap-en { background: rgba(255,255,255,.03); color: #cdd6ea; animation-delay: .1s; }
.cap-es { background: rgba(91,140,255,.12); border-color: rgba(91,140,255,.3); color: #dbe6ff; animation-delay: .5s; }
.cap-el { background: rgba(255,255,255,.03); color: #cdd6ea; animation-delay: .9s; }
.cap-ar { background: rgba(123,91,255,.12); border-color: rgba(123,91,255,.3); color: #e6dbff; animation-delay: 1.3s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.lang-pills { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.lang-pills span { font-size: 11px; padding: 5px 11px; border-radius: 999px; border: 1px solid #283049; color: var(--muted); }
.lang-pills span.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; padding: 28px 24px; text-align: center; }
.trust-item b { display: block; font-family: 'Sora', sans-serif; font-size: 26px; color: var(--text); }
.trust-item span { font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-family: 'Sora', sans-serif; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-top: 12px; font-size: 17px; max-width: 640px; margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 18px; margin-top: 48px; }

/* Features */
.features { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .15s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-icon { font-size: 30px; margin-bottom: 14px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* Roles (web app section) */
.roles { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.role-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; }
.role-tag { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: rgba(91,140,255,.15); color: var(--accent); padding: 4px 12px; border-radius: 999px; align-self: flex-start; }
.role-card h3 { font-size: 22px; margin: 16px 0 10px; }
.role-card p { color: var(--muted); font-size: 15px; margin-bottom: 24px; flex: 1; }

/* Steps */
.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.price-card { position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 12px 50px rgba(91,140,255,.18); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.price-name { font-size: 18px; font-weight: 700; }
.price-amount { font-size: 34px; font-weight: 800; margin: 14px 0 4px; font-family: 'Sora', sans-serif; }
.price-period { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-feats { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 11px; }
.price-feats li { color: var(--muted); font-size: 15px; padding-left: 26px; position: relative; }
.price-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-feats li.no { color: #6b7280; }
.price-feats li.no::before { content: "✕"; color: #6b7280; }
.price-card .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }

/* FAQ */
.faq-wrap { max-width: 760px; }
.faq { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 15px; padding: 0 0 18px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, rgba(91,140,255,.16), rgba(123,91,255,.16)); border-top: 1px solid var(--line); }
.cta-inner { text-align: center; padding: 72px 24px; }
.cta-inner h2 { font-family: 'Sora', sans-serif; font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; letter-spacing: -1px; }
.cta-inner p { color: var(--muted); margin: 12px 0 28px; font-size: 17px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0; background: var(--bg-2); }
.footer-inner { text-align: center; color: var(--muted); }
.footer .logo { justify-content: center; margin-bottom: 12px; }
.footer .logo-word { font-size: 22px; }
.footer-fine { font-size: 12px; margin-top: 8px; opacity: .7; }
.muted { color: var(--muted); }

/* Register modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(6,8,12,.72); backdrop-filter: blur(6px); }
.modal.hidden { display: none; }
.modal-card { position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px 30px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.modal-x { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer; }
.modal-x:hover { color: var(--text); }
.modal-title { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.modal-sub { color: var(--muted); font-size: 14px; margin: 8px 0 22px; }
.reg-form { display: flex; flex-direction: column; gap: 14px; }
.reg-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.reg-form input, .reg-form select { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 14px; color: var(--text); font-size: 15px; font-family: inherit; transition: border-color .2s, box-shadow .2s; }
.reg-form input::placeholder { color: #5e6679; }
.reg-form input:focus, .reg-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,140,255,.18); }
/* Fully custom dropdown (native <select> can't be themed on macOS) */
.cselect { position: relative; }
.cselect-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px;
  color: var(--text); font-size: 15px; font-family: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.cselect-btn:hover { border-color: #313850; }
.cselect.open .cselect-btn { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,140,255,.18); }
.cselect-arrow { width: 16px; height: 16px; color: var(--muted); flex: none; transition: transform .2s; }
.cselect.open .cselect-arrow { transform: rotate(180deg); }
.cselect-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  list-style: none; margin: 0; padding: 6px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 44px rgba(0,0,0,.55); opacity: 0; transform: translateY(-6px);
  pointer-events: none; transition: opacity .15s, transform .15s; }
.cselect.open .cselect-list { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cselect-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border-radius: 9px; font-size: 15px; color: var(--text); cursor: pointer; transition: background .12s; }
.cselect-list li:hover { background: var(--bg-2); }
.cselect-list li.selected { color: #cdd9ff; }
.cselect-list li.selected::after { content: "✓"; color: var(--accent); font-weight: 700; }
.reg-error { background: rgba(255,82,119,.12); border: 1px solid rgba(255,82,119,.4); color: #ff8aa1;
  font-size: 14px; padding: 10px 14px; border-radius: 10px; }
.reg-error.hidden { display: none; }
.modal-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.modal-foot a { color: var(--accent); font-weight: 600; }

/* Plan picker inside the register modal — compact selectable cards */
.reg-plans { display: flex; flex-direction: column; gap: 7px; font-weight: 400; }
.plan-card { position: relative; display: flex; align-items: center; gap: 11px; background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 11px; padding: 9px 13px; cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .08s; }
.plan-card:hover { border-color: #38415c; }
.plan-card:active { transform: scale(.99); }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card-radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line);
  position: relative; transition: border-color .18s; }
.plan-card:has(input:checked) { border-color: var(--accent);
  background: linear-gradient(135deg, rgba(91,140,255,.10), rgba(123,91,255,.07));
  box-shadow: 0 10px 28px rgba(91,140,255,.18); }
.plan-card:has(input:checked) .plan-card-radio { border-color: var(--accent); }
.plan-card:has(input:checked) .plan-card-radio::after { content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.plan-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan-card-name { font-size: 14.5px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 7px; }
.plan-card-price { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 800; color: var(--text); white-space: nowrap; }
.plan-card-price small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.plan-card-feats { font-size: 11.5px; color: var(--muted); }
.plan-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 3px 8px; border-radius: 999px; }
.plan-tag.popular { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.plan-tag.free { background: rgba(70,201,140,.16); color: #46c98c; }

/* two-column row in the register form */
.reg-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reg-2col label { gap: 6px; }
/* plan tagline in the pricing cards */
.price-desc { color: var(--muted); font-size: 13.5px; margin-top: 6px; min-height: 38px; }

/* Back-to-top button with scroll-progress ring */
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 80; width: 54px; height: 54px;
  border: none; border-radius: 50%; padding: 3px; cursor: pointer; display: grid; place-items: center;
  background: conic-gradient(from -90deg, var(--accent) calc(var(--scroll, 0) * 1%), rgba(255,255,255,.10) 0);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(18px) scale(.7); pointer-events: none;
  transition: opacity .35s cubic-bezier(.2,.8,.2,1), transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top::before { content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: linear-gradient(135deg, #1b2031, #0e111a); transition: background .25s; }
.to-top svg { position: relative; width: 21px; height: 21px; color: #cdd9ff; transition: transform .25s, color .25s; }
.to-top:hover { box-shadow: 0 16px 44px rgba(91,140,255,.55); }
.to-top:hover::before { background: linear-gradient(135deg, #222a40, #141826); }
.to-top:hover svg { transform: translateY(-3px); color: #fff; }
.to-top:active { transform: scale(.92); }
@media (max-width: 680px) { .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; } }

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
}
@media (max-width: 680px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-cta { display: none; }
}
