/* Dominus AI — base styles */
:root {
  --bg: #F8FAFC;
  --bg-soft: #FFFFFF;
  --bg-tint: #EEF2F8;
  --ink: #0B0F19;
  --ink-soft: #1B2235;
  --muted: #64748B;
  --line: rgba(11, 15, 25, 0.08);
  --line-strong: rgba(11, 15, 25, 0.14);
  --blue: #2563EB;
  --cyan: #5CE1E6;
  --gold: #C6A15B;
  --dark: #050816;
  --dark-2: #0B0F19;
  --dark-card: #0F1525;
  --dark-line: rgba(255,255,255,0.08);
  --dark-line-2: rgba(255,255,255,0.14);
  --dark-muted: #94A3B8;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 0 rgba(11,15,25,0.04), 0 1px 2px rgba(11,15,25,0.04);
  --shadow-md: 0 1px 0 rgba(11,15,25,0.04), 0 8px 24px -8px rgba(11,15,25,0.12);
  --shadow-lg: 0 1px 0 rgba(11,15,25,0.04), 0 20px 60px -20px rgba(11,15,25,0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}

.mono {
  font-family: 'Geist Mono', ui-monospace, 'JetBrains Mono', Menlo, monospace;
  letter-spacing: -0.005em;
}

.serif {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  letter-spacing: -0.01em;
  font-feature-settings: 'liga';
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
.eyebrow.dark {
  background: rgba(255,255,255,0.04);
  border-color: var(--dark-line-2);
  color: rgba(255,255,255,0.85);
}
.eyebrow.dark .dot { background: var(--cyan); box-shadow: 0 0 0 4px rgba(92,225,230,0.15); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.028em; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.038em; }
h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -0.032em; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.018em; }
p  { margin: 0; line-height: 1.55; color: var(--ink-soft); }

.muted { color: var(--muted); }
.lead { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 1px 2px rgba(0,0,0,0.2), 0 8px 24px -10px rgba(11,15,25,0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 4px 8px rgba(0,0,0,0.18), 0 14px 36px -14px rgba(11,15,25,0.55); }
.btn-secondary {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: #fff; border-color: rgba(11,15,25,0.22); }
.btn-ghost {
  background: transparent; color: var(--ink);
}
.btn-ghost:hover { background: rgba(11,15,25,0.04); }
.btn-whats {
  background: var(--blue);
  color: #fff;
}
.btn-whats:hover { background: #1d4fd8; transform: translateY(-1px); }
.btn-light {
  background: #fff; color: var(--ink); border-color: rgba(0,0,0,0.06);
}

/* Card */
.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* Section */
section { position: relative; }
.section-pad { padding: 110px 0; }
.section-pad-sm { padding: 80px 0; }

.section-head {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 56px;
  max-width: 760px;
}

/* Hero gradient backdrop */
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  width: 1200px; height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(50% 50% at 30% 40%, rgba(37,99,235,0.18), transparent 60%),
    radial-gradient(50% 50% at 70% 30%, rgba(92,225,230,0.22), transparent 65%),
    radial-gradient(40% 40% at 50% 80%, rgba(198,161,91,0.10), transparent 70%);
  filter: blur(20px);
  opacity: 0.9;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,15,25,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,15,25,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
  opacity: 0.35;
}

/* Dotted surface (three.js) layer */
.hero-dots {
  z-index: 0;
  /* fade out the dots toward bottom/edges so they don't overpower content */
  mask-image: radial-gradient(ellipse 90% 75% at 50% 60%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 60%, #000 30%, transparent 80%);
  opacity: 0.85;
}
/* Soft light wash above the dots so the headline reads cleanly */
.hero-fade {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 50% 38%, rgba(248,250,252,0.78), rgba(248,250,252,0) 70%),
    linear-gradient(180deg, rgba(248,250,252,0) 60%, rgba(248,250,252,0.85) 100%);
}

/* Gradient border / glassmorphism */
.glass {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-md);
}

/* Header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.hdr.scrolled {
  background: rgba(248,250,252,0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}
.hdr-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px; height: 28px;
  background-image: url('assets/dominus-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  display: inline-block;
}
.nav {
  display: flex; align-items: center; gap: 6px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: rgba(11,15,25,0.05); color: var(--ink); }
.hdr-cta { display: flex; align-items: center; gap: 10px; }

@media (max-width: 880px) {
  .nav { display: none; }
}

/* Status indicator */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 8px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.18);
  border-radius: 999px;
  color: #15803d;
  font-size: 11.5px; font-weight: 500;
}
.status-pill .pulse {
  width: 6px; height: 6px; border-radius: 999px; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Dot grid for dark section */
.dark-section {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 20% 0%, rgba(37,99,235,0.25), transparent 60%),
    radial-gradient(50% 60% at 80% 100%, rgba(92,225,230,0.15), transparent 65%);
  pointer-events: none;
}
.dark-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
  opacity: 0.7;
}
.dark-section .container { position: relative; z-index: 1; }
.dark-section h2 { color: #fff; }
.dark-section p { color: var(--dark-muted); }
.dark-section .eyebrow { background: rgba(255,255,255,0.04); border-color: var(--dark-line-2); color: rgba(255,255,255,0.9); }

/* Footer */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.footer p { font-size: 13.5px; color: var(--muted); }

/* Pill chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(37,99,235,0.08);
  color: var(--blue);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 999px;
  font-weight: 500;
}
.chip.gold { background: rgba(198,161,91,0.10); border-color: rgba(198,161,91,0.30); color: #8a6c2c; }
.chip.dark { background: rgba(255,255,255,0.06); border-color: var(--dark-line-2); color: #fff; }

/* Utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.center { align-items: center; }
.between { justify-content: space-between; }

/* Marquee */
.marquee {
  display: flex; gap: 56px;
  animation: marquee 38s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Code block */
.code {
  background: #07091A;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.code .k { color: #5CE1E6; }
.code .s { color: #C6A15B; }
.code .n { color: #93C5FD; }
.code .c { color: #475569; }
.code .p { color: #fff; }

/* Dot connector lines (for integration map) */
.dashed {
  stroke-dasharray: 4 6;
  animation: dash 1.6s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -40; }
}

/* Wide tweak */
@media (max-width: 720px) {
  .section-pad { padding: 80px 0; }
}
