/* Dark Metal Font — design tokens + base (preview + theme) */
:root {
  --dm-bg: #0a0b0d;
  --dm-bg-elevated: #12141a;
  --dm-bg-muted: #1a1d26;
  --dm-border: #2a2e3a;
  --dm-text: #f4f5f7;
  --dm-text-muted: #9aa0b0;
  --dm-text-dim: #6b7280;
  --dm-accent: #8f1d24;
  --dm-accent-hot: #b3262e;
  --dm-danger: #e85d5d;
  --dm-success: #6bcf8e;
  --dm-font-display: "Segoe UI", system-ui, sans-serif;
  --dm-font-body: "Segoe UI", system-ui, sans-serif;
  --dm-space-1: 0.25rem;
  --dm-space-2: 0.5rem;
  --dm-space-3: 1rem;
  --dm-space-4: 1.5rem;
  --dm-space-5: 2.5rem;
  --dm-space-6: 4rem;
  --dm-radius: 2px;
  --dm-container: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--dm-font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dm-text);
  background: var(--dm-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-family: var(--dm-font-display);
  font-weight: 500;
  color: var(--dm-text);
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--dm-accent-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--dm-text);
}

.dmf-container {
  width: min(100% - 2rem, var(--dm-container));
  margin-inline: auto;
}

.dmf-header {
  border-bottom: 1px solid var(--dm-border);
  background: var(--dm-bg);
  position: sticky;
  top: 0;
  z-index: 40;
}

.dmf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dm-space-4);
  min-height: 4.5rem;
  padding-block: var(--dm-space-3);
}

.dmf-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.dmf-logo img {
  width: min(120px, 36vw);
  height: auto;
}

.dmf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dm-space-3);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dmf-nav a {
  color: var(--dm-text-muted);
  text-decoration: none;
}

.dmf-nav a:hover,
.dmf-nav a[aria-current="page"] {
  color: var(--dm-text);
}

.dmf-hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-content: center;
  justify-items: center;
  padding-block: clamp(1rem, 2vh, 1.5rem);
  background: var(--dm-bg);
  text-align: center;
}

.dmf-hero .dmf-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - 1rem);
}

.dmf-hero__logo path.is-flash {
  animation: dmf-flash 0.26s linear;
}

.dmf-hero__bolt {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
  animation: dmf-lightning 0.26s linear forwards;
}

.dmf-hero__bolt--glow {
  stroke: #3b82f6;
  stroke-width: 9px;
  filter: drop-shadow(0 0 3px #dbeafe) drop-shadow(0 0 12px #1d4ed8);
}

.dmf-hero__bolt--core {
  stroke: #d7ecff;
  stroke-width: 2.25px;
}

@keyframes dmf-lightning {
  0%,
  100% {
    opacity: 0;
  }
  7%,
  30%,
  54% {
    opacity: 1;
  }
  16%,
  42% {
    opacity: 0.08;
  }
  72% {
    opacity: 0.9;
  }
  86% {
    opacity: 0.15;
  }
}

@keyframes dmf-flash {
  0%,
  100% {
    filter: none;
  }
  7%,
  30%,
  54% {
    filter: brightness(2.15) drop-shadow(0 0 6px #dbeafe) drop-shadow(0 0 16px #2563eb);
  }
  16%,
  42% {
    filter: brightness(1.2) drop-shadow(0 0 2px #1e3a8a);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dmf-hero__logo path.is-flash,
  .dmf-hero__bolt {
    animation: none;
    filter: none;
  }
}

.dmf-hero__brand {
  margin: 0;
  width: min(96vw, calc((100vh - 7.5rem) * 1.81));
}

.dmf-hero__brand img,
.dmf-hero__brand svg {
  width: 100%;
  height: auto;
  margin-inline: auto;
  overflow: visible;
}

.dmf-hero__title {
  margin: 0 0 var(--dm-space-3);
  font-family: var(--dm-font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--dm-text);
}

.dmf-hero__lead {
  margin: 0 auto var(--dm-space-5);
  max-width: 32rem;
  color: var(--dm-text-muted);
  font-size: 1rem;
}

.dmf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--dm-space-3);
}

.dmf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--dm-accent);
  border-radius: var(--dm-radius);
  background: var(--dm-accent);
  color: #f4f5f7;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.dmf-cta:hover {
  background: var(--dm-accent-hot);
  border-color: var(--dm-accent-hot);
  color: #f4f5f7;
}

.dmf-cta--ghost {
  background: transparent;
  color: var(--dm-text);
}

.dmf-cta--ghost:hover {
  background: var(--dm-bg-muted);
  color: var(--dm-text);
}

.dmf-footer {
  border-top: 1px solid var(--dm-border);
  padding-block: var(--dm-space-5);
  color: var(--dm-text-dim);
  font-size: 0.875rem;
}

.dmf-note {
  margin-top: var(--dm-space-5);
  padding: var(--dm-space-4);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius);
  background: var(--dm-bg-elevated);
  color: var(--dm-text-muted);
  font-size: 0.875rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dmf-note code {
  color: var(--dm-accent-hot);
  font-size: 0.8125rem;
}
