/* ============================================================
   VOX JOT — Standalone Stylesheet
   Dark, premium aesthetic inspired by uploadthing.com / t3.codes
   ============================================================ */

/* --- Design Tokens ----------------------------------------- */
:root {
  --vj-bg: #000000;
  --vj-bg-raised: #09090b;
  --vj-bg-subtle: rgba(255, 255, 255, 0.03);
  --vj-text: #fafafa;
  --vj-text-muted: #a1a1aa;
  --vj-text-dim: #52525b;
  --vj-border: rgba(255, 255, 255, 0.06);
  --vj-border-hover: rgba(255, 255, 255, 0.14);
  --vj-accent-1: #22d3ee;
  --vj-accent-2: #6366f1;
  --vj-accent-3: #a855f7;
  --vj-gradient: linear-gradient(135deg, #22d3ee, #6366f1, #a855f7);
  --vj-glow: 0 0 80px rgba(34, 211, 238, 0.15), 0 0 160px rgba(99, 102, 241, 0.08);
  --vj-container: min(1120px, calc(100vw - 48px));
  --vj-section-pad: clamp(64px, 10vw, 120px);
  --vj-radius-sm: 8px;
  --vj-radius-md: 12px;
  --vj-radius-lg: 16px;
  --vj-radius-xl: 20px;
  color-scheme: dark;
}

/* --- Reset -------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--vj-bg);
  color: var(--vj-text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dot-grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: rgba(34, 211, 238, 0.25);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

/* --- Container --------------------------------------------- */
.vj-container {
  width: var(--vj-container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- Page wrapper ------------------------------------------ */
.vj-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* --- Navigation -------------------------------------------- */
.vj-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--vj-border);
}

.vj-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.vj-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--vj-text);
}

.vj-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.vj-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.vj-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--vj-text-muted);
  transition: color 200ms ease;
}

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

.vj-nav-cta {
  background: var(--vj-gradient);
  color: #000 !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: box-shadow 200ms ease, transform 200ms ease !important;
}

.vj-nav-cta:hover {
  box-shadow: var(--vj-glow);
  transform: translateY(-1px);
}

/* --- Section layout ---------------------------------------- */
.vj-section {
  padding: var(--vj-section-pad) 0;
}

.vj-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.vj-section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--vj-text);
}

.vj-section-header p {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--vj-text-muted);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* --- Meta label -------------------------------------------- */
.vj-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vj-accent-1);
  margin-bottom: 12px;
}

/* --- Hero Section ------------------------------------------ */
.vj-hero {
  padding: clamp(100px, 16vh, 180px) 0 var(--vj-section-pad);
  text-align: center;
  position: relative;
}

/* Atmospheric glow orb */
.vj-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse,
    rgba(34, 211, 238, 0.12),
    rgba(99, 102, 241, 0.06),
    transparent
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: vj-glow-pulse 6s ease-in-out infinite;
}

.vj-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--vj-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vj-text-muted);
  margin-bottom: 28px;
}

.vj-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--vj-accent-1);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

.vj-hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  max-width: 14ch;
  margin: 0 auto;
}

.vj-gradient-text {
  background: var(--vj-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vj-hero-sub {
  margin: 24px auto 0;
  max-width: 56ch;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--vj-text-muted);
}

.vj-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.vj-hero-proof {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.vj-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--vj-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--vj-text-muted);
}

.vj-chip::before {
  content: "\2713";
  color: var(--vj-accent-1);
  font-weight: 700;
}

/* --- Buttons ----------------------------------------------- */
.vj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--vj-radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 200ms ease;
  text-decoration: none;
}

.vj-btn-primary {
  background: var(--vj-gradient);
  color: #000;
  box-shadow: 0 0 0 0 transparent;
}

.vj-btn-primary:hover {
  box-shadow: var(--vj-glow);
  transform: translateY(-1px);
}

