/* ============================================================
   GOURAV RAI MORTGAGE — Premium Fintech CSS
   Dark Navy + Gold — Futuristic Minimal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Syne:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy-deepest: #03040a;
  --navy-deep: #080c1a;
  --navy-mid: #0d1528;
  --navy-light: #142040;
  --navy-muted: #1e2d52;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim: #8a7035;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --white: #f4f6fb;
  --white-dim: rgba(244, 246, 251, 0.7);
  --white-faint: rgba(244, 246, 251, 0.12);
  --text-primary: #e8ecf5;
  --text-secondary: rgba(232, 236, 245, 0.65);
  --text-muted: rgba(232, 236, 245, 0.38);
  --border: rgba(201, 168, 76, 0.12);
  --border-bright: rgba(201, 168, 76, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.08);
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'DM Serif Display', serif;
  --font-ui: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--navy-deepest);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--navy-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── Noise texture overlay ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0 24px;
  transition: var(--transition);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.nav.scrolled { background: rgba(3, 4, 10, 0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav.scrolled .nav-inner { border-bottom-color: var(--border); }
.nav-logo { display: flex; flex-direction: column; gap: 1px; text-decoration: none; }
.nav-logo-name { font-family: var(--font-ui); font-size: 16px; font-weight: 700; color: var(--white); letter-spacing: 0.03em; }
.nav-logo-sub { font-size: 10px; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-ui); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deepest) !important;
  padding: 9px 20px; border-radius: 8px;
  font-weight: 700 !important;
  font-family: var(--font-ui) !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(201, 168, 76, 0.35) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--white); border-radius: 1px; transition: var(--transition); }
.nav-mobile { display: none; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 120px 24px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(20, 32, 64, 0.9) 0%, var(--navy-deepest) 70%);
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
  background-image: linear-gradient(var(--gold) 1px, transparent 1px), linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content { text-align: center; max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-bright); border-radius: 100px;
  padding: 7px 18px; margin-bottom: 32px;
  background: rgba(201, 168, 76, 0.06);
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase;
  animation: fadeDown 0.8s ease both;
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
.hero-h1 {
  font-family: var(--font-display); font-size: clamp(38px, 6vw, 72px);
  font-weight: 400; line-height: 1.12; letter-spacing: -0.01em;
  color: var(--white); margin-bottom: 24px;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-size: clamp(16px, 2vw, 20px); color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 48px; font-weight: 300;
  animation: fadeUp 0.8s 0.25s ease both;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  animation: fadeUp 0.8s 0.35s ease both;
}
.hero-trust {
  margin-top: 72px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: center;
  animation: fadeUp 0.8s 0.45s ease both;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); font-family: var(--font-ui); }
.trust-icon { color: var(--gold); font-size: 14px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-family: var(--font-ui);
  font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  cursor: pointer; border: none; transition: var(--transition); text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deepest);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4); color: var(--navy-deepest); }
.btn-secondary { background: var(--white-faint); color: var(--white); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(244, 246, 251, 0.18); border-color: var(--border-bright); color: var(--white); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--border-bright); }
.btn-outline:hover { background: var(--gold-glow); color: var(--gold-light); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 17px 36px; font-size: 15px; }

/* ── SECTION HEADERS ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  display: inline-block; font-family: var(--font-ui); font-size: 11px;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.section-h2 {
  font-family: var(--font-display); font-size: clamp(30px, 4vw, 50px);
  font-weight: 400; color: var(--white); line-height: 1.18;
}
.section-h2 em { font-style: italic; color: var(--gold-light); }
.section-lead { margin-top: 16px; color: var(--text-secondary); font-size: 17px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; transition: var(--transition);
}
.card:hover { border-color: var(--border-bright); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gold-glow); border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.card-title { font-family: var(--font-ui); font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.card-body { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ── GRID LAYOUTS ───────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── STAT BLOCKS ────────────────────────────────────────────── */
.stat-block {
  text-align: center; padding: 32px 24px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  transition: var(--transition);
}
.stat-block:hover { border-color: var(--border-bright); }
.stat-num { font-family: var(--font-display); font-size: 44px; color: var(--gold-light); line-height: 1; }
.stat-label { font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }

