:root {
    --navy: #12233D;
    --navy-deep: #0A1728;
    --navy-light: #1D3559;
    --brass: #B8892B;
    --brass-light: #E0AC4E;
    --teal: #1E8A5C;
    --azure: #2B6CB0;
    --paper: #FCFAF4;
    --paper-line: #E8E2D2;
    --ink: #171B24;
    --ink-muted: #5B6472;
    --white: #FFFFFF;
    --danger: #B3261E;
    --shadow-lg: 0 24px 60px rgba(11,25,48,0.28);
    --shadow-md: 0 12px 32px rgba(11,25,48,0.16);
    --shadow-sm: 0 2px 10px rgba(11,25,48,0.07);
    --glow-brass: rgba(224,172,78,0.45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--brass); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--brass); }
section { position: relative; }
.section-pad { padding: 104px 0; }
@media (max-width: 720px) { .section-pad { padding: 68px 0; } }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger.in .stagger-item { opacity: 1; transform: translateY(0); }
.stagger-item { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.stagger-item:nth-child(1) { transition-delay: 0.02s; }
.stagger-item:nth-child(2) { transition-delay: 0.08s; }
.stagger-item:nth-child(3) { transition-delay: 0.14s; }
.stagger-item:nth-child(4) { transition-delay: 0.2s; }
.stagger-item:nth-child(5) { transition-delay: 0.26s; }
.stagger-item:nth-child(6) { transition-delay: 0.32s; }
.stagger-item:nth-child(7) { transition-delay: 0.38s; }
.stagger-item:nth-child(8) { transition-delay: 0.44s; }
.stagger-item:nth-child(9) { transition-delay: 0.5s; }
.stagger-item:nth-child(10) { transition-delay: 0.56s; }
.stagger-item:nth-child(11) { transition-delay: 0.62s; }
.stagger-item:nth-child(12) { transition-delay: 0.68s; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .stagger-item { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .glow-blob, .pulse { animation: none !important; }
}

/* ---------- Texture: fine ledger-grid overlay for navy sections ---------- */
.grid-texture { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
}
.glow-blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
@keyframes floatPulse { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(14px,-10px) scale(1.06); } }

/* ---------- Section divider (gradient hairline) ---------- */
.grad-rule { height: 3px; background: linear-gradient(90deg, transparent, var(--brass), var(--azure), transparent); }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15,29,51,0.85); backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; max-width: 1180px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand .mark, .footer-brand  .mark{
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--brass), var(--brass-light));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Newsreader', serif; font-weight: 700; color: var(--navy); font-size: 16px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 4px 14px rgba(224,172,78,0.35);
}
.nav-brand .name { font-family: 'Newsreader', serif; font-size: 19px; font-weight: 600; color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.nav-cta) { font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.75); position: relative; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--brass-light); transition: width 0.2s ease; }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
    padding: 10px 20px; border-radius: 8px; background: linear-gradient(135deg, var(--brass), var(--brass-light)); color: var(--navy) !important;
    font-weight: 700; font-size: 13.5px; box-shadow: 0 6px 18px rgba(224,172,78,0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(224,172,78,0.42); }
.nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; }
@media (max-width: 860px) {
    .nav-links { position: fixed; top: 65px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: flex-start; padding: 20px 28px; gap: 18px; transform: translateY(-140%); transition: transform 0.3s ease; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-links.open { transform: translateY(0); }
    .nav-toggle { display: block; }
}

/* ================= BUTTONS ================= */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 9px; font-weight: 700; font-size: 14.5px; 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; position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, var(--brass), var(--brass-light)); color: var(--navy); box-shadow: 0 10px 26px rgba(224,172,78,0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(224,172,78,0.46); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--white); border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: var(--white); box-shadow: 0 10px 26px rgba(18,35,61,0.28); }
.btn-dark:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-outline-navy { background: var(--white); color: var(--navy); border-color: var(--paper-line); }
.btn-outline-navy:hover { border-color: var(--brass); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ================= HERO ================= */
.hero {
    background:
        radial-gradient(ellipse 620px 420px at 12% -8%, rgba(224,172,78,0.22), transparent 60%),
        radial-gradient(ellipse 520px 420px at 92% 18%, rgba(43,108,176,0.16), transparent 55%),
        radial-gradient(ellipse 700px 500px at 50% 110%, rgba(30,138,92,0.10), transparent 60%),
        linear-gradient(175deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
    padding: 76px 0 0;
    overflow: hidden;
}
.glow-blob.gb1 { width: 340px; height: 340px; background: var(--brass); opacity: 0.16; top: -80px; left: 6%; animation: floatPulse 11s ease-in-out infinite; }
.glow-blob.gb2 { width: 300px; height: 300px; background: var(--azure); opacity: 0.14; top: 30%; right: 2%; animation: floatPulse 13s ease-in-out infinite reverse; }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; padding-bottom: 56px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; padding-bottom: 40px; } }
.hero h1 { font-size: clamp(34px, 4.6vw, 55px); margin-bottom: 20px; }
.hero h1 .accent { background: linear-gradient(100deg, var(--brass-light), #F3CE8A 60%, var(--brass-light)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.hero p.lead { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.72); max-width: 500px; margin-bottom: 32px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-strip .stat-box {
    padding: 16px 14px; border-radius: 12px; background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.09); min-height: 92px;
    display: flex; flex-direction: column; justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.stat-strip .stat-box:hover { background: rgba(224,172,78,0.09); border-color: rgba(224,172,78,0.35); transform: translateY(-3px); }
.stat-strip .num { font-size: 25px; font-weight: 600; color: var(--brass-light); line-height: 1; white-space: nowrap; }
.stat-strip .lbl { font-size: 11.5px; color: rgba(255,255,255,0.58); margin-top: 8px; line-height: 1.3; }
@media (max-width: 640px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat-strip .num { font-size: 21px; } }

/* Hero mockup */
.hero-visual { position: relative; padding: 10px 26px 46px 6px; }
.invoice-card {
    background: var(--paper); border-radius: 16px; padding: 26px 26px 22px;
    box-shadow: var(--shadow-lg); transform: rotate(-2.2deg);
    font-family: 'IBM Plex Mono', monospace; color: var(--ink);
    border: 1px solid rgba(255,255,255,0.5);
}
.invoice-card .top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--brass); padding-bottom: 12px; margin-bottom: 14px; }
.invoice-card .top .biz { font-family: 'Newsreader', serif; font-size: 16px; font-weight: 600; color: var(--navy); }
.invoice-card .top .tag { font-size: 10px; color: var(--ink-muted); letter-spacing: 0.06em; }
.invoice-card .badge-paid { background: #E3F3E9; color: var(--teal); font-size: 10px; padding: 3px 9px; border-radius: 20px; font-weight: 600; }
.invoice-card .row { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; border-bottom: 1px dashed var(--paper-line); }
.invoice-card .row.total { border-bottom: none; border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 13.5px; }
.floating-chip {
    position: absolute; background: var(--white); border-radius: 12px; padding: 12px 16px;
    box-shadow: var(--shadow-lg); font-family: 'IBM Plex Mono', monospace; border: 1px solid rgba(255,255,255,0.6);
}
.chip-profit { top: 0; right: -6px; transform: rotate(3deg); }
.chip-profit .v { color: var(--teal); font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 4px; }
.chip-profit .l { font-size: 9.5px; color: var(--ink-muted); margin-top: 2px; }
.chip-stock { bottom: 6px; left: -10px; transform: rotate(-3deg); }
.chip-stock .v { color: var(--navy); font-weight: 700; font-size: 16px; }
.chip-stock .l { font-size: 9.5px; color: var(--ink-muted); margin-top: 2px; }
@media (max-width: 980px) { .hero-visual { margin: 0 auto; max-width: 420px; padding: 30px 22px 46px; } .invoice-card { transform: rotate(0); } }

/* Ticker */
.ticker-band { position: relative; background: var(--white); border-bottom: 1px solid var(--paper-line); padding: 20px 0; overflow: hidden; z-index: 2; }
.ticker-track { display: flex; gap: 46px; white-space: nowrap; animation: scrollTicker 28s linear infinite; width: max-content; }
.ticker-track span { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.05em; color: var(--ink-muted); text-transform: uppercase; }
.ticker-track span b { color: var(--navy); }
.ticker-track span.dot { color: var(--brass); }
@keyframes scrollTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================= FEATURES (paper white) ================= */
.features { background: var(--paper); }
.section-head { max-width: 660px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); color: var(--navy); }
.section-head p { color: var(--ink-muted); font-size: 15.5px; margin-top: 14px; line-height: 1.65; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
    background: var(--white); border: 1px solid var(--paper-line); border-radius: 16px;
    padding: 28px 24px; position: relative; overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent, var(--brass)); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .icon {
    width: 44px; height: 44px; border-radius: 11px; background: color-mix(in srgb, var(--accent, var(--brass)) 14%, white);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--accent, var(--brass));
}
.feature-card .icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); font-family: 'Inter', sans-serif; margin-bottom: 9px; }
.feature-card p { font-size: 13.5px; color: var(--ink-muted); line-height: 1.6; }

