/* BZS Software — Editorial / Refined */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --ink: #0a0a0c;
  --ink-2: #1a1a1d;
  --paper: #f6f4ee;
  --paper-2: #ecebe3;
  --paper-3: #e2e0d6;
  --rule: rgba(10, 10, 12, 0.12);
  --rule-strong: rgba(10, 10, 12, 0.24);
  --muted: rgba(10, 10, 12, 0.58);
  --muted-2: rgba(10, 10, 12, 0.42);
  --accent: #2438ff;
  --accent-deep: #1a26b8;
  --accent-soft: rgba(36, 56, 255, 0.08);
  --warm: #c9a96e;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-tight {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
}

/* ============ Type ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.h-xl {
  font-size: clamp(64px, 9vw, 144px);
}

.h-lg {
  font-size: clamp(44px, 6vw, 88px);
}

.h-md {
  font-size: clamp(32px, 4vw, 56px);
}

.h-sm {
  font-size: clamp(24px, 2.6vw, 36px);
}

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
}

.body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-primary .arrow {
  transition: transform 0.25s var(--ease-out);
}

.btn-primary:hover .arrow {
  transform: translateX(3px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-lg {
  padding: 18px 28px;
  font-size: 15px;
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 32px;
  transition: all 0.4s var(--ease-out);
}

.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(246, 244, 238, 0.7);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--rule);
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled .nav-inner {
  background: rgba(246, 244, 238, 0.92);
  box-shadow: 0 4px 20px rgba(10, 10, 12, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  padding: 10px 18px;
  font-size: 13px;
}

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

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}

.reveal-line.in > span {
  transform: translateY(0);
}

/* ============ Marquee ============ */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}

.marquee-track {
  display: inline-flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  align-items: center;
}

.marquee-track .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ============ Cursor / blob ============ */
@keyframes pulse-soft {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1ad27e;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 0 rgba(26, 210, 126, 0.5);
  animation: pulse-soft 2s var(--ease-in-out) infinite;
}

/* ============ Cards ============ */
.card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: 36px;
  transition: all 0.35s var(--ease-out);
}

.card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
}

/* ============ Footer ============ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 40px;
}

.footer .display { color: var(--paper); }

/* numbers / counters */
.num-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

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

/* dark blocks */
.dark-block {
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  overflow: hidden;
}

.dark-block .display, .dark-block .lead, .dark-block .eyebrow {
  color: var(--paper);
}

.dark-block .display em {
  color: var(--paper);
}

.dark-block .lead { color: rgba(246, 244, 238, 0.65); }
.dark-block .eyebrow { color: rgba(246, 244, 238, 0.6); }
.dark-block .eyebrow::before { background: var(--warm); }
