/* ============================================================
   OPERATIVE // THE EXCHANGE — SILENT CONTRACT LANDING PAGE
   Editable component stylesheet. Components live separately:
   - index.php            (HTML structure)
   - silent-contract.css  (this sheet)
   - silent-contract-seal.svg  (logo)
   - silent-contract-index-bg.png (background artwork)
   ============================================================ */

:root {
  --sc-bg: #05070c;
  --sc-bg-deep: #03040a;
  --sc-panel: rgba(7, 10, 16, 0.78);
  --sc-panel-solid: #070b11;
  --sc-line: rgba(78, 104, 148, 0.42);
  --sc-line-soft: rgba(93, 118, 162, 0.28);
  --sc-text: #b9c6d6;
  --sc-text-dim: #7d8b9c;
  --sc-heading: #eef4fb;
  --sc-emerald: #21e6a1;
  --sc-emerald-bright: #6effdc;
  --sc-amber: #f5a623;
  --sc-amber-bright: #ffb454;
  --sc-blue: #8dc3f0;
  --sc-font-ui: 'Barlow Condensed', 'Arial Narrow', 'Arial', sans-serif;
  --sc-font-editorial: 'Cormorant Garamond', 'Georgia', serif;
  --sc-font-mono: 'IBM Plex Mono', 'Cascadia Mono', 'Consolas', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  min-height: 100vh;
  background: var(--sc-bg-deep);
  color: var(--sc-text);
  font-family: var(--sc-font-ui);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.sc-index {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

:focus-visible {
  outline: 2px solid var(--sc-emerald-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ============================================================
   BACKGROUND ARTWORK (separate asset, strong readable overlay)
   ============================================================ */

.sc-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/images/silent-contract-index-bg.png');
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.sc-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.58) 0%, rgba(4, 6, 11, 0.62) 45%, rgba(3, 4, 10, 0.92) 100%),
    linear-gradient(0deg, rgba(5, 8, 14, 0.55), rgba(5, 8, 14, 0.15)),
    radial-gradient(ellipse at 50% 42%, rgba(10, 16, 26, 0) 0%, rgba(3, 4, 10, 0.72) 100%);
}

/* ============================================================
   NAVIGATION (editable component)
   ============================================================ */

.sc-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.86), rgba(5, 8, 14, 0.4));
  border-bottom: 1px solid var(--sc-line-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sc-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sc-heading);
  text-decoration: none;
}

.sc-nav-brand:hover,
.sc-nav-brand:focus-visible {
  color: #fff;
  text-decoration: none;
}

.sc-seal--sm {
  width: 34px;
  height: 34px;
  display: block;
}

.sc-nav-title {
  font-family: var(--sc-font-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3em;
  white-space: nowrap;
}

.sc-nav-title em {
  font-style: normal;
  color: var(--sc-emerald-bright);
}

.sc-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  flex-wrap: wrap;
}

.sc-nav-links a {
  font-family: var(--sc-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--sc-text-dim);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sc-nav-links a:hover {
  color: var(--sc-emerald-bright);
  border-bottom-color: var(--sc-emerald);
  text-decoration: none;
}

.sc-nav-cta {
  font-family: var(--sc-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--sc-emerald-bright);
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--sc-line);
  background: rgba(10, 16, 22, 0.55);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sc-nav-cta:hover {
  color: #fff;
  border-color: var(--sc-emerald);
  background: rgba(33, 230, 161, 0.12);
  text-decoration: none;
}

/* ============================================================
   HERO (centered, dark panel behind text)
   ============================================================ */

.sc-hero {
  position: relative;
  z-index: 10;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(36px, 8vh, 96px) 20px clamp(48px, 10vh, 110px);
}

.sc-panel {
  position: relative;
  width: min(660px, calc(100vw - 40px));
  text-align: center;
  padding: clamp(40px, 7vh, 64px) clamp(22px, 5vw, 56px) clamp(34px, 5vh, 48px);
  background: linear-gradient(180deg, var(--sc-panel), rgba(4, 6, 10, 0.9));
  border: 1px solid var(--sc-line);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 0 46px rgba(0, 0, 0, 0.55),
    0 24px 70px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* Decorative corner brackets + side ticks (CSS elements) */
.sc-panel::before,
.sc-panel::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--sc-emerald);
  border-style: solid;
}

.sc-panel::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.sc-panel::after {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
}

.sc-corner--bl,
.sc-corner--br {
  position: absolute;
  bottom: -1px;
  width: 14px;
  height: 14px;
  border-color: var(--sc-amber);
  border-style: solid;
}

