:root {
  --sg-bg: #07152f;
  --sg-bg-2: #0b2249;
  --sg-surface: #0d2646;
  --sg-card: #102848;
  --sg-card-2: #0d2646;
  --sg-primary: #0aaeff;
  --sg-primary-soft: #17d4ff;
  --sg-text: #f7fbff;
  --sg-muted: #94a3b8;
  --sg-border: rgba(255, 255, 255, 0.1);
  --sg-border-strong: rgba(10, 174, 255, 0.32);
  --sg-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --sg-radius: 24px;
  --sg-radius-sm: 16px;
  --sg-container: 1180px;
  --sg-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sg-font);
  background:
    radial-gradient(circle at 15% 0%, rgba(10,174,255,.18), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(51,91,160,.24), transparent 32%),
    linear-gradient(180deg, var(--sg-bg), #061022 68%, #030814);
  color: var(--sg-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sg-primary-soft); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
::selection { background: rgba(10,174,255,.35); color: #fff; }

.sg-container {
  width: min(calc(100% - 40px), var(--sg-container));
  margin-inline: auto;
}

.sg-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.78);
  border-bottom: 1px solid var(--sg-border);
}

.sg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 28px;
}

.sg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 1.14rem;
  color: var(--sg-text);
}

.sg-brand img { width: 42px; height: 42px; }
.sg-brand:hover { color: var(--sg-text); }
.sg-brand span small {
  display: block;
  font-size: 0.72rem;
  color: var(--sg-muted);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: -4px;
}

.sg-nav { display: flex; align-items: center; gap: 8px; }
.sg-nav ul,
.sg-footer-menu ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 8px; }
.sg-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  color: #dce7f7;
  font-weight: 700;
  font-size: .94rem;
}
.sg-nav a:hover,
.sg-nav .current-menu-item > a {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}
.sg-header-cta { display: inline-flex; align-items: center; gap: 10px; }
.sg-mobile-toggle {
  display: none;
  border: 1px solid var(--sg-border);
  color: var(--sg-text);
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.sg-btn,
.wp-block-button__link,
button.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 48px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sg-btn:hover { transform: translateY(-1px); }
.sg-btn-primary,
.wp-block-button__link {
  background: linear-gradient(135deg, #007fe8 0%, var(--sg-primary) 55%, #17d4ff 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(10,174,255,.28);
}
.sg-btn-primary:hover,
.wp-block-button__link:hover { color: #ffffff; box-shadow: 0 22px 46px rgba(10,174,255,.34); }
.sg-btn-ghost {
  color: #fff;
  border-color: var(--sg-border);
  background: rgba(255,255,255,.06);
}
.sg-btn-ghost:hover { border-color: var(--sg-border-strong); background: rgba(10,174,255,.09); color: #fff; }
.sg-btn-large { padding: 15px 22px; min-height: 56px; }

.sg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sg-primary-soft);
  background: rgba(10,174,255,.10);
  border: 1px solid rgba(10,174,255,.22);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .075em;
}
.sg-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sg-primary);
  box-shadow: 0 0 0 4px rgba(10,174,255,.18);
}

.sg-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 60px;
}
.sg-hero::after {
  content: "";
  position: absolute;
  inset: 9% -14% auto auto;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(10,174,255,.20), transparent 66%);
  pointer-events: none;
}


/* Homepage hero video background with StakeGuard blue wash. */
.sg-hero-video {
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 0%, rgba(10,174,255,.16), transparent 34%),
    linear-gradient(180deg, rgba(7,21,47,.92), rgba(3,8,20,.96));
}

.sg-hero-video .sg-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.sg-hero-video .sg-hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .56;
  filter: saturate(1.12) contrast(1.04);
}

.sg-hero-video .sg-hero-video-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 47, .48) 0%, rgba(7, 21, 47, .76) 68%, rgba(3, 8, 20, .94) 100%),
    linear-gradient(135deg, rgba(10, 174, 255, .34) 0%, rgba(7, 21, 47, .18) 44%, rgba(23, 212, 255, .24) 100%);
}

