/*
  Respubli — Temporary Landing Page Styles
  - Modern, minimal, accessible
  - Animated rainbow gradient title with prefers-reduced-motion fallback
*/

:root {
  --bg: #0b0b0e;
  --bg-soft: #0f0f12;
  --text: #e9e9ef;
  --muted: #b7b7c3;
  --accent: #7aa2f7;
  --card: #15151a;
  --ring: rgba(122, 162, 247, 0.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #14141b, var(--bg)), var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
}
.skip-link:focus {
  left: 0; background: var(--card); color: var(--text); padding: 0.5rem 1rem; z-index: 1000;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh; /* Fallback */
  height: 100dvh; /* Dynamic viewport on mobile */
}

.hero {
  max-width: 960px;
  margin: 12vh auto 0;
  padding: 0 1.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  text-align: center;
}

.logo {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.rainbow {
  background: linear-gradient(90deg,
    #ff6b6b 0%,
    #f7c948 16%,
    #51cf66 33%,
    #38d9a9 49%,
    #74c0fc 66%,
    #9775fa 83%,
    #f783ac 96%,
    #ff6b6b 100% /* Match start color to avoid seam in fallback */
  );
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Seamless color cycle */
  animation: hueRotate 16s linear infinite;
  will-change: filter;
}

@keyframes hueRotate {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}

/* Fallback for environments not supporting filter hue-rotate */
@supports not (filter: hue-rotate(360deg)) {
  .rainbow {
    background-size: 300% 100%;
    animation: panGradient 12s linear infinite;
  }
  @keyframes panGradient {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .rainbow { animation: none; }
}

.tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text);
  opacity: 0.95;
  margin: 0.25rem 0 0.75rem;
}

.subtitle {
  color: var(--muted);
  max-width: 720px;
  margin: 0.5rem auto 1.25rem;
}

.status-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

.btn {
  --btn-bg: var(--card);
  --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1rem; border-radius: 12px; border: 1px solid #2a2a33;
  color: var(--btn-fg); background: var(--btn-bg); text-decoration: none; font-weight: 600;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #3a3a44; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }

.btn.primary { --btn-bg: linear-gradient(180deg, #1a1a22, #14141b); border-color: #2a2a33; }
.btn.primary:hover { border-color: #3b3b46; }

.btn.ghost { background: transparent; border-color: #2a2a33; }

.section {
  max-width: 960px;
  margin: 8vh auto 0;
  padding: 0 1.25rem 6vh;
}

.section-title { font-size: 1.25rem; color: var(--text); margin: 0 0 0.75rem; }

.pill-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  background: #16161d; border: 1px solid #2a2a33; color: var(--muted);
  padding: 0.45rem 0.7rem; border-radius: 999px; font-size: 0.95rem;
}

.note { color: var(--muted); margin-top: 1rem; }
.note a { color: var(--accent); text-decoration: none; }
.note a:hover { text-decoration: underline; }

/* removed email-link highlight styles per request */

.footer {
  max-width: 960px;
  margin: auto auto 2.5vh; /* push to bottom, reduce bottom spacing */
  padding: 0 1.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  color: var(--muted);
  text-align: center;
  border-top: 1px solid #1c1c24;
  width: 100%;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .hero { margin-top: 8vh; }
  .logo { font-size: clamp(2.5rem, 12vw, 4rem); }
  .tagline { font-size: 1rem; margin: 0.15rem 0 0.6rem; }
  .subtitle { font-size: 0.98rem; line-height: 1.6; padding: 0 0.25rem; }
  .footer { margin-bottom: max(2vh, env(safe-area-inset-bottom)); }
}
