/* Base */
:root {
  color-scheme: dark;
  --primary-bg: #000;
  --primary-text: #fff;
  --muted-text: #a3a3a3;
  --accent-text: #e5e7eb;
  --focus-color: #6366f1;
}

* { 
  box-sizing: border-box; 
}

html, body {
  height: 100%;
}

/* Critical above-the-fold styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", system-ui, sans-serif;
  background: var(--primary-bg);
  color: var(--primary-text);
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}

main { 
  flex: 1; 
}

/* Faster first paint by isolating heavy layers */
img, .logo { 
  content-visibility: auto;
  contain: layout style paint;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
  background: #1a1a1a;
  color: var(--primary-text);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
}

/* Layout */
.center {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 24px;
}

@supports (height: 100svh) {
  .center { min-height: calc(100svh - 64px); }
}

footer {
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--muted-text);
  background: transparent;
  border-top: none;
  padding-bottom: env(safe-area-inset-bottom, 0);
  contain: layout style;
}
footer a {
  color: var(--muted-text);
  text-decoration: none;
  padding: 8px 6px;
  border-radius: 6px;
  transition: color 0.2s ease;
}
footer a:hover, footer a:focus {
  text-decoration: underline;
  color: var(--accent-text);
}
footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
footer nav a,
footer nav span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Hero */
.hero { margin: 0; text-align: center; }
.logo {
  display: block;
  margin: 0 auto 16px auto;
  filter: drop-shadow(0 0 16px rgba(255,255,255,0.1));
  width: clamp(120px, 28vw, 200px);
  height: auto;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.beta-figure { text-align: center; margin: 0 0 8px; }
.beta-figure .app-caption {
  margin-top: 2px;
  color: #fff;
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

.beta-cta { text-align: center; margin: 12px 0 20px; }
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255,255,255,0.12);
}
.btn:hover { filter: brightness(0.95); }
.btn:active { transform: translateY(1px); }
.app-name {
  margin: 0;
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: 0.2px;
}
.app-name svg { display: block; margin: 0 auto; width: clamp(180px, 48vw, 520px); height: auto; }
.app-name .cls-1 { stroke-width: 1px; }
.app-name .svg-elem-1, .app-name .svg-elem-2, .app-name .svg-elem-3, .app-name .svg-elem-4, .app-name .svg-elem-5 { will-change: stroke-dashoffset, fill; }

@media (prefers-reduced-motion: reduce) {
  .svg-elem-1, .svg-elem-2, .svg-elem-3, .svg-elem-4, .svg-elem-5 { animation: none !important; }
  .app-name .cls-1 { fill: #fff; }
}
.subhead {
  margin: 8px 0 0;
  font-size: clamp(14px, 2.8vw, 16px);
  color: rgba(229, 231, 235, 0.55); /* #e5e7eb at ~55% */
}
.app-name .char { display: inline-block; will-change: transform, opacity; }

/* Subtle glow for the home subhead */
@keyframes vanta-subhead-glow {
  0%, 100% {
    text-shadow: none;
    color: rgba(229, 231, 235, 0.55);
  }
  50% {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.22),
      0 0 18px rgba(255, 255, 255, 0.16);
    color: rgba(229, 231, 235, 0.78);
  }
}

.hero .subhead,
.hero .subhead .char {
  animation: vanta-subhead-glow 2.8s ease-in-out infinite;
  will-change: color, text-shadow;
}

@media (prefers-reduced-motion: reduce) {
  .hero .subhead,
  .hero .subhead .char { animation: none !important; }
}

/* Removed SVG title styles, using plain text again */

/***************************************************
 * SVG wordmark animations (from SVG Artista)
 **************************************************/
@-webkit-keyframes animate-svg-stroke-1 {
  0% { stroke-dashoffset: 399.57525634765625px; stroke-dasharray: 399.57525634765625px; }
  100% { stroke-dashoffset: 0; stroke-dasharray: 399.57525634765625px; }
}
@keyframes animate-svg-stroke-1 {
  0% { stroke-dashoffset: 399.57525634765625px; stroke-dasharray: 399.57525634765625px; }
  100% { stroke-dashoffset: 0; stroke-dasharray: 399.57525634765625px; }
}
@-webkit-keyframes animate-svg-fill-1 { 0% { fill: transparent; } 100% { fill: rgb(255, 255, 255); } }
@keyframes animate-svg-fill-1 { 0% { fill: transparent; } 100% { fill: rgb(255, 255, 255); } }
.svg-elem-1 { -webkit-animation: animate-svg-stroke-1 1s ease-in 0s both, animate-svg-fill-1 0.7s ease 0.8s both; animation: animate-svg-stroke-1 1s ease-in 0s both, animate-svg-fill-1 0.7s ease 0.8s both; }

