/* Brandex landing — shared base. Tokens copied from brandex-web Design System v1.0. */
:root {
  --navy-50: #f2f5fa; --navy-100: #e0e8f2; --navy-200: #c8d4e8; --navy-300: #9cb1d0;
  --navy-400: #6884b0; --navy-500: #3f5f94; --navy-600: #1e4a8c; --navy-700: #163969;
  --navy-800: #0f2747; --navy-900: #0a1a30;
  --orange-50: #fef6e8; --orange-100: #fce8c8; --orange-300: #f5b96a; --orange-400: #f29a2e;
  --orange-500: #e08418; --orange-700: #8a4f0c;
  --neutral-0: #ffffff; --neutral-50: #fafaf7; --neutral-100: #f2f1ec; --neutral-200: #e5e3da;
  --neutral-300: #c8c5ba; --neutral-400: #969283; --neutral-500: #6b6759; --neutral-600: #454238;
  --status-prime: #3f8f5f; --status-medium: #d4a84a; --status-weak: #c46a4a;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;

  /* light roles */
  --bg: var(--neutral-50);
  --surface: var(--neutral-0);
  --surface-alt: var(--neutral-100);
  --ink: var(--navy-600);
  --ink-strong: var(--navy-800);
  --text: var(--navy-500);
  --muted: var(--neutral-500);
  --line: rgba(30, 40, 60, .10);
  --line-strong: rgba(30, 40, 60, .18);
  --accent: var(--orange-400);
  --accent-text: var(--orange-700);
  --on-accent: var(--navy-900);
  --shadow: 0 1px 2px rgba(30,40,60,.06), 0 12px 32px rgba(30,40,60,.08);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: var(--navy-900);
  --surface: #0e2240;
  --surface-alt: #102849;
  --ink: var(--navy-100);
  --ink-strong: #ffffff;
  --text: var(--navy-300);
  --muted: var(--navy-400);
  --line: rgba(200, 212, 232, .10);
  --line-strong: rgba(200, 212, 232, .20);
  --accent-text: var(--orange-300);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 48px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font-sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink-strong); margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Wordmark — mirrors BrandexLogo.vue */
.logo { display: inline-flex; align-items: baseline; font: 700 20px/1 var(--font-sans); letter-spacing: -0.6px; color: var(--ink); text-decoration: none; }
.logo .x { position: relative; display: inline-block; }
.logo .x svg { position: absolute; left: 4px; top: -9px; width: 15px; height: 19px; overflow: visible; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 600 15px/1 var(--font-sans); text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease-out), background-color .2s, border-color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 3px rgba(242,154,46,.35); }
.btn-primary:hover { background: var(--orange-300); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.btn:hover .arr { transform: translate(2px, -2px); }

/* Theme toggle + direction switcher (preview chrome) */
.chrome { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; gap: 6px; padding: 6px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.chrome a, .chrome button { font: 500 12px/1 var(--font-mono); color: var(--text); background: none; border: 0; padding: 9px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.chrome a[aria-current="page"] { background: var(--surface-alt); color: var(--ink-strong); }
.chrome a:hover, .chrome button:hover { color: var(--ink-strong); }

/* Footer (legal data identical to go-live D1) */
.foot { border-top: 1px solid var(--line); padding: 48px 0 96px; font-size: 14px; }
.foot .row { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.foot address { font-style: normal; line-height: 1.7; color: var(--muted); }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; color: var(--text); }
.foot nav a:hover { color: var(--ink-strong); }

/* Generic reveal: only gated by html.js so no-JS users see everything */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* Platform glyph chips */
.plat { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.plat i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 700 11px/1 var(--font-sans); font-style: normal; color: #fff; }
.plat .fb { background: #1877f2; } .plat .ig { background: #d62976; } .plat .li { background: #0a66c2; } .plat .tt { background: #111; }


/* Official Brandex AI wordmark (white PNG used as a mask, so it takes any colour) */
.blogo { display: inline-block; position: relative; height: 28px; aspect-ratio: 1477 / 551; background: var(--ink-strong); -webkit-mask: url('logo-wordmark.png') center / contain no-repeat; mask: url('logo-wordmark.png') center / contain no-repeat; vertical-align: middle; }
.blogo-tag { display: block; aspect-ratio: 1489 / 45; background: currentColor; -webkit-mask: url('logo-tagline.png') center / contain no-repeat; mask: url('logo-tagline.png') center / contain no-repeat; }
a:has(> .blogo) { display: inline-flex; align-items: center; line-height: 0; }
.nav .blogo { height: 40px; } .foot .blogo { height: 44px; }

/* Official network marks (glyphs: Font Awesome Free, CC BY 4.0), used wherever an element carries data-net */
[data-net] { background: center / cover no-repeat !important; color: transparent !important; font-size: 0 !important; box-shadow: none !important; }
[data-net="facebook"] { background-image: url('../media/brand-icons/facebook.svg') !important; }
[data-net="instagram"] { background-image: url('../media/brand-icons/instagram.svg') !important; }
[data-net="linkedin"] { background-image: url('../media/brand-icons/linkedin.svg') !important; }
[data-net="tiktok"] { background-image: url('../media/brand-icons/tiktok.svg') !important; }
