:root {
  --bg: #050508;
  --bg-elevated: #0a0a12;
  --bg-soft: #0f0f18;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #a1a1aa;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --brand: #5c7cfa;
  --brand-400: #748ffc;
  --brand-300: #91a7ff;
  --brand-600: #4c6ef5;
  --accent: #f06595;
  --accent-600: #e64980;
  --cyber: #22b8cf;
  --purple: #9775fa;
  --ok: #34d399;
  --danger: #f87171;
  --neon-blue: #5c7cfa;
  --neon-pink: #f06595;
  --neon-cyan: #22b8cf;
  --font: "Vazirmatn", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1280px;
  --border-angle: 0deg;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2rem, 760px);
}

/* ===== Atmosphere (matching original) ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-bg::before,
.aurora-bg::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
}

.aurora-bg::before {
  top: -50%;
  left: -50%;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(92, 124, 250, 0.08) 0, transparent 70%),
    radial-gradient(500px 400px at 80% 30%, rgba(240, 101, 149, 0.06) 0, transparent 70%),
    radial-gradient(700px 300px at 50% 80%, rgba(34, 184, 207, 0.06) 0, transparent 70%),
    radial-gradient(400px 400px at 10% 70%, rgba(151, 117, 250, 0.05) 0, transparent 70%);
  animation: aurora-drift 25s ease-in-out infinite;
}

.aurora-bg::after {
  top: -30%;
  left: -30%;
  background:
    radial-gradient(400px 250px at 70% 60%, rgba(92, 124, 250, 0.05) 0, transparent 70%),
    radial-gradient(600px 350px at 30% 40%, rgba(81, 207, 102, 0.04) 0, transparent 70%);
  animation: aurora-drift 30s ease-in-out infinite reverse;
}

@keyframes aurora-drift {
  0% { transform: translate(0) rotate(0deg); }
  25% { transform: translate(3%, -2%) rotate(1deg); }
  50% { transform: translate(-2%, 3%) rotate(-1deg); }
  75% { transform: translate(2%, 1%) rotate(0.5deg); }
  100% { transform: translate(0) rotate(0deg); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(92, 124, 250, 0.04) 1px, transparent 0),
    linear-gradient(90deg, rgba(92, 124, 250, 0.04) 1px, transparent 0);
  background-size: 60px 60px;
  animation: grid-fade 8s ease-in-out infinite;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

@keyframes grid-fade {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hex-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%235c7cfa' fill-opacity='0.035'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h2v7.5L28 15v2L14 24.5 0 17v-2zm0 18.5L12.98 41v8h2v-8.05L28 33.5v-2L14 39.5 0 32v1.5z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  top: 10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: rgba(92, 124, 250, 0.06);
}

.blob-2 {
  bottom: 10%;
  left: 15%;
  width: 400px;
  height: 400px;
  background: rgba(240, 101, 149, 0.05);
}

.blob-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: rgba(34, 184, 207, 0.03);
  filter: blur(160px);
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== Gradient text glow (the “glitch-like” hero effect) ===== */
.gradient-text,
.gradient-text-glow {
  background: linear-gradient(
    135deg,
    rgb(92, 124, 250),
    rgb(240, 101, 149) 33%,
    rgb(34, 184, 207) 66%,
    rgb(151, 117, 250)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-flow 6s ease infinite;
}

.gradient-text-glow {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(92, 124, 250, 0.45));
}

/* subtle RGB / glitch layers on hero glow line */
.gradient-text-glow::before,
.gradient-text-glow::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  mix-blend-mode: screen;
}

.gradient-text-glow::before {
  text-shadow: -2px 0 rgba(240, 101, 149, 0.7);
  animation: glitch-a 3.2s steps(2, end) infinite;
  opacity: 0.55;
}

.gradient-text-glow::after {
  text-shadow: 2px 0 rgba(34, 184, 207, 0.7);
  animation: glitch-b 2.6s steps(2, end) infinite;
  opacity: 0.45;
}