.vj-btn-secondary {
  background: transparent;
  color: var(--vj-text);
  border-color: var(--vj-border);
}

.vj-btn-secondary:hover {
  border-color: var(--vj-border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.vj-btn-ghost {
  background: transparent;
  color: var(--vj-text-muted);
  border: none;
  padding: 12px 16px;
}

.vj-btn-ghost:hover {
  color: var(--vj-text);
}

/* --- Bento Feature Grid ------------------------------------ */
.vj-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--vj-border);
  border-radius: var(--vj-radius-lg);
  overflow: hidden;
}

.vj-bento-item {
  background: var(--vj-bg);
  padding: 32px;
  display: grid;
  align-content: start;
  gap: 10px;
  transition: background 300ms ease;
}

.vj-bento-item:hover {
  background: var(--vj-bg-raised);
}

.vj-bento-item.span-2 {
  grid-column: span 2;
}

.vj-bento-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--vj-text);
}

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

/* --- Screenshots ------------------------------------------- */
.vj-screens {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.vj-screen {
  position: relative;
  border-radius: var(--vj-radius-lg);
  overflow: hidden;
  background: transparent;
}

.vj-screen img {
  display: block;
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  object-position: top center;
}

.vj-screen-hero {
  grid-column: 1 / -1;
}

.vj-screen-hero img {
  aspect-ratio: 1.6 / 1;
}

/* Glow behind hero screenshot */
.vj-screen-hero::after {
  content: none;
}

.vj-screen-caption {
  padding: 16px 4px 4px;
}

.vj-screen-caption strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--vj-text);
  margin-bottom: 4px;
}

.vj-screen-caption span {
  font-size: 0.88rem;
  color: var(--vj-text-muted);
  line-height: 1.5;
}

/* --- Info Row (replaces card grids) ------------------------ */
.vj-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--vj-border);
  border-radius: var(--vj-radius-lg);
  overflow: hidden;
}

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

.vj-info-block {
  background: var(--vj-bg);
  padding: 32px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.vj-info-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--vj-text);
}

.vj-info-block p,
.vj-info-block li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--vj-text-muted);
}

.vj-info-block ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  list-style: disc;
}

.vj-info-block ul li::marker {
  color: var(--vj-accent-1);
}

/* --- CTA Band ---------------------------------------------- */
.vj-cta-band {
  padding: var(--vj-section-pad) 0;
  text-align: center;
  border-top: 1px solid var(--vj-border);
  border-bottom: 1px solid var(--vj-border);
  position: relative;
}

.vj-cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.06), transparent);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.vj-cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.vj-cta-band p {
  margin: 16px auto 0;
  max-width: 52ch;
  font-size: 1.06rem;
  color: var(--vj-text-muted);
  line-height: 1.7;
}

.vj-cta-band .vj-btn {
  margin-top: 28px;
}

.vj-cta-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--vj-text-dim);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

/* --- FAQ Accordion ----------------------------------------- */
.vj-faq {
  display: grid;
  gap: 1px;
  background: var(--vj-border);
  border-radius: var(--vj-radius-lg);
  overflow: hidden;
}

.vj-faq details {
  background: var(--vj-bg);
}

.vj-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--vj-text);
  transition: background 200ms ease;
}

.vj-faq summary:hover {
  background: var(--vj-bg-raised);
}

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

.vj-faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--vj-accent-1);
  transition: transform 200ms ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.vj-faq details[open] summary::after {
  content: "\2212";
}

.vj-faq-answer {
  padding: 0 28px 24px;
  border-top: 1px solid var(--vj-border);
}

.vj-faq-answer p {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--vj-text-muted);
}

.vj-faq-answer a {
  color: var(--vj-accent-1);
  font-weight: 600;
}

.vj-faq-answer a:hover {
  color: var(--vj-accent-2);
}

/* --- Article / Prose (Privacy, Notices) --------------------- */
.vj-article {
  max-width: 72ch;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.vj-article section {
  display: grid;
  gap: 12px;
}

.vj-article h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--vj-text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vj-border);
}