.sc-corner--bl {
  left: -1px;
  border-width: 0 0 2px 2px;
}

.sc-corner--br {
  right: -1px;
  border-width: 0 2px 2px 0;
}

.sc-kicker {
  display: block;
  font-family: var(--sc-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--sc-amber-bright);
  margin-bottom: 26px;
}

.sc-seal--lg {
  width: 128px;
  height: 128px;
  margin: 0 auto 22px;
  display: block;
  filter: drop-shadow(0 0 18px rgba(33, 230, 161, 0.14));
}

.sc-title {
  font-family: var(--sc-font-editorial);
  font-size: clamp(42px, 7.5vw, 84px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.12em;
  color: var(--sc-heading);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 0 34px rgba(33, 230, 161, 0.12);
  text-transform: uppercase;
}

.sc-accent {
  position: relative;
  width: min(240px, 68%);
  height: 1px;
  margin: 24px auto;
  background: linear-gradient(90deg, transparent, var(--sc-emerald), transparent);
}

.sc-accent::after {
  content: '';
  position: absolute;
  top: -2.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--sc-amber);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(245, 166, 35, 0.75);
}

.sc-subtitle {
  font-family: var(--sc-font-ui);
  font-size: clamp(13px, 1.9vw, 17px);
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--sc-emerald-bright);
  margin-top: 2px;
}

.sc-desc {
  max-width: 46ch;
  margin: 18px auto 0;
  font-family: var(--sc-font-ui);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--sc-text);
}

/* ============================================================
   ACTIONS (working CREATE ACCOUNT / LOG IN controls)
   ============================================================ */

.sc-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 196px;
  padding: 14px 26px;
  font-family: var(--sc-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--sc-text);
  text-decoration: none;
  background: rgba(12, 18, 26, 0.6);
  border: 1px solid var(--sc-line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.sc-btn:hover {
  color: var(--sc-emerald-bright);
  border-color: var(--sc-emerald);
  background: rgba(33, 230, 161, 0.1);
  text-decoration: none;
}

.sc-btn--primary {
  color: #eafff7;
  border-color: rgba(33, 230, 161, 0.62);
  background: rgba(33, 230, 161, 0.16);
  text-shadow: 0 0 10px rgba(33, 230, 161, 0.4);
  box-shadow: 0 0 22px rgba(33, 230, 161, 0.18), 0 6px 18px rgba(0, 0, 0, 0.45);
}

.sc-btn--primary:hover {
  color: #04140e;
  background: rgba(33, 230, 161, 0.82);
  box-shadow: 0 0 30px rgba(33, 230, 161, 0.35);
}

/* ============================================================
   STATUS ROW (terminal-style labels)
   ============================================================ */

.sc-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--sc-line-soft);
}

.sc-status li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--sc-font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--sc-text-dim);
  padding: 0 14px;
}

.sc-status li + li {
  border-left: 1px solid var(--sc-line-soft);
}

.sc-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}

.sc-led--ok {
  background: var(--sc-emerald);
  box-shadow: 0 0 7px rgba(33, 230, 161, 0.8);
}

.sc-led--amber {
  background: var(--sc-amber);
  box-shadow: 0 0 7px rgba(245, 166, 35, 0.8);
}

/* ============================================================
   FOOTER
   ============================================================ */

.sc-foot {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px clamp(18px, 4vh, 34px);
  font-family: var(--sc-font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--sc-text-dim);
  border-top: 1px solid var(--sc-line-soft);
  background: linear-gradient(180deg, rgba(3, 5, 9, 0.4), rgba(3, 5, 9, 0.82));
}

.sc-foot-sep {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sc-line), transparent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .sc-nav {
    justify-content: center;
    text-align: center;
  }

  .sc-nav-title {
    letter-spacing: 0.22em;
  }

  .sc-nav-links {
    justify-content: center;
    gap: 18px;
    order: 3;
    width: 100%;
  }

  .sc-nav-cta {
    order: 2;
  }

  .sc-seal--lg {
    width: 100px;
    height: 100px;
  }

  .sc-actions .sc-btn {
    width: 100%;
    max-width: 300px;
  }

  .sc-status li {
    padding: 6px 10px;
    border-left: none !important;
  }

  .sc-status {
    gap: 2px;
    flex-direction: column;
    align-items: center;
  }

  .sc-subtitle {
    letter-spacing: 0.3em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-nav-links a,
  .sc-nav-cta,
  .sc-btn {
    transition: none;
  }
}