@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --black:   #0A0A0A;
  --dark:    #111111;
  --mid:     #666666;
  --muted:   #999999;
  --border-dark:  rgba(255,255,255,0.08);
  --border-light: #E4E4E4;
  --off-white: #F5F4F0;
  --white:   #FFFFFF;
  --sans: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--sans); line-height: 1.08; font-weight: 300; }
a { text-decoration: none; color: inherit; }

/* ── NAV ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { height: 42px; width: auto; opacity: 0.85; }
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
  transition: color 0.25s;
}
.nav-links a:hover { color: rgba(255,255,255,0.9); }
.nav-cta {
  color: var(--white) !important;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  transition: border-color 0.25s !important;
}
.nav-cta:hover { border-color: var(--white) !important; }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 64px 80px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 68px;
}
.hero-logo-img {
  width: clamp(400px, 58vw, 720px);
  height: auto;
  display: block;
}
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--border-dark);
  padding-top: 40px;
}
.hero-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  font-weight: 300;
  line-height: 1.75;
}
.hero-links { display: flex; gap: 32px; align-items: center; flex-shrink: 0; }
.hero-link {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.hero-link:hover { color: var(--white); border-color: var(--white); }

/* ── SECTION BASE ──────────────────────────────────── */
section { padding: 88px 64px; }
section[id] { scroll-margin-top: 80px; }
.svc[id] { scroll-margin-top: 88px; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 22px;
}
.section-title {
  font-size: clamp(36px, 4.5vw, 56px);
  color: var(--black);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  font-weight: 300;
  line-height: 1.05;
}
.section-lead {
  font-size: 16px;
  color: var(--mid);
  max-width: 520px;
  line-height: 1.8;
  font-weight: 300;
}

/* ── ABOUT ─────────────────────────────────────────── */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
  align-items: start;
}
.about-text p {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 18px;
  font-weight: 300;
}
.about-facts { display: flex; flex-direction: column; }
.fact { border-top: 1px solid var(--border-light); padding: 22px 0; }
.fact:last-child { border-bottom: 1px solid var(--border-light); }
.fact strong { display: block; font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 6px; letter-spacing: 0.01em; }
.fact span { font-size: 14px; color: var(--mid); line-height: 1.65; }

/* ── SERVICES ──────────────────────────────────────── */
.services { background: var(--white); padding: 88px 64px; }
.services .section-label { color: var(--muted); }
.services .section-title { color: var(--black); }
.services-intro { margin-bottom: 60px; }
.services-stack { display: flex; flex-direction: column; }
.svc { padding: 48px 0; border-top: 1px solid var(--border-light); }
.svc-inner { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.svc-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  padding-top: 6px;
}
.svc h3 { font-size: 24px; font-weight: 300; color: var(--black); margin-bottom: 16px; line-height: 1.15; letter-spacing: -0.01em; }
.svc p { font-size: 16px; color: var(--mid); line-height: 1.8; margin-bottom: 28px; font-weight: 300; }
.svc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.svc-list li {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.svc-list li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 1px;
  background: var(--muted);
}

/* ── LOANS ─────────────────────────────────────────── */
.loans { background: var(--white); }
.table-wrap { margin-top: 48px; overflow-x: auto; border: 1px solid var(--border-light); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--black); }
th {
  padding: 15px 22px;
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  font-family: var(--sans);
}
td { padding: 17px 22px; border-bottom: 1px solid var(--border-light); color: var(--mid); font-size: 15px; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--off-white); }
td:first-child { font-weight: 500; color: var(--black); }
.rate { font-weight: 600; color: var(--black); }