@-webkit-keyframes animate-svg-stroke-2 {
  0% { stroke-dashoffset: 414.34539794921875px; stroke-dasharray: 414.34539794921875px; }
  100% { stroke-dashoffset: 0; stroke-dasharray: 414.34539794921875px; }
}
@keyframes animate-svg-stroke-2 {
  0% { stroke-dashoffset: 414.34539794921875px; stroke-dasharray: 414.34539794921875px; }
  100% { stroke-dashoffset: 0; stroke-dasharray: 414.34539794921875px; }
}
@-webkit-keyframes animate-svg-fill-2 { 0% { fill: transparent; } 100% { fill: rgb(255, 255, 255); } }
@keyframes animate-svg-fill-2 { 0% { fill: transparent; } 100% { fill: rgb(255, 255, 255); } }
.svg-elem-2 { -webkit-animation: animate-svg-stroke-2 1s ease-in 0.12s both, animate-svg-fill-2 0.7s ease 0.9s both; animation: animate-svg-stroke-2 1s ease-in 0.12s both, animate-svg-fill-2 0.7s ease 0.9s both; }

@-webkit-keyframes animate-svg-stroke-3 {
  0% { stroke-dashoffset: 356.46685791015625px; stroke-dasharray: 356.46685791015625px; }
  100% { stroke-dashoffset: 0; stroke-dasharray: 356.46685791015625px; }
}
@keyframes animate-svg-stroke-3 {
  0% { stroke-dashoffset: 356.46685791015625px; stroke-dasharray: 356.46685791015625px; }
  100% { stroke-dashoffset: 0; stroke-dasharray: 356.46685791015625px; }
}
@-webkit-keyframes animate-svg-fill-3 { 0% { fill: transparent; } 100% { fill: rgb(255, 255, 255); } }
@keyframes animate-svg-fill-3 { 0% { fill: transparent; } 100% { fill: rgb(255, 255, 255); } }
.svg-elem-3 { -webkit-animation: animate-svg-stroke-3 1s ease-in 0.24s both, animate-svg-fill-3 0.7s ease 1s both; animation: animate-svg-stroke-3 1s ease-in 0.24s both, animate-svg-fill-3 0.7s ease 1s both; }

@-webkit-keyframes animate-svg-stroke-4 {
  0% { stroke-dashoffset: 259.54119873046875px; stroke-dasharray: 259.54119873046875px; }
  100% { stroke-dashoffset: 0; stroke-dasharray: 259.54119873046875px; }
}
@keyframes animate-svg-stroke-4 {
  0% { stroke-dashoffset: 259.54119873046875px; stroke-dasharray: 259.54119873046875px; }
  100% { stroke-dashoffset: 0; stroke-dasharray: 259.54119873046875px; }
}
@-webkit-keyframes animate-svg-fill-4 { 0% { fill: transparent; } 100% { fill: rgb(255, 255, 255); } }
@keyframes animate-svg-fill-4 { 0% { fill: transparent; } 100% { fill: rgb(255, 255, 255); } }
.svg-elem-4 { -webkit-animation: animate-svg-stroke-4 1s ease-in 0.36s both, animate-svg-fill-4 0.7s ease 1.1s both; animation: animate-svg-stroke-4 1s ease-in 0.36s both, animate-svg-fill-4 0.7s ease 1.1s both; }

@-webkit-keyframes animate-svg-stroke-5 {
  0% { stroke-dashoffset: 414.34423828125px; stroke-dasharray: 414.34423828125px; }
  100% { stroke-dashoffset: 0; stroke-dasharray: 414.34423828125px; }
}
@keyframes animate-svg-stroke-5 {
  0% { stroke-dashoffset: 414.34423828125px; stroke-dasharray: 414.34423828125px; }
  100% { stroke-dashoffset: 0; stroke-dasharray: 414.34423828125px; }
}
@-webkit-keyframes animate-svg-fill-5 { 0% { fill: transparent; } 100% { fill: rgb(255, 255, 255); } }
@keyframes animate-svg-fill-5 { 0% { fill: transparent; } 100% { fill: rgb(255, 255, 255); } }
.svg-elem-5 { -webkit-animation: animate-svg-stroke-5 1s ease-in 0.48s both, animate-svg-fill-5 0.7s ease 1.2000000000000002s both; animation: animate-svg-stroke-5 1s ease-in 0.48s both, animate-svg-fill-5 0.7s ease 1.2000000000000002s both; }

/* Content pages */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}
.prose h1 { font-size: 32px; margin: 0 0 16px; }
.prose h2 { font-size: 20px; margin: 24px 0 8px; }
.prose p { line-height: 1.6; color: #e5e7eb; }
.prose li { line-height: 1.6; }
.muted { color: #9ca3af; font-size: 14px; }

@media (max-width: 600px) {
  .container { padding: 28px 16px 64px; }
  .prose h1 { font-size: 28px; }
  .prose h2 { font-size: 18px; }
  .logo { width: clamp(100px, 36vw, 180px); }
}

/* Keyboard focus visible */
:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Performance optimizations */
.hero, .container {
  contain: layout style;
}

.logo {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}


