/* ─────────────────────────────────────────────────────────
   AxeNexa — Shared Design System
   Dark-first immersive studio aesthetic
───────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500&family=DM+Mono:wght@300;400&display=swap');

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:        #0e0d0c;
  --bg-2:      #131110;
  --surface:   #1a1714;
  --surface-2: #211e1a;
  --border:    #2c2924;
  --cream:     #eee9e2;
  --muted:     #b5b0a8;
  --stone:     #7a7670;
  --stone-2:   #4a4740;
  --accent:    #c8602a;
  --accent-2:  #e07840;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;

  --nav-h:  80px;
  --max-w:  1400px;
  --ease:   cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-o: cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  background: var(--bg);
  color: var(--cream);
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }

/* ── GRAIN TEXTURE ──────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ── PAGE FADE ───────────────────────────────────────── */
body { animation: pageFade 0.5s var(--ease) both; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

/* ── CONTAINER ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 60px;
}

/* ── SECTION ─────────────────────────────────────────── */
.section { padding: 120px 0; }
.section--sm { padding: 80px 0; }
.section--dark  { background: var(--bg); }
.section--dark2 { background: var(--bg-2); }
.section--surface { background: var(--surface); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 48px;
}
.section-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── TYPOGRAPHY ──────────────────────────────────────── */
.display {
  font-family: var(--serif);
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 300;
  line-height: 0.93;
  letter-spacing: -0.02em;
}
.headline-xl {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 84px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.headline-lg {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 300;
  line-height: 1.05;
}
.headline-md {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 300;
  line-height: 1.15;
}
.headline-sm {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 300;
  line-height: 1.3;
}
em.a { font-style: italic; color: var(--accent); }
.body-lead { font-size: 17px; line-height: 1.8; color: var(--muted); }
.body-sm  { font-size: 13px; line-height: 1.9; color: var(--stone); }
.mono-sm {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 36px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn-primary { background: var(--cream); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--cream); }
.btn-accent  { background: var(--accent); color: var(--cream); }
.btn-accent:hover { background: var(--accent-2); }
.btn-outline { border: 1px solid var(--border); color: var(--cream); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  color: var(--stone);
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--mono);
  transition: color 0.3s;
}
.btn-ghost:hover { color: var(--cream); }

/* ── NAV ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: rgba(14,13,12,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
.site-nav.scrolled { border-color: var(--border); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--cream);
}
.nav-logo-text em { font-style: normal; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── CLIENT AREA DISTINCT NAV BUTTON ──────────────────── */
.nav-links a.nav-client-area,
.nav-links a[href*="billing.axenexa.co"] {
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 2px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.3s var(--ease);
}
.nav-links a.nav-client-area::after,
.nav-links a[href*="billing.axenexa.co"]::after {
  display: none;
}
.nav-links a.nav-client-area:hover,
.nav-links a[href*="billing.axenexa.co"]:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200, 96, 42, 0.1);
}

.nav-mobile a.nav-client-area,
.nav-mobile a[href*="billing.axenexa.co"] {
  color: var(--accent);
  font-weight: 500;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--accent);
  padding: 10px 22px;
  transition: background 0.3s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--accent-2); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE NAV ──────────────────────────────────────── */
.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 999;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-110%);
  transition: transform 0.45s var(--ease);
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--cream); }
.nav-mobile a.active { color: var(--accent); }

/* ── MARQUEE ─────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--stone);
  padding: 0 50px;
}
.marquee-track .dot {
  color: var(--accent);
  font-style: normal;
  padding: 0 14px;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SCROLL REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }

/* ── CTA STRIP ───────────────────────────────────────── */
.cta-strip {
  background: var(--accent);
  padding: 90px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.cta-strip h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  max-width: 640px;
}
.cta-strip .btn-light {
  background: #fff;
  color: var(--accent);
  flex-shrink: 0;
}
.cta-strip .btn-light:hover { background: var(--bg); color: #fff; }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  padding: 80px 60px 60px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-logo-text {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--cream);
}
.footer-logo-text em { font-style: normal; color: var(--accent); }
.footer-tagline {
  font-size: 13px;
  line-height: 1.85;
  color: var(--stone);
  max-width: 240px;
  margin-bottom: 28px;
}
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone-2);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--stone); transition: color 0.3s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
  border-top: 1px solid var(--border);
}
.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--stone-2);
}
.footer-legal {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-2);
  opacity: 0.7;
  margin-top: 5px;
}

/* ── FORM FEEDBACK & SUCCESS ────────────────────────── */
.form-feedback {
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  display: none;
}
.form-feedback--error {
  border-color: #e04545;
  color: #ff6b6b;
  background: rgba(224, 69, 69, 0.08);
}
.form-feedback--success {
  border-color: #4caf72;
  color: #5dd489;
  background: rgba(76, 175, 114, 0.08);
}
.form-success-box {
  background: var(--surface);
  padding: 60px 40px;
  text-align: center;
  border: 1px solid var(--border);
  animation: pageFade 0.5s var(--ease) both;
}
.form-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 24px;
}
.footer-social {
  display: flex;
  gap: 24px;
}
.footer-social a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-2);
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--accent); }

/* ── PAGE HERO (inner pages) ─────────────────────────── */
.page-hero {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 60px) 60px 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(200,96,42,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-num {
  font-family: var(--serif);
  font-size: clamp(140px, 18vw, 260px);
  font-weight: 300;
  color: rgba(238,233,226,0.04);
  position: absolute;
  right: -20px;
  bottom: -20px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* ── HORIZONTAL RULE ─────────────────────────────────── */
.hr { height: 1px; background: var(--border); margin: 0 60px; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .site-nav { padding: 0 32px; }
  .footer-top { padding: 60px 32px 40px; gap: 40px; }
  .footer-bottom { padding: 20px 32px; }
  .cta-strip { padding: 70px 32px; }
  .hr { margin: 0 32px; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 32px 60px; }
}
@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .site-nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .footer-top {
    grid-template-columns: 1fr;
    padding: 48px 20px 32px;
    gap: 40px;
  }
  .footer-nav-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding: 18px 20px; flex-direction: column; gap: 10px; text-align: center; }
  .footer-social { justify-content: center; }
  .cta-strip { flex-direction: column; text-align: center; padding: 60px 20px; }
  .hr { margin: 0 20px; }
  .page-hero { padding: calc(var(--nav-h) + 24px) 20px 52px; }
}
