/* suite.css — shared design system for the TrueChain marketing surface
   (landing.html + credentials.html + supply-chain.html + pass.html) */

:root {
  --bg-deep: #0a1626;
  --bg-mid: #0f1e33;
  --surface: rgba(255,255,255,0.03);
  --surface-2: rgba(255,255,255,0.05);
  --border: rgba(200,180,110,0.22);
  --border-strong: rgba(200,180,110,0.4);
  --text: #eef1f5;
  --text-dim: #a6b0c2;
  --text-faint: #6b7686;
  --gold: #c89b2c;
  --gold-light: #e0b84a;
  --gold-tint: rgba(200,155,44,0.10);
  --teal: #46937a;
  --teal-tint: rgba(70,147,122,0.12);
  --coral: #cf6f4e;
  --coral-tint: rgba(207,111,78,0.12);

  /* per-page accent — overridden by body.accent-* */
  --accent: var(--gold);
  --accent-tint: var(--gold-tint);

  --sans: ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
}

body.accent-teal  { --accent: var(--teal);  --accent-tint: var(--teal-tint); }
body.accent-coral { --accent: var(--coral); --accent-tint: var(--coral-tint); }
body.accent-gold  { --accent: var(--gold);  --accent-tint: var(--gold-tint); }

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

html { background: var(--bg-deep); }
body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg-deep);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 60%, var(--bg-deep) 100%) no-repeat;
  color: var(--text);
  line-height: 1.62;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-light); text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 3px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}

.beta-banner {
  text-align: center; font-family: var(--sans); font-size: 12px; color: var(--gold-light);
  background: rgba(200,155,44,0.08); border-bottom: 1px solid var(--border); padding: 8px 12px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  width: 100%;
  background: rgba(10,22,38,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 40px);
}
.nav-logo { display: flex; align-items: center; gap: 15px; font-size: 30px; font-weight: bold; letter-spacing: 0.5px; color: var(--text); }
.nav-logo img {
  width: 99px; height: 99px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px var(--border-strong);
  animation: coinflip 9s linear infinite;
}
@media (max-width: 560px) {
  .nav-logo { font-size: 25px; gap: 12px; }
  .nav-logo img { width: 72px; height: 72px; }
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-family: var(--sans); font-size: 14px; }
@media (max-width: 720px) {
  .nav-inner { justify-content: center; text-align: center; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px 16px; font-size: 13px; }
}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--gold-light); }
/* $EDC — quiet outlined badge, distinct from both plain links and the primary CTA */
.nav-links a.nav-edc {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--gold-light); background: var(--gold-tint);
  border: 1px solid var(--border-strong);
  padding: 6px 12px; border-radius: 20px;
}
.nav-links a.nav-edc:hover { border-color: var(--gold-light); background: rgba(200,155,44,0.16); color: var(--gold-light); }
/* higher specificity than ".nav-links a" so the CTA text colour is not overridden */
.nav-links a.nav-cta {
  font-family: var(--sans); font-size: 14px; font-weight: 800; letter-spacing: 0.3px;
  background: var(--gold-light); color: #0a1626;
  padding: 10px 20px; border-radius: 7px;
}
.nav-links a.nav-cta:hover { background: #f2c964; color: #0a1626; }
@media (prefers-reduced-motion: reduce) { .nav-logo img { animation: none; } }
@keyframes coinflip { to { transform: rotateY(360deg); } }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.2px;
  padding: 14px 28px; border-radius: 8px; cursor: pointer; display: inline-block;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--bg-deep); border: none; box-shadow: 0 6px 18px rgba(200,155,44,0.3); }
.btn-primary:hover { background: var(--gold-light); }
.btn-secondary { background: transparent; color: var(--gold-light); border: 1.5px solid var(--gold); }
.btn-secondary:hover { background: rgba(200,155,44,0.08); }
.btn-accent { background: var(--accent); color: var(--bg-deep); border: none; box-shadow: 0 6px 18px var(--accent-tint); }
.btn-accent:hover { filter: brightness(1.08); }

