/* TAHON Systems. Dark, geek-styled. Black, white and one blue accent (#308CE4).
   Layout follows the content-architecture idea: a visual field on the left, content to the right. */

:root {
  --bg: #050709;
  --bg-raise: #0b1117;
  --ink: #e8eef4;
  --ink-body: #d4dfe8;
  --muted: #7f8e9b;
  --faint: #4a5763;
  --line: #1c2630;
  --blue: #308CE4;
  --blue-soft: #7fb8f0;
  --mono: "Departure Mono", "GeistMono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Satoshi", "GeistSans", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --field-w: 42vw;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- transitions + field ---------- */
#transition {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 100; pointer-events: none; opacity: 0;
}
#transition.on { opacity: 1; }
#shower {
  position: fixed; left: 0; top: 0; width: var(--field-w); height: 100vh;
  z-index: 0; pointer-events: none; opacity: 0.85;
}
.field {
  position: sticky; top: 0; height: 100vh; width: var(--field-w); flex: 0 0 var(--field-w);
  border-right: 1px solid var(--line);
}
.field-label {
  position: absolute; left: 24px; bottom: 20px;
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 32px;
  background: rgba(5, 7, 9, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand-logo { height: 26px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; color: var(--muted); padding: 8px 10px; transition: color 0.2s;
}
.nav a:hover { color: var(--blue-soft); }

/* ---------- layout ---------- */
.layout { display: flex; align-items: stretch; min-height: calc(100vh - 60px); position: relative; }
.content {
  flex: 1 1 auto; min-width: 0;
  padding: 72px 56px 96px;
  max-width: 980px;
}

/* ---------- type ---------- */
.kicker {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 0 0 14px;
}
h1, h2, h3, h4 { font-weight: 500; margin: 0; letter-spacing: -0.02em; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 18px; }
h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 20px; }
.accent { color: var(--blue); }
.lede { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 0 28px; }
p { margin: 0 0 14px; }

/* ---------- hero ---------- */
.hero { padding-bottom: 56px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }

/* ---------- groups + rows (file-list style) ---------- */
.group { margin-bottom: 64px; scroll-margin-top: 80px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row-link {
  display: grid; grid-template-columns: minmax(180px, 1.1fr) 2fr auto; gap: 18px; align-items: center;
  padding: 16px 12px; text-decoration: none; transition: background 0.2s;
}
.row-link:hover { background: var(--bg-raise); }
.row-link:hover .row-name { color: var(--blue); }
.row-name { font-family: var(--mono); font-size: 14px; color: var(--ink); transition: color 0.2s; }
.row-tag { color: var(--muted); font-size: 14px; }

/* ---------- badges ---------- */
.badge {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.badge-live { border-color: var(--blue); color: var(--blue-soft); }
.badge-rc { border-color: #3a4a5a; color: var(--ink-body); }
.badge-dim { color: var(--faint); }

/* ---------- product page ---------- */
.status-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.tagline { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.desc { font-size: 17px; color: var(--ink-body); max-width: 680px; margin-bottom: 26px; }
.desc b { color: var(--ink); font-weight: 600; }
.features { list-style: none; padding: 0; margin: 0 0 36px; max-width: 680px; border-top: 1px solid var(--line); }
.features li {
  padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-body);
}
.features li::before { content: "›"; position: absolute; left: 0; color: var(--blue); font-family: var(--mono); }
.features b { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; padding: 12px 18px; border: 1px solid var(--ink); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-solid:hover { background: transparent; color: var(--blue-soft); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-disabled { border-color: var(--line); color: var(--faint); cursor: default; }
.btn-disabled:hover { background: transparent; color: var(--faint); }

/* ---------- contact + footer ---------- */
.contact { border-top: 1px solid var(--line); padding-top: 56px; margin-top: 16px; }
.contact p { color: var(--muted); }
.footer { background: var(--bg-raise); border-top: 1px solid var(--line); padding: 40px 32px 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-mark { height: 36px; width: auto; }
.footer-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; color: var(--muted); padding: 8px 10px; }
.footer-nav a:hover { color: var(--blue-soft); }
.fine { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 20px; }
.fine a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --field-w: 0px; }
  #shower { display: none; }
  .field { display: none; }
  .content { padding: 48px 22px 72px; }
  .row-link { grid-template-columns: 1fr; gap: 6px; }
  .nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #shower, #transition { display: none; }
}

/* ---------- migrated NoHatHacker product content ---------- */
.np-body { max-width: 760px; font-size: 16px; color: var(--ink-body); }
.np-body h2 { font-size: 28px; margin: 56px 0 18px; color: var(--ink); }
.np-body h3 { font-size: 20px; margin: 32px 0 12px; color: var(--ink); }
.np-body p, .np-body li { color: var(--ink-body); }
.np-body a { color: var(--blue-soft); }
.np-body a:hover { color: var(--blue); }
.np-body table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; font-size: 14px; }
.np-body th, .np-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.np-body th { background: var(--bg-raise); color: var(--ink); font-weight: 500; }
.np-body pre, .np-body code { font-family: var(--mono); font-size: 13px; background: var(--bg-raise); }
.np-body pre { padding: 14px; overflow: auto; border: 1px solid var(--line); }
.np-body img { max-width: 100%; height: auto; }
.np-body section, .np-body .section { margin-bottom: 8px; }

/* ---------- NoHatHacker resource CSS: Tahon palette override ----------
   Product content is styled by the NoHatHacker stylesheet (css/resource.css, loaded first on
   product pages). These variables re-point its colours and fonts at the Tahon palette. */
:root {
  --bg: #050709;
  --text: #d4dfe8;
  --cyan: #308CE4;
  --green: #7fb8f0;
  --muted: #7f8e9b;
  --border: rgba(48, 140, 228, 0.18);
  --glow: 0 0 24px rgba(48, 140, 228, 0.25);
  --ui: "Satoshi", "GeistSans", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Departure Mono", "GeistMono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- reactive motion (JS adds .js to <html>) ---------- */
.progress {
  position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 20; pointer-events: none;
}
.progress span {
  display: block; height: 100%; background: var(--blue);
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(48, 140, 228, 0.6);
}

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .group.reveal { transition-duration: 0.9s; }

/* nav: underline sweeps in on hover */
.nav a, .footer-nav a { position: relative; }
.nav a::after, .footer-nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.nav a:hover::after, .footer-nav a:hover::after { transform: scaleX(1); }

/* rows: arrow slides in and the row lifts a little */
.row-link { position: relative; }
.row-link::after {
  content: "\2192"; font-family: var(--mono); color: var(--blue); opacity: 0;
  transform: translateX(-10px); transition: opacity 0.3s ease, transform 0.3s ease; padding-right: 8px;
}
.row-link:hover::after { opacity: 1; transform: translateX(0); }
.row-link:hover { padding-left: 22px; }
.row-link { transition: background 0.2s, padding-left 0.3s ease; }

/* buttons: lift on hover */
.btn { transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s ease, box-shadow 0.25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -10px rgba(48, 140, 228, 0.7); }
.btn-disabled:hover { transform: none; box-shadow: none; }

/* headings in migrated content fade in with their section */
.js .np-body h2, .js .np-body h3 { transition: color 0.4s ease; }
.js .np-body h2:hover, .js .np-body h3:hover { color: var(--blue-soft); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .progress { display: none; }
  .row-link::after, .nav a::after, .footer-nav a::after { transition: none; }
  .btn:hover { transform: none; }
  .row-link:hover { padding-left: 12px; }
}