/* ================= FLOW INFOGRAPHIC (navy) ================= */
.flow-section { background: linear-gradient(175deg, var(--navy-deep), var(--navy) 55%, var(--navy-deep)); color: var(--white); }
.flow-section .section-head h2 { color: var(--white); }
.flow-section .section-head p { color: rgba(255,255,255,0.62); }
.flow-diagram { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch; margin-top: 8px; }
@media (max-width: 900px) { .flow-diagram { grid-template-columns: 1fr; gap: 40px; } }
.flow-node { position: relative; padding: 0 20px; }
.flow-card {
    background: var(--paper); color: var(--ink); border-radius: 14px; padding: 24px 20px;
    box-shadow: var(--shadow-lg); min-height: 176px; display: flex; flex-direction: column; gap: 9px;
    border-top: 3px solid var(--accent, var(--brass));
    transition: transform 0.25s ease;
}
.flow-node:hover .flow-card { transform: translateY(-6px); }
.flow-card .step { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--accent, var(--brass)); letter-spacing: 0.08em; font-weight: 600; }
.flow-card h4 { font-family: 'Newsreader', serif; font-size: 17.5px; color: var(--navy); font-weight: 600; }
.flow-card p { font-size: 12.5px; color: var(--ink-muted); line-height: 1.55; }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--brass-light); position: absolute; top: 46%; right: -14px; transform: translateY(-50%); z-index: 3; background: var(--navy); border-radius: 50%; width: 28px; height: 28px; box-shadow: 0 0 0 4px var(--navy); }
.flow-node:last-child .flow-arrow { display: none; }
@media (max-width: 900px) {
    .flow-arrow { top: auto; bottom: -32px; left: 50%; right: auto; transform: translateX(-50%) rotate(90deg); }
}

/* ================= CHARTS SHOWCASE (paper white) ================= */
.charts-section { background: var(--paper); }
.dash-mock {
    background: var(--white); border-radius: 20px; border: 1px solid var(--paper-line);
    box-shadow: var(--shadow-lg); padding: 30px; margin-top: 8px; position: relative;
}
.dash-mock::before { content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px; background: linear-gradient(135deg, rgba(184,137,43,0.25), transparent 40%, rgba(43,108,176,0.15)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.dash-mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.dash-mock-head .t { font-family: 'Newsreader', serif; font-size: 19px; color: var(--navy); font-weight: 600; }
.dash-mock-head .tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-muted); background: var(--paper); padding: 6px 12px; border-radius: 20px; border: 1px solid var(--paper-line); }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 760px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi { border: 1px solid var(--paper-line); border-radius: 13px; padding: 17px; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.kpi:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.kpi .l { font-size: 11.5px; color: var(--ink-muted); }
.kpi .v { font-family: 'IBM Plex Mono', monospace; font-size: 20px; font-weight: 600; color: var(--navy); margin-top: 5px; }
.kpi .d { font-size: 10.5px; margin-top: 7px; display: inline-block; padding: 2px 8px; border-radius: 20px; }
.kpi .d.up { color: var(--teal); background: #E3F3E9; }
.kpi .d.down { color: var(--danger); background: #FBEAE9; }
.chart-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 760px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-box { border: 1px solid var(--paper-line); border-radius: 13px; padding: 18px; }
.chart-box .ct { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.charts-note { text-align: center; font-size: 12px; color: var(--ink-muted); margin-top: 18px; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; }

/* ================= SPLIT (branches + security) — navy/brass ================= */
.split-section { background: var(--navy); color: var(--white); }
.split-section .section-head h2 { color: var(--white); }
.split-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .split-grid { grid-template-columns: 1fr; } }
.split-panel { padding: 44px 38px; border-radius: 18px; }
.split-panel.a { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.split-panel.b { background: linear-gradient(155deg, rgba(43,108,176,0.16), rgba(184,137,43,0.10)); border: 1px solid rgba(255,255,255,0.1); }
.split-panel .icon-badge { width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, var(--brass), var(--brass-light)); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--navy); box-shadow: 0 8px 20px rgba(224,172,78,0.3); }
.split-panel.b .icon-badge { background: linear-gradient(135deg, var(--azure), #3F8DD4); box-shadow: 0 8px 20px rgba(43,108,176,0.35); color: #fff; }
.split-panel .icon-badge svg { width: 23px; height: 23px; }
.split-panel h3 { font-size: 22px; color: var(--white); margin-bottom: 12px; }
.split-panel p { font-size: 14px; color: rgba(255,255,255,0.68); line-height: 1.65; margin-bottom: 20px; }
.split-panel ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.split-panel li { font-size: 13.5px; color: rgba(255,255,255,0.85); display: flex; align-items: flex-start; gap: 10px; }
.split-panel li svg { width: 16px; height: 16px; color: var(--brass-light); flex-shrink: 0; margin-top: 2px; }
.split-panel.b li svg { color: #7EB6EA; }

/* ================= FINAL CTA (paper white) ================= */
.cta-section { background: var(--paper); text-align: center; }
.cta-card {
    background: var(--white); border: 1px solid var(--paper-line); border-radius: 24px;
    padding: 68px 40px; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% -10%, rgba(224,172,78,0.14), transparent 55%); }
.cta-card > * { position: relative; z-index: 2; }
.cta-card h2 { font-size: clamp(26px, 3.4vw, 37px); color: var(--navy); max-width: 640px; margin: 0 auto 16px; }
.cta-card p { color: var(--ink-muted); font-size: 15px; max-width: 480px; margin: 0 auto 32px; }
.cta-card .btn-row { justify-content: center; margin-bottom: 0; }

/* ================= FOOTER ================= */
footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 52px 0 30px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .name { font-family: 'Newsreader', serif; color: var(--white); font-size: 18px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; margin-bottom: 10px; color: rgba(255,255,255,0.7); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--brass-light); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }
