/* VelinPro — beta.velin.pro */
:root {
  --bg: #030308;
  --bg-elevated: #0a0a12;
  --surface: rgba(14, 14, 22, 0.88);
  --surface-2: #12121c;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(239, 68, 68, 0.42);
  --text: #f4f4f8;
  --muted: #8b8ba0;
  --muted-2: #5c5c70;
  --accent: #ef4444;
  --accent-2: #ff6b6b;
  --accent-dim: rgba(239, 68, 68, 0.12);
  --success: #22c55e;
  --info: #60a5fa;
  --wait: #fbbf24;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  --glass: blur(20px) saturate(140%);
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --topbar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; min-height: 100%; }

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

.mesh-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(239, 68, 68, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 5%, rgba(99, 102, 241, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(239, 68, 68, 0.06), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15em 0.45em;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Background */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.bg-glow-a {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -120px;
  background: rgba(224, 32, 32, 0.22);
}

.bg-glow-b {
  width: 420px;
  height: 420px;
  bottom: -140px;
  right: -100px;
  background: rgba(224, 32, 32, 0.12);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(3, 3, 8, 0.72);
  backdrop-filter: var(--glass);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff4444, #b01818);
  box-shadow: 0 0 24px rgba(224, 32, 32, 0.35);
}

.brand-text { letter-spacing: 0.02em; }
.brand-accent { color: var(--accent); }

.beta-pill {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background: var(--accent-dim);
  color: #ff8888;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 0.82rem 1.25rem; font-size: 0.95rem; }

.btn-primary {
  background: linear-gradient(135deg, #ff4444, #c02020);
  color: #fff;
  box-shadow: 0 8px 28px rgba(224, 32, 32, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 10px 34px rgba(224, 32, 32, 0.38);
}

.btn-outline {
  border: 1px solid var(--border-accent);
  background: rgba(224, 32, 32, 0.08);
  color: #ffb0b0;
}

.btn-outline:hover { background: rgba(224, 32, 32, 0.14); }

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

.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.03); }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background: var(--accent-dim);
  color: #ffb4b4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease infinite;
}

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

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #ff8a8a 45%, #ef4444 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.trust-item {
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  font-family: var(--mono);
}

.trust-item span {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-frame {
  position: relative;
}

.product-frame-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(239,68,68,0.15), transparent 65%);
  pointer-events: none;
}

.mock-live {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #22c55e;
}

.section-head.center { text-align: center; margin-bottom: 2rem; }
.section-lead.center { margin: 0.5rem auto 0; text-align: center; max-width: 36rem; }

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

.bento-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}

.bento-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.bento-large { grid-column: span 2; }

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--accent-dim);
  color: #ff9999;
  font-size: 1.15rem;
}

.bento-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.bento-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

.footer-brand-col { max-width: 280px; }
.footer-domain { color: var(--muted-2); font-size: 0.82rem; font-family: var(--mono); margin: 0.35rem 0 0; }
.footer-links { display: flex; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.footer-col a { color: var(--muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.eyebrow.center { text-align: center; }

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  min-width: 96px;
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  color: #fff;
}

.stat span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Mock loader */
.mock-shell {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #0a0a10, #0e0e16);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #08080c;
  font-size: 0.78rem;
  color: var(--muted);
}

.mock-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.mock-title .dot.dim { background: #333; }

.mock-body {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 280px;
}

.mock-sidebar {
  padding: 1rem;
  border-right: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

.mock-brand {
  font-weight: 900;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.mock-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  margin-bottom: 0.45rem;
  opacity: 0.55;
}

.mock-card.active {
  opacity: 1;
  border-color: var(--border-accent);
  background: rgba(224, 32, 32, 0.08);
}

.mock-step {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
}

.mock-card.active .mock-step {
  background: rgba(224, 32, 32, 0.18);
  color: #ff8888;
}

.mock-card b {
  display: block;
  font-size: 0.82rem;
}

.mock-card small {
  color: var(--muted-2);
  font-size: 0.68rem;
}

.mock-console {
  padding: 1rem;
}

.mock-console-head {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.75rem;
}

.mock-log {
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 0.35rem;
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
}

.mock-log time { color: var(--muted-2); }
.mock-log .tag { font-weight: 700; }
.mock-log .tag.ok { color: var(--success); }
.mock-log .tag.info { color: var(--info); }
.mock-log .tag.wait { color: var(--wait); }

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.section-alt {
  background: rgba(255,255,255,0.015);
  border-block: 1px solid var(--border);
}

.section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.section-title.center { text-align: center; }
.section-lead { color: var(--muted); max-width: 36rem; }

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

.feature-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: border-color 0.2s, transform 0.2s;
}

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

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: var(--accent-dim);
  color: #ff8888;
  font-size: 1.1rem;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Modules */
.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.module-tab {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.module-tab.is-active,
.module-tab:hover {
  color: #ffb0b0;
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

.module-panels { min-height: 120px; }

.module-panel {
  display: none;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.module-panel.is-active { display: flex; }

.chip {
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: #d8d8e4;
}

/* Setup */
.setup-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.steps li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.steps li:last-child { border-bottom: none; }

.step-no {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
  min-width: 2rem;
}

.steps h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.92rem; }

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

.requirements h3 { margin: 0 0 0.75rem; }

.requirements ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.requirements li { margin-bottom: 0.35rem; }

.note {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(224, 32, 32, 0.06);
  font-size: 0.88rem;
  color: var(--muted);
}

.note strong { color: #ffb0b0; }

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-item a { color: #ff9999; text-decoration: underline; }

/* CTA */
.cta {
  position: relative;
  z-index: 1;
  padding: 0 0 4rem;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-accent);
  background:
    radial-gradient(circle at 0% 0%, rgba(224,32,32,0.18), transparent 55%),
    linear-gradient(135deg, #101018, #0a0a10);
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.cta p { margin: 0; color: var(--muted); }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0 1.25rem;
  background: rgba(0,0,0,0.25);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.footer-copy {
  margin: 0.5rem 0 0;
  color: var(--muted-2);
  font-size: 0.85rem;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.82rem;
}

.footer-tag {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .setup-grid,
  .faq-wrap {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large {
    grid-column: span 1;
  }

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

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mock-body {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: var(--topbar-h) 0 auto 0;
    background: rgba(5,5,7,0.96);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 4%;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle { display: flex; }

  .topbar-actions .btn-ghost,
  .topbar-actions .btn-primary {
    display: none;
  }

  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .feature-card:hover { transform: none; }
}
