/* =========================================================
   LoanDock — landing page styles
   Palette inspired by a clean, modern fintech/SaaS look:
   - navy  #1F3864
   - accent #4A90D9
   - dark canvas with subtle grid + glow
   ========================================================= */

:root {
  --navy: #1F3864;
  --navy-2: #162a4a;
  --accent: #4A90D9;
  --accent-2: #7BB4F0;
  --bg: #0B1220;
  --bg-2: #0F1A2E;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --text: #E8ECF3;
  --text-muted: #9BA7BD;
  --text-dim: #6B7891;
  --ok: #34D399;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === Background effects === */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(74,144,217,0.30) 0%, rgba(31,56,100,0.10) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* === Navigation === */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-tld {
  color: var(--accent-2);
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, #3578B8 100%);
  color: white;
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 8px 24px -8px rgba(74,144,217,0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(74,144,217,0.7);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

/* === Hero === */
.hero {
  position: relative;
  z-index: 5;
  padding: 60px 32px 80px;
}
.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.eyebrow-stack .eyebrow { margin-bottom: 0; }
.eyebrow-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 22px;
}
.grad {
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede {
  max-width: 660px;
  margin: 0 auto 36px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  color: var(--text-muted);
}

/* === Waitlist form === */
.waitlist {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  transition: border-color 0.18s ease;
}
.waitlist:focus-within { border-color: var(--accent); }
.waitlist input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
}
.waitlist input::placeholder { color: var(--text-dim); }
.micro {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.micro.ok { color: var(--ok); }

/* === Preview / video card === */
.preview {
  margin-top: 64px;
  perspective: 1600px;
}
.preview-frame {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-r { background: #ff6058; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28ca42; }
.preview-url {
  margin-left: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.preview-body {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at center, rgba(74,144,217,0.18) 0%, transparent 65%),
    linear-gradient(180deg, #0F1A2E 0%, #081020 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.video-placeholder:hover {
  opacity: 1;
  transform: scale(1.02);
}
.video-placeholder-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === Pillars === */
.pillars {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.pillar-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.pillar h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pillar p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* === Footer === */
.footer {
  position: relative;
  z-index: 5;
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer a:hover { color: var(--text); }

/* === Responsive === */
@media (max-width: 720px) {
  .nav { padding: 20px 20px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 32px 20px 60px; }
  .pillars { grid-template-columns: 1fr; }
  .waitlist { flex-direction: column; padding: 8px; }
  .waitlist input { padding: 12px 14px; }
  .footer-inner { flex-direction: column; gap: 8px; }
}
