@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #000000;
  --ink: #ffffff;
  --muted: #bdbdbd;
  --accent: #ffffff;
  --accent-dark: #d9d9d9;
  --border: #303030;
  --card: #0c0c0c;
  --warn-bg: #121212;
  --warn-border: #4a4a4a;
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.5;
}

.background-shape {
  position: fixed;
  z-index: -1;
  opacity: 0.9;
}

.shape-a {
  width: 260px;
  height: 260px;
  border-radius: 52% 48% 63% 37% / 42% 40% 60% 58%;
  background: #545454;
  top: -55px;
  right: -65px;
}

.shape-b {
  width: 240px;
  height: 240px;
  border-radius: 37% 63% 45% 55% / 54% 50% 50% 46%;
  background: #666666;
  left: -70px;
  bottom: -70px;
}

.site-header,
.site-footer,
.container {
  width: min(960px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 10px;
}

.brand {
  font-family: "Archivo", "Trebuchet MS", sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: #1a1a1a;
  outline: none;
}

.container {
  padding: 16px 0 48px;
}

.hero,
.page-card,
.redirect-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(20px, 3.4vw, 40px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.hero h1,
.page-card h1,
.redirect-card h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "Archivo", "Trebuchet MS", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #d0d0d0;
  font-weight: 600;
}

.lead {
  color: var(--muted);
  max-width: 68ch;
}

.cta-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  appearance: none;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 16px;
  display: inline-block;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--accent);
  color: #000000;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button-ghost {
  border-color: var(--border);
  color: var(--ink);
  background: #121212;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: #181818;
}

.button-danger {
  border-color: #4d4d4d;
  background: #131313;
  color: #d9d9d9;
}

.button-danger:hover,
.button-danger:focus-visible {
  background: #1c1c1c;
}

.panel-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  border: 1px solid var(--border);
  background: #101010;
  border-radius: 16px;
  padding: 14px 16px;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-family: "Archivo", "Trebuchet MS", sans-serif;
}

.panel p,
.page-card p,
.page-card li,
.redirect-copy {
  color: var(--muted);
}

.page-card ul {
  padding-left: 22px;
  margin: 0 0 18px;
}

.redirect-meta {
  margin: 18px 0;
  display: grid;
  gap: 8px;
}

.meta-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #121212;
}

.meta-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.meta-value {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.notice {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--warn-border);
  border-radius: 11px;
  background: var(--warn-bg);
  color: var(--muted);
  font-size: 0.94rem;
}

.countdown-pill {
  display: inline-block;
  margin-top: 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-weight: 600;
  background: #111111;
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 0 24px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 4px 0;
}

.launcher-shell {
  min-height: 100vh;
}

.launcher-main {
  width: min(640px, 92vw);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.launcher-card {
  width: 100%;
  text-align: center;
}

.launcher-card h1 {
  margin-top: 0;
  margin-bottom: 14px;
  font-family: "Archivo", "Trebuchet MS", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1.2;
}

.launcher-form {
  display: grid;
  gap: 10px;
  text-align: left;
}

.input-label {
  color: var(--muted);
  font-weight: 500;
}

.url-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #111111;
}

.url-input:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-color: #ffffff;
}

.form-error {
  margin: 2px 0 0;
  min-height: 1.25em;
  color: #bfbfbf;
  font-size: 0.92rem;
}

.bounce-status {
  margin: 0;
  min-height: 1.25em;
  color: var(--muted);
  font-size: 0.9rem;
}

.bounce-status[data-state="ok"] {
  color: var(--ink);
  font-weight: 600;
}

.bounce-status[data-state="idle"] {
  color: var(--muted);
}

@media (max-width: 860px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 8px;
  }

  .hero,
  .page-card,
  .redirect-card {
    padding: 20px;
  }
}
