/* Bi-Rank — marketing landing (vetrina). Self-contained, no SPA CSS.
   Dark premium aesthetic, gradient accent #7C6BFF -> #A78BFF.
   System font stack (no webfont round-trip), fluid responsive grids,
   zero JS dependency for content. */

:root {
  --bg: #0b0b12;
  --bg-2: #11111d;
  --panel: #14141f;
  --panel-2: #181826;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --ink: #f4f4fb;
  --ink-soft: #c6c6da;
  --muted: #8e8ea8;
  --accent: #7c6bff;
  --accent-2: #a78bff;
  --accent-grad: linear-gradient(135deg, #7c6bff 0%, #a78bff 100%);
  --good: #34d399;
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --shadow-accent: 0 18px 48px -22px rgba(124, 107, 255, 0.7);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(124, 107, 255, 0.22), transparent 60%),
    radial-gradient(900px 520px at 8% 6%, rgba(167, 139, 255, 0.12), transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-grad);
  color: #0b0b12;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.btn-block {
  width: 100%;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(11, 11, 18, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

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

/* Bi-Rank mark: ascending bars + signal node (violet -> lime). */
.brand .brand-mark {
  width: auto;
  height: 30px;
  flex: none;
  filter: drop-shadow(0 0 16px rgba(124, 107, 255, 0.35));
}
.foot .brand .brand-mark {
  height: 26px;
}
.brand .wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand .wm-bi {
  color: var(--ink);
}
.brand .wm-rank {
  background: linear-gradient(105deg, #a78bff, #bfff4a 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* animated build: bars grow in sequence, the signal node pops + pings. */
.brand-mark rect,
.brand-mark circle {
  transform-box: fill-box;
}
.brand-mark.anim .b1 {
  transform-origin: bottom center;
  animation: brank-g1 5s cubic-bezier(0.34, 1.4, 0.5, 1) infinite;
}
.brand-mark.anim .b2 {
  transform-origin: bottom center;
  animation: brank-g2 5s cubic-bezier(0.34, 1.4, 0.5, 1) infinite;
}
.brand-mark.anim .b3 {
  transform-origin: bottom center;
  animation: brank-g3 5s cubic-bezier(0.34, 1.4, 0.5, 1) infinite;
}
.brand-mark.anim .node {
  transform-origin: center;
  animation: brank-np 5s ease-out infinite;
}
.brand-mark.anim .ping {
  transform-origin: center;
  animation: brank-pg 5s ease-out infinite;
}
@keyframes brank-g1 { 0% { transform: scaleY(0); } 8% { transform: scaleY(1); } 88% { transform: scaleY(1); } 96%, 100% { transform: scaleY(0); } }
@keyframes brank-g2 { 0%, 4% { transform: scaleY(0); } 14% { transform: scaleY(1); } 88% { transform: scaleY(1); } 95%, 100% { transform: scaleY(0); } }
@keyframes brank-g3 { 0%, 8% { transform: scaleY(0); } 20% { transform: scaleY(1); } 88% { transform: scaleY(1); } 94%, 100% { transform: scaleY(0); } }
@keyframes brank-np { 0%, 18% { transform: scale(0); } 28% { transform: scale(1.18); } 34% { transform: scale(1); } 88% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
@keyframes brank-pg { 0%, 24% { transform: scale(0.5); opacity: 0; } 26% { opacity: 0.7; } 48% { transform: scale(2.6); opacity: 0; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .brand-mark.anim * { animation: none !important; } }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: var(--ink-soft);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav-link:hover {
  color: var(--ink);
}

/* ---------- language switch ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
}
.lang-switch .lang {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 999px;
  line-height: 1;
}
.lang-switch .lang:hover {
  color: var(--ink);
}
.lang-switch .lang.on {
  color: var(--ink);
  background: var(--accent-grad);
}
@media (max-width: 560px) {
  .lang-switch { display: none; }
}

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 64px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--border-strong);
  background: rgba(124, 107, 255, 0.08);
  padding: 6px 13px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  margin: 22px 0 0;
  max-width: 16ch;
}

.capsule {
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  color: var(--ink-soft);
  margin-top: 22px;
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.note::before {
  content: "✓";
  color: var(--good);
  font-weight: 800;
  margin-right: 6px;
}

/* ---------- hero demo video ---------- */
.hero-demo {
  margin-top: 44px;
  max-width: 920px;
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}

/* ---------- generic section ---------- */
section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.sec-head {
  max-width: 56ch;
  margin-bottom: 40px;
}

.sec-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-top: 12px;
}

.sec-head p {
  color: var(--ink-soft);
  margin-top: 14px;
  font-size: 1.05rem;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 62ch;
}

/* ---------- features ---------- */
.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.card h3 {
  font-size: 1.16rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  background: rgba(124, 107, 255, 0.1);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 999px;
}

.ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 107, 255, 0.12);
  border: 1px solid var(--border-strong);
  margin-bottom: 16px;
}

.ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-2);
}

/* ---------- how it works (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.step .num {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0b0b12;
  background: var(--accent-grad);
  box-shadow: var(--shadow-accent);
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 7px;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- pricing ---------- */
.prices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
}

.price.popular {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b0b12;
  background: var(--accent-grad);
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price .plan-name {
  font-size: 1.18rem;
  font-weight: 800;
}

.price .amount {
  margin: 14px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price .amount .big {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price .amount .per {
  color: var(--muted);
  font-weight: 600;
}

.price .feats {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: grid;
  gap: 11px;
  flex: 1;
}

.price .feats li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.price .feats li svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  stroke: var(--good);
}

/* ---------- faq ---------- */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.faq-item h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--ink-soft);
}

/* ---------- final CTA band ---------- */
.cta-band {
  margin: 12px 0 0;
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  background:
    radial-gradient(800px 320px at 50% -40%, rgba(124, 107, 255, 0.35), transparent 70%),
    linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--border-strong);
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band p {
  color: var(--ink-soft);
  margin: 16px auto 0;
  max-width: 50ch;
  font-size: 1.05rem;
}

.cta-band .hero-cta {
  justify-content: center;
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 8px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.foot-links a {
  color: var(--ink-soft);
  font-weight: 600;
}

.foot-links a:hover {
  color: var(--ink);
}

.foot small {
  color: var(--muted);
  display: block;
}

.foot .legal {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-3,
  .grid-4,
  .steps,
  .prices {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .wrap {
    padding-inline: 18px;
  }
  .hero {
    padding: 56px 0 44px;
  }
  section {
    padding: 48px 0;
  }
  .grid-3,
  .grid-4,
  .steps,
  .prices {
    grid-template-columns: 1fr;
  }
  .nav-link.hide-sm {
    display: none;
  }
  .cta-band {
    padding: 40px 22px;
  }
  .hero-cta .btn,
  .price .btn {
    width: 100%;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .note {
    text-align: center;
  }
}

.legal a { color: var(--ink-soft); text-decoration: underline; }
.legal a:hover { color: var(--ink); }
.legal-product {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-soft); font-size: 0.92rem; font-weight: 600;
}
.legal-product a { display: inline-flex; align-items: center; line-height: 0; }
.legal-product .bc-logo { height: 30px; width: auto; display: block; }
.legal-co { color: var(--muted); font-size: 0.8rem; line-height: 1.5; max-width: 70ch; }
