:root {
  --brand-red: #cc0000; /* Pole Star red — placeholder, exact hex TBC with Dilen */
  --ink: #17181c;
  --muted: #5f6470;
  --line: #e5e6ea;
  --dark: #111114;
  --bg: #f6f6f8;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.wordmark img {
  display: block;
  height: 24px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.login-link {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.login-link:hover {
  color: var(--brand-red);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  padding: 0.35rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: filter 120ms ease;
}

.btn:hover {
  filter: brightness(1.35);
}

.btn-dark {
  color: #fff;
  background: var(--dark);
  border: 1px solid var(--dark);
}

.btn-light {
  border: 1px solid var(--dark);
}

.btn-submit {
  width: 100%;
  padding: 0.7rem 1.1rem;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- hero ---------- */

main {
  flex: 1;
  display: flex;
  position: relative;
}

/* dot grid, fading in from the left, sitting behind the card */
main::before {
  content: "";
  position: absolute;
  inset: 0 0 0 40%;
  background-image: radial-gradient(#d5d7dd 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
  mask-image: linear-gradient(to right, transparent, #000 30%);
  pointer-events: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill-dot {
  width: 7px;
  height: 7px;
  background: var(--brand-red);
  border-radius: 2px;
}

.hero h1 {
  color: var(--brand-red);
  font-size: clamp(2.1rem, 2.4vw + 1.2rem, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 1.1rem 0 0;
  max-width: 16ch;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.25rem 0 0;
  max-width: 44ch;
}

.intro {
  color: var(--muted);
  margin: 0.85rem 0 0;
  max-width: 46ch;
}

/* ---------- form card ---------- */

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(23, 24, 28, 0.07);
  padding: 1.75rem;
}

.card h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.card-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 1.25rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  margin-bottom: 0.95rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field input {
  width: 100%;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.field input::placeholder {
  color: #a6aab4;
}

.field input:focus {
  outline: 2px solid var(--brand-red);
  outline-offset: 1px;
  border-color: transparent;
}

/* Honeypot — visually removed, still in the DOM for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: var(--brand-red);
  font-size: 0.85rem;
  margin: 0 0 0.95rem;
}

#form-success {
  background: #e6f4ea;
  padding: 1.25rem;
}

.form-success h3 {
  margin: 0 0 0.5rem;
}

.form-success p {
  margin: 0;
  color: var(--muted);
}

.dev-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 0.75rem;
}

.fine-print {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.fine-print a {
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: none;
}

.fine-print a:hover {
  text-decoration: underline;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--line);
  padding: 1.1rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 1.5rem 3rem;
  }

  .card {
    max-width: 480px;
  }

  main::before {
    inset: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 70%);
    mask-image: linear-gradient(to bottom, transparent 30%, #000 70%);
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.85rem 1.25rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