/* ── STEPS ──────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deepest); font-family: var(--font-ui); font-weight: 800;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.step-content {}
.step-title { font-family: var(--font-ui); font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.step-desc { color: var(--text-secondary); font-size: 15px; }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-wrap {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px;
}
.form-title { font-family: var(--font-display); font-size: 28px; color: var(--white); margin-bottom: 8px; }
.form-subtitle { color: var(--text-secondary); margin-bottom: 32px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.form-input, .form-select, .form-textarea {
  background: rgba(3, 4, 10, 0.6); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 16px; color: var(--text-primary);
  font-family: var(--font-body); font-size: 15px; width: 100%;
  transition: var(--transition); outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1); }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--navy-mid); color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-disclaimer { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.form-success { display: none; text-align: center; padding: 32px; }
.form-success-icon { font-size: 48px; margin-bottom: 16px; }
.form-success h3 { font-family: var(--font-ui); font-size: 20px; color: var(--white); margin-bottom: 8px; }
.form-success p { color: var(--text-secondary); }

/* ── TOOLS ──────────────────────────────────────────────────── */
.tool-wrap {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px;
}
.tool-result {
  background: var(--navy-deepest); border: 1px solid var(--border-bright);
  border-radius: var(--radius); padding: 32px; margin-top: 32px;
  animation: fadeUp 0.4s ease;
}
.result-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.result-item { text-align: center; padding: 20px; background: var(--navy-mid); border-radius: 10px; }
.result-label { font-size: 11px; font-family: var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.result-value { font-family: var(--font-display); font-size: 28px; color: var(--gold-light); }
.result-note { font-size: 13px; color: var(--text-muted); text-align: center; }

/* ── RANGE INPUTS ───────────────────────────────────────────── */
.range-wrap { position: relative; }
.range-label-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: var(--navy-muted); border-radius: 2px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  cursor: pointer; box-shadow: 0 2px 8px rgba(201, 168, 76, 0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  cursor: pointer;
}

/* ── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  padding: 160px 24px 80px; text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(20, 32, 64, 0.8) 0%, var(--navy-deepest) 70%);
  border-bottom: 1px solid var(--border);
}
.page-hero-eyebrow { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 58px); font-weight: 400; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.page-hero p { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ── DIVIDERS / DECORATORS ──────────────────────────────────── */
.gold-line {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0 auto 24px;
}
.section-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 0; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep); border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--font-ui); font-size: 18px; font-weight: 700; color: var(--white); }
.footer-brand-sub { font-size: 11px; font-family: var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 4px; margin-bottom: 16px; }
.footer-brand-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col-title { font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-secondary); font-size: 14px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.footer-contact-icon { color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-legal { font-size: 12px; color: var(--text-muted); }

/* ── CHAT WIDGET ────────────────────────────────────────────── */
.chat-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border: none; cursor: pointer;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 24px;
  animation: popIn 0.5s 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(201, 168, 76, 0.55); }
