/* ============================================================
   RCKT Originals — revamp design layer
   Shared tokens + polish for the standalone tool pages.
   Additive only: sets tokens, type rhythm and control styling so
   every tool inherits the new identity without layout changes.
   Overlay pages are intentionally NOT linked to this file.
   ============================================================ */

:root {
  /* --- surface scale: warm near-black, one step lighter per layer --- */
  --ink: #08080B;
  --ink-2: #0C0D11;
  --panel: #111318;
  --panel-2: #171A21;

  /* --- hairlines --- */
  --line: #24272F;
  --line-soft: #1B1E24;

  /* --- accents: ember is the brand, everything else supports --- */
  --ember: #FF5A1F;
  --ember-soft: #FFB27A;
  --cyan: #3DDC97;
  --amber: #FFB000;
  --violet: #8B5CF6;
  --red: #FF4D5E;

  /* --- type --- */
  --text: #F4F2ED;
  --text-dim: #9CA2AE;
  --text-faint: #666C78;

  /* --- geometry: one radius scale, no ad-hoc values --- */
  --radius: 12px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 2px 10px -2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 38px -10px rgba(0, 0, 0, 0.55);
  --ring: 0 0 0 3px rgba(255, 90, 31, 0.3);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

::selection {
  background: rgba(255, 90, 31, 0.3);
  color: #fff;
}

body {
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Tighter display type — the old scale was slightly loose at heading sizes. */
h1, h2, h3, .brand {
  letter-spacing: -0.022em;
}

a {
  text-underline-offset: 3px;
}

/* Header: sticks on scroll with a soft glass edge instead of a hard rule. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 8, 11, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line-soft) !important;
}

.brand {
  letter-spacing: -0.01em;
}

/* Controls share one shape + one focus treatment. */
button,
select,
input,
textarea {
  border-radius: var(--radius-sm);
}

button,
a,
select,
input,
textarea,
[tabindex] {
  transition: color .16s var(--ease), background .16s var(--ease),
              border-color .16s var(--ease), box-shadow .16s var(--ease),
              transform .16s var(--ease);
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

button:not(:disabled):active {
  transform: translateY(1px);
}

footer {
  border-top: 1px solid var(--line-soft);
  color: var(--text-faint);
}

/* Slimmer, theme-matched scrollbars. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
  border: 2px solid var(--ink);
}

::-webkit-scrollbar-thumb:hover {
  background: #333845;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
