/* Ben Verbeck — landing page styles */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --border: #232326;
  --text: #ffffff;
  --muted: #9b9ba1;
  --accent: #1E63C2;
  --accent-hover: #1A54A6;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* No anchor ever falls back to browser-default blue/underline. */
a {
  color: inherit;
  text-decoration: none;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.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;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 32px;
  text-align: center;
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: var(--surface);
}

.hero-name {
  font-size: clamp(2.1rem, 9.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 20px;
  line-height: 1;
}

.hero-bio {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
}

.hero-socials a {
  color: var(--muted);
  display: inline-flex;
  padding: 4px;
  transition: color 0.2s;
}

.hero-socials a:hover,
.hero-socials a:focus-visible { color: var(--text); }

.hero-socials svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hero .btn-accent {
  margin-top: 24px;
  width: 100%;
}

/* ---------- Sections ---------- */

.section { margin-top: 64px; }

.section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */

.btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(0.98); }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-lg { padding: 18px 20px; font-size: 1.05rem; }

/* ---------- Socials grid ---------- */

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.1s;
}

.social-card:hover { border-color: var(--muted); }
.social-card:active { transform: scale(0.98); }

.social-card svg {
  width: 24px;
  height: 24px;
  fill: var(--text);
}

.social-name {
  display: block;
  font-weight: 600;
  margin-top: 10px;
  font-size: 0.95rem;
}

.social-handle {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* ---------- Venero ---------- */

.venero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
}

.venero-title {
  font-size: 1.9rem !important;
  font-weight: 800;
  letter-spacing: 0.32em !important;
  color: var(--text) !important;
  text-transform: uppercase;
  margin-bottom: 6px !important;
}

.venero-sub {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ---------- Links ---------- */

.link-list {
  display: grid;
  gap: 12px;
}

/* ---------- Backups ---------- */

.backups {
  margin-top: 64px;
  text-align: center;
}

.backup-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.65;
  margin-bottom: 6px;
}

.backup-note {
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.7;
  margin-bottom: 10px;
}

/* Shared small handle link — same treatment as the hero social icons:
   muted by default, brightens to full white on hover. */
.text-link {
  display: inline-block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.text-link:hover { color: var(--text); }

.venero .text-link { margin-top: 14px; }

/* ---------- Footer ---------- */

.footer {
  margin-top: 72px;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}

/* ---------- In-app browser prompt (/fans) ---------- */

.inapp-notice {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 28px;
  background: var(--bg);
  text-align: center;
}

.inapp-notice[hidden] { display: none; }

.inapp-arrow {
  width: 40px;
  height: 40px;
  color: var(--accent);
  align-self: flex-end;
  margin-bottom: 28px;
  animation: inapp-bob 1.4s ease-in-out infinite;
}

@keyframes inapp-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.inapp-text {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 8px;
}

.inapp-text strong { font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .inapp-arrow { animation: none; }
}

/* Diagnostics only — shown for /fans?debug=1 */
.debug-box {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  margin: 0;
  padding: 14px;
  max-height: 55vh;
  overflow: auto;
  background: #000;
  color: #6ee7a8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-all;
  border-top: 1px solid var(--border);
}

/* ---------- /fans/ gateway page ---------- */

.gate-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.gate-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gate-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
  margin-bottom: 28px;
}

.gate-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px 24px;
}

.gate-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.gate-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.gate-actions {
  display: grid;
  gap: 10px;
}

.gate-foot {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.75rem;
}

/* ---------- Scroll fade-in ---------- */

.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
}
