:root {
  --vg-accent: #8037f4;
  --vg-accent-lt: #b06aff;
  --vg-text: #1c1c1c;
  --vg-muted: #6b7280;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--vg-text);
  background: #fafafa;
  font-family: Lexend, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 72px;
  padding: 0 5vw;
  background: rgba(250, 250, 250, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.logo img {
  display: block;
  height: 28px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.btn.sm {
  padding: 0.5rem 0.9rem;
}

.btn.ghost {
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #1c1c1c;
  font-weight: 500;
}

.btn.ghost:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.03);
}

.btn.primary {
  background: var(--vg-accent);
  color: #fff;
  font-weight: 600;
}

.btn.primary:hover {
  background: #6c2bd9;
  box-shadow: 0 10px 24px -8px rgba(128, 55, 244, 0.4);
}

.vg-hero {
  --vg-card: #ffffffb8;
  --vg-border: #14141e12;
  --vg-line: #8037f41a;
  min-height: 100dvh;
  color: var(--vg-text);
  background: #fafafa;
  position: relative;
  overflow: hidden;
}

.vg-glow {
  pointer-events: none;
  background: radial-gradient(1100px 620px at 78% 18%, #8037f417, #0000 62%);
  position: absolute;
  inset: 0;
}

.vg-dots {
  pointer-events: none;
  background-image: radial-gradient(#1c1c1c0d 1px, #0000 1px);
  background-size: 22px 22px;
  position: absolute;
  inset: 0;
  mask-image: radial-gradient(900px 600px at 80% 35%, #000 0%, #0000 70%);
}

.vg-main {
  z-index: 1;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1320px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(96px, 12vh, 132px) clamp(20px, 5vw, 80px) 56px;
  display: flex;
  position: relative;
}

.vg-copy {
  flex: 0 0 42%;
  max-width: 500px;
}

.vg-title {
  letter-spacing: -0.035em;
  margin: 0;
  font-size: clamp(2.4rem, 4.8vw, 3.75rem);
  font-weight: 600;
  line-height: 1.04;
}

.vg-accent-word {
  background: linear-gradient(100deg, #8037f4, #b06aff);
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.vg-sub {
  color: var(--vg-muted);
  max-width: 38ch;
  margin: 18px 0 0;
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.vg-cta-row {
  gap: 12px;
  margin-top: 32px;
  display: flex;
}

.vg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s, color 0.18s;
}

.vg-btn-primary {
  background: var(--vg-accent);
  color: #fff;
  box-shadow: 0 6px 16px -4px #8037f466;
}

.vg-btn-primary:hover {
  background: #6c2bd9;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px #8037f480;
}

.vg-btn-ghost {
  color: var(--vg-text);
  background: transparent;
  border-color: #14141e24;
}

.vg-btn-ghost:hover {
  color: #6c2bd9;
  background: #8037f40d;
  border-color: #8037f466;
}

.vg-stage {
  flex: 1;
  min-width: 0;
  min-height: 600px;
  position: relative;
  overflow: visible;
}

.vg-slot {
  opacity: 0;
  animation: 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both vgSlotIn;
  animation-delay: var(--enter, 0s);
  position: absolute;
}

.vg-float {
  animation: vgFloat var(--dur, 9s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.vg-depth {
  transform: scale(var(--s, 1));
  opacity: var(--o, 1);
}

.d-front {
  --s: 1;
  --o: 1;
}

.d-mid {
  --s: 0.93;
  --o: 0.96;
}

.d-back {
  --s: 0.82;
  --o: 0.74;
  filter: blur(2px) saturate(0.85);
}

.vg-card {
  background: var(--vg-card);
  border: 1px solid var(--vg-border);
  backdrop-filter: blur(12px) saturate(140%);
  border-radius: 16px;
  width: 210px;
  padding: 15px 16px 17px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px #1414280a, 0 8px 18px -6px #1414281a, 0 24px 48px -16px #5028a024;
}

.vg-card:before {
  content: "";
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(#ffffffa6 0%, #fff0 42%);
  position: absolute;
  inset: 0;
  box-shadow: inset 0 1px #ffffffe6;
}

.vg-card-top {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.vg-status {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  font-size: 0.63rem;
  font-weight: 600;
}

.vg-status.working {
  color: #7c3aed;
}

.vg-status.done {
  color: #16a34a;
}

.vg-status.done:before {
  content: "✓";
  margin-right: 5px;
}

.vg-agents {
  align-items: center;
  display: flex;
}

.vg-agent {
  z-index: 2;
  background: radial-gradient(circle at 34% 28%, #c9aaff, #8037f4 58%, #5b1fae 100%);
  border-radius: 50%;
  flex: none;
  width: 27px;
  height: 27px;
  position: relative;
  box-shadow: 0 2px 8px #8037f466, inset 0 1px 1px #ffffff80;
}

.vg-agent:after {
  content: "";
  border: 1.5px solid var(--vg-accent);
  border-radius: 50%;
  animation: 2.6s ease-out infinite vgPulse;
  position: absolute;
  inset: 0;
}

.vg-agent.done {
  background: radial-gradient(circle at 34% 28%, #e5e7eb, #9ca3af 72%);
  box-shadow: 0 1px 4px #0000001a;
}

.vg-agent.done:after {
  display: none;
}

.vg-human {
  z-index: 1;
  background: #e9ddff;
  border: 1.5px solid #8037f459;
  border-radius: 50%;
  flex: none;
  width: 23px;
  height: 23px;
  margin-right: -9px;
  box-shadow: 0 1px 3px #00000014;
}

.vg-task {
  letter-spacing: -0.006em;
  color: var(--vg-text);
  min-height: 2.4em;
  margin-top: 15px;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.32;
}

.vg-progress {
  background: var(--vg-line);
  border-radius: 99px;
  height: 3px;
  margin-top: 15px;
  overflow: hidden;
}

.vg-progress-fill {
  background: linear-gradient(90deg, #8037f4, #b06aff);
  border-radius: 99px;
  height: 100%;
  display: block;
  box-shadow: 0 0 8px #8037f473;
}

.vg-progress-fill.done {
  background: #16a34a;
  box-shadow: 0 0 8px #22c55e66;
}

footer {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links,
.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-links span {
  color: #9ca3af;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #d1d5db;
}

.footer-social a {
  font-size: 1.35rem;
}

.copyright {
  margin: 0;
}

@keyframes vgFloat {
  0%,
  to {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(7px);
  }
}

@keyframes vgPulse {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  70% {
    opacity: 0;
  }
  to {
    opacity: 0;
    transform: scale(2.1);
  }
}

@keyframes vgSlotIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .btn.ghost.sm {
    display: none;
  }

  .vg-main {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    min-height: auto;
    padding: 92px 6vw 52px;
  }

  .vg-copy {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .vg-title {
    font-size: clamp(2rem, 8.2vw, 2.9rem);
  }

  .vg-sub {
    max-width: none;
  }

  .vg-cta-row {
    width: 100%;
  }

  .vg-btn {
    text-align: center;
    flex: 1;
  }

  .vg-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    width: 100%;
    min-height: 0;
    display: grid;
  }

  .vg-slot {
    position: static;
  }

  .vg-slot-back {
    display: none;
  }

  .vg-float {
    animation: none;
  }

  .vg-depth {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .vg-card {
    width: 100%;
  }

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

  .copyright {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vg-float,
  .vg-agent:after,
  .vg-slot {
    animation: none !important;
  }

  .vg-slot {
    opacity: 1 !important;
  }
}
