:root {
  --bg-base: #0a0a0a;
  --bg-shell: #0e0b08;
  --bg-surface: #131313;
  --bg-surface-2: #1a1a1a;

  --text-primary: #fff4db;
  --text-secondary: rgba(255, 244, 219, 0.7);
  --text-muted: rgba(255, 244, 219, 0.5);

  --border: rgba(255, 244, 219, 0.1);
  --border-subtle: rgba(255, 244, 219, 0.06);

  --gold: #ffd962;
  --gold-deep: #d4a820;
  --gold-dim: rgba(255, 217, 98, 0.1);
  --gold-border: rgba(255, 217, 98, 0.28);
  --gold-glow: rgba(255, 217, 98, 0.2);

  --green: #74e596;
  --red: #ef4444;

  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --header-h: 72px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  background: var(--bg-base);
  color: var(--text-primary);
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-image:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(255, 204, 62, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(255, 204, 62, 0.025) 0%, transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ----------------------------- Header ----------------------------- */
.shell-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  background: rgba(14, 11, 8, 0.78);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid rgba(255, 217, 98, 0.08);
}

.shell-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1410;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px -6px var(--gold-glow);
}

.brand__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* ----------------------------- Status pill ------------------------ */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-pill.is-live {
  color: var(--green);
  background: rgba(116, 229, 150, 0.07);
  border: 1px solid rgba(116, 229, 150, 0.28);
}
.status-pill.is-live .status-pill__dot {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(116, 229, 150, 0.5);
  animation: live-pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-pill.is-success {
  color: var(--green);
  background: rgba(116, 229, 150, 0.08);
  border: 1px solid rgba(116, 229, 150, 0.32);
}
.status-pill.is-success .status-pill__dot { background: var(--green); }

.status-pill.is-muted {
  color: var(--text-muted);
  background: rgba(255, 244, 219, 0.04);
  border: 1px solid rgba(255, 244, 219, 0.12);
}
.status-pill.is-muted .status-pill__dot { background: var(--text-muted); }

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(116, 229, 150, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(116, 229, 150, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .status-pill.is-live .status-pill__dot { animation: none; }
}

/* ----------------------------- Page layout ------------------------ */
.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.page__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero { max-width: 560px; }

.hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 20px 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: pretty;
  margin: 0 0 18px 0;
}

h1 em {
  font-style: italic;
  font-weight: 700;
  color: var(--gold);
  padding-right: 0.12em;
}

.lede {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0;
  line-height: 1.55;
}

/* ----------------------------- Checker ---------------------------- */
.checker { width: 100%; }

.checker__form {
  background: rgba(255, 244, 219, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.checker__form[hidden] { display: none; }

.checker__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.checker__row { display: flex; gap: 12px; }

.checker__row input {
  flex: 1;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: border-color var(--transition-base), background var(--transition-base);
  min-width: 0;
}

.checker__row input::placeholder { color: var(--text-muted); }

.checker__row input:focus {
  outline: none;
  border-color: var(--gold-border);
  background: var(--bg-surface);
}

.checker__row input.is-invalid { border-color: rgba(239, 68, 68, 0.55); }

.checker__help {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 12px 0 0;
}

.support {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 4px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.support__label { color: var(--text-muted); }

.support__sep { color: rgba(255, 244, 219, 0.18); }

.support__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.support__link:hover { color: var(--gold); }

.support__icon { display: inline-block; }

.cta {
  background: linear-gradient(135deg, #ffd962 0%, #d4a820 100%);
  color: #1a1410;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 20px -6px var(--gold-glow);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), opacity var(--transition-base);
}

.cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -8px rgba(255, 217, 98, 0.55);
}

.cta:disabled { opacity: 0.45; cursor: not-allowed; }

/* ----------------------------- Result ----------------------------- */
.result {
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  background: rgba(255, 244, 219, 0.02);
  display: grid;
  gap: 14px;
}

.result.is-eligible {
  border-color: rgba(116, 229, 150, 0.32);
  background: linear-gradient(180deg, rgba(116, 229, 150, 0.06), rgba(116, 229, 150, 0.015));
}

.result.is-not-eligible { border-color: var(--border); }
.result.is-error { border-color: rgba(239, 68, 68, 0.4); }

.result__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.result__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.result__addr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  word-break: break-all;
  margin: 0;
}

.result__body {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.result__body strong { color: var(--gold); font-weight: 600; }

.result__reset {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  transition: color var(--transition-base);
}

.result__reset:hover { color: var(--gold); }

/* ----------------------------- Responsive ------------------------- */
@media (max-width: 900px) {
  .page {
    align-items: flex-start;
    padding: 32px 20px 48px;
    min-height: 0;
  }
  .page__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero { max-width: 100%; }
  h1 { font-size: clamp(32px, 8vw, 44px); margin-bottom: 14px; }
  .lede { font-size: 15px; }
}

@media (max-width: 720px) {
  .shell-header__inner { padding: 0 20px; }
  .checker__row { flex-direction: column; align-items: stretch; }
  .cta { width: 100%; padding: 14px 22px; }
  .checker__form { padding: 22px; }
  .result { padding: 22px; }
}

@media (max-height: 760px) and (min-width: 901px) {
  h1 { font-size: clamp(32px, 3.6vw, 44px); }
  .lede { font-size: 15px; }
  .checker__form { padding: 22px; }
}
