/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.6; color: #1a2332; background: white; -webkit-font-smoothing: antialiased; }

/* ── Variables ── */
:root {
    --ink: #1a2332;
    --ink-soft: #4a5568;
    --navy: #1E3A5F;
    --navy-dark: #152b47;
    --navy-light: #2a4f7c;
    --gold: #C9951A;
    --gold-light: #E8B84B;
    --gold-bg: #FDF6E3;
    --border: #e2e8f0;
    --surface: #F7F9FC;
    --muted: #94a3b8;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
}

h1, h2, h3, h4, h5 { line-height: 1.1; letter-spacing: -0.5px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { color: var(--ink-soft); }

/* ── Nav ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 48px; height: 72px; display: flex; align-items: center; justify-content: space-between; background: rgba(30,58,95,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark { width: 32px; height: 32px; background: var(--gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 16px; font-weight: 700; color: white; }
.nav-logo-name { font-size: 15px; font-weight: 600; color: white; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.nav-links a:hover { color: white; }
.nav-cta { background: var(--gold) !important; color: white !important; padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background 0.15s !important; }
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: white; font-size: 22px; }

/* ── Sections ── */
.section { padding: 100px 48px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 16px; color: var(--gold); }
.eyebrow.light { color: rgba(255,255,255,0.4); }
.eyebrow.navy { color: var(--navy); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--gold); color: white; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,149,26,0.3); }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); color: white; }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Two col ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }

/* ── Cards ── */
.card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 8px 32px rgba(30,58,95,0.1); transform: translateY(-2px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }

/* ── Pain points ── */
.pain-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.pain-item { background: white; padding: 28px 24px; }
.pain-icon { font-size: 24px; margin-bottom: 12px; }
.pain-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.pain-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Integration badges ── */
.integration-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.integration-badge { background: white; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px 24px; display: flex; align-items: center; gap: 12px; transition: border-color 0.2s, box-shadow 0.2s; }
.integration-badge:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(201,149,26,0.1); }
.integration-badge-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.integration-badge-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.integration-badge-desc { font-size: 12px; color: var(--muted); }

/* ── Steps ── */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: white; padding: 32px 28px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: white; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.step-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Stats ── */
.stat-row { display: flex; gap: 0; }
.stat { flex: 1; padding: 0 40px; border-right: 1px solid rgba(255,255,255,0.1); text-align: center; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; padding-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 48px; font-weight: 700; color: white; letter-spacing: -2px; margin-bottom: 6px; }
.stat span { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ── Form ── */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink); margin-bottom: 7px; }
.field-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px; color: var(--ink); background: white; transition: border-color 0.15s; font-family: var(--sans); }
.field-input:focus { outline: none; border-color: var(--gold); }
textarea.field-input { resize: vertical; min-height: 120px; }

/* ── Footer ── */
.footer { background: var(--navy-dark); padding: 64px 48px 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.35); line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.25); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.45); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.2); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .two-col { grid-template-columns: 1fr; gap: 48px; }
    .two-col.flip { direction: ltr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .pain-strip { grid-template-columns: repeat(2, 1fr); }
    .step-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .stat-row { flex-direction: column; gap: 24px; }
    .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0 0 24px; text-align: left; }
    .stat:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
    .nav { padding: 0 24px; }
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .section { padding: 72px 24px; }
    .feature-grid { grid-template-columns: 1fr; }
    .pain-strip { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer { padding: 48px 24px 32px; }
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .integration-grid { flex-direction: column; }
}

/* ── Blazor ── */
.loading-progress { position: relative; display: block; width: 8rem; height: 8rem; margin: 20vh auto 1rem auto; }
.loading-progress circle { fill: none; stroke: #e0e0e0; stroke-width: 0.6rem; transform-origin: 50% 50%; transform: rotate(-90deg); }
.loading-progress circle:last-child { stroke: var(--gold); stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%; transition: stroke-dasharray 0.05s ease-in-out; }
.loading-progress-text { position: absolute; text-align: center; font-weight: bold; inset: calc(20vh + 3.25rem) 0 auto 0.2rem; }
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); }
#blazor-error-ui { background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,0.2); display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem; position: fixed; width: 100%; z-index: 1000; }
