/* RED MOD DIGITAL LLC — shared stylesheet (no build step, no frameworks) */

:root {
  --bg: #0c0c0f;
  --bg-raised: #15151a;
  --bg-card: #1a1a20;
  --line: #2a2a32;
  --text: #f2f2f5;
  --text-muted: #a9a9b4;
  --accent: #e0242e;        /* brand red: fills, borders, large marks */
  --accent-text: #ff5a62;   /* lighter red for small text on dark (AA contrast) */
  --accent-hover: #f03a43;
  --radius: 14px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Black", "Arial Black", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: #ff7a80; }

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 15, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark:hover { color: var(--text); }
.wordmark .mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.wordmark .red { color: var(--accent-text); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  display: inline-block;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 640px;
  height: 640px;
  max-width: 120vw;
  background: radial-gradient(closest-side, rgba(224, 36, 46, 0.28), rgba(224, 36, 46, 0) 70%);
  pointer-events: none;
}
.hero .container { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero h1 .accent { color: var(--accent); }

.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 34px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }

/* Sections */
.section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }

.section h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 20px;
}
.section h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 18px;
}
.section p { color: var(--text-muted); max-width: 64ch; margin: 0 0 16px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-width: 0;
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--text); }
.card p { margin: 0; }

.coming-soon {
  position: relative;
  margin-top: 28px;
  border: 1px dashed #3a3a44;
  border-radius: var(--radius);
  padding: 40px 26px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px),
    var(--bg-raised);
}
.coming-soon .badge {
  display: inline-block;
  background: rgba(224, 36, 46, 0.14);
  color: var(--accent-text);
  border: 1px solid rgba(224, 36, 46, 0.45);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.coming-soon p { margin: 0 auto; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin: 0 0 6px; }
.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.contact-value { color: var(--text); font-size: 1.05rem; overflow-wrap: anywhere; }
address { font-style: normal; color: var(--text); }

/* Legal pages */
.legal { padding: 64px 0 80px; }
.legal .container { max-width: 800px; }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 10px;
}
.legal .meta { color: var(--text-muted); margin: 0 0 36px; font-size: 0.95rem; }
.legal h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p,
.legal li { color: #d2d2da; overflow-wrap: anywhere; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }

.toc {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 12px;
}
.toc p { margin: 0 0 8px; font-weight: 700; color: var(--text); }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin: 2px 0; }

/* 404 */
.notfound {
  min-height: calc(100vh - 64px - 160px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.notfound .code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.5rem, 22vw, 9rem);
  line-height: 1;
  color: var(--accent);
  margin: 0 0 8px;
}
.notfound h1 { margin: 0 0 12px; font-size: clamp(1.5rem, 5vw, 2.2rem); }
.notfound p { color: var(--text-muted); margin: 0 0 28px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 36px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer p { margin: 0; }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* Small phones (360px) */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .hero { padding: 64px 0 60px; }
  .section { padding: 60px 0; }
  .card { padding: 20px; }
  .coming-soon { padding: 30px 18px; }
  .site-nav ul { gap: 4px 14px; }
  .btn { width: 100%; }
}
