/* Trident Trade District — shared shell for the landing and document pages. */

:root {
  --bg: #050607;
  --panel: rgba(10, 12, 10, 0.82);
  --panel-solid: #0b0d0b;
  --lime: #C6E402;
  --lime-soft: rgba(198, 228, 2, 0.14);
  --line: rgba(198, 228, 2, 0.28);
  --text: #F2F5EC;
  --text-dim: #A9B0A0;
  --text-faint: #6E756A;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url('/bg-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------------------------------------------------------------- hero page */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 28px;
  text-align: center;
}

.hero-inner {
  width: 100%;
  max-width: 720px;
  margin: auto;
}

.logo {
  width: min(430px, 78vw);
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.tagline {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.tagline em { font-style: normal; color: var(--lime); }

.lede {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--text-dim);
  font-size: clamp(14px, 1.9vw, 16.5px);
  line-height: 1.75;
}

/* Angled-corner frame, cut with a clip-path so it needs no images. */
.cut {
  --cut: 16px;
  clip-path: polygon(
    var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut),
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)
  );
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 32px;
  padding: 13px 34px;
  background: var(--lime-soft);
  border: 1px solid var(--line);
  color: var(--lime);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

.app-card {
  padding: 28px 26px 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.app-card h2 {
  margin: 0 0 6px;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.app-card h2 em { font-style: normal; color: var(--lime); }

.app-card p {
  margin: 0 0 24px;
  color: var(--text-dim);
  font-size: 14px;
}

.store-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  min-width: 208px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.store:hover {
  text-decoration: none;
  border-color: var(--lime);
  background: rgba(198, 228, 2, 0.09);
  transform: translateY(-2px);
}
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store span { display: block; text-align: left; line-height: 1.25; }
.store .sm { font-size: 11px; color: var(--text-dim); }
.store .lg { font-size: 17px; font-weight: 600; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  width: 100%;
  max-width: 720px;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(198, 228, 2, 0.14);
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}
.site-footer p { margin: 0 0 10px; }
.site-footer nav { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.site-footer .sep { color: rgba(198, 228, 2, 0.3); }

/* ----------------------------------------------------------- document pages */

.doc-body {
  background-image: url('/bg-doc.jpg') !important;
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  padding: 44px 18px 60px;
}

.doc-head { text-align: center; margin-bottom: 26px; }
.doc-head img { width: 190px; height: auto; }

.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 46px clamp(20px, 4.5vw, 52px) 52px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(7px);
}

.doc h1 {
  margin: 0 0 6px;
  text-align: center;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc .updated {
  margin: 0 0 40px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

/* Each section gets a lime numeral, counted automatically. */
.doc .content { counter-reset: sec; }

.doc .section {
  padding: 22px 0;
  border-top: 1px solid rgba(198, 228, 2, 0.12);
}
.doc .section:first-child { border-top: none; padding-top: 0; }

.doc .section > h2 {
  counter-increment: sec;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 14px;
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc .section > h2::before {
  content: counter(sec);
  flex: none;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
}

.doc h3 {
  margin: 22px 0 8px;
  color: var(--lime);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.doc p { margin: 0 0 13px; color: var(--text-dim); font-size: 15px; }
.doc strong { color: var(--text); font-weight: 600; }

.doc ul, .doc ol { margin: 0 0 15px; padding-left: 22px; color: var(--text-dim); font-size: 15px; }
.doc li { margin-bottom: 7px; }
.doc li::marker { color: var(--lime); }

.doc table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.doc th, .doc td { padding: 10px 12px; border: 1px solid rgba(198, 228, 2, 0.16); text-align: left; }
.doc th { background: var(--lime-soft); color: var(--text); font-weight: 600; }
.doc td { color: var(--text-dim); }

/* Contact / callout block at the end of a document. */
.doc .callout {
  margin: 28px 0 0;
  padding: 22px 24px;
  background: rgba(198, 228, 2, 0.05);
  border: 1px solid var(--line);
}
.doc .callout p { margin: 0 0 8px; }
.doc .callout p:last-child { margin-bottom: 0; }

.doc .closing {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(198, 228, 2, 0.12);
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.doc-body .site-footer { max-width: 860px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 560px) {
  .hero { padding: 40px 16px 26px; background-attachment: scroll; }
  .doc-body { background-attachment: scroll; padding: 28px 12px 44px; }
  .doc { padding: 32px 18px 38px; }
  .store { min-width: 100%; justify-content: center; }
  .doc .section > h2 { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .badge .dot { animation: none; }
  .store { transition: none; }
}

/* ------------------------------------------------- card pages (reset/verify) */

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 18px 28px;
}

.reset-card,
.verify-card {
  --cut: 16px;
  clip-path: polygon(
    var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut),
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)
  );
  width: 100%;
  max-width: 470px;
  padding: 40px 34px 38px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(7px);
  text-align: center;
}

.logo-container { margin-bottom: 26px; }
.logo-container .logo { width: 190px; height: auto; }

.state-container { display: flex; flex-direction: column; align-items: center; }

.spinner {
  width: 38px; height: 38px; margin-bottom: 18px;
  border: 3px solid rgba(198, 228, 2, 0.18);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.state-icon { width: 52px; height: 52px; margin-bottom: 14px; }
.success-icon { color: var(--lime); }
.error-icon { color: #F5A524; }

.state-title { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.state-message { margin: 0 0 22px; color: var(--text-dim); font-size: 15px; line-height: 1.7; }
.helper-text { margin: 14px 0 0; color: var(--text-faint); font-size: 13px; }

.btn {
  --cut: 12px;
  clip-path: polygon(
    var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut),
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)
  );
  display: inline-block;
  padding: 13px 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; border-color: var(--lime); background: rgba(198, 228, 2, 0.1); }
.btn-primary { background: var(--lime); border-color: var(--lime); color: #08090C; }
.btn-primary:hover { background: #d6f320; color: #08090C; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-spinner {
  display: inline-block; width: 15px; height: 15px; margin-left: 9px;
  vertical-align: -2px;
  border: 2px solid rgba(8, 9, 12, 0.3); border-top-color: #08090C;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}

.reset-form { text-align: left; }
.form-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; text-align: center; }
.form-subtitle { margin: 0 0 26px; color: var(--text-dim); font-size: 14px; text-align: center; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--text); }

.form-input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(198, 228, 2, 0.22);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus { outline: none; border-color: var(--lime); }

.password-input-wrapper { position: relative; }
.toggle-password {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  padding: 6px; background: none; border: none; color: var(--text-faint); cursor: pointer;
}
.toggle-password:hover { color: var(--lime); }
.eye-icon { width: 19px; height: 19px; }

.password-requirements { margin: 10px 0 0; padding-left: 18px; color: var(--text-faint); font-size: 12.5px; }
.password-requirements li { margin-bottom: 4px; }
.password-requirements li.show { color: var(--lime); }

.form-error { margin: 12px 0 0; color: #F5A524; font-size: 13.5px; }
.hide { display: none !important; }

.footer {
  width: 100%; max-width: 470px; margin: 34px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(198, 228, 2, 0.14);
  text-align: center; color: var(--text-faint); font-size: 13px;
}
.footer p { margin: 0 0 8px; }
.footer-links a { margin: 0 4px; }
.separator { color: rgba(198, 228, 2, 0.3); }
