/* ============================================================
   BSE Automation Studio — Shared Design System
   main.css v6.0
   ============================================================ */

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
    /* Colour */
    --white:       #FFFFFF;
    --warm-50:     #FAF9F7;
    --warm-100:    #F3F2EF;
    --warm-200:    #E8E7E3;
    --ink:         #0A1628;
    --ink-80:      rgba(10,22,40,0.80);
    --text-900:    #0A0A0F;
    --text-700:    #3D3D4E;
    --text-400:    #7C7C94;
    --text-200:    #B8B8CC;
    --orange:      #E84010;
    --orange-h:    #CC3209;
    --orange-10:   rgba(232,64,16,0.10);
    --blue:        #2563EB;
    --blue-10:     rgba(37,99,235,0.10);
    --green:       #059669;
    --green-10:    rgba(5,150,105,0.10);
    --border:      #E4E3DF;
    --border-dark: rgba(255,255,255,0.10);

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-xl:  0 24px 64px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);

    /* Radius */
    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-xl:  24px;
    --r-2xl: 32px;

    /* Spacing (8px grid) */
    --sp-1:  8px;
    --sp-2:  16px;
    --sp-3:  24px;
    --sp-4:  32px;
    --sp-5:  40px;
    --sp-6:  48px;
    --sp-8:  64px;
    --sp-10: 80px;
    --sp-12: 96px;
    --sp-14: 112px;
    --sp-16: 128px;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Motion */
    --ease:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --dur-fast: 150ms;
    --dur-mid:  250ms;
    --dur-slow: 400ms;

    /* Layout */
    --max-w:    1200px;
    --max-w-sm:  800px;
    --max-w-xs:  640px;
    --nav-h:     72px;
    --banner-h:  48px;
}

/* ─── Base Typography ────────────────────────────────────── */
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-700);
    background: var(--warm-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-900);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

p { line-height: 1.7; }

.lead {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.65;
    color: var(--text-700);
    font-weight: 400;
}

