:root {
  --bg: #07080f;
  --bg-elev: #0e101a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f5f8;
  --muted: #9aa3b5;
  --purple: #3b2cff;
  --cyan: #00c2ff;
  --lime: #b6f000;
  --cream: #f7f3ea;
  --danger: #ff5c7a;
  --ok: #3dd68c;
  --radius: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: float 12s ease-in-out infinite;
}
.orb-a {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(59,44,255,.55), transparent 70%);
  top: -120px; left: -80px;
}
.orb-b {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0,194,255,.4), transparent 70%);
  right: -100px; top: 40%;
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(30px) scale(1.05); }
}

.top, main, .footer { position: relative; z-index: 1; }

.top {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
  z-index: 50;
}
.top.scrolled { border-color: var(--line); background: rgba(7, 8, 15, 0.9); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: white;
  font-size: 15px;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.top nav > a:not(.btn) {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.top nav > a:not(.btn):hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.solid {
  background: linear-gradient(135deg, var(--purple), #6a5cff);
  color: white;
  box-shadow: 0 12px 30px rgba(59, 44, 255, 0.35);
}
.btn.ghost {
  border-color: var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.btn.large { padding: 14px 22px; font-weight: 600; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding: 72px 28px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(182, 240, 0, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(182, 240, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(182, 240, 0, 0); }
}
.hero h1, .section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 18px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.grad {
  display: block;
  background: linear-gradient(120deg, var(--cream), var(--cyan) 55%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead, .section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 0 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-points li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(182,240,0,.5);
}

.hero-visual { position: relative; min-height: 520px; }
.phone-shell {
  width: min(300px, 100%);
  margin: 0 auto;
  border-radius: 36px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.phone-notch {
  width: 96px; height: 18px;
  background: #05060b;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 14px;
}
.phone-screen {
  background: #11131d;
  border-radius: 26px;
  min-height: 430px;
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.phone-card-live {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  animation: rise .5s ease both;
}
.phone-card-live strong { display: block; margin-bottom: 4px; }
.phone-card-live span { color: var(--muted); font-size: 13px; }
.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(61,214,140,.15);
  color: var(--ok);
}
.float-card {
  position: absolute;
  background: rgba(14,16,26,.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--display); font-size: 1.2rem; }
.float-card span { color: var(--muted); font-size: 12px; }
.float-a { left: 0; top: 70px; }
.float-b { right: 0; bottom: 80px; animation-delay: -2s; }

.logos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 28px 40px;
  color: var(--muted);
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.logo-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255,255,255,.02);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 28px;
}
.section.dark {
  max-width: none;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.dark > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); max-width: 720px; }
.steps, .feature-grid, .security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.security-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
.step, .feature, .security-grid article, .price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .25s, border-color .25s, background .25s;
}
.step:hover, .feature:hover, .security-grid article:hover, .price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,194,255,.35);
  background: rgba(255,255,255,.055);
}
.step-num, .feature-icon {
  font-family: var(--display);
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 14px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(59,44,255,.25), rgba(0,194,255,.18));
}
.step h3, .feature h3, .security-grid h3 { margin: 0 0 8px; font-family: var(--display); }
.step p, .feature p, .security-grid p { margin: 0; color: var(--muted); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,.06);
  padding: 2px 6px;
  border-radius: 6px;
}

.preview-panel {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(7,8,15,.65);
}
.preview-tabs {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.preview-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.preview-tabs button.active {
  background: rgba(59,44,255,.2);
  color: var(--text);
}
.preview-stage { padding: 22px; min-height: 240px; }
.skel-grid, .preview-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.preview-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.03);
  animation: rise .45s ease both;
}
.preview-card .meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.preview-card .price { margin-top: 14px; font-family: var(--display); font-weight: 700; }

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.price-card.featured {
  background: linear-gradient(160deg, rgba(59,44,255,.22), rgba(0,194,255,.08));
  border-color: rgba(59,44,255,.45);
}
.price-label { color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.price {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.04em;
}
.price-note { color: var(--muted); margin: 4px 0 18px; }
.price-card ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }

.form {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: rgba(255,255,255,.03);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.form label.span-2 { grid-column: span 2; }
.form input, .form select, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: rgba(0,194,255,.55);
  box-shadow: 0 0 0 3px rgba(0,194,255,.12);
}
.form-hint { color: var(--muted); margin: 14px 0 0; }
.result-card {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid rgba(61,214,140,.35);
  background: rgba(61,214,140,.08);
  padding: 18px;
}
.result-card.error {
  border-color: rgba(255,92,122,.4);
  background: rgba(255,92,122,.08);
}
.result-card code {
  display: block;
  margin-top: 8px;
  word-break: break-all;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 40px 28px 60px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer strong { color: var(--text); font-family: var(--display); }
.footer-links { display: flex; gap: 18px; align-items: center; }

/* Skeletons */
.skel {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skel-line { height: 14px; margin-bottom: 10px; }
.skel-line.w30 { width: 30%; }
.skel-line.w40 { width: 40%; }
.skel-line.w50 { width: 50%; }
.skel-line.tall { height: 42px; margin: 14px 0; }
.skel-card { height: 88px; border-radius: 18px; }
.skel-card.short { height: 64px; }
.skel-wrap { min-height: 260px; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.hidden { display: none !important; }

@media (max-width: 960px) {
  .hero, .steps, .feature-grid, .security-grid, .pricing, .skel-grid, .preview-cards {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 40px; }
  .hero-visual { min-height: auto; }
  .float-a, .float-b { display: none; }
  .nav-toggle { display: flex; }
  .top nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px; right: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(10,12,20,.96);
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .top nav.open { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .form label.span-2 { grid-column: auto; }
}
