/* ============================================================
   AIXF.ai — Shared Design System
   Multi-page architecture · Editorial-luxury · Navy + Gold
   ============================================================ */

:root {
  --navy-deep: #0a1530;
  --navy-1: #0f1e3c;
  --navy-2: #1a2847;
  --navy-3: #233560;
  --navy-card: #16264a;
  --navy-card-2: #1d3155;
  --border: rgba(212, 160, 23, 0.14);
  --border-soft: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);

  --gold: #d4a017;
  --gold-bright: #e6b845;
  --gold-soft: rgba(212, 160, 23, 0.12);
  --gold-line: rgba(212, 160, 23, 0.35);
  --red: #e85a5a;

  /* App-accent: electric cyan — used on /apps/ pages to signal "software product" */
  --cyan: #38bdf8;
  --cyan-bright: #7dd3fc;
  --cyan-soft: rgba(56, 189, 248, 0.12);
  --cyan-line: rgba(56, 189, 248, 0.35);

  --text: #ecf0f6;
  --text-dim: #b8c2d4;
  --text-muted: #8593a8;
  --text-faint: #5d6b82;

  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1240px;
  --container-narrow: 920px;
  --container-wide: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--gold); color: var(--navy-deep); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--navy-1);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(212,160,23,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(91,141,239,0.05) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.83  0 0 0 0 0.63  0 0 0 0 0.09  0 0 0 0.025 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5; mix-blend-mode: overlay;
  pointer-events: none; z-index: 1;
}

main { flex: 1; }
main, header, footer, section { position: relative; z-index: 2; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 36px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 36px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 36px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 30, 60, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
  transition: all 0.3s ease;
}
.nav-wrap.scrolled {
  background: rgba(10, 21, 48, 0.92);
  border-bottom-color: var(--gold-line);
}
.nav {
  max-width: var(--container-wide);
  margin: 0 auto; padding: 14px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex; align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { opacity: 0.85; }
.nav-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}

.nav-links {
  display: flex; gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--gold-bright); background: var(--gold-soft); }
.nav-links a.active {
  color: var(--gold-bright);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: 4px;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--gold-bright) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--gold-line);
    padding: 12px 24px 20px;
    gap: 2px;
  }
  .nav-links.open a { padding: 14px 16px; font-size: 15px; }
  .nav-links.open a.active::after { display: none; }
  .nav-cta { margin-left: 0 !important; margin-top: 8px; text-align: center; }
}

/* ============================================================
   PAGE HEADER (sub-page hero)
   ============================================================ */
.page-hero {
  padding: 170px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 70% 20%, rgba(212,160,23,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 16px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 100px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 26px;
}
.page-hero h1 {
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin-bottom: 22px;
  max-width: 900px;
}
.page-hero h1 em { font-style: italic; font-weight: 300; color: var(--gold); }
.page-hero p.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 0;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-family: var(--sans);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.5; }

/* ============================================================
   SECTIONS & TYPOGRAPHY
   ============================================================ */
section { padding: 90px 0; }
section.compact { padding: 60px 0; }
section.alt {
  background: linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 50%, var(--navy-1) 100%);
}
section.deep { background: var(--navy-deep); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.kicker::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--text);
}
h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 24px;
  font-variation-settings: "opsz" 96;
}
h2 em { font-style: italic; font-weight: 300; color: var(--gold); }
h3 {
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 12px;
  color: var(--text);
}
h4 {
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

p { color: var(--text-dim); margin-bottom: 18px; font-size: 17px; }
p:last-child { margin-bottom: 0; }
p.lead {
  font-size: 21px; line-height: 1.6;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 30px;
  max-width: 760px;
}
p.lead-center { margin-left: auto; margin-right: auto; text-align: center; }
strong { color: var(--text); font-weight: 600; }
em { color: var(--gold); font-style: italic; }

a { color: var(--gold-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  padding: 16px 30px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1), 0 8px 28px rgba(212,160,23,0.18);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1), 0 14px 40px rgba(212,160,23,0.32);
  color: var(--navy-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-medium);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: var(--gold-soft);
}
.btn-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid var(--gold-line);
  transition: all 0.2s ease;
}
.btn-arrow:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
  letter-spacing: 0.06em;
}

/* ============================================================
   CARDS, GRIDS, COMPONENTS
   ============================================================ */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 28px;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
}

/* Pull quote */
.pull-quote {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}
.pull-quote .mark {
  font-family: var(--serif);
  font-size: 100px;
  font-weight: 300;
  color: var(--gold);
  line-height: 0.6;
  font-style: italic;
  display: block;
  margin-bottom: 10px;
  font-variation-settings: "opsz" 144;
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.018em;
  margin-bottom: 30px;
}
.pull-quote blockquote em { color: var(--gold); }
.pull-quote cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}
.pull-quote cite::before { content: '— '; color: var(--gold); }

/* Vimeo wrapper */
.vimeo-wrap {
  padding: 56.25% 0 0 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}
.vimeo-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-2));
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: 70px 0;
  text-align: center;
}
.cta-strip h2 {
  margin-bottom: 18px;
}
.cta-strip p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 30px;
}
.cta-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.site {
  background: var(--navy-deep);
  padding: 70px 0 36px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}
.foot-brand {
  display: block;
  margin-bottom: 14px;
}
.foot-logo {
  height: 80px;
  width: 80px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.foot-tagline {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 360px;
}
.foot-address {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 360px;
}
.foot-address-label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.foot-col h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 8px; }
.foot-col a {
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
}
.foot-col a:hover { color: var(--gold-bright); }
.foot-bar {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.foot-bar a { color: var(--text-dim); }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FADE ON SCROLL
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2,0.8,0.2,1), transform 0.8s cubic-bezier(0.2,0.8,0.2,1);
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