.sg-hero-video .sg-hero-grid {
  position: relative;
  z-index: 2;
}

.sg-hero-video .sg-product-card {
  backdrop-filter: blur(7px);
  background: linear-gradient(180deg, rgba(7,21,47,.48), rgba(7,21,47,.26));
}

.sg-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 60px;
  align-items: center;
}
.sg-hero h1,
.sg-page-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: .94;
  letter-spacing: -.075em;
}
.sg-hero p,
.sg-page-hero p {
  color: #c6d3e4;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  max-width: 680px;
  margin: 0 0 26px;
}
.sg-hero-actions,
.sg-page-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.sg-hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--sg-muted);
  font-size: .95rem;
}
.sg-hero-note strong { color: #fff; }

.sg-product-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  border: 1px solid var(--sg-border);
  border-radius: 34px;
  padding: 24px;
  box-shadow: var(--sg-shadow);
  overflow: hidden;
}
.sg-product-card::before {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(10,174,255,.18);
  filter: blur(4px);
}
.sg-app-window {
  position: relative;
  background: #08111f;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  overflow: hidden;
}
.sg-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--sg-border);
  background: rgba(255,255,255,.04);
}
.sg-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.28); }
.sg-window-body { padding: 22px; }
.sg-secure-meter {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.sg-meter-line {
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sg-primary), rgba(10,174,255,.18));
}
.sg-meter-line:nth-child(2) { width: 78%; }
.sg-meter-line:nth-child(3) { width: 55%; }
.sg-code-card {
  background: rgba(0,0,0,.28);
  border: 1px solid var(--sg-border);
  border-radius: 18px;
  padding: 16px;
  color: #d9e5f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .88rem;
  overflow-x: auto;
}

.sg-trust-strip {
  padding: 10px 0 58px;
}
.sg-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.sg-trust-item {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--sg-border);
  border-radius: 18px;
  padding: 18px;
  color: #dbe7f7;
  font-weight: 800;
}
.sg-trust-item span { display: block; color: var(--sg-muted); font-weight: 600; font-size: .88rem; margin-top: 3px; }

.sg-section { padding: 78px 0; }
.sg-section-alt { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)); border-block: 1px solid rgba(255,255,255,.06); }
.sg-section-head { max-width: 780px; margin-bottom: 34px; }
.sg-section-head.center { margin-inline: auto; text-align: center; }
.sg-section h2,
.sg-content h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  margin: 12px 0 14px;
  letter-spacing: -.055em;
}
.sg-section-head p,
.sg-content p { color: #c6d3e4; }
.sg-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.sg-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sg-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.sg-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.032));
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  padding: 26px;
  box-shadow: 0 14px 45px rgba(0,0,0,.18);
}
.sg-card h3 { margin: 0 0 10px; font-size: 1.22rem; letter-spacing: -.025em; }
.sg-card p { margin: 0; color: #b8c7da; }
.sg-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(10,174,255,.12);
  border: 1px solid rgba(10,174,255,.22);
  color: var(--sg-primary-soft);
  margin-bottom: 18px;
  font-weight: 900;
}

.sg-step {
  position: relative;
  padding-left: 72px;
  min-height: 72px;
}
.sg-step + .sg-step { margin-top: 24px; }
.sg-step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(10,174,255,.14);
  border: 1px solid rgba(10,174,255,.26);
  color: var(--sg-primary-soft);
  font-weight: 900;
}