.chat-fab-badge {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #e74c3c; border: 2px solid var(--navy-deepest);
  font-size: 10px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
}
.chat-panel {
  position: fixed; bottom: 100px; right: 28px; z-index: 8999;
  width: 380px; max-height: 560px; border-radius: 20px;
  background: var(--navy-mid); border: 1px solid var(--border-bright);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201, 168, 76, 0.05);
  display: flex; flex-direction: column;
  transform: scale(0.85) translateY(20px); opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
}
.chat-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.chat-header {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border-radius: 20px 20px 0 0;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.chat-header-name { font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--white); }
.chat-header-status { font-size: 12px; color: var(--gold); display: flex; align-items: center; gap: 5px; }
.chat-status-dot { width: 7px; height: 7px; background: #2ecc71; border-radius: 50%; animation: pulse 2s infinite; }
.chat-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 18px; padding: 4px; transition: var(--transition); }
.chat-close:hover { color: var(--white); }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: 340px; }
.chat-msg { max-width: 82%; animation: fadeUp 0.25s ease; }
.chat-msg-ai { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; }
.chat-bubble {
  padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.55;
}
.chat-msg-ai .chat-bubble { background: var(--navy-light); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text-primary); }
.chat-msg-user .chat-bubble { background: linear-gradient(135deg, var(--gold-dim), var(--gold)); color: var(--navy-deepest); border-bottom-right-radius: 4px; font-weight: 500; }
.chat-typing { align-self: flex-start; padding: 12px 16px; background: var(--navy-light); border: 1px solid var(--border); border-radius: 14px; border-bottom-left-radius: 4px; display: flex; gap: 4px; align-items: center; }
.chat-typing span { width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%; animation: typingBounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
.chat-input-wrap { padding: 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-end; }
.chat-input {
  flex: 1; background: var(--navy-deep); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; color: var(--text-primary);
  font-size: 14px; font-family: var(--font-body); resize: none; outline: none;
  transition: var(--transition); max-height: 100px; min-height: 42px;
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-input:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08); }
.chat-send {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--transition); flex-shrink: 0; color: var(--navy-deepest);
}
.chat-send:hover { transform: scale(1.05); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.chat-lead-form { padding: 16px; border-top: 1px solid var(--border); background: var(--navy-light); border-radius: 0 0 20px 20px; }
.chat-lead-title { font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.chat-lead-inputs { display: flex; flex-direction: column; gap: 8px; }
.chat-lead-input {
  background: var(--navy-deep); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 13px; color: var(--text-primary);
  font-size: 13px; font-family: var(--font-body); outline: none; transition: var(--transition);
}
.chat-lead-input:focus { border-color: var(--gold-dim); }
.chat-lead-row { display: flex; gap: 8px; }
.chat-lead-submit {
  width: 100%; margin-top: 8px; padding: 11px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none; border-radius: 8px; color: var(--navy-deepest);
  font-family: var(--font-ui); font-size: 13px; font-weight: 700; cursor: pointer;
  transition: var(--transition);
}
.chat-lead-submit:hover { opacity: 0.92; }
.chat-disclaimer { font-size: 11px; color: var(--text-muted); padding: 0 20px 12px; text-align: center; }

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--gold-glow); border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-item-label { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.contact-item-value { font-size: 15px; color: var(--white); margin-top: 3px; }
.contact-item-value a { color: var(--gold-light); }
.map-placeholder {
  background: var(--navy-mid); border: 1px solid var(--border); border-radius: var(--radius);
  height: 200px; display: flex; align-items: center; justify-content: center;
  margin-top: 20px; color: var(--text-muted); font-size: 14px; text-align: center;
  overflow: hidden;
}
.map-placeholder iframe { width: 100%; height: 100%; border: none; }

/* ── PAGE CONTENT AREAS ─────────────────────────────────────── */
.content-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.content-prose { color: var(--text-secondary); font-size: 16px; line-height: 1.8; }
.content-prose h3 { font-family: var(--font-ui); font-size: 20px; font-weight: 700; color: var(--white); margin: 28px 0 10px; }
.content-prose h3:first-child { margin-top: 0; }
.content-prose p { margin-bottom: 16px; }
.content-prose ul { padding-left: 20px; margin-bottom: 16px; }
.content-prose li { margin-bottom: 8px; }
.feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-secondary); }
.feature-list li::before { content: '✦'; color: var(--gold); font-size: 12px; margin-top: 3px; flex-shrink: 0; }

/* ── HIGHLIGHT BOX ──────────────────────────────────────────── */
.highlight-box {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0.03) 100%);
  border: 1px solid var(--border-bright); border-radius: var(--radius); padding: 28px;
}
.highlight-box-title { font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── CTA BANNER ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--border-bright); border-radius: var(--radius-lg);
  padding: 64px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.1), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 42px); color: var(--white); margin-bottom: 16px; position: relative; }
