/* ============================================================================
   ATLAS Sync public landing site — atlassyncapp.com.
   The same approved Command Deck token vocabulary (web/command-deck/styles/
   deck.css), scaled for marketing typography. Deliberately a single dark
   theme: the product IS a dark trading console, its screenshots composite
   onto this ground, and the page commits to that world — every background
   and color painted explicitly. One warm amber accent; ink surfaces
   separated by hairlines, never drop shadows; monospace for data.
   ========================================================================== */

:root {
  --bg: #0C0F15;
  --rail: #090C11;
  --panel: #12161F;
  --panel-alt: #161B26;
  --elevated: #1B212E;
  --hairline: #232B3A;
  --hairline-soft: #1A202C;
  --text: #E9EDF5;
  --dim: #9AA7BD;
  --mute: #5F6C85;
  --accent: #E8A33D;
  --accent-ink: #241A08;
  --accent-soft: rgba(232, 163, 61, 0.15);
  /* The master ATLAS brand mark's reserved ATLAS Sync colorway -- see
     web/command-deck/assets/brand/vendor/README.md for full provenance. Used only by the mark's
     apex shape (.mark .apex below); every other accent use on this page keeps --accent unchanged. */
  --brand-gold: #D9A94E;
  --gain: #3ECD8D;
  --gain-soft: rgba(62, 205, 141, 0.12);
  --info: #4D9FEC;
  --info-soft: rgba(77, 159, 236, 0.12);
  --neutral: #8A94A8;
  --neutral-soft: rgba(138, 148, 168, 0.12);
  --nt-red: #D2635A;
  --nt-red-soft: rgba(210, 99, 90, 0.13);
  --rithmic-blue: #4D8BE0;
  --rithmic-blue-soft: rgba(77, 139, 224, 0.13);
  --mt5-teal: #33A98F;
  --mt5-teal-soft: rgba(51, 169, 143, 0.13);

  --font-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-mono: Consolas, "Cascadia Mono", ui-monospace, monospace;

  --wrap: 1060px;
  --wrap-wide: 1180px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent-soft); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: var(--radius);
  font-weight: 600; z-index: 100;
  transition: top 120ms ease;
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------ Brand mark */
/* The approved master ATLAS geometric mark -- see web/command-deck/assets/brand/vendor/README.md
   for provenance and docs/BRAND_ASSETS.md for the brand system. Inline SVG, not a filled badge,
   matching how the source design system itself renders it: .apex takes the reserved ATLAS Sync
   gold, .base stays neutral ink via currentColor. */
.mark {
  width: 28px; height: 28px; flex: none;
  color: var(--text);
  display: inline-grid; place-items: center;
}
.mark svg { width: 100%; height: 100%; }
.mark .apex { fill: var(--brand-gold); }
.mark .base { fill: currentColor; }
.mark.sm { width: 22px; height: 22px; }

/* ------------------------------------------------------------ Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 12, 17, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline-soft);
}
.header-row {
  display: flex; align-items: center; gap: 28px;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-text {
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: 1.2px; font-weight: 400;
}
.brand-text b { font-weight: 700; color: var(--accent); }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--dim); font-size: 13.5px; font-weight: 600;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--panel-alt);
  color: var(--text);
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap;
}
.btn:hover { background: var(--elevated); text-decoration: none; }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.btn-primary:hover { background: #F0B255; border-color: #F0B255; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--panel); }
.site-header .btn { padding: 7px 16px; font-size: 13px; }

/* ------------------------------------------------------------ Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.06; font-weight: 700;
  letter-spacing: -0.5px;
  text-wrap: balance;
  margin-bottom: 22px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.15; font-weight: 700;
  letter-spacing: -0.3px;
  text-wrap: balance;
  margin-bottom: 16px;
}
h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.lede { font-size: 18px; color: var(--dim); max-width: 620px; margin-bottom: 18px; }
.section-lede { font-size: 16.5px; color: var(--dim); max-width: 680px; margin-bottom: 26px; }
.signature {
  font-family: var(--font-mono);
  font-size: 14.5px; color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 30px;
}
.fineprint { font-size: 13px; color: var(--mute); max-width: 640px; margin-top: 18px; }
.fineprint a { color: var(--dim); text-decoration: underline; }

/* ------------------------------------------------------------ Hero */
.hero { padding: 84px 0 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.cta-row .btn { padding: 12px 28px; font-size: 15.5px; }
.cta-note { font-size: 13.5px; color: var(--mute); margin-top: 14px; }

.hero-shot { margin-top: 56px; }
.shot-frame {
  background: var(--rail);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 8px;
  overflow: hidden;
}
.shot-frame img { border-radius: 5px; border: 1px solid var(--hairline-soft); }
figcaption {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--mute);
  margin-top: 10px; text-align: center;
}

/* ------------------------------------------------------------ Sections */
.section { padding: 96px 0 0; }
.section:last-of-type { padding-bottom: 96px; }
.section > .wrap { border-top: 1px solid var(--hairline-soft); padding-top: 64px; }
.cta-final { text-align: center; }
.cta-final .section-lede { margin-left: auto; margin-right: auto; }