.sg-download-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 26px;
  align-items: stretch;
}
.sg-version-card {
  border: 1px solid var(--sg-border-strong);
  background: linear-gradient(180deg, rgba(10,174,255,.12), rgba(255,255,255,.035));
}
.sg-version {
  display: inline-flex;
  color: #07152f;
  background: var(--sg-primary-soft);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
  font-size: .86rem;
  margin-bottom: 16px;
}
.sg-download-list { display: grid; gap: 14px; }
.sg-download-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--sg-border);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 16px;
}
.sg-download-row strong { display: block; }
.sg-download-row small { color: var(--sg-muted); }
.sg-checksum {
  word-break: break-all;
  background: rgba(0,0,0,.24);
  border: 1px solid var(--sg-border);
  border-radius: 16px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .86rem;
  color: #dce7f7;
}

.sg-alert {
  border: 1px solid rgba(10,174,255,.35);
  background: rgba(10,174,255,.09);
  border-radius: 20px;
  padding: 18px;
  color: #dff8ff;
}
.sg-alert strong { color: #fff; }

.sg-page-hero {
  padding: 82px 0 46px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sg-page-hero h1 { max-width: 850px; }
.sg-content {
  padding: 62px 0 86px;
}
.sg-content-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.sg-content a { color: var(--sg-primary-soft); text-decoration: underline; text-underline-offset: 3px; }
.sg-content ul, .sg-content ol { color: #c6d3e4; }
.sg-content li + li { margin-top: 8px; }

.sg-faq { display: grid; gap: 14px; }
.sg-faq details {
  border: 1px solid var(--sg-border);
  background: rgba(255,255,255,.045);
  border-radius: 18px;
  padding: 18px 20px;
}
.sg-faq summary { cursor: pointer; font-weight: 900; color: #fff; }
.sg-faq p { margin: 12px 0 0; color: #c6d3e4; }

.sg-support-form {
  display: grid;
  gap: 16px;
}
.sg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sg-field label {
  display: block;
  margin-bottom: 8px;
  color: #e9f2ff;
  font-weight: 800;
}
.sg-field input,
.sg-field select,
.sg-field textarea {
  width: 100%;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--sg-border);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
}
.sg-field input:focus,
.sg-field select:focus,
.sg-field textarea:focus {
  border-color: var(--sg-border-strong);
  box-shadow: 0 0 0 4px rgba(10,174,255,.08);
}
.sg-form-message {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(34,197,94,.3);
  background: rgba(34,197,94,.1);
  color: #d8ffe5;
}
.sg-form-error {
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.1);
  color: #ffe1e1;
}

.sg-footer {
  border-top: 1px solid var(--sg-border);
  background: rgba(3, 6, 11, .68);
  padding: 44px 0 28px;
}
.sg-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 28px;
  align-items: start;
}
.sg-footer p { color: var(--sg-muted); margin: 12px 0 0; max-width: 520px; }
.sg-footer h3 { margin: 0 0 12px; font-size: 1rem; }
.sg-footer-menu ul { align-items: flex-start; flex-direction: column; gap: 8px; }
.sg-footer-menu a { color: #c6d3e4; }
.sg-footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--sg-muted);
  font-size: .92rem;
}

.sg-kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--sg-border);
  padding: 2px 7px;
  border-radius: 7px;
}

@media (max-width: 980px) {
  .sg-mobile-toggle { display: inline-flex; }
  .sg-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    background: rgba(7,17,31,.98);
    border: 1px solid var(--sg-border);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--sg-shadow);
  }
  .sg-nav.is-open { display: block; }
  .sg-nav ul { flex-direction: column; align-items: stretch; }
  .sg-nav a { justify-content: center; }
  .sg-header-cta .sg-btn { display: none; }
  .sg-hero-grid,
  .sg-grid-2,
  .sg-download-panel,
  .sg-footer-grid { grid-template-columns: 1fr; }
  .sg-trust-grid,
  .sg-grid-3,
  .sg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .sg-container { width: min(calc(100% - 28px), var(--sg-container)); }
  .sg-hero { padding-top: 62px; }
  .sg-hero h1,
  .sg-page-hero h1 { letter-spacing: -.055em; }
  .sg-trust-grid,
  .sg-grid-3,
  .sg-grid-4,
  .sg-form-grid { grid-template-columns: 1fr; }
  .sg-download-row { flex-direction: column; align-items: stretch; }
  .sg-footer-bottom { flex-direction: column; }
}

