/* The landing page's look: the site's own (app/src/theme.css, "Glass orbit"): copper on deep indigo, a frosted indigo
   panel over lilac, copper and indigo glows, Space Grotesk for words and Space Mono for the label. Self-hosted faces,
   no script; the policy allows this file, the page's images and its faces, nothing else. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("space-grotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("space-mono-400.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --base: #0b0a1f;
  --text: #eef0fe;
  --text-2: #9ea0cb;
  --mono: #cacdfb;
  --copper: #f0915a;
  --copper-hi: #ffc8a2;
  --copper-shade: #c8643a;
  --lilac: #b7b2ff;
  --glass: rgba(27, 25, 69, 0.55);
  --glass-line: rgba(255, 255, 255, 0.08);
  --glass-line-strong: rgba(255, 255, 255, 0.16);
  --soft: rgba(255, 255, 255, 0.05);
  --soft-hover: rgba(255, 255, 255, 0.09);
  --copper-grad: linear-gradient(135deg, var(--copper-hi) 0%, var(--copper) 42%, var(--copper-shade) 100%);
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono-face: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  background: var(--base);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--body);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--base);
  background-image:
    radial-gradient(820px 820px at -8% -14%, rgba(183, 178, 255, 0.16), transparent 70%),
    radial-gradient(760px 760px at 96% 14%, rgba(240, 145, 90, 0.12), transparent 70%),
    radial-gradient(1000px 900px at 30% 112%, rgba(74, 67, 150, 0.38), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--copper);
  color: var(--base);
}

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.panel {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(32px, 7vw, 56px) clamp(20px, 6vw, 56px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.mark {
  display: block;
  width: clamp(104px, 26vw, 148px);
  height: auto;
  filter: drop-shadow(0 10px 32px rgba(240, 145, 90, 0.22));
}

.wordmark {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin-top: clamp(20px, 4vw, 28px);
}

.label {
  margin: clamp(24px, 5vw, 32px) 0 0;
  padding: 5px 12px;
  font-family: var(--mono-face);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--copper);
  background: rgba(240, 145, 90, 0.12);
  border: 1px solid rgba(240, 145, 90, 0.24);
  border-radius: 999px;
}

h1 {
  margin: 16px 0 0;
  font-size: clamp(1.875rem, 8.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* each sentence on its own line: a narrow phone wraps inside the second, never across the two */
.copper {
  display: block;
  color: var(--copper);
  background: var(--copper-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.links {
  margin-top: clamp(28px, 6vw, 40px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  background: var(--soft);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  transition:
    color 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.links a:hover {
  color: var(--text);
  background: var(--soft-hover);
  border-color: var(--glass-line-strong);
}

.links a:first-child {
  color: var(--base);
  font-weight: 700;
  background: var(--copper-grad);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(240, 145, 90, 0.22);
}

.links a:first-child:hover {
  filter: brightness(1.07);
}

.links svg {
  flex: none;
}

:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .links a {
    transition: none;
  }
}

@media (max-width: 420px) {
  .links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .links a {
    justify-content: center;
  }
}