/* ─── Layout Helpers ─────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-3);
}
.container-sm {
    width: 100%;
    max-width: var(--max-w-sm);
    margin: 0 auto;
    padding: 0 var(--sp-3);
}
.container-xs {
    width: 100%;
    max-width: var(--max-w-xs);
    margin: 0 auto;
    padding: 0 var(--sp-3);
}

.section { padding: var(--sp-12) 0; }
.section-sm { padding: var(--sp-8) 0; }
.section-lg { padding: var(--sp-16) 0; }

.bg-white    { background: var(--white); }
.bg-warm     { background: var(--warm-50); }
.bg-warm-100 { background: var(--warm-100); }
.bg-ink      { background: var(--ink); }

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ─── EOFY Announcement Banner ───────────────────────────── */
.eofy-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--ink);
    height: var(--banner-h);
    overflow: hidden;
    transition: height var(--dur-slow) var(--ease), opacity 0.3s;
}
.eofy-banner.dismissed {
    height: 0;
    opacity: 0;
    pointer-events: none;
}
.eofy-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    height: var(--banner-h);
    padding: 0 var(--sp-3);
    position: relative;
}
.eofy-pill {
    background: var(--orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}
.eofy-msg {
    color: rgba(255,255,255,0.85);
    font-size: 0.8125rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eofy-msg strong { color: #fff; font-weight: 600; }
.eofy-cta {
    background: var(--orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--dur-fast);
}
.eofy-cta:hover { background: var(--orange-h); }
.eofy-close {
    position: absolute;
    right: var(--sp-2);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    transition: color var(--dur-fast);
    border-radius: 4px;
}
.eofy-close:hover { color: #fff; }

/* Banner-active nav/content offsets */
body.banner-active nav {
    top: var(--banner-h) !important;
    transition: top var(--dur-slow) var(--ease), background 0.3s, box-shadow 0.3s;
}

/* ─── Navigation ─────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(250,249,247,0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
nav.scrolled {
    background: rgba(250,249,247,0.97);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--ink);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-logo-mark svg { width: 20px; height: 20px; }
.nav-logo-text {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.nav-logo-text span { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--text-400); letter-spacing: 0.01em; }
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    list-style: none;
}
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-700);
    padding: 6px 12px;
    border-radius: var(--r-sm);
    transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover { color: var(--text-900); background: var(--warm-100); }
.nav-links a.active { color: var(--text-900); font-weight: 600; }
.nav-cta {
    background: var(--ink);
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    transition: background var(--dur-fast) !important;
}
.nav-cta:hover { background: #1a2f4a !important; }
.nav-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-900);
    border-radius: var(--r-sm);
}
.nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    padding: var(--sp-3) var(--sp-3) var(--sp-4);
    flex-direction: column;
    gap: 4px;
}
body.banner-active .nav-mobile { top: calc(var(--banner-h) + var(--nav-h)); }
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-700);
    padding: 12px 16px;
    border-radius: var(--r-md);
    transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-mobile a:hover { background: var(--warm-100); color: var(--text-900); }
.nav-mobile .nav-cta {
    background: var(--ink) !important;
    color: #fff !important;
    text-align: center;
    margin-top: var(--sp-2);
    border-radius: 100px !important;
    font-weight: 600 !important;
}
.nav-mobile .nav-cta:hover { background: #1a2f4a !important; }

/* Page offset for fixed nav */
.page-body { padding-top: var(--nav-h); }
body.banner-active .page-body { padding-top: calc(var(--banner-h) + var(--nav-h)); }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1;
    border: none;
    cursor: pointer;
    border-radius: 100px;
    padding: 14px 28px;
    transition: background var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
    text-decoration: none;
    white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 2px 8px rgba(232,64,16,0.25);
}
.btn-primary:hover {
    background: var(--orange-h);
    box-shadow: 0 4px 20px rgba(232,64,16,0.30);
    transform: translateY(-1px);
}
.btn-dark {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 2px 8px rgba(10,22,40,0.20);
}
.btn-dark:hover {
    background: #1a2f4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(10,22,40,0.25);
}
.btn-ghost {
    background: transparent;
    color: var(--text-700);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    background: var(--warm-100);
    border-color: var(--warm-200);
    color: var(--text-900);
}
.btn-ghost-white {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost-white:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
    border-color: rgba(255,255,255,0.45);
}
.btn-sm { font-size: 0.8125rem; padding: 10px 20px; }
.btn-lg { font-size: 1.0625rem; padding: 17px 36px; }
.btn-icon { padding: 12px 24px 12px 20px; }

/* ─── Section Labels / Eyebrows ──────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: var(--sp-2);
}
.eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    display: inline-block;
}
.section-header { margin-bottom: var(--sp-8); }
.section-header .lead { max-width: 52ch; }
.section-header.centered { text-align: center; }
.section-header.centered .lead { margin: 0 auto; }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-4);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease), border-color var(--dur-mid);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--warm-200);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-3);
    font-size: 1.5rem;
}
.card-icon.orange { background: var(--orange-10); color: var(--orange); }
.card-icon.blue   { background: var(--blue-10); color: var(--blue); }
.card-icon.green  { background: var(--green-10); color: var(--green); }
.card-icon.ink    { background: rgba(10,22,40,0.08); color: var(--ink); }

/* ─── Grid Systems ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-3); }

/* ─── Stats Strip ─────────────────────────────────────────── */
.stats-strip {
    background: var(--ink);
    padding: var(--sp-8) 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    text-align: center;
}
.stat-item {}
.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-number span { color: var(--orange); }
.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
}

/* ─── Testimonials ────────────────────────────────────────── */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-4);
    box-shadow: var(--shadow-sm);
}
.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: var(--sp-2);
    color: #F59E0B;
    font-size: 0.875rem;
}
.testimonial-quote {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-700);
    margin-bottom: var(--sp-3);
    font-style: italic;
}
.testimonial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-10);
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: var(--sp-3);
}
.testimonial-author { display: flex; align-items: center; gap: var(--sp-2); }
.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--warm-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-700);
    flex-shrink: 0;
}
.testimonial-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-900);
}
.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-400);
}

