/* =========================================================
   FinProQuo — Quiet Luxury Fintech Stylesheet
   ========================================================= */

:root {
  --bg: #08090D;
  --card-bg: rgba(18, 22, 31, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --blue: #3B82F6;
  --green: #10B981;
  --text-primary: #F3F4F6;
  --text-muted: #9CA3AF;

  --radius: 12px;
  --radius-lg: 20px;
  --blur: 16px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;

  --section-pad: 120px;
  --container-w: 1200px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.section-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
}

/* Background ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* =========== BADGES =========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}

.badge-eyebrow {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--blue);
  margin-bottom: 20px;
}

.badge-featured {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
}

/* =========== BUTTONS =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 0 rgba(59, 130, 246, 0);
}
.btn-primary:hover {
  background: #4F8CF7;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--text-primary);
  color: #08090D;
}
.btn-secondary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 12.5px; }

/* =========== ICONS =========== */
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.icon-md { width: 22px; height: 22px; color: var(--blue); margin-bottom: 14px; }
.icon-lg { width: 26px; height: 26px; color: var(--blue); margin-bottom: 18px; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom-color: var(--card-border);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-logo .accent { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.btn-nav { padding: 10px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  z-index: 1;
  padding: 168px 24px 100px;
}

.hero-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-headline {
  font-size: 54px;
  line-height: 1.08;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.trust-row .icon-sm { color: var(--green); }

/* ---- Estimator Card ---- */
.estimator-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.estimator-header { margin-bottom: 26px; }
.estimator-eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.estimator-header h3 { font-size: 20px; }

.estimator-field { margin-bottom: 24px; }
.estimator-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.estimator-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.estimator-value {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #0B1220;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #0B1220;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  cursor: pointer;
}
.slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.select {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

.estimator-output {
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 18px 0;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.output-row { display: flex; justify-content: space-between; align-items: center; }
.output-label { font-size: 13px; color: var(--text-muted); }
.output-value { font-size: 14px; font-weight: 600; }

.estimator-limit-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.limit-label { font-size: 11.5px; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.limit-value { font-size: 18px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }

.estimator-disclaimer {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* =========================================================
   METRICS GRID
   ========================================================= */
.metrics {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.015);
}

.metrics-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.metric-value {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================================
   VALUE PROPS
   ========================================================= */
.section-heading { max-width: 640px; margin-bottom: 56px; }
.section-heading h2 { font-size: 38px; line-height: 1.2; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  padding: 32px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.value-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.12);
  transform: translateY(-3px);
}
.value-card h3 { font-size: 19px; margin-bottom: 10px; }
.value-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* =========================================================
   PRODUCT MATRIX / TABS
   ========================================================= */
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 24px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  position: relative;
  transition: all 0.2s ease;
}
.tab-btn:hover { color: var(--text-primary); border-color: rgba(255, 255, 255, 0.18); }
.tab-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}
.tab-btn.active svg { color: #ffffff; }

.tab-featured-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  margin-left: 2px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tab-panel-intro p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  padding: 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.product-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}
.product-card h4 { font-size: 15.5px; margin-bottom: 8px; line-height: 1.3; }
.product-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* =========================================================
   HOW IT WORKS TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.timeline-line {
  position: absolute;
  top: 23px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, rgba(59,130,246,0.05), rgba(59,130,246,0.4) 20%, rgba(59,130,246,0.4) 80%, rgba(59,130,246,0.05));
}

.timeline-step { position: relative; }

.step-marker {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--blue);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(var(--blur));
}

.timeline-step h3 { font-size: 17px; margin-bottom: 8px; }
.timeline-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* =========================================================
   PORTAL PREVIEW
   ========================================================= */
.portal-preview { position: relative; z-index: 1; }
.portal-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.portal-copy h2 { font-size: 36px; line-height: 1.2; margin-bottom: 18px; }
.portal-copy p { font-size: 16px; color: var(--text-muted); line-height: 1.65; max-width: 420px; margin-bottom: 28px; }

.mockup-window {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
}
.mockup-topbar .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.mockup-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-body { padding: 28px; }

.mockup-card-header { margin-bottom: 20px; }
.mockup-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.mockup-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
}

.mockup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.mockup-stat { display: flex; flex-direction: column; gap: 6px; }
.mockup-stat-label { font-size: 12px; color: var(--text-muted); }
.mockup-stat-value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.accent-green { color: var(--green); }

.mockup-progress { margin-bottom: 22px; }
.mockup-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #60A5FA);
}

.mockup-sparkline { width: 100%; height: 50px; margin-bottom: 22px; opacity: 0.9; }

.mockup-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.015);
}

.footer-inner { max-width: var(--container-w); margin: 0 auto; padding: 80px 24px 40px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--card-border);
}

.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 240px; line-height: 1.5; }

.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 { font-size: 13px; color: var(--text-primary); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-disclaimer { font-size: 11.5px; line-height: 1.6; max-width: 900px; color: #6B7280; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  :root { --section-pad: 90px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-headline { font-size: 42px; }
  .hero-sub { max-width: 100%; }

  .metrics-inner { grid-template-columns: repeat(2, 1fr); gap: 40px; }

  .value-grid { grid-template-columns: 1fr; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .timeline { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .timeline-line { display: none; }

  .portal-inner { grid-template-columns: 1fr; }
  .portal-copy p { max-width: 100%; }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(8, 9, 13, 0.97);
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--card-border);
    padding: 12px 24px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }

  .nav-toggle { display: flex; }
  .btn-nav { padding: 9px 16px; font-size: 13px; }

  .hero { padding: 130px 20px 70px; }
  .hero-headline { font-size: 34px; }

  .estimator-card { padding: 24px; }

  .metrics-inner { grid-template-columns: repeat(2, 1fr); padding: 48px 20px; gap: 28px; }
  .metric-value { font-size: 30px; }

  .section-inner { padding: 70px 20px; }
  .section-heading h2 { font-size: 28px; }

  .product-grid { grid-template-columns: 1fr; }
  .tab-buttons { gap: 8px; }
  .tab-btn { padding: 9px 14px; font-size: 12.5px; }

  .timeline { grid-template-columns: 1fr; gap: 32px; }

  .portal-copy h2 { font-size: 28px; }
  .mockup-stats { grid-template-columns: 1fr 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 420px) {
  .metrics-inner { grid-template-columns: 1fr; }
  .trust-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
