/* BusinessAIOS — Global Design System */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  --background: #0A0A0F;
  --background-elevated: #12121A;
  --background-soft: #0E0E15;
  --foreground: #FAFAFA;
  --foreground-muted: #A1A1AA;
  --foreground-subtle: #71717A;
  --border: #1F1F2E;
  --border-elevated: #27272A;
  --accent: #6366F1;
  --accent-glow: #818CF8;
  --accent-deep: #4F46E5;
  --accent-secondary: #10B981;
  --accent-tertiary: #F59E0B;
  --accent-pink: #EC4899;
  --accent-purple: #8B5CF6;
  --gradient-mesh: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);

  --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--foreground); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- Background atmospheric layer ---------- */
.atmos {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% -10%, rgba(99, 102, 241, 0.18), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(139, 92, 246, 0.10), transparent 70%);
}
.atmos::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  opacity: 0.5;
}

/* Noise overlay */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; }
.section-xs { padding: 56px 0; }
@media (max-width: 768px) { .section { padding: 80px 0; } .section-sm { padding: 56px 0; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-glow);
  opacity: 0.85;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}

h1, h2, h3, h4, h5 { font-family: var(--font-sans); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: var(--foreground); }
h1 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); letter-spacing: -0.045em; font-weight: 600; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.875rem); }
h4 { font-size: 1.125rem; font-weight: 600; }

.lead { color: var(--foreground-muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--foreground-muted); }
.subtle { color: var(--foreground-subtle); }
.mono { font-family: var(--font-mono); }

.gradient-text {
  background: linear-gradient(120deg, #818CF8 0%, #8B5CF6 50%, #EC4899 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 500; letter-spacing: -0.005em; transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1); cursor: pointer; white-space: nowrap; line-height: 1; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 8px 24px -8px rgba(99, 102, 241, 0.5);
  position: relative;
}
.btn-primary:hover { background: var(--accent-glow); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 12px 32px -8px rgba(99, 102, 241, 0.7); }
.btn-ghost { background: transparent; color: var(--foreground); border: 1px solid var(--border-elevated); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--foreground-subtle); transform: translateY(-1px); }
.btn-link { color: var(--accent-glow); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; }
.btn-link:hover { color: var(--foreground); }
.btn-link svg { transition: transform 200ms; }
.btn-link:hover svg { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover { border-color: var(--border-elevated); transform: translateY(-2px); }
.card-glow { position: relative; overflow: hidden; }
.card-glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--a, 0deg), rgba(99,102,241,0.6), rgba(139,92,246,0.4), rgba(236,72,153,0.5), rgba(99,102,241,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 200ms, border-color 200ms;
}
.nav.scrolled { background: rgba(10, 10, 15, 0.85); border-bottom-color: var(--border); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 32px; }
.brand { font-weight: 600; font-size: 17px; letter-spacing: -0.025em; color: var(--foreground); display: inline-flex; align-items: center; gap: 8px; }
.brand .ai { background: linear-gradient(120deg, var(--accent-glow), var(--accent-pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; transition: filter 200ms; }
.brand:hover .ai { filter: drop-shadow(0 0 8px rgba(129,140,248,0.6)); }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
  position: relative;
  box-shadow: 0 4px 12px -2px rgba(99,102,241,0.5);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px; border-radius: 3px;
  background: var(--background);
  mask: radial-gradient(circle at 50% 50%, transparent 35%, black 35%);
}
.nav-links { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: center; }
.nav-link { color: var(--foreground-muted); font-size: 14px; font-weight: 450; transition: color 180ms; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--foreground); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-signin { color: var(--foreground-muted); font-size: 14px; transition: color 180ms; }
.nav-signin:hover { color: var(--foreground); }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); }
.nav-toggle:hover { background: rgba(255,255,255,0.04); }
.nav-toggle span { width: 16px; height: 1.5px; background: var(--foreground); position: relative; transition: all 200ms; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; width: 16px; height: 1.5px; background: var(--foreground); left: 0; transition: all 200ms; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(40px);
  display: flex; flex-direction: column;
  padding: 100px 24px 40px;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.mobile-menu.open { transform: translateX(0); pointer-events: auto; }
.mobile-menu a { font-size: 28px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--foreground); letter-spacing: -0.02em; }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

@media (max-width: 900px) {
  .nav-links, .nav-signin { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--background-soft);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 48px; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--foreground-subtle); margin-bottom: 18px; font-weight: 500; font-family: var(--font-mono); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--foreground-muted); font-size: 14px; transition: color 180ms; }
.footer-col a:hover { color: var(--foreground); }
.footer-tagline { color: var(--foreground-muted); font-size: 14px; max-width: 28ch; margin-top: 12px; line-height: 1.6; }
.footer-address { margin-top: 24px; color: var(--foreground-subtle); font-size: 13px; line-height: 1.7; font-family: var(--font-mono); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--foreground-subtle); font-size: 12px; font-family: var(--font-mono); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---------- Hero common ---------- */
.hero { position: relative; padding: 180px 0 100px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -100px; right: -200px; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, rgba(139,92,246,0.1) 30%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 40px) scale(1.1); }
}

/* ---------- Pills, chips, dividers ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-elevated);
  font-size: 12px; font-family: var(--font-mono); color: var(--foreground-muted);
  letter-spacing: 0.02em;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-secondary); box-shadow: 0 0 8px var(--accent-secondary); }

.divider { height: 1px; background: var(--border); width: 100%; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%); position: relative; }
.marquee-track { display: flex; gap: 64px; animation: marquee 38s linear infinite; width: max-content; padding: 8px 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-placeholder { height: 28px; padding: 0 20px; display: flex; align-items: center; gap: 10px; color: var(--foreground-subtle); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; border-left: 1px solid var(--border); border-right: 1px solid var(--border); opacity: 0.7; }
.logo-placeholder .dot { width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--accent), var(--accent-purple)); opacity: 0.6; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Focus */
:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 3px; border-radius: 4px; }

/* Section heading group */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 { margin-top: 16px; }
.section-head .lead { margin: 16px auto 0; }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Icon wrapper */
.icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--accent-glow);
}
.icon-wrap svg { width: 22px; height: 22px; stroke-width: 1.6; }

/* Cookie banner */
.cookie {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 720px; margin: 0 auto;
  background: rgba(18, 18, 26, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-elevated);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  z-index: 80;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.5);
  transform: translateY(120%);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie.show { transform: none; }
.cookie p { font-size: 13px; color: var(--foreground-muted); flex: 1; }
.cookie a { color: var(--accent-glow); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie .btn { padding: 8px 14px; font-size: 12px; }
@media (max-width: 600px) { .cookie { flex-direction: column; align-items: stretch; } }