@keyframes glitch-a {
  0%, 90%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); }
  92% { transform: translate(-3px, 1px); clip-path: inset(10% 0 60% 0); }
  94% { transform: translate(3px, -1px); clip-path: inset(40% 0 20% 0); }
  96% { transform: translate(-2px, 0); clip-path: inset(70% 0 5% 0); }
}

@keyframes glitch-b {
  0%, 88%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); }
  91% { transform: translate(3px, -1px); clip-path: inset(5% 0 55% 0); }
  93% { transform: translate(-3px, 1px); clip-path: inset(50% 0 15% 0); }
  95% { transform: translate(2px, 0); clip-path: inset(20% 0 45% 0); }
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hl-cyber { color: var(--cyber); }
.hl-brand { color: var(--brand-400); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 8, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  position: relative;
  z-index: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent), var(--cyber));
  color: #fff;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(92, 124, 250, 0.25);
}

.logo-text {
  font-size: 1.05rem;
}

.logo-text .pro {
  background: linear-gradient(135deg, var(--brand-400), var(--cyber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  position: relative;
  color: var(--zinc-400);
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #fff;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 70%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 16px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  font-weight: 600;
}

.btn-ghost {
  color: var(--zinc-400);
  background: transparent;
}

.btn-ghost:hover {
  color: #fff;
}

.btn-signup {
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-600), var(--accent-600), var(--brand-600));
  background-size: 200% 100%;
  animation: gradient-flow 4s ease infinite;
}

.btn-primary-hero {
  position: relative;
  padding: 1rem 2.4rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-600), var(--accent-600), var(--brand-600));
  background-size: 200% 100%;
  animation: gradient-flow 4s ease infinite;
  z-index: 1;
}

.btn-primary-hero:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(92, 124, 250, 0.3);
}

.btn-outline {
  padding: 1rem 2.4rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--zinc-300);
  background: transparent;
  font-weight: 600;
}

.btn-outline:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(92, 124, 250, 0.3);
  box-shadow: 0 0 30px rgba(92, 124, 250, 0.1);
}

.btn-block {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 5rem 0 3.5rem;
  z-index: 1;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(92, 124, 250, 0.2);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  color: var(--brand-300);
  font-size: 0.9rem;
  margin: 0 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer-slide 3.5s ease-in-out infinite;
}

@keyframes shimmer-slide {
  0% { left: -100%; }
  100% { left: 200%; }
}