.cta-banner p { color: var(--text-secondary); max-width: 480px; margin: 0 auto 36px; position: relative; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── TABS ────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; background: var(--navy-deep); border-radius: 12px; padding: 4px; width: fit-content; margin: 0 auto 48px; }
.tab-btn {
  padding: 10px 24px; border-radius: 9px; border: none; cursor: pointer;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--text-muted); background: transparent; transition: var(--transition);
}
.tab-btn.active { background: var(--navy-muted); color: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes typingBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Scroll-triggered reveals */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .content-split { gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile {
    display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(3, 4, 10, 0.97); backdrop-filter: blur(20px); z-index: 800;
    flex-direction: column; padding: 40px 24px; gap: 20px;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { font-family: var(--font-ui); font-size: 20px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.04em; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-mobile a:hover { color: var(--gold-light); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .content-split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 28px 20px; }
  .tool-wrap { padding: 28px 20px; }
  .result-main { grid-template-columns: 1fr; }
  .chat-panel { width: calc(100vw - 32px); right: 16px; bottom: 88px; }
  .chat-fab { right: 20px; bottom: 20px; }
  .hero-trust { gap: 20px; }
  .section { padding: 64px 0; }
  .cta-banner { padding: 40px 24px; }
  .page-hero { padding: 120px 24px 60px; }
}

@media (max-width: 480px) {
  .tabs { width: 100%; }
  .tab-btn { flex: 1; padding: 10px 12px; font-size: 12px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 300px; justify-content: center; }
}

/* ── DAY / NIGHT MODE ───────────────────────────────────────── */
/* Night mode = default (already styled above)                  */
/* Day mode = light cream/white theme                           */

body.day-mode {
  --navy-deepest: #f8f6f0;
  --navy-deep: #f0ede4;
  --navy-mid: #e8e3d8;
  --navy-light: #ddd8cc;
  --navy-muted: #c8c2b4;
  --gold: #8a6820;
  --gold-light: #a07828;
  --gold-dim: #c9a84c;
  --gold-glow: rgba(138, 104, 32, 0.1);
  --white: #1a1a1a;
  --white-dim: rgba(26, 26, 26, 0.7);
  --white-faint: rgba(26, 26, 26, 0.08);
  --text-primary: #1a1a1a;
  --text-secondary: rgba(26, 26, 26, 0.68);
  --text-muted: rgba(26, 26, 26, 0.42);
  --border: rgba(138, 104, 32, 0.15);
  --border-bright: rgba(138, 104, 32, 0.32);
  --shadow-gold: 0 0 40px rgba(138, 104, 32, 0.1);
}

body.day-mode::before { opacity: 0.15; }

body.day-mode .nav.scrolled {
  background: rgba(248, 246, 240, 0.92);
}

body.day-mode .hero {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(221,216,204,0.9) 0%, var(--navy-deepest) 70%);
}

body.day-mode .hero-grid-bg {
  opacity: 0.06;
}

body.day-mode .chat-panel {
  box-shadow: 0 24px 80px rgba(0,0,0,0.15), 0 0 0 1px rgba(138,104,32,0.08);
}

body.day-mode .chat-msg-ai .chat-bubble {
  background: #e8e3d8;
  border-color: var(--border);
  color: var(--text-primary);
}

body.day-mode .form-input,
body.day-mode .form-select,
body.day-mode .form-textarea {
  background: rgba(248, 246, 240, 0.8);
  color: var(--text-primary);
}

body.day-mode .chat-input {
  background: #e8e3d8;
  color: var(--text-primary);
}

body.day-mode .tool-result {
  background: #e8e3d8;
}

/* Smooth theme transition */
body, body * {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.3s ease !important;
}

/* Theme toggle button */
#theme-toggle {
  position: relative;
  overflow: hidden;
}
#theme-toggle:hover {
  background: var(--gold-glow) !important;
  border-color: var(--border-bright) !important;
}
