/* ============================================================
   BOSS — Business Operating Software Suite
   Brand system implemented from the official spec sheet.
   Palette: 0A0F1C navy · 111827 slate · 2563EB blue
            64748B slate-gray · E5E7EB light-gray
   Type:    Satoshi (Light/Regular/Medium/Bold/Black)
   Theme:   light default · dark via [data-theme="dark"]
   ============================================================ */
:root {
  /* Brand constants (identical in both themes) */
  --navy: #0a0f1c;
  --slate: #111827;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --slate-gray: #64748b;
  --light-gray: #e5e7eb;
  --accent: #2563eb;           /* fixed CTA blue, spec-true */
  --accent-strong: #1d4ed8;
  --on-accent: #ffffff;

  /* Light surfaces */
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --line: #e5e7eb;
  --line-strong: #d6dee9;

  /* Light text */
  --ink: #0a0f1c;
  --ink-2: #1f2937;
  --muted: #64748b;
  --brand: #2563eb;            /* themed accent for text/icons */
  --brand-soft: #eff4ff;

  --success: #16a34a;

  /* Effects */
  --glow: rgba(37, 99, 235, 0.20);
  --shadow-sm: 0 2px 10px rgba(10, 15, 28, 0.06);
  --shadow-md: 0 18px 50px rgba(10, 15, 28, 0.08);
  --shadow-lg: 0 40px 100px rgba(10, 15, 28, 0.14);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --logo-filter: none;
}

:root[data-theme="dark"] {
  --bg: #0a0f1c;
  --bg-2: #0b1120;
  --surface: #111827;
  --surface-2: #151e30;
  --surface-3: #1b2638;
  --line: #1e293b;
  --line-strong: #2a3a52;

  --ink: #f8fafc;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --brand: #3b82f6;
  --brand-soft: rgba(59, 130, 246, 0.14);

  --success: #4ade80;

  --glow: rgba(59, 130, 246, 0.30);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 22px 60px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 44px 120px rgba(0, 0, 0, 0.6);

  --logo-filter: brightness(0) invert(1);
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Satoshi", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { min-height: 100vh; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { font-family: "Satoshi", "Inter", system-ui, sans-serif; }

.boss-page { position: relative; min-height: 100vh; overflow: hidden; }

/* Ambient background orbs */
.bg-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orbs::before,
.bg-orbs::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.7;
}
.bg-orbs::before { width: 540px; height: 540px; top: -200px; right: -140px;
  background: radial-gradient(circle, var(--glow), transparent 70%); }
.bg-orbs::after { width: 480px; height: 480px; bottom: -180px; left: -160px;
  background: radial-gradient(circle, var(--glow), transparent 70%); opacity: 0.5; }

/* Layout shells */
.site-header, .hero, .section, .cta, .footer {
  position: relative; z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* The brand B-mark (spec app icon) */
.b-mark {
  display: inline-grid; place-items: center;
  border-radius: 26%;
  background: linear-gradient(160deg, #1e3a8a, var(--navy));
  color: #fff; font-weight: 900; letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ============================================================
   Header / Nav  (spec: BOSS · Platform Solutions Resources Company · Request Demo)
   ============================================================ */
.site-header { padding-top: 18px; }
.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.brand .b-mark { width: 30px; height: 30px; font-size: 18px; }
.brand img { height: 50px; width: auto; filter: var(--logo-filter); transition: filter 0.4s var(--ease); }

.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px;
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--ink); background: var(--surface-2); outline: none;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Theme toggle */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface-2); color: var(--ink); cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Mobile menu toggle */
.landing-mobile-toggle {
  display: none;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface-2); color: var(--ink); cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.landing-mobile-toggle:hover { transform: translateY(-1px); border-color: var(--accent); }
.landing-mobile-toggle svg { width: 18px; height: 18px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 15px; }

.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px var(--glow); }
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-strong); transform: translateY(-2px);
  box-shadow: 0 16px 40px var(--glow); outline: none;
}
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--accent); color: var(--accent); transform: translateY(-2px); outline: none;
}
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }

/* ============================================================
   Hero  (spec website hero)
   ============================================================ */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.9fr);
  align-items: center; gap: 56px; padding: 60px 0 40px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--surface);
  color: var(--ink-2); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--brand-soft); }

.hero h1 {
  margin: 22px 0 0; font-size: clamp(44px, 6vw, 76px);
  font-weight: 900; line-height: 0.98; letter-spacing: -0.04em; color: var(--ink);
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--blue), var(--blue-bright));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  max-width: 540px; margin: 24px 0 0;
  font-size: clamp(17px, 1.7vw, 19px); line-height: 1.6; color: var(--muted); font-weight: 500;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Trusted-by strip (spec: ACME NEXORA PIVOT Northline Vertex) */
.trustbar { margin-top: 40px; }
.trustbar span { display: block; margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.trustbar ul { display: flex; flex-wrap: wrap; gap: 26px; margin: 0; padding: 0; list-style: none; }
.trustbar li { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); opacity: 0.45; transition: opacity 0.2s var(--ease); }
.trustbar li:hover { opacity: 0.9; }