.example { margin-top: 60px; padding-top: 52px; border-top: 1px solid var(--border-light); }
.example-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px;
}
.example h3 { font-size: 20px; color: var(--black); margin-bottom: 36px; }
.example-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border-light); border: 1px solid var(--border-light);
}
.ex-cell { background: var(--white); padding: 28px 24px; }
.ex-cell.dark { background: var(--black); }
.ex-cell-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); display: block; margin-bottom: 8px; }
.ex-cell.dark .ex-cell-label { color: rgba(255,255,255,0.3); }
.ex-cell-value { font-family: var(--sans); font-size: 22px; font-weight: 600; color: var(--black); display: block; }
.ex-cell.dark .ex-cell-value { color: var(--white); }
.ex-cell-sub { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.ex-cell.dark .ex-cell-sub { color: rgba(255,255,255,0.3); }

/* ── TEAM ──────────────────────────────────────────── */
.team { background: var(--white); padding: 88px 64px; }
.team-list { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.team-row { padding-top: 28px; border-top: 1px solid var(--border-light); }
.team-name { font-family: var(--sans); font-size: 22px; font-weight: 400; color: var(--black); margin-bottom: 4px; }
.team-role { font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }
.team-bio { font-size: 15px; color: var(--mid); line-height: 1.78; font-weight: 300; }

/* ── CONTACT ───────────────────────────────────────── */
.contact { background: var(--white); }
.contact-body { margin-top: 44px; display: flex; flex-direction: column; gap: 12px; }
.contact-body p { font-size: 18px; color: var(--black); font-weight: 300; line-height: 1.75; max-width: 480px; }
.contact-email {
  font-family: var(--sans);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border-light);
  display: inline-block;
  margin-top: 20px;
  transition: text-decoration-color 0.2s;
}
.contact-email:hover { text-decoration-color: var(--black); }
.contact-location { font-size: 14px; color: var(--muted); letter-spacing: 0.05em; margin-top: 12px; }
.contact-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.contact-linkedin:hover { color: var(--black); }

/* ── FOOTER ────────────────────────────────────────── */
.footer { background: var(--dark); }
.footer-main {
  padding: 40px 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-dark);
}
.footer-logo { height: 28px; width: auto; opacity: 0.55; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 11px; color: rgba(255,255,255,0.2); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.55); }
.footer-disclaimer { padding: 24px 64px; font-size: 11px; color: rgba(255,255,255,0.15); line-height: 1.7; }

/* ── PASSWORD GATE ─────────────────────────────────── */
.gate-body {
  min-height: 100vh; background: #000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.gate-wrap {
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; align-items: center; gap: 52px;
}
.gate-logo { width: 260px; max-width: 75vw; height: auto; display: block; }
.gate-form { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0; }
.gate-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.gate-input {
  width: 100%; padding: 14px 16px;
  border: none; border-bottom: 1px solid rgba(255,255,255,0.12);
  background: transparent; color: var(--white);
  font-family: var(--sans); font-size: 16px; text-align: center;
  letter-spacing: 0.25em; outline: none; margin-bottom: 28px;
  transition: border-color 0.2s;
}
.gate-input:focus { border-color: rgba(255,255,255,0.4); }
.gate-input::placeholder { letter-spacing: 0.05em; color: rgba(255,255,255,0.18); font-size: 13px; }
.gate-btn {
  width: 100%; padding: 14px; background: var(--white); color: #000;
  border: none; font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: opacity 0.2s;
}
.gate-btn:hover { opacity: 0.85; }
.gate-error { font-size: 11px; color: rgba(255,120,120,0.8); margin-top: 14px; display: none; letter-spacing: 0.02em; }
.gate-error.show { display: block; }

/* ── AUTO SCROLL TAB ───────────────────────────────── */
#autoscroll-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  background: rgba(10,10,10,0.55);
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 20px;
  padding: 7px 14px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: default;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s, color 0.3s;
  pointer-events: none;
}
#autoscroll-btn.paused {
  background: rgba(10,10,10,0.72);
  color: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.25);
  cursor: pointer;
  pointer-events: all;
}
#autoscroll-btn.paused:hover {
  background: rgba(10,10,10,0.9);
  color: #fff;
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 860px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  section, .hero, .services, .team, .contact { padding: 56px 20px; }
  .hero { padding-bottom: 48px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-inner, .team-list { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { flex-direction: column; gap: 14px; text-align: center; padding: 24px 20px; }
  .footer-disclaimer { padding: 18px 20px; }
}
