/* Auction Buyer site — matches app theme */
:root {
  --primary: #b31942;
  --primary-dark: #8f1235;
  --navy: #0a3161;
  --navy-light: #134a8c;
  --bg: #f5f8ff;
  --surface: #ffffff;
  --text: #1a1a2e;
  --muted: #5c6475;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(10, 49, 97, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--navy-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(10, 49, 97, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(10, 49, 97, 0.06);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__brand img {
  height: 40px;
  width: auto;
  display: block;
}

.site-header__nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header__nav a {
  color: var(--navy);
  text-decoration: none;
}

.site-header__nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.site-header__auth {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.25rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(10, 49, 97, 0.15);
}

.site-header__auth a[hidden] {
  display: none !important;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
}

.hero__copy h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero__copy .lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 36ch;
}

.hero__badge {
  display: inline-block;
  background: rgba(179, 25, 66, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__art img {
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(var(--shadow));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(179, 25, 66, 0.35);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn--secondary {
  background: var(--navy);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--navy-light);
  color: #fff;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(10, 49, 97, 0.25);
}

.btn--ghost:hover {
  border-color: var(--navy);
  text-decoration: none;
  color: var(--navy);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid rgba(10, 49, 97, 0.06);
  border-bottom: 1px solid rgba(10, 49, 97, 0.06);
}

.section h2 {
  font-size: 1.65rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.section__intro {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

.features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid rgba(10, 49, 97, 0.08);
  box-shadow: 0 2px 12px rgba(10, 49, 97, 0.06);
}

.section--alt .feature-card {
  background: var(--surface);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.coming-soon {
  text-align: center;
  padding: 2.5rem 1.5rem 3.5rem;
}

.coming-soon__box {
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.coming-soon__box h2 {
  color: #fff;
  margin: 0 0 0.75rem;
}

.coming-soon__box p {
  margin: 0;
  opacity: 0.92;
}

.download-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.download-grid .coming-soon__box {
  max-width: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.download-grid .download-actions {
  margin-top: auto;
  padding-top: 1.25rem;
}

.coming-soon__box--dev {
  background: linear-gradient(145deg, #1a3d6b 0%, #2a5088 100%);
  border: 2px solid rgba(255, 193, 7, 0.35);
}

.download-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.15);
}

.download-badge--live {
  background: rgba(76, 175, 80, 0.35);
}

.download-badge--dev {
  background: rgba(255, 193, 7, 0.35);
  color: #fff8e1;
}

.download-section {
  margin-bottom: 2rem;
}

.download-section__title {
  margin: 0 0 0.35rem;
}

.download-section__intro {
  margin: 0 0 1rem;
  color: var(--muted);
}

.dev-gate {
  text-align: left;
  margin-top: 1rem;
}

.dev-gate p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.dev-gate__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.dev-gate__form input {
  min-width: 8rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-align: center;
}

.dev-gate__form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: normal;
}

.dev-gate__error {
  margin: 0.75rem 0 0 !important;
  font-size: 0.85rem !important;
  color: #ffcdd2 !important;
  opacity: 1 !important;
}

.dev-gate__unlocked {
  margin-top: 1rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.download-note {
  margin-top: 1rem !important;
  font-size: 0.85rem;
  opacity: 0.85 !important;
}

.download-note--in-card {
  margin-top: 1rem !important;
  text-align: center;
}

.btn--large {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}

.download-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.download-page__card {
  text-align: center;
  margin-bottom: 2rem;
}

.download-page__card,
.download-page__card p,
.download-page__card .download-page__size {
  color: #fff;
}

.download-page__size {
  margin: 0 0 0.5rem;
}

.install-steps {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  line-height: 1.65;
}

.install-steps li {
  margin-bottom: 1rem;
}

.install-steps code {
  font-size: 0.9em;
  background: rgba(10, 49, 97, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.download-page__help h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.download-page__help ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.download-page__help li {
  margin-bottom: 0.5rem;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer strong {
  color: var(--navy);
}

.site-footer__admin {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
}

.site-footer__admin a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer__admin a:hover {
  color: var(--navy);
  text-decoration: underline;
}