/* ─── FAQ Accordion ───────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: box-shadow var(--dur-mid);
}
.faq-item.open { box-shadow: var(--shadow-md); }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-900);
    line-height: 1.4;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background var(--dur-fast);
}
.faq-question:hover { background: var(--warm-50); }
.faq-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--warm-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--dur-mid) var(--ease), background var(--dur-fast);
}
.faq-chevron svg { width: 14px; height: 14px; color: var(--text-700); }
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--orange-10); }
.faq-item.open .faq-chevron svg { color: var(--orange); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-slow) var(--ease);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
    padding: 0 var(--sp-4) var(--sp-3);
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-700);
    border-top: 1px solid var(--border);
}
.faq-answer-inner p + p { margin-top: var(--sp-2); }

/* ─── Process Steps ───────────────────────────────────────── */
.process-steps { display: flex; flex-direction: column; gap: var(--sp-3); }
.process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--sp-3);
    align-items: start;
}
.step-number {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.step-content h4 { margin-bottom: 6px; }

/* ─── Badges / Tags ───────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}
.badge-orange { background: var(--orange-10); color: var(--orange); }
.badge-blue   { background: var(--blue-10); color: var(--blue); }
.badge-green  { background: var(--green-10); color: var(--green); }
.badge-ink    { background: rgba(10,22,40,0.08); color: var(--ink); }

/* ─── Floating CTA ────────────────────────────────────────── */
.floating-cta {
    position: fixed;
    bottom: var(--sp-4);
    right: var(--sp-4);
    z-index: 90;
    background: var(--ink);
    color: #fff;
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(10,22,40,0.30);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
    text-decoration: none;
}
.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.floating-cta:hover {
    background: #1a2f4a;
    box-shadow: 0 12px 40px rgba(10,22,40,0.40);
    transform: translateY(-2px);
}
.floating-cta.visible:hover { transform: translateY(-2px); }

/* ─── BSE Logo (dot style) ────────────────────────────────── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo .logo-mark {
    font-size: 1.3125rem;
    font-weight: 800;
    color: var(--text-900);
    letter-spacing: -0.04em;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}
.nav-logo .logo-dot {
    width: 7px;
    height: 7px;
    background: var(--orange);
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 2px;
    display: inline-block;
}
.nav-logo .logo-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
    display: inline-block;
    flex-shrink: 0;
}
.nav-logo .logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-400);
    letter-spacing: -0.01em;
    line-height: 1;
}

/* ─── Number + Unit Typography ───────────────────────────── */
/* Applies consistently across stats strip and hero metric cards */
.stat-unit {
    font-size: 0.5em;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: 0.18em;
    color: inherit;
    opacity: 0.85;
}
.metric-unit {
    font-size: 0.52em;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: 0.12em;
    color: inherit;
    opacity: 0.85;
}

/* ─── Integration Hub Visual ──────────────────────────────── */
.hub-section {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-8) 0;
}
.hub-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-200);
    margin-bottom: var(--sp-6);
}
.hub-layout {
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
    gap: var(--sp-5);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.hub-apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
}
.hub-app-tile {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid);
    cursor: default;
}
.hub-app-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--warm-200);
}
.hub-app-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    background: var(--app-bg, var(--ink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -0.03em;
}
.hub-app-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hub-center-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}
.hub-flow-line {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--orange) 0, var(--orange) 5px,
        transparent 5px, transparent 12px
    );
    opacity: 0.5;
    flex-shrink: 0;
}
.hub-main-node {
    width: 110px;
    height: 110px;
    background: var(--ink);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 12px 40px rgba(10,22,40,0.25), 0 4px 12px rgba(10,22,40,0.15);
    text-align: center;
    flex-shrink: 0;
    z-index: 1;
}
.hub-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(232,64,16,0.3);
    animation: hub-pulse 2.5s ease-in-out infinite;
    pointer-events: none;
}
.hub-pulse-2 {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(232,64,16,0.12);
    animation: hub-pulse 2.5s ease-in-out 0.8s infinite;
    pointer-events: none;
}
@keyframes hub-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.3; }
}
.hub-emoji {
    font-size: 1.625rem;
    line-height: 1;
    margin-bottom: 3px;
}
.hub-node-name {
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.3;
}
.hub-node-cert {
    font-size: 0.4375rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--orange);
    margin-top: 2px;
}
.hub-more-count {
    background: var(--warm-100);
    border: 1.5px dashed var(--border);
    border-radius: var(--r-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 10px 14px;
    text-align: center;
}
.hub-more-count span {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-900);
    letter-spacing: -0.03em;
    display: block;
}
.hub-more-count small {
    font-size: 0.6875rem;
    color: var(--text-400);
    font-weight: 500;
}

