/* =========================================================
   OnlineRME Base Styles
   ========================================================= */

:root {
  --max-width: 1120px;

  /* Brand colors */
  --blue-dark-1: #020617;
  --blue-dark-2: #071427;
  --blue-surface: #02081a;
  --blue-accent: #2563eb;        /* default brand blue on light */
  --blue-accent-hover: #3b82f6;  /* AA-safe on dark */
  --blue-accent-soft: rgba(37, 99, 235, 0.08);
  --blue-border-soft: rgba(148, 163, 184, 0.55);

  /* Light theme */
  --bg-page: #f3f4f6;
  --bg-surface: #ffffff;
  --bg-muted: #f9fafb;

  --text-main: #111827;
  --text-soft: #1f2937;
  --text-muted: #374151;
  --text-light: #f9fafb;

  /* Radius scale */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;

  /* Standardized UI radius tokens */
  --radius-card: 0.7rem;        /* subtle standard across cards/panels */
  --radius-pill: 999px;         /* pills (buttons/badges only) */

  /* Back-compat alias (some pages used this before it existed) */
  --radius-xl: var(--radius-card);

  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.18);

  --section-space: 4.5rem;
  --section-space-tight: 3rem;
  --pad-inline: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-page);
}

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

a {
  color: var(--blue-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

/* Focus */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-accent);
  outline-offset: 3px;
}

/* Skip link */

.skip-link {
  position: absolute;
  top: -3rem;
  left: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: #ffffff;
  color: #111827;
  border-radius: 0.4rem;
  z-index: 1000;
  transition: transform 150ms ease-out;
}

.skip-link:focus {
  transform: translateY(3.25rem);
}

/* Layout */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-inline) var(--section-space);
}

/* Generic section */

.section-block {
  margin: var(--section-space) 0;
}

.section-header {
  max-width: 52rem;
  margin: 0 auto 1.7rem;
}

.section-header h2 {
  margin: 0 0 0.8rem;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* Buttons */

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

.button-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  text-decoration: none;
}

.button-secondary {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.button-secondary:hover {
  background: #f9fafb;
  text-decoration: none;
}

/* Dots */

.dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius-pill);
  margin-right: 0.4rem;
}

.dot-orme { background: #2563eb; }
.dot-stp  { background: #f97316; }
.dot-fog  { background: #16a34a; }
