/* Azlani — shared styles */
:root {
  --bg: #f4efe6;
  --bg-2: #ebe5d8;
  --ink: #14110d;
  --ink-2: #2a2520;
  --muted: #6b6259;
  --line: #1a1612;
  --ember: #d65a2a;
  --ember-soft: #f3a072;
  --paper: #faf6ec;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

.serif { font-family: 'Geist', sans-serif; font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; padding-bottom: 0.06em; }
.ital { font-style: normal; font-family: 'Geist', sans-serif; font-weight: 400; }
.mono { font-family: 'Geist Mono', ui-monospace, 'JetBrains Mono', monospace; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Reusable nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(244, 239, 230, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  gap: 24px;
}
.dark-nav-bg .nav { background: rgba(20,17,13,0.78); color: var(--bg); border-bottom-color: rgba(244,239,230,0.18); }
.nav > * { pointer-events: auto; }
.nav .brand {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
  color: var(--ink);
}
.nav .brand-mark { display: inline-flex; align-items: center; gap: 12px; }
.nav .brand-mark img { height: 30px; width: auto; display: block; }
.nav .brand-word {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  letter-spacing: -0.005em;
  font-weight: 400;
  line-height: 1;
  position: relative;
  top: 1px;
}
.nav-links {
  display: flex; gap: 28px; font-size: 13px; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-links a { opacity: 0.85; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav .cta-mini {
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 8px 14px; border-radius: 100px;
  color: var(--ink);
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav .cta-mini:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dark-nav-bg .nav .brand,
.dark-nav-bg .nav .cta-mini { color: var(--bg); border-color: var(--bg); }
.dark-nav-bg .nav .cta-mini:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  font-size: 14px; letter-spacing: 0.01em;
  border-radius: 100px;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover { background: var(--ember); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s cubic-bezier(.2,.7,.3,1); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* Section eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }

/* Section base */
section { position: relative; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Reveal animations — keyframe-based so they always paint correctly */
@keyframes revealLineIn {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Marquee */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.marquee-track {
  display: inline-flex; gap: 48px;
  animation: marquee 40s linear infinite;
  font-family: 'Geist', sans-serif; font-weight: 500; letter-spacing: -0.02em;
  font-size: 32px;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .dot { width: 8px; height: 8px; background: var(--ember); border-radius: 50%; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 140px 32px 60px;
  background: var(--bg);
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: end;
  padding-bottom: 100px;
}
.footer-mark {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0;
}
.footer-mark img {
  width: clamp(280px, 38vw, 560px);
  height: auto;
  display: block;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.footer-links { display: flex; gap: 24px; }

/* Page-specific section paddings */
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }

/* Inverted section (white→black flip) */
.dark {
  background: var(--ink);
  color: var(--bg);
}
.dark .eyebrow { color: var(--ember-soft); }
.dark .btn-primary { background: var(--bg); color: var(--ink); }
.dark .btn-primary:hover { background: var(--ember); color: var(--bg); }
.dark .btn-ghost { color: var(--bg); border-color: var(--bg); }
.dark .btn-ghost:hover { background: var(--bg); color: var(--ink); }

/* Phone */
.phone {
  width: 320px; height: 640px;
  background: #0e0c0a; border-radius: 44px;
  padding: 14px;
  box-shadow: 0 60px 120px -20px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,0,0,0.1);
  position: relative;
}
.phone::before {
  content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; background: #0e0c0a; border-radius: 100px; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}

/* tiny utility */
.dim { color: var(--muted); }
.no-wrap { white-space: nowrap; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Page-load fade — handled per-element via FadeUp/RevealLines */
.page-fade { opacity: 1; }

/* Selection */
::selection { background: var(--ember); color: var(--bg); }
