:root {
  color-scheme: dark;

  --bg: #000;
  --text: #fff;
  --muted: #a0a0a0;         /* icons, nav, labels */
  --surface: #111;          /* filled button, button hover */
  --surface-hover: #1c1c1c; /* filled button and icon hover */
  --border: #2a2a2a;
  --border-hover: #444;

  --content-width: 500px;
  --gutter: 24px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }
.hero:focus, .section:focus { outline: none; }

/* Top navigation */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  background: rgb(0 0 0 / 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.nav a:hover, .nav a[aria-current] { color: var(--text); }

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 92px var(--gutter) 0;
  text-align: center;
}

.name {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tagline { margin-bottom: 28px; line-height: 1.5; text-wrap: balance; }

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.socials a:hover { background: var(--surface-hover); color: var(--text); }
.socials svg { width: 24px; height: 24px; }

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.or { font-size: 14px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}

.btn:hover { background: var(--surface); border-color: var(--border-hover); }
.btn-filled { background: var(--surface); }
.btn-filled:hover { background: var(--surface-hover); }
.btn svg { width: 16px; height: 16px; color: var(--muted); }

/* Sections */

.section {
  position: relative;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  scroll-margin-top: 96px; /* clears the fixed nav */
}

/* Full-height so clicking "About" can bring it to the top of the screen */
#newsletter { margin-top: 72px; }
.about { min-height: calc(100vh - 96px); min-height: calc(100svh - 96px); margin-top: 96px; padding-bottom: 64px; }
.about p { font-size: 15px; }
.about p + p { margin-top: 20px; }
.about p a { color: inherit; font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--muted); }

.label { color: var(--muted); font-size: 14px; font-weight: 400; line-height: 25.5px; }

@media (min-width: 810px) {
  .label { position: absolute; right: 100%; margin-right: 20px; }
}

/* Newsletter */

.newsletter { width: 100%; margin: 0 auto; }

.newsletter img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto 20px;
  filter: invert(1); /* black artwork on transparent, shown white */
}

.signup { display: flex; gap: 8px; }

.signup input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 200ms var(--ease);
}

.signup input::placeholder { color: var(--muted); opacity: 1; }
.signup input:hover, .signup input:focus { border-color: var(--border-hover); }

.btn-cta { border-color: var(--text); background: var(--text); color: var(--bg); white-space: nowrap; }
.btn-cta:hover { border-color: #ddd; background: #ddd; }

/* Holo card (effect settings live in vendor/holo-card/holo-card.js) */

.card { width: 300px; max-width: 100%; margin-bottom: 32px; }
.card .holo-card { --hc-w: 100%; --hc-ratio: 1426 / 1992; display: block; }

/* Toast */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 10;
  padding: 12px 24px;
  border-radius: 100px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 100px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Entrance: text rises in order, then icons pop */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 600ms var(--ease-out) calc(var(--step, 0) * 80ms) backwards; }
  .socials a { animation: pop 600ms var(--ease-bounce) calc(320ms + var(--i) * 50ms) backwards; }
}

@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  70% { transform: translateY(-2px) scale(1.02); }
}

/* Responsive */

@media (min-width: 810px) and (max-width: 1199px) {
  :root { --content-width: 480px; }
}

@media (max-width: 809px) {
  :root { --content-width: 540px; --gutter: 32px; }
  .hero { padding-top: 84px; }
  .name { font-size: 18px; }
  .actions { flex-direction: column; gap: 10px; width: 100%; max-width: 380px; }
  .or { display: none; }
  .btn { width: 100%; }
  .newsletter { max-width: 380px; }
  .label { margin-bottom: 16px; }
  .signup { flex-direction: column; gap: 10px; }
  .signup input { flex: none; font-size: 16px; } /* 16px stops iOS zooming in on focus */
}
