/*
  BrokerFlow – One-page marketing site styles
  Palette: deep blue, emerald green, white accents
*/
:root {
  --deep-blue: #0B1F3A;
  --blue-600: #134E9B;
  --blue-500: #1f6feb;
  --emerald: #10B981;
  --emerald-700: #059669;
  --slate-900: #0f172a;
  --slate-800: #1f2937;
  --slate-700: #374151;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --radius: 14px;
  --shadow-1: 0 10px 25px rgba(0,0,0,0.08);
  --shadow-2: 0 25px 60px rgba(13, 50, 98, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--slate-800);
  background: var(--slate-100);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section { padding: 80px 0; position: relative; }
.section.alt { background: var(--white); }
.section-title {
  font-size: 32px;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.78); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--slate-200); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--deep-blue); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand .brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--emerald), var(--blue-600)); color: white; font-size: 14px; }
.brand .brand-name { font-size: 18px; }

.nav-links { display: none; gap: 18px; align-items: center; }
.nav-links a { color: var(--slate-700); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--deep-blue); }

.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--slate-300); padding: 6px 10px; border-radius: 8px; }

@media (min-width: 860px) {
  .nav-links { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-weight: 600; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 12px; font-size: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--emerald), var(--blue-600)); color: white; box-shadow: var(--shadow-1); }
.btn-primary:hover { box-shadow: var(--shadow-2); }
.btn-ghost { background: transparent; border-color: var(--slate-300); color: var(--slate-800); }
.btn-ghost:hover { background: var(--slate-100); }

/* Hero */
.hero { padding-top: 96px; background: linear-gradient(120deg, rgba(11,31,58,0.95), rgba(19,78,155,0.9)); color: white; overflow: hidden; }
.hero .hero-bg { position: absolute; inset: 0; background:
  radial-gradient(1200px 600px at -5% -10%, rgba(16,185,129,0.25), transparent 60%),
  linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.0) 40%),
  repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 120px);
  mask-image: radial-gradient(1200px 600px at 0 0, black, transparent 70%);
}
.hero-grid { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; }
.hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 0 0 16px; }
.hero .subtext { margin: 0 0 24px; color: #E6F1FF; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* Mock visual */
.mock-card { background: #0e2342; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); box-shadow: 0 30px 70px rgba(0,0,0,0.35); overflow: hidden; }
.mock-header { display: flex; gap: 6px; padding: 10px; background: rgba(255,255,255,0.06); }
.mock-header .dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.35); }
.mock-body { display: grid; grid-template-columns: 220px 1fr; min-height: 300px; }
.mock-sidebar { background: rgba(255,255,255,0.04); border-right: 1px solid rgba(255,255,255,0.08); }
.mock-main { padding: 16px; }
.mock-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mock-tiles .tile { height: 48px; background: rgba(255,255,255,0.08); border-radius: 10px; }
.mock-chart { margin-top: 16px; height: 140px; border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.06)); position: relative; overflow: hidden; }
.mock-chart::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 40px); }

/* Two column */
.two-col { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }

.card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); }
.card.accent { border-color: rgba(16,185,129,0.35); box-shadow: 0 15px 35px rgba(16,185,129,0.15); }

.check-list { list-style: none; padding-left: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--emerald); font-weight: 700; }
.check-list.cross li::before { content: "✖"; color: #ef4444; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 18px; }
@media (min-width: 680px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(5, 1fr); } }
.feature-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 20px; text-align: left; box-shadow: var(--shadow-1); }
.feature-card .icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(31,111,235,0.15)); color: var(--blue-600); font-size: 22px; margin-bottom: 10px; }
.feature-card h3 { margin: 6px 0 8px; font-size: 18px; }

/* Tables */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--slate-200); padding: 12px; text-align: left; vertical-align: top; }
.table th { background: #f8fafc; font-weight: 700; }
.table tr:hover td { background: #fafcff; }

/* Stepper */
.stepper { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.step-card { position: relative; background: var(--white); border: 1px solid var(--slate-200); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-1); display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.step-badge { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: linear-gradient(135deg, var(--emerald), var(--blue-600)); color: white; font-weight: 700; }
.step-content { text-align: left; }
.step-title { margin: 2px 0 6px; font-size: 16px; line-height: 1.3; color: var(--slate-800); }
.step-desc { margin: 0; font-size: 14px; color: var(--slate-600); }
@media (max-width: 520px) { .step-card { grid-template-columns: 32px 1fr; padding: 12px; } }

/* Accordion */
.accordion { display: grid; gap: 10px; }
.acc-item { border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); box-shadow: var(--shadow-1); overflow: hidden; }
.acc-item > summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; }
.acc-item > summary::-webkit-details-marker { display: none; }
.acc-item[open] > summary { background: linear-gradient(90deg, rgba(16,185,129,0.08), transparent); }
.acc-item > p { padding: 0 18px 18px; margin: 0; color: var(--slate-700); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
.placeholder { color: var(--slate-600); }

/* CTA */
.cta { background: radial-gradient(600px 260px at 10% 20%, rgba(16,185,129,0.15), transparent 60%), linear-gradient(110deg, #f8fbff, #eef6ff); }
.cta-box { background: var(--white); border: 1px solid var(--slate-200); border-radius: 20px; padding: 28px; text-align: center; box-shadow: var(--shadow-2); }
.cta-box h2 { margin: 0 0 14px; font-size: clamp(24px, 3.2vw, 36px); }

/* Footer */
.site-footer { background: var(--deep-blue); color: #c9defa; padding: 28px 0; }
.footer-grid { display: grid; align-items: center; grid-template-columns: 1fr; gap: 14px; }
.footer-links a { color: #c9defa; text-decoration: none; margin-right: 16px; }
.footer-links a:hover { color: white; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--emerald), var(--blue-600)); color: white; font-size: 13px; }
.social { display: flex; gap: 12px; }
.social-btn { display: inline-flex; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.08); align-items: center; justify-content: center; color: #d6e6ff; border: 1px solid rgba(255,255,255,0.18); }
.social-btn:hover { background: rgba(255,255,255,0.18); color: white; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1fr auto auto; } }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Utilities */
.hero-visual { padding: 10px; }

/* Mobile nav (simple enhancement) */
@media (max-width: 859px) {
  .nav-links[aria-expanded="true"] { display: grid; position: absolute; top: 56px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--slate-200); padding: 12px 4%; gap: 10px; }
}

/* Modal */
.modal { position: fixed; inset: 0; display: none; }
.modal.open { display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.modal-dialog { position: relative; background: white; width: min(720px, 92%); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-2); }
.modal-close { position: absolute; top: 8px; right: 8px; border: none; background: transparent; font-size: 22px; cursor: pointer; }