/* ============================================================
   Dab Solutions — Core Styles
   Modern, minimal, high-performance dark UI
   No external dependencies. System fonts only.
   ============================================================ */

:root {
  --bg: #000000;
  --fg: #f0f0f0;
  --fg-muted: rgba(255, 255, 255, 0.45);
  --accent: rgba(255, 255, 255, 0.85);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

html {
  height: 100%;
  background: var(--bg);
  color-scheme: dark;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.4;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
  touch-action: none; /* prevent unwanted gestures on the field */
}

/* ---------- Canvas field ---------- */
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: auto;
  touch-action: none;
  /* Slight performance hint */
  will-change: contents;
}

/* ---------- Stage / Content ---------- */
.stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  pointer-events: none; /* Let mouse events reach the canvas */
  user-select: none;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 90vw;
}

.brand {
  font-size: clamp(2.1rem, 7.5vw, 5.8rem);
  font-weight: 200;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--accent);
  line-height: 1.05;
  margin: 0;
  padding-left: 0.18em; /* optical balance for letter-spacing */
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.tagline {
  font-size: clamp(0.7rem, 1.8vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: lowercase;
  color: var(--fg-muted);
  margin: 0;
  opacity: 0.75;
  transition: opacity 0.8s var(--ease);
}

/* Optional live data panel (ready for DSF) */
.live-panel {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
  opacity: 0.7;
}

.live-panel .label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.live-panel .value {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

/* ---------- Footer ---------- */
.foot {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1.1rem 1.5rem;
  text-align: center;
  pointer-events: none;
}

.foot span {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.22);
  font-weight: 400;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .brand,
  .tagline {
    transition: none;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .brand {
    letter-spacing: 0.16em;
    padding-left: 0.16em;
    font-size: clamp(2rem, 9.5vw, 3.4rem);
  }
  .tagline {
    letter-spacing: 0.18em;
    font-size: clamp(0.65rem, 3.2vw, 0.85rem);
  }
  .foot {
    padding-bottom: max(1.1rem, env(safe-area-inset-bottom));
  }
}

/* ---------- High contrast / print safety ---------- */
@media (prefers-contrast: more) {
  .brand {
    color: #ffffff;
    text-shadow: none;
  }
  .tagline {
    color: rgba(255, 255, 255, 0.7);
  }
}
