/* Accord marketing site — brand tokens mirror web/src/index.css.
   Accent #0088CC, Inter, neutral-dark surfaces. */

:root {
  --rail: #0f1117;          /* neutral-900 */
  --surface: #1a1b21;       /* neutral-800 */
  --surface-2: #20222a;     /* a touch lighter for cards-on-alt */
  --input: #252b35;         /* neutral-700 */
  --divider: #2a2d36;
  --text-primary: #f2f3f5;
  --text-secondary: #b5bac1;
  --text-muted: #949ba4;
  --accent: #0088cc;
  --accent-hover: #0077b6;
  --online: #23a55a;
  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--rail);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.875em;
  background: var(--input);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--text-primary);
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(15, 17, 23, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text-primary); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
}
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-secondary); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 14px;
  border-radius: 7px;
}
.nav-cta:hover { background: var(--accent-hover); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 9px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--divider); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 84px;
  text-align: center;
  border-bottom: 1px solid var(--divider);
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.28; }
.orb-a { top: -160px; left: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle, #0088cc 0%, transparent 70%); }
.orb-b { bottom: -200px; right: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, #23a55a 0%, transparent 70%); opacity: 0.18; }
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.accent { color: var(--accent); }
.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-sub { margin-top: 26px; color: var(--text-muted); font-size: 0.9rem; }

/* ---- Sections ---- */
.section { padding: 80px 24px; max-width: var(--maxw); margin: 0 auto; }
.section-alt { background: var(--surface); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-lede {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 660px;
  margin: 0 0 36px;
}

/* ---- Cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid, .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface-2);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 26px;
}
.section-alt .card { background: var(--rail); }
.card h3 { margin: 0 0 10px; font-size: 1.18rem; font-weight: 600; }
.card p { margin: 0; color: var(--text-secondary); font-size: 0.97rem; }
.card-quiet { background: transparent; }
.card-download { display: flex; flex-direction: column; }
.card-download h3 { margin-top: 10px; }
.card-download p { flex: 1; }
.card-download .btn { margin-top: 16px; align-self: flex-start; }
.dl-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(0, 136, 204, 0.12);
  padding: 4px 9px;
  border-radius: 6px;
}
.dl-note { margin-top: 12px !important; font-size: 0.82rem !important; color: var(--text-muted) !important; }

/* ---- Code block ---- */
.codeblock {
  position: relative;
  background: var(--rail);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  margin: 0 0 22px;
}
.section-alt .codeblock { background: #0b0d12; }
.codeblock pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.7;
}
.codeblock code { background: transparent; padding: 0; color: var(--text-primary); }
.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--input);
  color: var(--text-secondary);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.copy-btn:hover { color: var(--text-primary); border-color: var(--accent); }
.copy-btn.copied { color: var(--online); border-color: var(--online); }

.fineprint { color: var(--text-muted); font-size: 0.92rem; max-width: 720px; }

/* ---- Federation ---- */
.pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffd479;
  background: rgba(240, 178, 50, 0.14);
  padding: 5px 11px;
  border-radius: 999px;
  margin: 0 0 20px;
}
.quote {
  border-left: 3px solid var(--accent);
  margin: 0 0 36px;
  padding: 6px 0 6px 22px;
  color: var(--text-secondary);
  font-size: 1.08rem;
  font-style: italic;
  max-width: 720px;
}
.quote em { color: var(--text-primary); font-style: italic; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--divider); padding: 32px 24px; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-tag { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { margin-left: auto; display: flex; gap: 20px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
@media (max-width: 560px) { .footer-links { margin-left: 0; } }

/* Caveat — used where a claim needs an explicit boundary rather than
   letting a broad word like "encrypted" cover more than it should.
   Styled to be noticed, not buried: a security caveat rendered as fine
   print is a caveat written to be skipped. */
.card .caveat {
  margin-top: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--accent, #5865f2);
  background: color-mix(in srgb, var(--accent, #5865f2) 8%, transparent);
  border-radius: 4px;
  font-size: 0.94em;
}
