/* =========================================================
   DAUERSTRAMM NORD — Shared styles
   ========================================================= */

:root {
  --bg:        #07080b;
  --bg-2:      #0d0f15;
  --surface:   #12141c;
  --surface-2: #1a1d28;
  --line:      #232634;
  --ink:       #f3f4f7;
  --ink-dim:   #a4a8b6;
  --ink-mute:  #5b6072;
  --navy:      #1a2752;
  --navy-2:    #2a3a78;
  --navy-soft: #3b54a8;
  --blue-hi:   #6c8cff;
  --warn:      #d97757;
  --win:       #4ade80;
  --loss:      #ef5e5e;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

/* =========================================================
   PAGE TRANSITION OVERLAY
   ========================================================= */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  opacity: 1;
  pointer-events: none;
  animation: page-transition-in 0.5s ease-out forwards;
}
@keyframes page-transition-in {
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none; }
}

body {
  font-family: 'Barlow', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at top, rgba(26, 39, 82, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(108, 140, 255, 0.05), transparent 50%);
  background-attachment: fixed;
}

/* grunge noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

h1, h2, h3, h4, .display {
  font-family: 'Anton', 'Oswald', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
}
h1 { font-size: clamp(36px, 7vw, 120px); }
h2 { font-size: clamp(28px, 4.5vw, 64px); }
h3 { font-size: clamp(20px, 2.2vw, 30px); }

.sub {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-feature-settings: "tnum";
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

/* =========================================================
   LAYOUT
   ========================================================= */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
@media (max-width: 480px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
}

main { position: relative; z-index: 2; }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 11, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand img {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(108,140,255,0.25));
}
.nav-brand .nav-brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-left: 4px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
  padding: 4px 0 4px 12px;
}
.nav-brand .nav-brand-meta strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}
.nav-brand .nav-brand-meta span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}
.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 14px;
  padding: 10px 14px;
  color: var(--ink-dim);
  border: 1px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--ink);
  border-color: var(--navy);
  background: rgba(26,39,82,0.4);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  inset: auto 14px -1px 14px;
  height: 2px;
  background: var(--blue-hi);
}

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); padding: 8px 12px; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.18em; cursor: pointer; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 32px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* =========================================================
   COMPONENTS
   ========================================================= */

/* eyebrow tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--ink-dim);
  padding: 6px 0;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--blue-hi);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 14px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s, background .15s, color .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--navy-soft); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--navy-soft); box-shadow: 4px 4px 0 var(--navy); }

/* card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  position: relative;
}
.card-dark {
  background: var(--bg-2);
}

/* slash divider (inspired by jersey) */
.slash {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--navy-soft), var(--blue-hi), var(--navy-soft), transparent);
  margin: 0;
  transform: skewX(-30deg);
  transform-origin: left;
  opacity: 0.7;
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  margin-top: 120px;
  padding: 60px 0 32px;
  background: var(--bg-2);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid li a { color: var(--ink-dim); font-size: 14px; }
.footer-grid li a:hover { color: var(--ink); }
.footer-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand img {
  height: 96px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 0 20px -8px;
  filter: drop-shadow(0 0 24px rgba(108,140,255,0.15));
}
.footer-brand p {
  color: var(--ink-mute);
  font-size: 14px;
  max-width: 320px;
}

/* page header (hero) */
.page-head {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head-bg { position: absolute; inset: 0; z-index: 0; }
.page-head-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,8,11,0.2) 0%, rgba(7,8,11,0.7) 100%);
  pointer-events: none;
}
.page-head h1 { position: relative; z-index: 2; }
.page-head .lead {
  position: relative; z-index: 2;
  max-width: 640px;
  color: var(--ink-dim);
  font-size: 18px;
  margin-top: 18px;
}

/* dart icon */
.dart-bullet {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue-hi);
  box-shadow: 0 0 0 3px rgba(108,140,255,0.18);
  vertical-align: middle;
  margin-right: 10px;
}

/* status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}
.pill.win { color: var(--win); border-color: rgba(74,222,128,0.4); }
.pill.loss { color: var(--loss); border-color: rgba(239,94,94,0.4); }
.pill.live { color: var(--ink); border-color: var(--blue-hi); background: rgba(108,140,255,0.1); }
.pill.live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-hi);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* generic image-placeholder block */
.placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 8px, transparent 8px 16px),
    var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   SECTIONS
   ========================================================= */
section.block        { padding: 100px 0; }
section.block.tight  { padding: 64px 0; }

.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 48px; gap: 32px; flex-wrap: wrap; }
.section-head h2 { max-width: 800px; }
.section-head p  { color: var(--ink-dim); max-width: 380px; margin: 0; }

/* inline link accent */
.link-accent { color: var(--blue-hi); border-bottom: 1px solid rgba(108,140,255,0.4); }

/* selection */
::selection { background: var(--blue-hi); color: var(--bg); }

/* =========================================================
   SKELETON LOADER
   ========================================================= */
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel {
  background: linear-gradient(90deg,
    var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%
  ) !important;
  background-size: 200% 100% !important;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  color: transparent !important;
  border-color: transparent !important;
  border-radius: 2px;
  pointer-events: none;
  min-height: 1em;
  display: inline-block;
}
.skel * { visibility: hidden; }