/* Hero visual — 3D isometric operating layer (spec website hero) */
.hero-visual { position: relative; }
.platform-3d { position: relative; z-index: 2; }
.platform-3d svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 40px 80px var(--glow)); animation: floaty 7s var(--ease) infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Hero visual — dashboard mock (links to /dashboard.html) */
.app-card {
  position: relative; z-index: 2; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
a.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent); }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 16px; border-bottom: 1px solid var(--line); }
.app-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; letter-spacing: -0.02em; color: var(--ink); }
.app-brand .b-mark { width: 28px; height: 28px; font-size: 15px; }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.stat { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.stat .label { font-size: 11px; font-weight: 600; color: var(--muted); }
.stat .value { margin-top: 6px; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); }
.stat .delta { display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--success); }

.app-chart { display: flex; align-items: flex-end; gap: 9px; height: 92px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.app-chart i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--blue-bright), var(--blue)); opacity: 0.9; }
.app-chart i:nth-child(odd) { opacity: 0.4; background: var(--line-strong); }

/* Floating chips */
.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow-md);
  font-size: 12.5px; font-weight: 700; color: var(--ink);
}
.float-chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chip-1 { top: 22px; left: -26px; animation: float 6s var(--ease) infinite; }
.chip-2 { bottom: 30px; right: -22px; animation: float 6s var(--ease) infinite 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   Brand essence ribbon  (spec brand essence)
   ============================================================ */
.essence {
  position: relative; z-index: 1; margin: 24px auto 0;
  width: min(1180px, calc(100% - 40px));
  padding: 30px clamp(20px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--slate), var(--navy));
  color: #fff; overflow: hidden;
}
.essence::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.35), transparent 45%); pointer-events: none; }
.essence-words { position: relative; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: clamp(20px, 3vw, 34px); font-weight: 900; letter-spacing: -0.03em; }
.essence-words b { color: #fff; }
.essence-words b:nth-child(even) { color: var(--blue-bright); }
.essence p { position: relative; margin: 14px 0 0; max-width: 620px; color: rgba(255, 255, 255, 0.72); font-size: 16px; line-height: 1.6; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 86px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; color: var(--ink); }
.section-head p { margin: 18px 0 0; font-size: 17px; line-height: 1.65; color: var(--muted); }

/* Brand pillars (spec: Unified · Intelligent · Efficient · Reliable) */
.pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillar {
  padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.pillar .ico { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 20px; }
.pillar .ico svg { width: 26px; height: 26px; }
.pillar h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.pillar p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* Application suite (spec application icons) */
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.module {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.module:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.module .ico { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: var(--surface-3); color: var(--brand); }
.module .ico svg { width: 22px; height: 22px; }
.module .m-name { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.module .m-sub { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.module.is-link .m-name::after { content: " →"; color: var(--accent); }

/* Split / capabilities */
.split { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; align-items: start; }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 900; font-size: 14px;
}
.step h4 { margin: 2px 0 6px; font-size: 17px; font-weight: 800; color: var(--ink); }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Dashboard CTA band (links to live dashboard) */
.dash-band {
  position: relative; z-index: 1; margin: 0 auto;
  width: min(1180px, calc(100% - 40px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface-2); overflow: hidden;
}
.dash-band .dash-copy h2 { margin: 0; font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; color: var(--ink); }
.dash-band .dash-copy p { margin: 16px 0 24px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 440px; }

/* ============================================================
   CTA  (spec: Run your business. Like a BOSS.)
   ============================================================ */
.cta {
  margin: 86px auto 0; padding: clamp(40px, 6vw, 76px); border-radius: var(--radius-lg);
  text-align: center; color: #fff; overflow: hidden; position: relative;
  background:
    radial-gradient(circle at 18% 0%, rgba(59, 130, 246, 0.45), transparent 45%),
    radial-gradient(circle at 92% 100%, rgba(37, 99, 235, 0.4), transparent 45%),
    linear-gradient(135deg, var(--slate), var(--navy));
  box-shadow: var(--shadow-lg);
}
.cta .eyebrow { color: rgba(255, 255, 255, 0.8); justify-content: center; }
.cta .eyebrow::before { background: var(--blue-bright); }
.cta h2 { max-width: 760px; margin: 0 auto; font-size: clamp(32px, 4.6vw, 56px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; color: #fff; }
.cta h2 .grad { background: linear-gradient(120deg, #fff, var(--blue-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cta p { max-width: 540px; margin: 18px auto 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: 56px 0 48px; margin-top: 56px; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .brand img { height: 50px; }
.footer-tag { margin: 16px 0 0; max-width: 300px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer-col a { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-bottom a { color: var(--ink); font-weight: 600; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .pillar-grid, .module-grid { grid-template-columns: 1fr 1fr; }
  .split, .dash-band { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .site-header, .hero, .section, .cta, .footer, .essence, .dash-band { width: min(100% - 28px, 1180px); }
  .pillar-grid, .module-grid, .stat-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .float-chip { display: none; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