/* ---------- Hero ---------- */
.hero { max-width: 860px; margin: 0 auto; text-align: center; padding: clamp(70px, 12vw, 120px) 20px clamp(50px, 8vw, 80px); }
.hero h1 {
  font-size: clamp(33px, 6vw, 52px); line-height: 1.1; letter-spacing: 0.3px;
  margin: 18px auto 20px; max-width: 16ch; text-wrap: balance;
}
.hero h1 span { color: var(--accent); }
.hero .sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--text-dim); max-width: 58ch; margin: 0 auto 34px; text-wrap: pretty; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-teaser { margin-top: 26px; font-family: var(--sans); font-size: 13px; color: var(--text-faint); }
.hero-teaser b { color: var(--text-dim); font-weight: 600; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 9vw, 104px) clamp(18px, 4vw, 20px); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 58px); }
.section-head h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: 0.3px; margin: 12px 0 12px; text-wrap: balance; }
.section-head p { color: var(--text-dim); font-size: 15.5px; text-wrap: pretty; }
.section.narrow { max-width: 760px; }
.section-body { color: var(--text-dim); font-size: 16px; max-width: 62ch; margin: 0 auto; text-wrap: pretty; }
.section-body p + p { margin-top: 16px; }

/* ---------- Module suite cards (landing) ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 940px) { .modules { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.module {
  --accent: var(--gold); --accent-tint: var(--gold-tint);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent);
  border-radius: 12px; padding: 30px 26px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.module:hover { transform: translateY(-5px); border-color: var(--accent); background: var(--surface-2); }
.module--supplychain { --accent: var(--teal); --accent-tint: var(--teal-tint); }
.module--pass { --accent: var(--coral); --accent-tint: var(--coral-tint); }
.module-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); background: var(--accent-tint);
  padding: 5px 11px; border-radius: 20px; align-self: flex-start; margin-bottom: 16px;
}
.module-brand { font-size: 21px; letter-spacing: 0.2px; margin-bottom: 10px; }
.module-brand .tc { color: var(--text-faint); font-size: 14px; display: block; font-family: var(--sans); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.module-promise { color: var(--text-dim); font-size: 14.5px; margin-bottom: 18px; text-wrap: pretty; }
.module-points { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.module-points li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--text-dim); }
.module-points li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.module-explore { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--accent); margin-top: auto; align-self: flex-start; }
.module-explore:hover { text-decoration: underline; }

/* ---------- Steps (how it works) ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.step { background: rgba(0,0,0,0.18); border: 1px solid var(--border); border-radius: 10px; padding: 26px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--sans); font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent); margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 13.5px; text-wrap: pretty; }

/* ---------- Feature list (what you get) ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 26px; max-width: 820px; margin: 0 auto; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; max-width: 440px; } }
.feature { position: relative; padding-left: 24px; }
.feature::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.feature h3 { font-size: 16px; margin-bottom: 5px; }
.feature p { color: var(--text-dim); font-size: 13.5px; text-wrap: pretty; }

/* ---------- Flow diagram ---------- */
.flow { max-width: 760px; margin: 40px auto 0; }
.flow svg { width: 100%; height: auto; display: block; }
.flow .flow-node { fill: var(--surface-2); stroke: var(--border-strong); }
.flow .flow-node--accent { fill: var(--accent-tint); stroke: var(--accent); }
.flow .flow-label { fill: var(--text); font-family: var(--sans); font-size: 13px; }
.flow .flow-sub { fill: var(--text-faint); font-family: var(--sans); font-size: 11px; }
.flow .flow-arrow { stroke: var(--text-faint); stroke-width: 1.5; marker-end: url(#flowArrow); fill: none; }

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px 22px; }
.tier .badge {
  display: inline-block; font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  color: var(--gold-light); background: rgba(200,155,44,0.12); padding: 4px 10px; border-radius: 16px; margin-bottom: 12px;
}
.tier h3 { font-size: 16px; margin-bottom: 8px; }
.tier p { color: var(--text-dim); font-size: 13px; text-wrap: pretty; }

/* ---------- CTA band ---------- */
.cta-band {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: clamp(30px, 5vw, 48px);
}
.cta-band h2 { font-size: clamp(22px, 3.4vw, 28px); margin-bottom: 10px; text-wrap: balance; }
.cta-band p { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- EDC ---------- */
.edc-logo {
  display: block; width: 116px; height: 116px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 22px; box-shadow: 0 0 0 1px var(--border-strong);
}
.edc-card { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.edc-card p { font-size: 15px; }
.edc-card .fine { font-size: 12px; color: var(--text-faint); font-style: italic; margin-top: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.edc-card .ca { font-family: var(--sans); font-size: 12px; color: var(--text-faint); margin-top: 8px; word-break: break-all; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); margin-top: 30px; padding: 40px 20px; text-align: center; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-family: var(--sans); font-size: 13px; margin-bottom: 18px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--gold-light); }
footer .tagline { color: var(--text-faint); font-size: 12px; }
footer .rights { color: var(--text-faint); font-size: 12px; margin-top: 6px; opacity: 0.8; }
