/* HashOps shared design system.
   Loaded on every page (marketing, login, signup, dashboard) so the whole
   site — not just the landing page — shares one visual language. Loads
   after Bootstrap, before any page-specific <style> block, same ordering
   rule the original site used. */

:root {
  --bg: #0a0b0e;
  --surface: #111318;
  --surface-2: #16191f;
  --text: #f3f6f8;
  --muted: #959da8;
  --faint: #626a75;
  --line: rgba(255,255,255,.09);
  --cyan: #4ee1ff;
  --cyan-soft: rgba(78,225,255,.12);
  --violet: #7c6cf5;
  --green: #69e6a6;
  --amber: #f4b860;
  --red: #ff6b6b;
  --gray: #8d96a1;
  --radius: 22px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 73% 9%, rgba(78,225,255,.055), transparent 29rem),
    linear-gradient(180deg, #0b0c10 0%, #0a0b0e 42%, #0d0e12 100%);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { color: #071014; background: var(--cyan); }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; gap: 10px; align-items: center; margin: 0 0 20px;
  color: #b9c1cb; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 21px; height: 1px; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.display { margin: 0; font-size: clamp(46px, 7.4vw, 108px); line-height: .95; letter-spacing: -.067em; font-weight: 650; }
.section-title { margin: 0; max-width: 720px; font-size: clamp(34px, 5vw, 66px); line-height: 1.01; letter-spacing: -.052em; }
.lede { max-width: 590px; color: #aab1ba; font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.mono { font-family: var(--mono); }
.accent { color: var(--cyan); }

/* Nav */
.nav {
  position: fixed; z-index: 100; top: 18px; left: 50%;
  width: min(1180px, calc(100% - 32px)); height: 64px; padding: 0 10px 0 15px;
  display: flex; align-items: center; justify-content: space-between; transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(14,15,19,.66);
  box-shadow: 0 16px 70px rgba(0,0,0,.3); backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -.03em; }
.brand-mark { width: 28px; height: 28px; object-fit: contain; mix-blend-mode: screen; filter: saturate(.75) brightness(1.35); }
.brand span { color: #737b86; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 31px; color: #bbc1c8; font-size: 13px; }
.nav-links a { transition: color .25s ease; }
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-cta { padding: 12px 17px; color: #071014 !important; background: #eafcff; border-radius: 10px; font-weight: 650; }
.language-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: rgba(255,255,255,.025); }
.lang-btn { min-width: 35px; padding: 7px 8px; border: 0; border-radius: 6px; color: #69727d; background: transparent; cursor: pointer; font: 600 9px/1 var(--mono); letter-spacing: .06em; transition: color .25s, background .25s; }
.lang-btn:hover { color: #dbe1e6; }
.lang-btn.active { color: #071014; background: #dffbff; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 10px; background: rgba(255,255,255,.055); }
.menu-toggle i, .menu-toggle i::before { display: block; width: 17px; height: 1px; margin: auto; background: #fff; content: ""; transition: transform .25s; }
.menu-toggle i::before { transform: translateY(5px); }

/* Buttons */
.button { display: inline-flex; min-height: 52px; padding: 0 22px; align-items: center; justify-content: center; color: inherit; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 600; transition: transform .3s ease, border-color .3s, background .3s; cursor: pointer; }
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); }
.button.primary { color: #051114; border-color: #c8f8ff; background: #dffbff; box-shadow: 0 0 30px rgba(78,225,255,.11); }
.button.secondary { background: rgba(255,255,255,.035); }
.button.danger { border-color: rgba(255,107,107,.35); color: #ffb3b3; background: rgba(255,107,107,.06); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button svg { width: 14px; margin-left: 9px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Form fields, shared by auth pages and dashboard modals */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { color: #9aa2ac; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.field input, .field select {
  height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px;
  background: #0b0d11; color: var(--text); font-family: var(--sans); font-size: 14px;
  transition: border-color .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: rgba(78,225,255,.4); }
.field-hint { color: var(--faint); font-size: 11px; }
.form-error { min-height: 18px; color: var(--red); font-size: 13px; }

/* Reusable "terminal" card (install commands, code blocks) */
.terminal {
  position: relative; padding: 0 22px 23px; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); background: linear-gradient(155deg, rgba(25,28,34,.9), rgba(12,14,18,.82));
  box-shadow: 0 36px 90px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.035);
}
.terminal::after { content: ""; position: absolute; inset: 40px 0 auto; height: 1px; background: rgba(255,255,255,.07); }
.terminal-bar { height: 41px; display: flex; align-items: center; gap: 6px; }
.terminal-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3c424b; }
.terminal-label { margin-left: auto; color: #606874; font: 500 9px/1 var(--mono); letter-spacing: .1em; }
.terminal-line { min-height: 45px; padding: 8px 0; display: flex; align-items: center; color: #dce3e8; font: 500 clamp(11px, 1.3vw, 14px)/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.prompt { color: var(--cyan); margin-right: 11px; }

/* Reusable device/dashboard card */
.dashboard { position: relative; overflow: hidden; padding: 27px; border: 1px solid rgba(255,255,255,.1); border-radius: 26px; background: #101216; box-shadow: 0 35px 110px rgba(0,0,0,.34); }
.dashboard::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 60%, rgba(78,225,255,.025)); }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.device-name { font-size: 13px; font-weight: 600; }
.device-id { display: block; margin-top: 6px; color: #5f6873; font: 400 9px var(--mono); letter-spacing: .08em; }
.status { display: inline-flex; gap: 7px; align-items: center; padding: 8px 10px; border-radius: 99px; font: 500 9px/1 var(--mono); text-transform: uppercase; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status.st-active { color: #91e9b9; border: 1px solid rgba(105,230,166,.17); background: rgba(105,230,166,.06); }
.status.st-locked { color: #ffd899; border: 1px solid rgba(244,184,96,.22); background: rgba(244,184,96,.07); }
.status.st-expired { color: #ffb3b3; border: 1px solid rgba(255,107,107,.22); background: rgba(255,107,107,.07); }
.status.st-revert, .status.st-offline { color: #c3cad2; border: 1px solid rgba(141,150,161,.22); background: rgba(141,150,161,.07); }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-bottom: 22px; background: var(--line); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.metric { padding: 16px; background: #12151a; }
.metric-label { color: #69727d; font: 500 8px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.metric-value { display: block; margin-top: 10px; font: 500 clamp(17px,2vw,24px)/1 var(--mono); letter-spacing: -.05em; }
.metric-value small { margin-left: 4px; color: #69727d; font-size: 9px; letter-spacing: 0; }

/* Reusable state (lock/unlock/revert-style) action buttons */
.state-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 4px; }
.state-action { padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; color: #b9c0c8; background: rgba(255,255,255,.025); cursor: pointer; text-align: left; font: 500 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; transition: background .25s, border-color .25s; }
.state-action:hover { border-color: color-mix(in srgb, var(--state-color, var(--cyan)) 35%, transparent); background: color-mix(in srgb, var(--state-color, var(--cyan)) 8%, transparent); }
.state-action:disabled { opacity: .4; cursor: not-allowed; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.75,.25,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.noscript { position: fixed; z-index: 999; bottom: 15px; left: 15px; right: 15px; padding: 14px; background: #20242b; border: 1px solid var(--line); text-align: center; font-size: 13px; }

.auth-shell { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 140px 20px 60px; }
.auth-card { width: min(420px, 100%); padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #101216; box-shadow: 0 35px 110px rgba(0,0,0,.34); }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--cyan); font-weight: 600; }

@media (max-width: 767px) {
  .nav { top: 10px; width: calc(100% - 20px); height: 58px; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 65px; left: 0; right: 0; padding: 18px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13,15,19,.95); backdrop-filter: blur(20px); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .25s ease; }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 13px; }
  .nav-cta { text-align: center; }
  .language-switch { margin: 8px 13px; justify-self: start; }
  .shell { width: min(100% - 30px, 620px); }
  .auth-shell { padding: 120px 16px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
