/* ==========================================================================
   FEROZ — landing page
   The values below are copied 1:1 from the app's design tokens
   (src/theme/tokens.ts) so the page and the product look like the same thing.
   Dark only, on purpose: the app is dark only.
   ========================================================================== */

:root {
  /* Brand */
  --bg: #0b0b0b;
  --surface: #0a1f44; /* azul profundo */
  --surface-alt: #0d2650;
  --surface-hi: #12305f;
  --accent: #00b4ff; /* azul energía */
  --accent-hover: #2fc2ff;
  --accent-text: #4fcbff;
  --cyan: #0de0ff; /* azul cian */
  --gold: #ffc13b; /* dorado detalle */
  --success: #4ec98a;

  /* Text — plata at decreasing opacity */
  --text: #e5e8ec;
  --text-2: rgba(229, 232, 236, 0.8);
  --text-muted: rgba(229, 232, 236, 0.62);
  --text-dim: rgba(229, 232, 236, 0.52);
  --text-faint: rgba(229, 232, 236, 0.44);

  /* Structure */
  --border: rgba(229, 232, 236, 0.08);
  --border-strong: rgba(229, 232, 236, 0.14);
  --border-hover: rgba(229, 232, 236, 0.24);
  --accent-bg: rgba(0, 180, 255, 0.14);
  --accent-border: rgba(0, 180, 255, 0.3);
  --gold-bg: rgba(255, 193, 59, 0.14);
  --on-accent: #0a1f44;

  --radius-tile: 16px;
  --radius-card: 20px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* `gradients.hero` from the app: the 140deg accent panel, navy ink on top. */
  --hero-gradient: linear-gradient(140deg, #00b4ff, #0de0ff);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 800;
}

h3 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

em {
  font-style: normal;
  color: var(--accent-text);
}

.shell {
  width: min(1140px, 100% - 44px);
  margin-inline: auto;
}

/* --------------------------------------------------------------- type bits */

.eyebrow,
.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
}

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.lead {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 56ch;
}

.body-dim {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 54px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 14px 34px rgba(0, 180, 255, 0.28);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

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

.btn-dark {
  background: var(--on-accent);
  color: var(--text);
}

.btn-dark:hover {
  background: #06142b;
}

.btn-dark-outline {
  background: transparent;
  color: var(--on-accent);
  border: 1.5px solid rgba(10, 31, 68, 0.45);
}

.btn-dark-outline:hover {
  border-color: var(--on-accent);
}

.btn-small {
  height: 42px;
  padding: 0 1.15rem;
  font-size: 0.86rem;
}

/* ------------------------------------------------------------------ top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 11, 11, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}

.brand img {
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-text small {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.topnav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.topnav a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
}

.hero-copy > .eyebrow {
  margin-bottom: 1rem;
}

.hero-copy h1 {
  margin-bottom: 1.1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.hero-points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* The ambient wash the app paints behind its auth screens. */
.glow {
  position: absolute;
  pointer-events: none;
}

.glow-top {
  inset: -180px -10% auto;
  height: 520px;
  background: radial-gradient(520px 330px at 50% 30%, rgba(0, 180, 255, 0.16), transparent 70%);
}

.glow-corner {
  right: -80px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
}

/* ------------------------------------------------- the product screen, still */

.hero-card {
  position: relative;
}

.mock {
  background: linear-gradient(150deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  gap: 1.1rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 180, 255, 0.16);
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
}

.pill-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.5);
  }
}

.mock-amounts {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.mock-right {
  text-align: right;
}

.mock-best,
.mock-cap {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-top: 0.35rem;
}

.mock-best {
  color: var(--text);
}

.mock-cap {
  font-size: 1.3rem;
  color: var(--text-muted);
}

.mock-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: #132c57;
  overflow: hidden;
}

.mock-bar span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}

.mock-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-saving {
  color: var(--success);
  font-size: 0.86rem;
  font-weight: 700;
}

.mock-route {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mock-arrow {
  color: var(--accent);
}

.mock-note {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--text-faint);
  text-align: center;
}

/* ----------------------------------------------------------------- sections */

.section {
  padding: clamp(3rem, 7vw, 5.4rem) 0;
}

.section-alt {
  background: #090d1a;
  border-block: 1px solid var(--border);
}

.section h2 {
  margin: 0.9rem 0 2.4rem;
  max-width: 24ch;
}

/* steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}

.steps li {
  background: linear-gradient(150deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.7rem;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.steps h3 {
  margin-bottom: 0.6rem;
}

.steps p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.steps strong {
  color: var(--text);
}

/* feature grid */

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

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

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tile-accent {
  background: var(--accent-bg);
  color: var(--accent-text);
}

.tile-info {
  background: rgba(13, 224, 255, 0.14);
  color: var(--cyan);
}

.tile-gold {
  background: var(--gold-bg);
  color: var(--gold);
}

/* audiences */

.audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.aud-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.aud-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  flex: 1;
}

.aud-card li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-2);
  font-size: 0.94rem;
}

.aud-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.aud-card .btn {
  align-self: flex-start;
}

/* verification */

.verify {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}

.verify h2 {
  margin: 0.9rem 0 1.2rem;
  max-width: 22ch;
}

.states {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.states li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.states strong {
  color: var(--text);
}

.state-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  transform: translateY(-1px);
}

.state-ok {
  background: var(--success);
}
.state-warn {
  background: var(--gold);
}
.state-bad {
  background: #e05555;
}
.state-off {
  background: var(--text-faint);
}

.verify-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: grid;
  gap: 1.1rem;
}

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

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-tile);
  background: var(--surface-hi);
  border: 1px solid var(--border);
}

.checklist li::before {
  font-weight: 700;
}

.checklist .ok::before {
  content: '✓';
  color: var(--success);
}

.checklist .pending::before {
  content: '!';
  color: var(--gold);
}

.checklist .ok {
  color: var(--text-2);
}

.checklist .pending {
  color: var(--gold);
}

/* final call */

.final {
  position: relative;
  overflow: hidden;
  background: var(--hero-gradient);
  color: var(--on-accent);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
}

.final h2 {
  margin: 0 auto 1rem;
  color: var(--on-accent);
}

.final p {
  max-width: 52ch;
  margin: 0 auto;
  color: rgba(10, 31, 68, 0.82);
  font-weight: 500;
}

.final .cta-row {
  justify-content: center;
  margin-top: 2rem;
}

/* footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: grid;
  gap: 1.6rem;
  justify-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  border-radius: 16px;
}

.footer-brand strong {
  display: block;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.footer-brand span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

.footer-legal {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-faint);
  max-width: 78ch;
}

/* ---------------------------------------------------------------- responsive */

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

  .hero-card {
    order: 2;
  }

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

@media (max-width: 720px) {
  .topnav {
    display: none;
  }

  .steps,
  .grid,
  .audience {
    grid-template-columns: 1fr;
  }

  .aud-card .btn,
  .btn {
    width: 100%;
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .mock-best {
    font-size: 2.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill-live i {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
