/* ==========================================================================
   style.css — Global Layout: Header/Nav, Hero, Sections, CTA, Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   4. Buttons (custom, de-defaulted from Bootstrap)
   -------------------------------------------------------------------------- */
.btn {
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-lg {
    padding: 0.9rem 1.75rem;
    font-size: 1.05rem;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-hover);
    --bs-btn-hover-border-color: var(--primary-hover);
    --bs-btn-active-bg: var(--primary-hover);
    --bs-btn-active-border-color: var(--primary-hover);
    box-shadow: 0 2px 4px rgba(17, 24, 39, 0.10);
}
.btn-primary:hover { box-shadow: 0 6px 16px rgba(17, 24, 39, 0.14); }

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.btn-white:hover {
    background: var(--white);
    color: var(--primary-hover);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.btn-ghost-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.navbar {
    padding: 0.9rem 0;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.footer-brand .brand-logo {
    height: 36px;
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.85rem !important;
    position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}
.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

.btn-sm-nav {
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
}

/* Mobile toggler */
.navbar-toggler {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.2);
}

/* --------------------------------------------------------------------------
   6. Hero (home) & Page banner (subpages)
   -------------------------------------------------------------------------- */
.hero {
    padding: 88px 0 0;
    position: relative;
    overflow: hidden;
}

.page-hero {
    padding: 96px 0 72px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}
.page-hero .page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.page-hero p {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 640px;
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}
.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}

/* Hero visual (CSS mockup) */
.hero-visual {
    position: relative;
}
.browser-frame {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    position: relative;
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}
.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #F87171; }
.dot-amber { background: #FBBF24; }
.dot-green { background: #34D399; }
.browser-url {
    margin-left: auto;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.78rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    width: min(220px, 60%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-body {
    padding: 2rem;
    position: relative;
}
.mock-hero {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}
.mock-pill {
    width: 40%;
    height: 22px;
    border-radius: 999px;
    background: rgba(49, 87, 213, 0.12);
    border: 1px solid rgba(49, 87, 213, 0.2);
}
.mock-h1 {
    width: 90%;
    height: 26px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, #ECE9E2, #E5E2DC, #ECE9E2);
    background-size: 200% 100%;
    animation: shimmer 2.4s infinite;
}
.mock-h1.short { width: 60%; }
.mock-line {
    width: 75%;
    height: 12px;
    border-radius: 999px;
    background: #E9E6DF;
}
.mock-line.short { width: 50%; }
.mock-btn {
    width: 35%;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary);
}

.mock-stat {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.mock-stat-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent);
}
.mock-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.mock-spark {
    margin-left: auto;
    flex-shrink: 0;
}

.mock-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.mock-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}
.mock-user-name {
    width: 110px;
    height: 11px;
    border-radius: 999px;
    background: #E4E1DA;
    display: block;
}
.mock-user-role {
    width: 80px;
    height: 9px;
    border-radius: 999px;
    background: #EAE7E0;
    margin-top: 0.35rem;
    display: block;
}

.hero-glow {
    position: absolute;
    top: -10%;
    right: -15%;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(49, 87, 213, 0.12), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Stats */
.stats-row {
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
}
.stat-card {
    text-align: center;
    padding: 0.5rem 0;
}
.stat-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: var(--text);
    display: inline-block;
}
.stat-plus {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--accent);
}
.stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. Section Scaffolding
   -------------------------------------------------------------------------- */
.section {
    padding: var(--section-pad) 0;
}
/* Contact section directly follows content/CTA that already provides top spacing */
.section-contact {
    padding-top: 0;
}
.section-alt {
    background: var(--bg-alt);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 3.5rem;
}
.section-head.text-start {
    margin-left: 0;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cobalt);
    margin-bottom: 1rem;
}
.section-eyebrow::before {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background: var(--amber);
    margin-bottom: 0.55rem;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 1.08rem;
}

/* --------------------------------------------------------------------------
   14. CTA
   -------------------------------------------------------------------------- */
.cta {
    padding: 0 0 clamp(2.25rem, 4vw, 3.5rem);
}
.cta-box {
    background: var(--ink);
    border-radius: 24px;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 45%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    border-radius: 50%;
}
.cta-box::after {
    content: "";
    position: absolute;
    bottom: -35%;
    left: -10%;
    width: 45%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(76, 125, 255, 0.22), transparent 70%);
    border-radius: 50%;
}
.cta-title {
    color: var(--white);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 700;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}
.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    max-width: 620px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--dark);
    color: #94A3B8;
    padding-top: 4.5rem;
    font-size: 0.95rem;
}
.footer-top {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-tag {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--amber);
    margin: 0.5rem 0 0.75rem;
}

.footer-about {
    margin: 1rem 0 1.5rem;
    line-height: 1.7;
    color: #8B9BB4;
    max-width: 360px;
}
.footer-social {
    display: flex;
    gap: 0.6rem;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
    color: #B6C2D6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.footer-links a {
    color: #94A3B8;
    transition: color var(--transition), padding var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-address { color: #94A3B8; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.75rem 0;
}
.footer-copy {
    font-size: 0.88rem;
    color: #7d8ba6;
}
.footer-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #B6C2D6;
    font-weight: 500;
    font-size: 0.9rem;
}
.footer-top-link:hover { color: var(--white); }
.footer-top-link svg { transition: transform var(--transition); }
.footer-top-link:hover svg { transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   6b. Hero mockup — desktop site + mobile + analytics + automation flow
   -------------------------------------------------------------------------- */
.mock-layout {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Desktop site skeleton */
.mock-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
    background: var(--card);
}
.mock-site-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border);
}
.mock-logo {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--primary);
    flex-shrink: 0;
}
.mock-nav-link {
    width: 44px;
    height: 8px;
    border-radius: 999px;
    background: #DBD8D2;
}
.mock-cta-pill {
    width: 58px;
    height: 20px;
    border-radius: 999px;
    background: var(--primary);
    margin-left: auto;
}
.mock-site-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.mock-cards {
    display: flex;
    gap: 0.6rem;
}
.mock-card-mini {
    flex: 1;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--border);
}

/* Mobile site + analytics */
.mock-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.phone-mock {
    position: relative;
    background: var(--dark);
    border-radius: 22px;
    padding: 0.85rem 0.7rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.phone-notch {
    width: 40%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 auto 0.6rem;
}
.phone-line {
    width: 80%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}
.phone-line.wide { width: 95%; }
.phone-line.mid { width: 60%; }
.phone-btn {
    width: 70%;
    height: 20px;
    border-radius: 8px;
    background: var(--primary);
}
.phone-btn.small {
    width: 45%;
    height: 16px;
    border-radius: 8px;
    background: rgba(242, 184, 75, 0.95);
}
.deliver-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.deliver-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}
.deliver-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.6rem;
}
.deliver-item svg { color: var(--cobalt); flex-shrink: 0; }

/* Automation flow strip */
.automation-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    background: var(--dark);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
}
.af-node {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--white);
    background: rgba(76, 125, 255, 0.28);
    border: 1px solid rgba(76, 125, 255, 0.5);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
}
.af-arrow {
    color: var(--muted);
    flex-shrink: 0;
}
