/* ===========================================================
   Oxlynd marketing site — shared styles
   Brand system matches the product app (Inter, blue→purple accent)
   =========================================================== */

:root {
    --bg: #f0f4f8;
    --surface: #ffffff;
    --surface2: #f8fafc;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);

    --accent: #2563eb;
    --accent2: #7c3aed;
    --accent-glow: rgba(37, 99, 235, 0.12);
    --gradient: linear-gradient(135deg, var(--accent), var(--accent2));

    --text: #0f172a;
    --text2: #475569;
    --text3: #94a3b8;

    --success: #059669;
    --success-bg: rgba(5, 150, 105, 0.08);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow: 0 1px 8px rgba(15, 23, 42, 0.06), 0 4px 20px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.16);

    --container: 1160px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1120;
        --surface: #121a2b;
        --surface2: #17203380;
        --border: rgba(255, 255, 255, 0.08);
        --border-strong: rgba(255, 255, 255, 0.14);
        --text: #f1f5f9;
        --text2: #b3c0d1;
        --text3: #71829c;
        --shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 4px 20px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; color: var(--text2); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.section-head p { font-size: 17px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 24px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px var(--accent-glow); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── Nav ─────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
    padding: 10px 13px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text2);
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--surface2); color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
    .nav-links { position: fixed; inset: 76px 0 0 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; border-top: 1px solid var(--border); }
    .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav-links a { padding: 14px 16px; font-size: 16px; }
    .nav-cta .btn-secondary { display: none; }
    .nav-toggle { display: inline-flex; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    padding: 88px 0 40px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 22px; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; max-width: 600px; margin: 0 auto 36px; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 13px; color: var(--text3); }

/* ── Product visual (illustrative dashboard mockup, not a real screenshot) ── */
.mock {
    margin: 56px auto 0;
    max-width: 980px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface2); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.mock-side { border-right: 1px solid var(--border); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.mock-side .mock-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--text3); }
.mock-side .mock-item.on { background: var(--accent-glow); color: var(--accent); }
.mock-side .mock-item span.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .6; flex-shrink: 0; }
.mock-main { padding: 24px; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); align-content: start; }
.mock-stat { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.mock-stat .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); }
.mock-stat .v { font-size: 22px; font-weight: 800; margin-top: 6px; }
.mock-stat .v.up { color: var(--success); }
.mock-chart { grid-column: 1 / -1; height: 150px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: flex-end; gap: 8px; padding: 16px; }
.mock-chart b { flex: 1; border-radius: 6px 6px 0 0; background: var(--gradient); opacity: .85; }
@media (max-width: 720px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } .mock-main { grid-template-columns: 1fr 1fr; } }

/* ── Logo strip / trust line ─────────────────────────────── */
.trust { padding: 40px 0; text-align: center; }
.trust p { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin-bottom: 22px; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; color: var(--text3); font-weight: 700; font-size: 15px; opacity: .7; }

/* ── Module / feature grid ──────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card .icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient); color: #fff; margin-bottom: 18px;
    flex-shrink: 0;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card ul li { font-size: 13.5px; color: var(--text2); display: flex; align-items: flex-start; gap: 8px; }
.card ul li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--success); }

.module-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* ── Alternating feature rows (used on features.html) ────── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row.reverse .feature-visual { order: 2; }
.feature-row + .feature-row { margin-top: 96px; }
.feature-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}
.feature-visual .row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); font-size: 13.5px; }
.feature-visual .row b { font-weight: 700; }
.feature-visual .row .pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--success-bg); color: var(--success); }
.feature-text h3 { font-size: 28px; margin-bottom: 16px; }
.feature-text p.lead { font-size: 16px; margin-bottom: 22px; }
.feature-text ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-text ul li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text2); }
.feature-text ul li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
@media (max-width: 860px) {
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.reverse .feature-visual { order: 0; }
    .feature-row + .feature-row { margin-top: 64px; }
}

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.88); font-size: 16.5px; max-width: 520px; margin: 0 auto 32px; }
.cta-band .btn-secondary { background: #fff; color: var(--text); border-color: transparent; }
.cta-band .btn-ghost { color: #fff; }
.cta-band .btn-ghost:hover { color: #fff; opacity: .85; }

/* ── Stats row ───────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .stat b { display: block; font-size: 34px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats .stat span { font-size: 13.5px; color: var(--text3); font-weight: 600; }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }

/* ── Cross-product banner (erp.html / nexus.html point at the sibling product) ── */
.cross-link-bar {
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 11px 24px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text2);
}
.cross-link-bar a { color: var(--accent); }
.cross-link-bar a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 24px; margin-bottom: 40px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.footer-brand p { font-size: 13.5px; margin-top: 12px; max-width: 260px; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text2); padding: 6px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text3); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Page hero (secondary pages) ─────────────────────────── */
.page-hero { padding: 64px 0 24px; text-align: center; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; }
.page-hero p { font-size: 17px; max-width: 640px; margin: 0 auto; }

/* ── Form (contact page) ─────────────────────────────────── */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text2); }
.field input, .field select, .field textarea {
    font-family: inherit; font-size: 14.5px; padding: 12px 14px;
    border-radius: 10px; border: 1px solid var(--border-strong);
    background: var(--surface2); color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--text3); margin-top: 14px; text-align: center; }
.form-error-banner { display: none; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 18px; }
.form-error-banner.show { display: block; }
@media (prefers-color-scheme: dark) {
    .form-error-banner { background: rgba(185, 28, 28, 0.15); border-color: rgba(185, 28, 28, 0.4); color: #fca5a5; }
}
.honeypot-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.show { display: block; }
.form-success .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form-success .icon svg { width: 26px; height: 26px; }

.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method { display: flex; gap: 14px; align-items: flex-start; }
.contact-method .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-glow); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-method .icon svg { width: 18px; height: 18px; }
.contact-method h4 { font-size: 14.5px; margin-bottom: 3px; }
.contact-method p { font-size: 13.5px; }

/* ── Canadian-made badge ─────────────────────────────────── */
.badge-cad {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #d52b1e;
    background: rgba(213, 43, 30, 0.08);
    border: 1px solid rgba(213, 43, 30, 0.22);
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
}
.flag-icon { width: 22px; height: 11px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(15,23,42,0.08); }
.flag-icon-sm { width: 16px; height: 8px; border-radius: 1px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(15,23,42,0.08); }
@media (prefers-color-scheme: dark) {
    .badge-cad { color: #ff7b6e; background: rgba(213, 43, 30, 0.14); border-color: rgba(213, 43, 30, 0.32); }
}
.cad-strip { display: flex; justify-content: center; margin-top: 20px; }
.cad-strip.left { justify-content: flex-start; margin-top: 14px; }

.maple-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ff4d4d, #d52b1e); color: #fff; margin-bottom: 18px;
    flex-shrink: 0; font-size: 22px;
}

/* ── Misc ────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.badge {
    font-size: 13px; font-weight: 600; color: var(--text2);
    background: var(--surface); border: 1px solid var(--border);
    padding: 8px 16px; border-radius: 999px;
}
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.role-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.role-chip { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 10px; font-size: 12.5px; font-weight: 700; color: var(--text2); }
@media (max-width: 860px) { .role-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
