/* sunnysdk.com landing — same "Gallery — porcelain & ultramarine" system as
   the app (apps/web/app/globals.css): porcelain paper + grain, near-black ink,
   ultramarine accent, TikTok Sans body / Spline Sans Mono details. */

@font-face {
  font-family: "TikTok Sans";
  src: url("/fonts/TikTokSans-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #f1f2f4;
  --paper-2: #e8eaee;
  --ink: #16181d;
  --ink-soft: #565c66;
  --line: #d4d8de;
  --accent: oklch(0.49 0.16 266);
  --accent-deep: oklch(0.39 0.16 266);
  --love: oklch(0.58 0.2 22);
}

* {
  box-sizing: border-box;
}

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

html {
  /* Same variable-axis defaults as the app (globals.css). */
  font-variation-settings:
    "opsz" 16,
    "wdth" 100,
    "slnt" 0;
  font-feature-settings:
    "cv04" 1,
    "zero" 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--paper);
  /* Subtle paper grain via layered radial noise (mirrors the app body). */
  background-image:
    radial-gradient(circle at 20% 15%, rgba(58, 86, 184, 0.05), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(86, 92, 102, 0.06), transparent 40%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "TikTok Sans", system-ui, sans-serif;
  text-align: center;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
}

.bright {
  width: min(260px, 52vw);
  aspect-ratio: 1;
  margin-bottom: 2rem;
  animation: floaty 5.2s ease-in-out infinite;
}

.bright svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Ray pulse: phase-offset opacity breathing per star. */
.ray {
  animation: ray-pulse 6s ease-in-out infinite;
}
.ray-b {
  animation-duration: 7.4s;
  animation-delay: -2.2s;
}
.ray-c {
  animation-duration: 8.8s;
  animation-delay: -4.4s;
}
@keyframes ray-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.55;
  }
}

.eye {
  transition: transform 120ms ease-out;
  transform-box: fill-box;
  transform-origin: center;
}

.tagline {
  margin: 0 0 2rem;
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.capture {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 28rem;
}

.capture input {
  flex: 1 1 13rem;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(251, 252, 254, 0.88);
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  outline: none;
  transition: border-color 150ms ease;
}

.capture input:focus {
  border-color: var(--accent);
}

.capture input::placeholder {
  color: rgba(86, 92, 102, 0.6);
}

.capture button {
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--accent);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.capture button:hover {
  background: var(--accent-deep);
}

.capture button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-note {
  flex-basis: 100%;
  min-height: 1.2em;
  margin: 0.35rem 0 0;
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.form-note.error {
  color: var(--love);
}

.foot {
  padding: 1.25rem;
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: rgba(86, 92, 102, 0.7);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .bright,
  .ray {
    animation: none;
  }
}
