@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans.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;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/space-grotesk-600.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: #09090b;
  --surface: rgba(24, 24, 27, 0.6);
  --surface-strong: rgba(24, 24, 27, 0.7);
  --border: rgba(39, 39, 42, 0.8);
  --border-soft: #18181b;
  --text: #fafafa;
  --text-2: #d4d4d8;
  --text-3: #a1a1aa;
  --accent: #34d399;
  --error: #fb7185;
  --button-bg: #ffffff;
  --button-fg: #09090b;
  --button-bg-hover: #e4e4e7;
  --shadow-soft: 0 0 30px -10px rgba(255, 255, 255, 0.05);
  --shadow-strong: 0 0 20px -5px rgba(255, 255, 255, 0.3);
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 1rem;
  --radius-full: 9999px;
  --container: 64rem;
  --container-narrow: 48rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(255, 255, 255, 0.2); color: #fff; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 4px;
}

img, svg { display: block; max-width: 100%; }

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

/* Layout */
.shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

/* Header */
.site-header { padding: 1.5rem 0; position: relative; z-index: 50; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; }
.brand-mark { width: 1.75rem; height: 1rem; color: var(--text); transition: transform .2s ease; }
.brand:hover .brand-mark { transform: scale(1.05); }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.025em;
  color: #fff;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { padding: 6rem 3rem; } }

.hero-ambient {
  position: absolute;
  inset: -20% 10% auto 10%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner { max-width: var(--container-narrow); margin: 0 auto; position: relative; z-index: 1; text-align: center; width: 100%; }

/* Status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}
.dot { position: relative; display: inline-flex; width: 0.5rem; height: 0.5rem; }
.dot::before, .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 9999px; background: var(--accent);
}
.dot::before { animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; opacity: .6; }

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* Headline */
.headline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1.5rem;
  word-break: break-word;
}

.subhead {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto 1rem;
}
@media (min-width: 640px) { .subhead { font-size: 1.25rem; } }

.subhead-meta {
  font-size: 1rem;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 32rem;
  margin: 0 auto 3rem;
}

/* Form */
.form { max-width: 28rem; margin: 0 auto; }

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) {
  .form-row { flex-direction: row; border-radius: var(--radius-full); }
}

.form-input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-family: inherit;
  min-width: 0;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus { outline: none; }

.form-button {
  background: var(--button-bg);
  color: var(--button-fg);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
  box-shadow: var(--shadow-strong);
}
@media (min-width: 640px) { .form-button { border-radius: var(--radius-full); } }
.form-button:hover { background: var(--button-bg-hover); }
.form-button:active { transform: scale(0.98); }
.form-button:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  font-size: 0.875rem;
  color: var(--text-3);
  margin: 0.75rem 0 0;
  min-height: 1.25rem;
}
.form-message.is-error { color: var(--error); }

.success {
  max-width: 28rem;
  margin: 0 auto;
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.success-title { color: var(--text); font-weight: 500; margin: 0 0 0.25rem; }
.success-body { color: var(--text-3); font-size: 0.875rem; margin: 0; }

.hidden { display: none !important; }

/* Footer */
.site-footer { padding: 2rem 0; border-top: 1px solid var(--border-soft); }
.footer-row {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 1rem; font-size: 0.875rem; color: var(--text-3);
}
@media (min-width: 640px) { .footer-row { flex-direction: row; } }
.footer-row a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; }

/* Reveal animations */
@keyframes cssFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: cssFadeInUp .7s cubic-bezier(.4,0,.2,1) both; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .15s; }
.d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; }
.d5 { animation-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .dot::before { animation: none; }
  * { transition: none !important; }
}
