/* ═══════════════════════════════════════════════════
   MinRisk — Global Styles
   Brand: Navy #0F1B2D | Blue #2563EB | Amber #F59E0B | Electric #60A5FA
   Font: Inter (Google Fonts)
   ═══════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0F1B2D;
  --navy-dark: #0A1220;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --electric: #60A5FA;
  --light-bg: #F8FAFC;
  --white: #FFFFFF;
  --dark-text: #1E293B;
  --gray: #6B7280;
  --light-gray: #94A3B8;
  --border: #E5E7EB;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 12px 32px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15, 27, 45, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo svg { height: 28px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-link {
  color: rgba(255,255,255,0.8); font-size: 15px; font-weight: 500;
  letter-spacing: 0.3px; transition: var(--transition); position: relative;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--amber); border-radius: 1px;
}
.nav-cta {
  background: var(--amber); color: var(--navy); font-weight: 600;
  padding: 10px 24px; border-radius: 8px; font-size: 14px;
  letter-spacing: 0.3px; transition: var(--transition); border: none; cursor: pointer;
}
.nav-cta:hover { background: var(--amber-dark); transform: translateY(-1px); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #fff;
  margin: 5px 0; transition: var(--transition); border-radius: 2px;
}

/* ── Sections ── */
section { padding: 100px 0; }
section.hero-section { padding-top: 172px; padding-bottom: 100px; }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy-dark { background: var(--navy-dark); color: #fff; }
.bg-light { background: var(--light-bg); }
.bg-white { background: var(--white); }
.bg-blue { background: var(--blue); color: #fff; }
.bg-gradient-navy {
  background: linear-gradient(135deg, var(--navy) 0%, #162338 50%, var(--navy-dark) 100%);
  color: #fff;
}

/* ── Typography ── */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--electric);
  margin-bottom: 16px;
}
.bg-white .eyebrow, .bg-light .eyebrow { color: var(--blue); }

h1 { font-size: 46px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.5px; }
h2 { font-size: 36px; font-weight: 700; line-height: 1.2; margin-bottom: 16px; color: var(--navy); }
h3 { font-size: 22px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; color: var(--navy); }
.bg-navy h2, .bg-navy-dark h2, .bg-blue h2, .bg-gradient-navy h2 { color: #fff; }
.bg-navy h3, .bg-navy-dark h3, .bg-blue h3, .bg-gradient-navy h3 { color: #fff; }

.subtitle {
  font-size: 18px; line-height: 1.7; max-width: 640px;
  color: var(--light-gray);
}
.bg-white .subtitle, .bg-light .subtitle { color: var(--gray); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .subtitle { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; padding: 14px 32px;
  border-radius: 8px; transition: var(--transition); cursor: pointer;
  border: none; text-decoration: none;
}
.btn-amber {
  background: var(--amber); color: var(--navy);
}
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.3); }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline-blue {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-blue:hover { background: var(--blue); color: #fff; }
.btn-group { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ── Hero ── */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { max-width: 560px; }
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}

/* Hero visual - dashboard mockup */
.dashboard-mockup {
  width: 100%; max-width: 520px; aspect-ratio: 16/10;
  background: linear-gradient(145deg, rgba(37,99,235,0.1) 0%, rgba(96,165,250,0.08) 100%);
  border: 1px solid rgba(96,165,250,0.2); border-radius: 16px;
  padding: 24px; position: relative; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.dashboard-mockup::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40px;
  background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px 16px 0 0;
}
.dashboard-mockup .dots {
  position: absolute; top: 14px; left: 16px; display: flex; gap: 6px;
}
.dashboard-mockup .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dashboard-mockup .dot:nth-child(1) { background: #ef4444; }
.dashboard-mockup .dot:nth-child(2) { background: #f59e0b; }
.dashboard-mockup .dot:nth-child(3) { background: #22c55e; }

.dashboard-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px;
}
.dash-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 16px; min-height: 80px;
}
.dash-card-wide { grid-column: 1 / -1; min-height: 100px; }
.dash-card .label { font-size: 11px; color: var(--light-gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.dash-card .value { font-size: 28px; font-weight: 700; color: #fff; }
.dash-card .value.green { color: #22c55e; }
.dash-card .value.amber { color: var(--amber); }
.dash-card .value.blue { color: var(--electric); }
.dash-bar { height: 6px; border-radius: 3px; margin-top: 10px; }
.dash-bar-fill { height: 100%; border-radius: 3px; }

/* Mini chart in dashboard */
.dash-chart { display: flex; align-items: flex-end; gap: 3px; height: 50px; margin-top: 8px; }
.dash-chart-bar {
  flex: 1; background: var(--electric); border-radius: 2px 2px 0 0; opacity: 0.6;
  animation: chartGrow 1.5s ease-out forwards;
}
@keyframes chartGrow { from { height: 0; } }

/* ── Cards Grid ── */
.cards-grid { display: grid; gap: 24px; }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px; transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: transparent; }

.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 20px;
  background: rgba(37, 99, 235, 0.08);
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.card-icon.amber { background: rgba(245, 158, 11, 0.1); }
.card-icon.amber svg { stroke: var(--amber); }

.card h3 { margin-bottom: 12px; }
.card p { font-size: 16px; color: var(--gray); line-height: 1.6; }

/* Dark cards */
.card-dark {
  background: var(--navy); border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.card-dark h3 { color: #fff; }
.card-dark p { color: var(--light-gray); }
.card-dark:hover { border-color: var(--electric); background: #162338; }

.card-dark-alt {
  background: linear-gradient(135deg, var(--navy-dark), #162338);
  border: 1px solid rgba(245,158,11,0.2); color: #fff;
}
.card-dark-alt h3 { color: var(--amber); }
.card-dark-alt p { color: var(--light-gray); }
.card-dark-alt:hover { border-color: var(--amber); }

/* Card with amber left border (unique feature) */
.card-unique {
  border-left: 4px solid var(--amber);
  background: #FFFBEB;
}
.card-unique .card-icon { background: rgba(245,158,11,0.12); }
.card-unique .card-icon svg { stroke: var(--amber-dark); }
.card-unique .badge-unique {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--amber-dark);
  background: rgba(245,158,11,0.15); padding: 3px 10px; border-radius: 4px;
  margin-bottom: 12px;
}

/* ── Trust Bar ── */
.trust-bar { text-align: center; padding: 48px 0; }
.trust-label { font-size: 13px; color: var(--gray); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 32px; }
.trust-logos { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.5; transition: var(--transition);
}
.trust-item:hover { opacity: 1; }
.trust-item svg { width: 40px; height: 40px; }
.trust-item span { font-size: 12px; font-weight: 600; color: var(--gray); letter-spacing: 0.5px; }

/* ── Stats ── */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat-card {
  border-left: 3px solid var(--amber); padding: 24px;
  background: var(--navy); border-radius: 0 12px 12px 0;
}
.stat-number { font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.stat-label { font-size: 15px; color: var(--light-gray); line-height: 1.5; }

/* ── Steps / Process ── */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps-row::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%;
  height: 2px; background: var(--border);
}
.step { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 16px;
  background: var(--blue); color: #fff; font-size: 20px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.step-icon { margin: 0 auto 12px; }
.step-icon svg { width: 32px; height: 32px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray); line-height: 1.5; }

/* ── Two Product Cards ── */
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-card {
  border-radius: 16px; padding: 40px; position: relative; overflow: hidden;
}
.product-tag {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 16px;
}
.product-card h3 { font-size: 26px; margin-bottom: 12px; }
.product-card p { font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.product-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; transition: var(--transition);
}
.product-link:hover { gap: 12px; }
.product-link svg { width: 18px; height: 18px; }

/* ── Capabilities Table ── */
.cap-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 12px; overflow: hidden; }
.cap-table th {
  background: var(--navy); color: #fff; padding: 16px 24px;
  font-size: 14px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: 1px;
}
.cap-table td { padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 15px; }
.cap-table tr:last-child td { border-bottom: none; }
.cap-table tr:nth-child(even) td { background: var(--light-bg); }
.cap-table .highlight-row td { background: #FFFBEB; border-left: 3px solid var(--amber); }

/* ── Comparison ── */
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.comparison-col { padding: 40px; }
.comparison-col.standard { background: #F1F5F9; }
.comparison-col.raventrace { background: #EFF6FF; border-left: 3px solid var(--blue); }
.comparison-col h3 { font-size: 20px; margin-bottom: 24px; }
.comparison-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.comparison-item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.check-icon { stroke: #22c55e; }
.x-icon { stroke: #ef4444; }

/* ── Form ── */
.form-card {
  background: var(--white); border-radius: 16px; padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12); border: 1px solid var(--border);
}
.form-card h3 { font-size: 24px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--dark-text); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; font-family: inherit;
  transition: var(--transition); background: var(--white); color: var(--dark-text);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%; padding: 14px; background: var(--amber); color: var(--navy);
  font-size: 16px; font-weight: 700; border: none; border-radius: 8px;
  cursor: pointer; transition: var(--transition); margin-top: 8px;
}
.form-submit:hover { background: var(--amber-dark); }
.form-note { font-size: 13px; color: var(--gray); text-align: center; margin-top: 12px; }

/* ── MMSP Section ── */
.mmsp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mmsp-card {
  text-align: center; padding: 28px 20px;
  background: rgba(255,255,255,0.1); border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
}
.mmsp-card h4 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.mmsp-card p { font-size: 14px; color: rgba(255,255,255,0.7); }

/* ── Feature Deep-Dive ── */
.feature-deep {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
  margin-bottom: 80px; padding-bottom: 80px; border-bottom: 1px solid var(--border);
}
.feature-deep:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.feature-deep.reverse { direction: rtl; }
.feature-deep.reverse > * { direction: ltr; }
.feature-deep .eyebrow { margin-bottom: 8px; }
.feature-deep h3 { font-size: 28px; margin-bottom: 16px; }
.feature-deep p { color: var(--gray); margin-bottom: 16px; }
.feature-deep ul { display: flex; flex-direction: column; gap: 10px; }
.feature-deep li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--dark-text);
}
.feature-deep li svg { width: 18px; height: 18px; stroke: var(--blue); flex-shrink: 0; }
.feature-visual {
  background: var(--light-bg); border-radius: 16px; padding: 32px;
  border: 1px solid var(--border); min-height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.feature-visual svg { width: 200px; height: 200px; opacity: 0.6; }

/* ── Findings Grid ── */
.findings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.finding-card {
  display: flex; gap: 16px; padding: 24px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; transition: var(--transition);
}
.finding-card:hover { box-shadow: var(--card-shadow); }
.finding-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,0.08);
}
.finding-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.finding-card h4 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.finding-card p { font-size: 14px; color: var(--gray); line-height: 1.5; }

/* ── Footer ── */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.6);
  padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 300px; }
.footer h4 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; font-size: 13px; }

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ── Quick Links ── */
.quick-link-card {
  display: flex; align-items: center; gap: 20px; padding: 24px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; transition: var(--transition); cursor: pointer;
}
.quick-link-card:hover { background: var(--light-bg); box-shadow: var(--card-shadow); }
.quick-link-card:hover .ql-arrow { transform: translateX(4px); }
.ql-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,0.08);
}
.ql-icon svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.ql-content { flex: 1; }
.ql-content h4 { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.ql-content p { font-size: 14px; color: var(--gray); }
.ql-arrow { transition: var(--transition); color: var(--gray); }
.ql-arrow svg { width: 20px; height: 20px; stroke: var(--gray); fill: none; stroke-width: 2; }

/* ── What to Expect ── */
.expect-list { display: flex; flex-direction: column; gap: 16px; }
.expect-item { display: flex; gap: 12px; }
.expect-item svg { width: 22px; height: 22px; stroke: var(--blue); flex-shrink: 0; margin-top: 2px; fill: none; stroke-width: 2; }
.expect-item strong { color: var(--dark-text); }
.expect-item span { font-size: 15px; color: var(--gray); }

/* ── Powered by MinRisk Banner ── */
.powered-section { position: relative; overflow: hidden; }
.powered-section::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(96,165,250,0.1), transparent 50%);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mmsp-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .steps-row::before { display: none; }
  .feature-deep, .feature-deep.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-deep.reverse > * { direction: ltr; }
  .products-grid { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .findings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  section { padding: 64px 0; }
  section.hero-section { padding-top: 120px; padding-bottom: 64px; }
  .cards-grid-2, .cards-grid-3, .cards-grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; gap: 24px; }
  .btn { width: 100%; justify-content: center; }
  .btn-group { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .nav-menu { display: none; } /* TODO: mobile menu JS */
  .nav-toggle { display: block; }
  .mmsp-grid { grid-template-columns: 1fr; }
  .dashboard-mockup { max-width: 100%; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