.sg-mailto-panel .sg-mailto-notice {
  border-color: rgba(10,174,255,.28);
  background: rgba(10,174,255,.1);
  color: #dff8ff;
}
.sg-mailto-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.sg-mailto-help {
  margin: -4px 0 0;
  color: var(--sg-muted);
  font-size: .95rem;
}


.sg-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.sg-form-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.sg-form-error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}


/* Contact and legal pages */
.sg-contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: start;
}
.sg-contact-primary h2 { margin-top: 0; }
.sg-contact-list { display: grid; gap: 18px; margin-top: 22px; }
.sg-contact-list div { display: grid; gap: 5px; padding-bottom: 15px; border-bottom: 1px solid var(--sg-border); }
.sg-contact-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.sg-contact-list span { font-size: .78rem; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; color: var(--sg-muted); }
.sg-contact-list a { color: var(--sg-primary-soft); font-weight: 800; text-decoration: none; }
.sg-contact-list strong { color: var(--sg-text); }
.sg-policy-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sg-policy-meta span { border: 1px solid rgba(10,174,255,.22); background: rgba(10,174,255,.08); padding: 8px 12px; border-radius: 999px; color: #dff8ff; font-weight: 700; font-size: .88rem; }
.sg-legal-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.sg-legal-toc { position: sticky; top: 100px; padding: 20px; max-height: calc(100vh - 124px); overflow: auto; }
.sg-legal-toc h2 { font-size: 1.2rem; margin: 0 0 14px; }
.sg-legal-toc > a { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: #c6d3e4; text-decoration: none; font-size: .9rem; line-height: 1.35; }
.sg-legal-toc > a:hover { background: rgba(10,174,255,.1); color: var(--sg-primary-soft); }
.sg-legal-notice { margin-top: 18px; border: 1px solid rgba(10,174,255,.24); background: rgba(10,174,255,.08); padding: 14px; border-radius: 14px; color: #dff8ff; }
.sg-legal-notice p { margin: 7px 0 0; color: #bfd7e9; font-size: .88rem; }
.sg-legal-document { padding: 30px; }
.sg-legal-section { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--sg-border); scroll-margin-top: 98px; }
.sg-legal-section:last-of-type { border-bottom: 0; }
.sg-section-number { display: grid; place-items: center; align-self: start; width: 46px; height: 46px; border-radius: 15px; background: rgba(10,174,255,.12); border: 1px solid rgba(10,174,255,.22); color: var(--sg-primary-soft); font-size: .86rem; font-weight: 900; }
.sg-legal-section h2 { margin: 4px 0 12px; font-size: clamp(1.25rem, 2vw, 1.48rem); letter-spacing: -.025em; }
.sg-legal-section p { margin: 0 0 13px; color: #c6d3e4; }
.sg-legal-section p:last-child { margin-bottom: 0; }
.sg-legal-section ul { margin: 0 0 14px; padding-left: 20px; color: #c6d3e4; }
.sg-legal-section li + li { margin-top: 7px; }
.sg-legal-section a { color: var(--sg-primary-soft); }
.sg-legal-caps { font-weight: 800; letter-spacing: .015em; color: #e9f4ff !important; }
.sg-legal-footer-note { padding: 20px; border-radius: 18px; border: 1px solid rgba(10,174,255,.26); background: rgba(10,174,255,.08); color: #eaf7ff; }
.sg-legal-footer-note ul { margin: 12px 0 0; color: #c6d3e4; padding-left: 22px; }
@media (max-width: 980px) {
  .sg-contact-grid, .sg-legal-layout { grid-template-columns: 1fr; }
  .sg-legal-toc { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .sg-legal-document { padding: 18px; }
  .sg-legal-section { grid-template-columns: 1fr; gap: 12px; }
}