.vj-article p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--vj-text-muted);
}

.vj-article ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  list-style: disc;
}

.vj-article li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--vj-text-muted);
}

.vj-article li::marker {
  color: var(--vj-accent-1);
}

.vj-article code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--vj-text);
}

.vj-article a {
  color: var(--vj-accent-1);
  font-weight: 600;
}

.vj-article a:hover {
  color: var(--vj-accent-2);
}

.vj-callout {
  padding: 20px 24px;
  border-radius: var(--vj-radius-md);
  border: 1px solid var(--vj-border);
  background: rgba(255, 255, 255, 0.02);
}

.vj-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--vj-text);
}

/* --- Sub-page Hero (smaller variant) ----------------------- */
.vj-hero-sm {
  padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 64px);
  text-align: center;
  position: relative;
}

.vj-hero-sm::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(34, 211, 238, 0.08),
    rgba(99, 102, 241, 0.04),
    transparent
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.vj-hero-sm h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 20ch;
  margin: 0 auto;
}

.vj-hero-sm p {
  margin: 16px auto 0;
  max-width: 56ch;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--vj-text-muted);
}

.vj-hero-sm .vj-hero-actions {
  margin-top: 28px;
}

/* --- Breadcrumb -------------------------------------------- */
.vj-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vj-text-dim);
  margin-bottom: 20px;
}

.vj-breadcrumb a {
  color: var(--vj-accent-1);
}

.vj-breadcrumb a:hover {
  color: var(--vj-accent-2);
}

/* --- Footer ------------------------------------------------ */
.vj-footer {
  border-top: 1px solid var(--vj-border);
  padding: 48px 0 64px;
}

.vj-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.vj-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.vj-footer-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--vj-text-muted);
  transition: color 200ms ease;
}

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

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

/* --- Scroll Reveal ----------------------------------------- */
.vj-observe {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

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

/* Stagger children */
.vj-stagger > .vj-observe:nth-child(1) { transition-delay: 0ms; }
.vj-stagger > .vj-observe:nth-child(2) { transition-delay: 80ms; }
.vj-stagger > .vj-observe:nth-child(3) { transition-delay: 160ms; }
.vj-stagger > .vj-observe:nth-child(4) { transition-delay: 240ms; }
.vj-stagger > .vj-observe:nth-child(5) { transition-delay: 320ms; }
.vj-stagger > .vj-observe:nth-child(6) { transition-delay: 400ms; }
.vj-stagger > .vj-observe:nth-child(7) { transition-delay: 480ms; }
.vj-stagger > .vj-observe:nth-child(8) { transition-delay: 560ms; }
.vj-stagger > .vj-observe:nth-child(9) { transition-delay: 640ms; }

/* --- Glow Pulse Animation ---------------------------------- */
@keyframes vj-glow-pulse {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1.05);
  }
}

/* --- Section divider --------------------------------------- */
.vj-divider {
  border: none;
  border-top: 1px solid var(--vj-border);
  margin: 0;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 920px) {
  .vj-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .vj-bento-item.span-2 {
    grid-column: span 2;
  }

  .vj-screens {
    grid-template-columns: 1fr;
  }

  .vj-screen-hero {
    grid-column: 1;
  }

  .vj-info-row {
    grid-template-columns: 1fr;
  }

  .vj-info-row-2 {
    grid-template-columns: 1fr;
  }

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

  .vj-nav {
    width: 100%;
    gap: 16px;
  }

  .vj-footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  :root {
    --vj-container: min(100vw - 24px, 1120px);
  }

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

  .vj-bento-item.span-2 {
    grid-column: 1;
  }

  .vj-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.3rem);
  }

  .vj-hero-sub {
    font-size: 1rem;
  }

  .vj-bento-item,
  .vj-info-block {
    padding: 24px;
  }

  .vj-section-header h2 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

  .vj-hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
