/* =====================================================
   landing.css — Bloxova landing page styles
   Depends on: main.css (loaded first)
   ===================================================== */

/* ── NAV ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.25s ease, border-color 0.25s ease,
              padding 0.25s ease, backdrop-filter 0.25s ease;
}

.nav--scrolled {
  background: rgba(8, 8, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}

.nav-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1.5rem;
}

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

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.nav-mobile.nav-mobile--open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
}
.nav-mobile a:hover { color: var(--text); }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1160px;
  margin-inline: auto;
  padding: 8rem 1.5rem 5rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid rgba(0,232,122,0.20);
  border-radius: var(--radius-full);
  padding: 0.35em 0.9em;
  margin-bottom: 1.6rem;
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--accent-light);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── Hero widget preview ─────────────────────────── */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-left: 0.25rem;
}

.widget-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg), var(--glow);
}

.widget-preview-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.preview-field {
  margin-bottom: 1.25rem;
}

.preview-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.preview-field-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.preview-field-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
}

.preview-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
}

.preview-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  transition: width 0.1s ease;
}

.preview-range {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  background: transparent;
  cursor: pointer;
  outline: none;
  margin-top: -4px;
  position: relative;
}
.preview-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--accent-dim);
  cursor: pointer;
  transition: transform 0.12s;
}
.preview-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.preview-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
  cursor: pointer;
}

.preview-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,232,122,0.18);
  border-radius: var(--radius);
}

.preview-result-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.preview-result-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.preview-result-val {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: -0.02em;
}

.embed-snippet {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  overflow-x: auto;
}
.embed-snippet code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  color: var(--accent-light);
  white-space: nowrap;
}

/* ── PROBLEM STRIP ─────────────────────────────────── */
.problem-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}

.problem-headline {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.4;
}

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

.problem-item {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.problem-item strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.problem-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.problem-item--accent {
  border-color: rgba(0,232,122,0.22);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0,232,122,0.06) 100%);
}

/* ── SECTION BASE ──────────────────────────────────── */
.section {
  padding: 6rem 0;
}

.section--surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3.5rem;
}

/* ── HOW IT WORKS / STEPS ──────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: steps;
}

.step {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  counter-increment: steps;
}

.step::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(0,232,122,0.22);
  color: var(--accent-light);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.step h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── WIDGET TYPE CARDS ─────────────────────────────── */
.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.type-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}

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

.type-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.type-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.type-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.type-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-light);
  background: var(--accent-dim);
  border-radius: var(--radius-full);
  padding: 0.25em 0.7em;
}

/* ── PRICING ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.price-card {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
}

.price-card--featured {
  border-color: rgba(0,232,122,0.35);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(0,232,122,0.05) 100%);
  box-shadow: var(--glow);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 0.25em 0.9em;
  white-space: nowrap;
}

.price-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-amount sup {
  font-size: 1.2rem;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
  margin-right: 0.1em;
}

.price-period {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.price-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.price-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.2em;
  position: relative;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  top: 0.1em;
}

/* ── FINAL CTA ─────────────────────────────────────── */
.cta-section {
  text-align: center;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ── FOOTER ────────────────────────────────────────── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--text-muted); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1100px) {
  .types-grid    { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
    text-align: center;
  }
  .hero-label  { margin-inline: auto; }
  .hero-sub    { margin-inline: auto; }
  .hero-cta    { justify-content: center; }
  .hero-note   { text-align: center; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps        { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links   { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .types-grid   { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