.hero-eyebrow .spark {
  width: 16px;
  height: 16px;
  color: var(--brand-300);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

.hero-eyebrow .sep {
  width: 1px;
  height: 14px;
  background: rgba(92, 124, 250, 0.35);
}

.hero-eyebrow .cyber {
  color: var(--cyber);
  font-weight: 600;
}

.hero-heading {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero-heading .line-white {
  display: block;
  color: #fff;
}

.hero-heading .line-glow {
  display: block;
  margin-top: 0.15em;
}

.hero-lead {
  max-width: 640px;
  margin: 1.5rem auto 2rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.mono-prompt {
  font-family: var(--mono);
  opacity: 0.85;
  font-weight: 500;
}

/* ===== Code preview panels ===== */
.decode-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.1rem;
  align-items: stretch;
  text-align: right;
  margin-bottom: 1.75rem;
}

.code-panel {
  position: relative;
  background: linear-gradient(180deg, #0c0c14, #08080e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  min-height: 240px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.code-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(92, 124, 250, 0.03), transparent, rgba(240, 101, 149, 0.02), transparent);
  animation: code-shine 10s linear infinite;
  pointer-events: none;
}

@keyframes code-shine {
  to { transform: rotate(1turn); }
}

.panel-encoded {
  background: linear-gradient(180deg, #0c0410, #08040a);
}

.panel-decoded {
  background: linear-gradient(180deg, #040f0a, #030a07);
}

.code-panel header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  direction: ltr;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.window-dots .r { background: #ff5f57; }
.window-dots .y { background: #febc2e; }
.window-dots .g { background: #28c840; }

.panel-name {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-right: auto;
}

.badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-red {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.badge-green {
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.code-block {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 1rem 1.1rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  direction: ltr;
  text-align: left;
  overflow: auto;
}

.scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(92, 124, 250, 0.5), rgba(34, 184, 207, 0.5), transparent);
  animation: scan 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.panel-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 5;
  pointer-events: none;
}

.panel-encoded .panel-fade {
  background: linear-gradient(to top, #0c0410, transparent);
}

.panel-decoded .panel-fade {
  background: linear-gradient(to top, #040f0a, transparent);
}

.c-muted { color: #7c8798; }
.c-dim { color: #5a6474; }
.c-kw { color: #7dd3fc; }
.c-type { color: #fde68a; }
.c-fn { color: #86efac; }
.c-var { color: #fda4af; }

.decode-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-self: center;
  background: rgba(92, 124, 250, 0.12);
  border: 1px solid rgba(92, 124, 250, 0.35);
  color: var(--brand-300);
  font-size: 1.35rem;
  box-shadow: 0 0 24px rgba(92, 124, 250, 0.2);
  animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(92, 124, 250, 0.35); }
  100% { box-shadow: 0 0 0 14px rgba(92, 124, 250, 0); }
}

/* ===== Stat cards ===== */
.stat-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.stat-strip li {
  position: relative;
  padding: 1.25rem 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.stat-strip li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0.55;
}

.stat-strip li::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.12;
  filter: blur(30px);
  pointer-events: none;
}

.stat-strip li:nth-child(1)::before { background: linear-gradient(90deg, var(--brand-400), var(--brand)); }
.stat-strip li:nth-child(1)::after { background: var(--brand); }
.stat-strip li:nth-child(2)::before { background: linear-gradient(90deg, var(--cyber), #67e8f9); }
.stat-strip li:nth-child(2)::after { background: var(--cyber); }
.stat-strip li:nth-child(3)::before { background: linear-gradient(90deg, #fbbf24, #fb923c); }
.stat-strip li:nth-child(3)::after { background: #fbbf24; }
.stat-strip li:nth-child(4)::before { background: linear-gradient(90deg, #34d399, #10b981); }
.stat-strip li:nth-child(4)::after { background: #34d399; }

.stat-strip .icon {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  display: block;
}

.stat-strip strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 0.15rem;
  background: linear-gradient(135deg, var(--brand-400), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-strip li:nth-child(2) strong {
  background: linear-gradient(135deg, var(--cyber), #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-strip li:nth-child(3) strong {
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-strip li:nth-child(4) strong {
  background: linear-gradient(135deg, #34d399, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(92, 124, 250, 0.025), transparent);
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem !important;
  color: var(--brand-300) !important;
  font-weight: 700;
  font-size: 0.9rem;
}

.demo-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 1.25rem;
}

.demo-side {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.demo-side h3 { margin: 0 0 0.5rem; }
.demo-side > p { color: var(--muted); margin: 0 0 1.25rem; }

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c14;
  color: var(--text);
  outline: none;
}

.select:focus {
  border-color: rgba(92, 124, 250, 0.5);
}

.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  min-height: 300px;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
}

.upload-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--border-angle),
    rgba(92, 124, 250, 0) 0,
    rgba(92, 124, 250, 0.4) 10%,
    rgba(240, 101, 149, 0.3) 20%,
    rgba(34, 184, 207, 0.3) 30%,
    rgba(92, 124, 250, 0) 40%,
    rgba(92, 124, 250, 0) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-spin 6s linear infinite;
  pointer-events: none;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.upload-zone:hover,
.upload-zone.dragover {
  background: rgba(92, 124, 250, 0.04);
}

.upload-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  color: var(--brand-300);
  background: rgba(92, 124, 250, 0.1);
  border: 1px solid rgba(92, 124, 250, 0.25);
}

.upload-zone h3 { margin: 0; font-size: 1.2rem; }
.upload-zone > p { margin: 0; color: var(--muted); }

.upload-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.upload-tags span {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.upload-status {
  margin-top: 1rem !important;
  color: var(--ok) !important;
  font-weight: 600;
}

.legal-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.version-item {
  display: block;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.version-item:hover {
  border-color: rgba(92, 124, 250, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(92, 124, 250, 0.08);
}

.ver-tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-300);
  background: rgba(92, 124, 250, 0.1);
  border: 1px solid rgba(92, 124, 250, 0.25);
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
  direction: ltr;
}

.version-item h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.version-item p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.runtime-note {
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(34, 184, 207, 0.2);
  background: rgba(34, 184, 207, 0.04);
}

.runtime-note h3 { margin: 0 0 0.4rem; }
.runtime-note p { margin: 0; color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: rgba(92, 124, 250, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: rgba(92, 124, 250, 0.1);
  color: var(--brand-300);
  font-size: 1.1rem;
}

.feature h3 { margin: 0 0 0.45rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.metric strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, var(--brand-400), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.metric span { color: var(--muted); }

.pay-note {
  margin-top: 0.85rem !important;
  color: var(--accent) !important;
  font-weight: 600;
}

.pricing-card {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 2rem 1.6rem 1.6rem;
  border-radius: 22px;
  border: 1px solid rgba(92, 124, 250, 0.3);
  background:
    radial-gradient(circle at top, rgba(92, 124, 250, 0.12), transparent 50%),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.plan-label { margin: 0; color: var(--muted); font-size: 0.9rem; }
.pricing-card h3 { margin: 0.35rem 0; font-size: 1.7rem; }
.plan-desc { margin: 0 0 1.2rem; color: var(--muted); }

.price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.price strong { font-size: 3.2rem; line-height: 1; }
.price span { font-size: 1.1rem; color: var(--muted); }
.price em {
  width: 100%;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.plan-list li {
  position: relative;
  padding-right: 1.4rem;
}

.plan-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--brand-300);
  font-weight: 700;
}

.pricing-card .btn-primary-hero {
  width: 100%;
}

.crypto-hint {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.faq-list { display: grid; gap: 0.7rem; }

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0 1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 600;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary span {
  color: var(--brand-300);
  font-family: var(--mono);
  font-size: 0.85rem;
  min-width: 1.6rem;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  padding-right: 2.35rem;
}

.legal-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(240, 101, 149, 0.25);
  background: rgba(240, 101, 149, 0.04);
}

.legal-box h3 { margin: 0 0 0.6rem; }
.legal-box p { margin: 0 0 0.9rem; color: var(--muted); }
.legal-box ul { margin: 0; padding-right: 1.2rem; color: var(--muted); }

.site-footer {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #040408;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p { color: var(--muted); margin: 1rem 0; }

.status-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ok) !important;
  font-size: 0.9rem;
}

.status-ok span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.site-footer h4 { margin: 0 0 0.9rem; font-size: 0.95rem; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer li,
.site-footer a { color: var(--muted); }

.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.float-tg {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #229ed9;
  color: #fff;
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.4);
  z-index: 40;
  transition: transform 0.2s ease;
}

.float-tg:hover { transform: scale(1.06); }

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: 72px 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 8, 14, 0.96);
    backdrop-filter: blur(16px);
  }

  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 1rem; border-radius: 10px; }
  .nav a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-ghost { display: none; }

  .decode-preview { grid-template-columns: 1fr; }
  .decode-arrow {
    margin: -0.3rem auto;
    transform: rotate(-90deg);
  }

  .stat-strip,
  .version-grid,
  .feature-grid,
  .metrics,
  .footer-grid,
  .demo-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 3.2rem; }
  .hero-cta .btn-outline,
  .hero-cta .btn-primary-hero {
    width: 100%;
  }

  .stat-strip,
  .version-grid,
  .feature-grid,
  .metrics,
  .footer-grid,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .header-actions .btn-signup { display: none; }
}
