/* ═══════════════════════════════════════════════════
   VORKIX LANDING — styles.css
   ═══════════════════════════════════════════════════ */

/* ── Reset & base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --indigo:    #6366f1;
  --indigo-d:  #4f46e5;
  --violet:    #8b5cf6;
  --text:      #0f172a;
  --text-2:    #475569;
  --text-3:    #94a3b8;
  --bg:        #ffffff;
  --bg-2:      #f8fafc;
  --border:    #e2e8f0;
  --radius:    14px;
  --shadow:    0 4px 24px rgba(99,102,241,.10);
  --shadow-lg: 0 16px 48px rgba(99,102,241,.18);
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --header-h:  72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ── Typography ───────────────────────────────────── */
h1,h2,h3 { line-height: 1.2; font-weight: 700; }
p { color: var(--text-2); }

/* ── Layout ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,.35);
}
.btn--primary:hover { background: var(--indigo-d); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,.45); }

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

.btn--outline {
  background: transparent;
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
  width: 100%;
  justify-content: center;
}
.btn--outline:hover { background: var(--indigo); color: #fff; }

.btn--hero-primary {
  background: #fff;
  color: var(--indigo);
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(255,255,255,.4);
}
.btn--hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,255,255,.5); }

.btn--hero-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
}
.btn--hero-ghost:hover { background: rgba(255,255,255,.2); }

.btn--primary-sm, .btn--ghost-sm {
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .875rem;
}
.btn--primary-sm { background: var(--indigo); color: #fff; }
.btn--ghost-sm { background: transparent; color: var(--text); border: 1.5px solid var(--border); }

/* ── Header ───────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.08); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__icon { width: 36px; height: 36px; }
.logo__text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--indigo);
}

.nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.nav__link {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .9rem;
  color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); background: var(--bg-2); }

.header__cta { display: flex; gap: 10px; flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ── Sticky bar mobile ────────────────────────────── */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  gap: 12px;
  justify-content: center;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 60px) 24px 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
}
.blob--1 { width: 600px; height: 600px; background: #6366f1; top: -200px; right: -100px; }
.blob--2 { width: 400px; height: 400px; background: #8b5cf6; bottom: -100px; left: -50px; }
.blob--cta { width: 500px; height: 500px; background: #6366f1; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: .25; }

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  text-align: center;
  color: #fff;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(90deg, #a5b4fc, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__note {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

.hero__screenshot {
  position: absolute;
  right: max(5%, calc(50% - 580px));
  top: 50%;
  transform: translateY(-45%);
  z-index: 2;
  display: none; /* shown on wide screens */
}

.screenshot-card {
  width: 280px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.screenshot-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.screenshot-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.screenshot-body { padding: 16px; }

.mock-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mock-label { font-size: .75rem; color: rgba(255,255,255,.5); }
.mock-value { font-size: 1rem; font-weight: 700; color: #fff; }
.mock-value.accent { color: #6ee7b7; }

.mock-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-top: 16px;
}
.mock-bar {
  flex: 1;
  background: rgba(255,255,255,.15);
  border-radius: 4px 4px 0 0;
  transition: height .5s ease;
}
.mock-bar.active { background: #6366f1; }

/* ── Section shared ───────────────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; color: var(--text-2); max-width: 560px; margin: 0 auto; }

/* ── Features grid ────────────────────────────────── */
.features { background: var(--bg); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .3s, transform .3s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-icon--indigo  { background: #eef2ff; color: #6366f1; }
.feature-icon--violet  { background: #f5f3ff; color: #8b5cf6; }
.feature-icon--blue    { background: #eff6ff; color: #3b82f6; }
.feature-icon--emerald { background: #ecfdf5; color: #10b981; }
.feature-icon--amber   { background: #fffbeb; color: #f59e0b; }
.feature-icon--rose    { background: #fff1f2; color: #f43f5e; }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p  { font-size: .9rem; color: var(--text-2); }

/* ── How it works ─────────────────────────────────── */
.how { background: var(--bg-2); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 200px;
}

.step__num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
}

.step__body h3 { font-size: .95rem; margin-bottom: 8px; }
.step__body p  { font-size: .85rem; color: var(--text-2); }

.step__connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  min-width: 40px;
  max-width: 80px;
  margin-top: 26px;
  border-radius: 2px;
  opacity: .4;
}

/* ── Platforms ────────────────────────────────────── */
.platforms { background: var(--bg); }

.platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.platform-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: box-shadow .3s, transform .3s;
}
.platform-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.platform-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.platform-icon svg { width: 32px; height: 32px; }
.platform-icon--web      { background: #eff6ff; color: #3b82f6; }
.platform-icon--telegram { background: #e0f2fe; color: #0ea5e9; }
.platform-icon--tma      { background: #f5f3ff; color: #8b5cf6; }

.platform-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.platform-card p  { font-size: .9rem; color: var(--text-2); }

/* ── Pricing ──────────────────────────────────────── */
.pricing { background: var(--bg-2); }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12), var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card__name  { font-size: .9rem; font-weight: 700; color: var(--text-2); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.pricing-card__price { margin-bottom: 24px; }
.pricing-card__amount { font-size: 2.6rem; font-weight: 800; }
.pricing-card__period { font-size: .9rem; color: var(--text-3); margin-left: 4px; }

.pricing-card__features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-card__features li {
  font-size: .9rem;
  color: var(--text-2);
  padding-left: 22px;
  position: relative;
}
.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--indigo);
  font-weight: 700;
}

/* ── CTA section ──────────────────────────────────── */
.cta-section { background: var(--bg); }

.cta-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
  color: #fff;
}

.cta-box__title { font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; margin-bottom: 16px; }
.cta-box__sub   { font-size: 1.05rem; color: rgba(255,255,255,.7); margin-bottom: 36px; }
.cta-box__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────── */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 0 0;
}

.footer__inner {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid #1e293b;
}

.footer__brand { flex: 1; min-width: 200px; }
.footer__brand .logo__text { color: #fff; }

.footer__tagline { margin-top: 12px; font-size: .9rem; color: #475569; }

.footer__links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.footer__col h4 { font-size: .85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.footer__col a  { font-size: .9rem; color: #64748b; transition: color .2s; }
.footer__col a:hover { color: #a5b4fc; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: .85rem;
  color: #475569;
}

/* ── Header Language Dropdown ─────────────────────── */
/* Usa <details>/<summary> — el navegador maneja el toggle sin JS */
details.lang-drop {
  position: relative;
  flex-shrink: 0;
}
/* Reset default marker */
details.lang-drop > summary { list-style: none; }
details.lang-drop > summary::-webkit-details-marker { display: none; }
details.lang-drop > summary::marker { display: none; }

.lang-drop__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  padding: 5px 10px 5px 5px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  white-space: nowrap;
  user-select: none;
}
.lang-drop__btn:hover,
.lang-drop__btn:focus-visible {
  border-color: var(--indigo);
  background: rgba(99,102,241,.05);
  box-shadow: 0 2px 8px rgba(99,102,241,.15);
  outline: none;
}
details.lang-drop[open] .lang-drop__btn {
  border-color: var(--indigo);
  background: rgba(99,102,241,.07);
}

/* Round globe icon */
.lang-drop__globe-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(99,102,241,.10);
  color: var(--indigo);
  flex-shrink: 0;
}
.lang-drop__globe-wrap svg { width: 14px; height: 14px; }

/* Language code text */
.lang-drop__code {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .03em;
}

/* Chevron */
.lang-drop__chevron {
  width: 10px;
  height: 7px;
  color: var(--text-2);
  transition: transform .25s;
  flex-shrink: 0;
}
details.lang-drop[open] .lang-drop__chevron { transform: rotate(180deg); }

/* Dropdown menu */
.lang-drop__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(15,23,42,.13);
  flex-direction: column;
  gap: 2px;
  z-index: 400;
}
details.lang-drop[open] .lang-drop__menu { display: flex; }

/* Dropdown items */
.lang-drop__item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
  font-family: var(--font);
  font-weight: 500;
  width: 100%;
}
.lang-drop__item:hover { background: var(--bg-2); color: var(--text); }
.lang-drop__item.active {
  background: rgba(99,102,241,.08);
  color: var(--indigo);
  font-weight: 700;
}
.lang-drop__flag {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.lang-drop__name { flex: 1; }
.lang-drop__check {
  width: 14px;
  height: 14px;
  color: var(--indigo);
  opacity: 0;
  flex-shrink: 0;
}
.lang-drop__item.active .lang-drop__check { opacity: 1; }

/* ── Footer Lang switcher (compacto) ──────────────── */
.lang-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lang-btn {
  background: none;
  border: 1px solid #1e293b;
  color: #64748b;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: .8rem;
  cursor: pointer;
  transition: .2s;
}
.lang-btn:hover, .lang-btn.active { border-color: var(--indigo); color: #a5b4fc; }

/* ── Animations ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(-45%) translateY(0); }
  50%      { transform: translateY(-45%) translateY(-12px); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up  { animation: fadeUp  .7s ease both; }
.animate-float    { animation: float   4s ease-in-out infinite; }
.animate-slide-up { opacity: 0; }
.animate-slide-up.visible { animation: slideUp .6s ease both; }

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .45s; }
.delay-5 { animation-delay: .55s; }

/* ── Responsive ───────────────────────────────────── */
@media (min-width: 1100px) {
  .hero { text-align: left; align-items: center; justify-items: start; }
  .hero__content { text-align: left; }
  .hero__content .badge,
  .hero__content .hero__note { text-align: left; }
  .hero__actions { justify-content: flex-start; }
  .hero__screenshot { display: block; }
}

@media (max-width: 768px) {
  .nav, .header__cta { display: none; }
  .nav.open { display: flex; flex-direction: column; position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; padding: 16px 24px 24px; border-bottom: 1px solid var(--border); z-index: 99; }
  .burger { display: flex; }
  .sticky-bar { display: flex; }
  .section { padding: 64px 0; }
  .steps { gap: 24px; }
  .step__connector { display: none; }
  .step { max-width: none; flex-direction: row; text-align: left; gap: 16px; }
  .step__num { margin-bottom: 0; }
  .cta-box { padding: 48px 24px; }
  .footer__inner { gap: 32px; }
  .pricing-card--featured { transform: none; }
  /* Keep lang-drop visible on mobile next to burger */
  details.lang-drop { display: block; }
  .lang-drop__btn { padding: 4px 8px 4px 4px; gap: 4px; }
  .lang-drop__code { display: none; }
  .lang-drop__menu { right: 0; min-width: 180px; }
}
