/* ============================================================
   Ardenpay — design system
   Aesthetic: institutional, light, restrained luxury
   ============================================================ */

:root {
  /* Palette */
  --ink: #0B2A4A;          /* deep navy — primary */
  --ink-2: #163A60;        /* navy hover */
  --ink-soft: #4A5E78;     /* secondary text */
  --ivory: #F4EFE6;        /* background warm white */
  --paper: #FBF8F2;        /* page background */
  --rule: #DCD3C2;         /* hairline rules */
  --rule-soft: #ECE5D5;
  --gold: #B98D2F;         /* refined gold accent */
  --gold-soft: #C9A24A;
  --error: #8B2F2F;
  --success: #2F6B4A;

  /* Type */
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --max: 1240px;
  --gutter: 32px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

img, svg { display: block; max-width: 100%; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule { height: 1px; background: var(--rule); border: 0; }
.rule-soft { height: 1px; background: var(--rule-soft); border: 0; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow .bullet {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
  transform: rotate(45deg);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
}

h4 {
  font-size: 17px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
}

p { color: var(--ink-soft); }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}

.nav-logo svg { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}

.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform .3s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  letter-spacing: 0.04em;
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
}

.nav-cta:hover { background: var(--ink-2); }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 16px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  cursor: pointer;
  transition: all .25s ease;
}

.btn:hover { background: var(--ink-2); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }

.btn .arrow {
  width: 14px; height: 14px;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Section frame ---------- */
.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}

.section--ivory { background: var(--ivory); }
.section--ink   { background: var(--ink); color: var(--ivory); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--ivory); }
.section--ink p { color: rgba(244, 239, 230, 0.72); }
.section--ink .eyebrow { color: rgba(244, 239, 230, 0.55); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
}

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* ---------- Decorative ticker ---------- */
.ticker {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--ivory);
}
.ticker-inner {
  display: flex;
  gap: 64px;
  padding: 18px 0;
  animation: tickerScroll 60s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticker span .dot { color: var(--gold); margin: 0 10px; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(244, 239, 230, 0.78);
  padding: 80px 0 32px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}

@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.footer-brand svg { height: 30px; margin-bottom: 24px; }

.footer-brand p {
  color: rgba(244, 239, 230, 0.62);
  font-size: 13px;
  line-height: 1.6;
  max-width: 32ch;
}

.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
  margin-bottom: 22px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(244, 239, 230, 0.78);
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold-soft); }

.footer-legal {
  margin-top: 32px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
  border-top: 1px solid rgba(244, 239, 230, 0.06);
  font-size: 12px;
  color: rgba(244, 239, 230, 0.5);
  line-height: 1.7;
}

.footer-legal .compliance-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(244, 239, 230, 0.18);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.78);
  margin-bottom: 16px;
}
.footer-legal .compliance-badge .dot {
  width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg);
}

.footer-bottom {
  margin-top: 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px;
  color: rgba(244, 239, 230, 0.4);
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Subtle reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.reveal.d1 { animation-delay: .12s; }
.reveal.d2 { animation-delay: .22s; }
.reveal.d3 { animation-delay: .32s; }
.reveal.d4 { animation-delay: .42s; }
.reveal.d5 { animation-delay: .52s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 100px 0 72px;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(900px 320px at 90% 0%, rgba(201, 162, 74, 0.06), transparent 60%),
    var(--paper);
}
.page-hero .crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.page-hero .crumb a:hover { color: var(--gold); }
.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  max-width: 18ch;
}
.page-hero p {
  margin-top: 22px;
  font-size: 18px;
  max-width: 56ch;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  :root { --gutter: 22px; }
  .footer-legal { grid-template-columns: 1fr; }
}