/* Reveal-on-scroll (added by JS only when motion is allowed). */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------ How it works */
.flow {
  display: flex; align-items: stretch; gap: 14px;
  margin: 34px 0 40px;
}
.flow-node {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
}
.flow-node.flow-core {
  background: var(--panel-alt);
  border-color: var(--accent);
  align-items: flex-start;
}
.flow-core .mark.sm { margin-bottom: 6px; }
.flow-k { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--text); font-weight: 700; }
.flow-core .flow-k { color: var(--accent); }
.flow-v { font-size: 13.5px; color: var(--dim); }
.flow-arrow { align-self: center; color: var(--accent); font-size: 22px; flex: none; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols-3 p { font-size: 14.5px; color: var(--dim); }

/* ------------------------------------------------------------ Platforms */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.host-cards { margin: 30px 0 26px; }
.host-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.host-card .glyph { color: var(--accent); margin-right: 6px; }
.host-card p { font-size: 14.5px; color: var(--dim); }

.platform-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.platform-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.platform-card[data-status="available"] { border-color: var(--hairline); }
.platform-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.platform-head h3 { margin: 0; flex: 1; }
.platform-host { font-family: var(--font-mono); font-size: 12px; color: var(--mute); margin-bottom: 8px; }
.platform-card > p:last-child { font-size: 14px; color: var(--dim); }

/* Provider letter badges — the approved fallback treatment until official logo
   assets are obtained (docs/BRAND_ASSETS.md). Consistent containers, never stretched. */
.pmark {
  width: 30px; height: 30px; flex: none;
  border-radius: 6px;
  display: inline-grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}
.pmark.nt { color: var(--nt-red); background: var(--nt-red-soft); border: 1px solid var(--nt-red); }
.pmark.rithmic { color: var(--rithmic-blue); background: var(--rithmic-blue-soft); border: 1px solid var(--rithmic-blue); }
.pmark.mt5 { color: var(--mt5-teal); background: var(--mt5-teal-soft); border: 1px solid var(--mt5-teal); }
.pmark.tradovate { color: var(--neutral); background: var(--neutral-soft); border: 1px solid var(--neutral); }

.pill {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px;
}
.pill-available { color: var(--gain); background: var(--gain-soft); }
.pill-beta { color: var(--info); background: var(--info-soft); }
.pill-coming-soon { color: var(--neutral); background: var(--neutral-soft); }

/* ------------------------------------------------------------ Mapping */
.cols-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.cols-split.wide-media { grid-template-columns: 5fr 7fr; }
.cols-split p + p { margin-top: 12px; }
.map-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.map-table th {
  text-align: left;
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--mute);
  padding: 12px 18px 8px;
  border-bottom: 1px solid var(--hairline);
}
.map-table td {
  padding: 12px 18px;
  font-size: 15px;
  border-bottom: 1px solid var(--hairline-soft);
}
.map-table tr:last-child td { border-bottom: none; }
.map-table td:nth-child(2) { color: var(--accent); }
.map-table td:last-child { color: var(--mt5-teal); }

/* ------------------------------------------------------------ Risk */
.cap-list { list-style: none; display: flex; flex-direction: column; }
.cap-list li {
  font-size: 14.5px; color: var(--dim);
  padding: 11px 0 11px 18px;
  border-bottom: 1px solid var(--hairline-soft);
  position: relative;
}
.cap-list li::before {
  content: "";
  position: absolute; left: 0; top: 19px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent);
}
.cap-list li:last-child { border-bottom: none; }
.cap-list b { color: var(--text); }

/* ------------------------------------------------------------ Command Deck */
.deck-shots {
  display: grid; grid-template-columns: 8fr 3fr; gap: 24px;
  align-items: start;
}
.shot-frame.phone { padding: 6px; border-radius: 14px; }
.shot-frame.phone img { border-radius: 9px; }

/* ------------------------------------------------------------ Plans */
.plan-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.plan-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.plan-card.featured { border-color: var(--accent); background: var(--panel-alt); }
.plan-card.featured h3 { color: var(--accent); }
.plan-cap { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.plan-card > p:last-child { font-size: 13.5px; color: var(--dim); }

/* ------------------------------------------------------------ Footer */
.site-footer {
  border-top: 1px solid var(--hairline-soft);
  background: var(--rail);
  padding: 44px 0 52px;
  margin-top: 0;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 14px; letter-spacing: 1.1px;
  margin-bottom: 18px;
}
.footer-brand b { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 20px; }
.footer-links a { color: var(--dim); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { font-size: 12.5px; color: var(--mute); }
.footer-legal + .footer-legal { margin-top: 12px; }

/* ============================================================ Responsive */
@media (max-width: 900px) {
  .cols-3 { grid-template-columns: 1fr; gap: 20px; }
  .cols-split, .cols-split.wide-media { grid-template-columns: 1fr; gap: 28px; }
  .deck-shots { grid-template-columns: 1fr; }
  .deck-mobile { max-width: 320px; margin: 0 auto; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 72px; }
  .section > .wrap { padding-top: 48px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .hero { padding-top: 56px; }
  .hero-shot { margin-top: 40px; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .cols-2 { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1; }
  .wrap, .wrap-wide { padding: 0 16px; }
  .shot-frame { padding: 5px; border-radius: 8px; }
}