@media (max-width: 900px) {
    .hub-layout {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .hub-center-col {
        flex-direction: row;
        padding: var(--sp-2) 0;
    }
    .hub-flow-line {
        height: 2px;
        width: 40px;
        flex-shrink: 0;
    }
}
@media (max-width: 600px) {
    .hub-apps-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Footer ──────────────────────────────────────────────── */
footer {
    background: var(--ink);
    color: rgba(255,255,255,0.70);
    padding: var(--sp-12) 0 var(--sp-6);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-8);
    padding-bottom: var(--sp-8);
    border-bottom: 1px solid var(--border-dark);
    margin-bottom: var(--sp-6);
}
.footer-brand {}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--sp-3);
    text-decoration: none;
}
/* Footer inherits .nav-logo child structure but overrides colours */
.footer-logo .logo-mark { color: #fff; }
.footer-logo .logo-dot  { background: var(--orange); }
.footer-logo .logo-divider { background: rgba(255,255,255,0.15); }
.footer-logo .logo-sub  { color: rgba(255,255,255,0.40); }
.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 28ch;
    margin-bottom: var(--sp-4);
}
.footer-cert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-md);
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.80);
}
.footer-cert-icon {
    width: 20px;
    height: 20px;
    background: var(--orange);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.40);
    margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    transition: color var(--dur-fast);
    text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    flex-wrap: wrap;
}
.footer-copy {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
}
.footer-badges {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
}
.footer-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.45);
}

/* ─── Scroll Reveal ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ─── Utility ─────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--sp-8) 0;
}
.divider-dark {
    border: none;
    border-top: 1px solid var(--border-dark);
    margin: var(--sp-8) 0;
}
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.font-mono { font-family: 'Courier New', monospace; }

/* ─── Integration Logos Strip ────────────────────────────── */
.integration-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
}
.integration-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-700);
    box-shadow: var(--shadow-sm);
}
.integration-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ─── Calculator ─────────────────────────────────────────── */
.calc-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-6);
    box-shadow: var(--shadow-md);
}
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    align-items: start;
}
.calc-inputs { display: flex; flex-direction: column; gap: var(--sp-3); }
.calc-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-900);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}
.calc-label span { color: var(--text-400); font-weight: 400; }
.calc-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--warm-200);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    accent-color: var(--orange);
    margin-top: 8px;
}
.calc-result {
    background: var(--ink);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.calc-result-number {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
}
.calc-result-number span { color: var(--orange); }
.calc-result-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
}
.calc-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.10);
    padding-top: var(--sp-3);
}
.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.55);
}
.calc-row strong { color: #fff; font-weight: 600; }
.calc-mobile-callout {
    display: none;
    background: var(--ink);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    text-align: center;
    margin-top: var(--sp-3);
}
.calc-mobile-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}
.calc-mobile-number span { color: var(--orange); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }
    .nav-links { display: none; }
    .nav-menu-btn { display: flex; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .calc-grid { grid-template-columns: 1fr; }
    .calc-result { display: none; }
    .calc-mobile-callout { display: block; }
    .section { padding: var(--sp-8) 0; }
    .section-lg { padding: var(--sp-10) 0; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .eofy-msg { display: none; }
    .floating-cta { bottom: var(--sp-3); right: var(--sp-3); font-size: 0.8125rem; padding: 12px 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--sp-2); }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
    .section { padding: var(--sp-6) 0; }
    .btn-lg { font-size: 1rem; padding: 15px 28px; }
}
