/* =========================================================
   FINQOR — Marketing Site
   Aesthetic: Midnight Executive, editorial luxury, finance-grade
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy-deep: #060E22;
  --navy: #0B1B3D;
  --navy-mid: #122348;
  --navy-light: #1B2E5A;
  --gold: #C9A961;
  --gold-soft: #E6D4A8;
  --gold-deep: #A8893F;
  --ice: #CADCFC;
  --ink: #0A0F1F;
  --ink-soft: #2A3149;
  --slate: #5B6478;
  --slate-light: #8892A6;
  --paper: #FAFAF7;
  --paper-warm: #F5F3EC;
  --line: rgba(11, 27, 61, 0.10);
  --line-strong: rgba(11, 27, 61, 0.18);
  --line-gold: rgba(201, 169, 97, 0.30);

  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --max: 1240px;
  --pad: 2rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow.on-dark { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.1; }
h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.2; }
h4 { font-size: 1.15rem; font-weight: 500; line-height: 1.3; }

.serif-italic { font-style: italic; color: var(--gold-deep); }

/* .on-dark works both as parent AND when applied directly */
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
h1.on-dark, h2.on-dark, h3.on-dark, h4.on-dark { color: #fff; }
.on-dark .serif-italic,
h1.on-dark .serif-italic, h2.on-dark .serif-italic,
h3.on-dark .serif-italic, h4.on-dark .serif-italic { color: var(--gold); }

p { font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); }
.on-dark p, p.on-dark { color: var(--ice); opacity: 0.88; }

.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
.on-dark .lead, .lead.on-dark { color: var(--ice); opacity: 0.92; }

/* ---------- LAYOUT ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 7rem 0; }
.section-tight { padding: 4.5rem 0; }
@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }
  .section-tight { padding: 3rem 0; }
}

.hairline { height: 1px; background: var(--line); }
.hairline-gold { height: 1px; background: var(--line-gold); }
.on-dark .hairline { background: rgba(255,255,255,0.10); }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 1.1rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  color: var(--navy);
  display: flex; align-items: center; gap: 0.6rem;
}
.brand .mark {
  width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201,169,97,0.18);
}
.nav-links { display: flex; gap: 2.4rem; align-items: center; }
.nav-links a {
  font-size: 0.86rem; color: var(--ink-soft); font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
}
@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--navy); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.on-dark .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- HERO ---------- */
.hero {
  background: var(--navy-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 7rem;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201,169,97,0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(202,220,252,0.04), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; z-index: 2; }

/* ---------- HERO METRICS GRID ---------- */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 6rem;
}
.hero-metric {
  padding: 0 2rem;
  border-right: 1px solid rgba(201, 169, 97, 0.20);
}
.hero-metric:first-child { padding-left: 0; }
.hero-metric:last-child { border-right: none; padding-right: 0; }

@media (max-width: 900px) {
  .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; margin-top: 4rem; }
  .hero-metric { padding: 0 1rem; }
  .hero-metric:nth-child(2) { border-right: none; }
  .hero-metric:nth-child(3) { padding-left: 0; }
}
@media (max-width: 560px) {
  .hero-metrics { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-metric { padding: 0; border-right: none; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.18s; }
.delay-3 { animation-delay: 0.28s; }
.delay-4 { animation-delay: 0.38s; }
.delay-5 { animation-delay: 0.48s; }

/* ---------- DARK SECTIONS ---------- */
.dark {
  background: var(--navy-deep);
  color: #fff;
}
.dark.with-grid {
  position: relative;
  overflow: hidden;
}
.dark.with-grid::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.dark .container { position: relative; z-index: 2; }

/* ---------- CARDS ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem;
  transition: all 0.25s ease;
  position: relative;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.card-dark {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
  transition: all 0.25s ease;
}
.card-dark:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(201,169,97,0.30);
}

.card-numbered::before {
  content: attr(data-num);
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate-light);
  letter-spacing: 0.15em;
}

/* ---------- METRICS ---------- */
.metric {
  border-top: 1px solid var(--line-gold);
  padding-top: 1.5rem;
}
.metric-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}
.on-dark .metric-num, .metric.on-dark .metric-num { color: #fff; }
.metric-num .unit { font-size: 0.55em; color: var(--gold-deep); margin-left: 0.1em; }
.on-dark .metric-num .unit, .metric.on-dark .metric-num .unit { color: var(--gold); }
.metric-label {
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  font-weight: 500;
}
.on-dark .metric-label, .metric.on-dark .metric-label { color: var(--ice); opacity: 0.7; }

/* ---------- LIST ---------- */
.checklist { list-style: none; }
.checklist li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 1.35rem;
  width: 8px; height: 8px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: rotate(45deg);
}
.on-dark .checklist li,
.checklist.on-dark li {
  border-bottom-color: rgba(255,255,255,0.08);
  color: var(--ice);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-deep);
  color: var(--ice);
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid rgba(201,169,97,0.18);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.footer h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: var(--ice);
  opacity: 0.7;
  font-size: 0.9rem;
  transition: opacity 0.2s, color 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.8rem;
  display: flex; justify-content: space-between;
  font-size: 0.82rem;
  color: var(--slate-light);
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 0.8rem; }
}

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-6 { margin-bottom: 4rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.gold { color: var(--gold-deep); }
.on-dark .gold { color: var(--gold); }

.tag {
  display: inline-block;
  padding: 0.32rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--line-gold);
  color: var(--gold-deep);
  border-radius: 2px;
  background: rgba(201,169,97,0.06);
}
.on-dark .tag { color: var(--gold); border-color: rgba(201,169,97,0.40); background: rgba(201,169,97,0.08); }

/* ---------- DIVIDER ORNAMENT ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin: 0 auto;
}
.ornament .line { flex: 0 0 60px; height: 1px; background: var(--line-gold); }
.ornament .dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.on-dark .ornament .line { background: rgba(201,169,97,0.40); }

/* ---------- PILL / BADGE ---------- */
.badge-row {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: rgba(201,169,97,0.10);
  border: 1px solid rgba(201,169,97,0.25);
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.badge-row .pulse {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201,169,97,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(201,169,97,0); }
}

/* ---------- TABLE ---------- */
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.compare th, table.compare td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.compare th {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid var(--line-strong);
}
table.compare td.feature { font-weight: 500; color: var(--navy); }
table.compare .yes { color: var(--gold-deep); font-weight: 500; }
table.compare .no { color: var(--slate-light); }
table.compare .partial { color: var(--slate); font-style: italic; }
table.compare .col-finqor { background: rgba(201,169,97,0.04); }

/* ---------- FORM ---------- */
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--navy);
  border-radius: 2px;
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row textarea { min-height: 120px; resize: vertical; }
