/* Baseiron — coming soon
   Old-school iron × modern cyberpunk grit
   Aimed at WCAG 2.1 AA visual / operable basics */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --gunmetal: #1a1c1e;
  --text: #e8eaed;
  /* ~7.5:1 on #0a0a0a — keep body secondary text AA */
  --text-muted: #9aa0a6;
  --neon-blue: #00d2ff;
  --neon-blue-dim: rgba(0, 210, 255, 0.45);
  --neon-orange: #ff8c00;
  --neon-orange-dim: rgba(255, 140, 0, 0.45);
  --silver: #c8ccd0;
  --grid: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.12);
  --focus: #00d2ff;
  --focus-ring: 0 0 0 3px #0a0a0a, 0 0 0 5px #00d2ff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 40rem;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(18, 22, 28, 0.9) 0%, transparent 70%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.75) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      var(--grid) 31px,
      var(--grid) 32px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 31px,
      var(--grid) 31px,
      var(--grid) 32px
    );
  background-attachment: fixed;
}

/* Fine grain overlay (CSS-only grit) — decorative */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 1.5rem 1.25rem 2rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--neon-blue);
  color: #000;
  padding: 0.65rem 1.1rem;
  z-index: 100;
  font-weight: 700;
  text-decoration: underline;
  border-radius: 0.25rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Visible keyboard focus for all interactive controls */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

a:focus:not(:focus-visible) {
  outline: none;
}

header {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.logo {
  display: inline-block;
  max-width: min(100%, 22rem);
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 18px var(--neon-blue-dim))
    drop-shadow(0 0 28px var(--neon-orange-dim));
}

/* Text brand name so logo wordmark isn’t the only exposure of “Baseiron” */
.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem 0 2rem;
}

main:focus {
  outline: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7de9ff; /* brighter for small text contrast on dark */
  border: 1px solid var(--neon-blue-dim);
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.08);
}

.badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--neon-orange);
  box-shadow: 0 0 8px var(--neon-orange);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.lede {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  display: grid;
  gap: 0.65rem;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  border-left: 4px solid var(--neon-blue);
  backdrop-filter: blur(4px);
}

.features li:nth-child(even) {
  border-left-color: var(--neon-orange);
}

.features strong {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
  letter-spacing: 0.01em;
}

.features li > div > span {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.5;
}

.icon-dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.features li:nth-child(odd) .icon-dot {
  color: var(--neon-blue);
}

.features li:nth-child(even) .icon-dot {
  color: var(--neon-orange);
}

.note {
  margin: 2rem 0 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.note em {
  font-style: normal;
  color: #ffb347; /* warmer amber for AA on black */
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.domains {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.domains a {
  color: #b8f0ff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
  border-bottom: none;
  font-weight: 600;
}

.domains a:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

.domains a:focus-visible {
  color: #fff;
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 2px;
}

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

@media (min-width: 640px) {
  .page {
    padding: 2rem 2rem 2.5rem;
  }

  .logo {
    max-width: 26rem;
  }

  .features {
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge::before {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text: #ffffff;
    --text-muted: #d0d4d8;
    --border: rgba(255, 255, 255, 0.35);
  }

  .badge {
    color: #fff;
    border-color: #fff;
    background: #000;
  }

  .domains a {
    color: #fff;
  }

  .features li {
    border-color: #fff;
  }
}

@media (forced-colors: active) {
  .badge,
  .features li,
  .logo {
    forced-color-adjust: none;
  }

  .skip-link,
  .domains a,
  :focus-visible {
    outline: 3px solid CanvasText;
  }
}
