/* Base styles */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Unified Color System */
    --primary: #0077B6;
    --primary-hover: #0096C7;
    --primary-light: #CFEAFF;

    /* Legacy variables for compatibility */
    --bg-light: #FFFFFF;
    --bg-secondary: #F5F7FB;
    --primary-teal: #0077B6;
    --primary-teal-hover: #0096C7;
    --accent-blue: #0077B6;
    --accent-purple: #0077B6;

    --text-dark: #111827;
    --text-medium: #4B5563;
    --text-light: #64748b;

    --card-bg: #FFFFFF;
    --card-border: #E5E7EB;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);

    --container-width: 1200px;
    --header-height: 80px;
    --radius-card: 24px;
    --radius-btn: 999px;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-medium);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout helpers */

.container {
    width: min(1200px, 100% - 48px);
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

/* Scroll margin for anchor links - prevents sticky header from covering section titles */
section[id],
section {
    scroll-margin-top: 110px;
    /* Desktop - adjusted for perfect alignment */
}

/* Specific scroll-margin for main section IDs */
#industries,
#services,
#how-it-works,
#pricing {
    scroll-margin-top: 110px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-sub {
    text-align: center;
    margin-bottom: 64px;
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header / nav */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: 2rem;
}

.logo span {
    color: var(--primary);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    /* color: #c0c3da; */
    /* Removed as per instruction */
    /* font-size: 0.95rem; */
    /* Removed as per instruction */
    font-weight: 500;
}

.main-nav a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary-teal);
    border-bottom-color: var(--primary-teal);
}

.nav-cta {
    background: #0077B6;
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.25);
}

.nav-cta:hover {
    background: #0096C7;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(0, 119, 182, 0.35);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 1rem;
    border-radius: var(--radius-btn);
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #0077B6;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.25);
}

.btn-primary:hover {
    background: #0096C7;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 119, 182, 0.35);
}

.header-cta {
    background: #0077B6 !important;
    color: #ffffff !important;
}

.header-cta:hover {
    background: #0096C7 !important;
}

.btn-ghost {
    border-color: #D1D5DB;
    color: #0F172A;
    background: white;
}

.btn-ghost:hover {
    background: #E0F7F8;
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    background: white;
}

.btn-outline:hover {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
    transform: translateY(-2px);
}

/* Hero */

.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.hero-copy h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.hero-sub {
    color: var(--text-medium);
    max-width: 540px;
    margin-bottom: 32px;
    font-size: 1.25rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-chat {
    display: flex;
    justify-content: flex-end;
    perspective: 1000px;
}

.chat-card {
    background: #1a202c;
    border-radius: 24px;
    padding: 24px;
    width: 320px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.chat-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: white;
}

.chat-info span {
    font-size: 0.8rem;
    color: var(--primary-teal-hover);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-info span::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary-teal-hover);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-teal-hover);
}

.message-bubble {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.5;
}

.message-bubble.ai {
    background: rgba(10, 143, 148, 0.2);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 2px;
    margin-left: auto;
    color: white;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.chat-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.chat-btn {
    flex: 1;
    background: var(--primary-teal);
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-btn:hover {
    background: var(--primary-teal-hover);
}

.chat-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.chat-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Metrics Strip */
.metrics-strip {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.metrics-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 32px;
    text-align: center;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    color: #b0b3c9;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Cards */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-hover);
    background: #FFFFFF;
}



.card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

.card p {
    margin: 0;
    color: #b3b6d1;
    font-size: 1rem;
    line-height: 1.6;
}

/* Who We Help Icons */
.who-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--primary-light);
    color: var(--primary);
    transition: all 0.3s ease;
}

.who-icon svg {
    width: 32px;
    height: 32px;
}

.card:hover .who-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Icon specific colors if needed, or keep uniform */


/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.step.card {
    padding: 32px;
    text-align: left;
    align-items: flex-start;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 24px;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(10, 143, 148, 0.1);
    line-height: 1;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step p {
    font-size: 1rem;
    color: var(--text-medium);
}

/* Pricing */

#pricing {
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
    align-items: flex-start;
}

.pricing-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px 32px;
    border: 2px solid var(--primary);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: visible;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    position: relative;
    text-align: center;
    align-items: center;
}

.pricing-card:hover {
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
    border-color: var(--primary-hover);
    transform: translateY(-4px);
}

.pricing-card.featured {
    background: #FFFFFF;
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 20px 48px rgba(0, 119, 182, 0.12);
    transform: scale(1.05);
    position: relative;
    z-index: 2;
}

.pricing-card.featured:hover {
    box-shadow: 0 28px 56px rgba(0, 119, 182, 0.15);
    transform: scale(1.05) translateY(-4px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-teal);
    color: white;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price {
    margin: 24px 0;
    color: var(--text-dark);
}

.price span {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.price small {
    display: block;
    font-size: 1rem;
    color: var(--text-medium);
    margin-top: 4px;
}

.plan-tag {
    color: var(--primary-teal) !important;
    font-weight: 600;
    margin-bottom: 24px;
    font-size: 0.95rem !important;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
    width: 100%;
}

.pricing-card li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-medium);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-card li::before {
    content: "✓";
    color: var(--primary-teal-hover);
    font-weight: 800;
}

.pricing-card li:last-child {
    border-bottom: none;
}

.card-reassurance {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.card-reassurance span {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Testimonials */

.testimonial-card {
    text-align: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

.testimonial-stars {
    color: var(--primary-teal);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-style: italic;
    line-height: 1.6;
}

.author {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}





/* Success Message */
.demo-success {
    background: white;
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    animation: fadeInUp 0.6s ease both;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #22c55e;
}

.demo-success h3 {
    color: #16a34a;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.demo-success p {
    color: var(--text-medium);
    font-size: 1.1rem;
}



/* Footer */

.site-footer {
    background: white;
    border-top: 1px solid var(--card-border);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-branding {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-tagline {
    color: #6b6e85;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {

    .section,
    .hero,
    .trust-strip {
        animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }
}

/* Micro Proof */
.micro-proof {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* Before & After Section */
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

.ba-column.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 32px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-teal);
}



.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
}

/* Who We Help Icons */
.who-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--primary-light);
    color: var(--primary);
    transition: all 0.3s ease;
}

.card:hover .who-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Trusted By Section */
.trusted-logos {
    padding: 80px 0;
    background: #FFFFFF;
    text-align: center;
}

.trusted-logos h2 {
    margin-bottom: 16px;
    font-size: 2rem;
}

.trusted-logos p {
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.1rem;
    color: var(--text-medium);
}

.logo-row {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.logo-row img {
    max-width: 120px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-row img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

/* Why Northgate Section */
.why {
    padding: 80px 0;
    background: #FFFFFF;
}

.why h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 2.2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 16px;
    border-radius: 12px;
    transition: background 0.2s;
}

.why-item:hover {
    background: var(--bg-secondary);
}

.icon-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .logo-row {
        gap: 24px;
    }

    .logo-row img {
        max-width: 100px;
    }
}

.ba-column {
    background: white;
    padding: 40px;
    height: 100%;
}

.ba-column.before {
    border: 1px solid #fee2e2;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.05);
}

.ba-column.after {
    border: 1px solid rgba(10, 143, 148, 0.2);
    box-shadow: 0 10px 40px rgba(10, 143, 148, 0.1);
    background: linear-gradient(180deg, #FFFFFF 0%, #F0FDFA 100%);
}

.ba-column h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.ba-column ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ba-column li {
    font-size: 1.1rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 16px;
}

.ba-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ba-icon.before {
    background: #fee2e2;
    color: #ef4444;
}

.ba-icon.after {
    background: #ccfbf1;
    color: var(--primary-teal);
}

.ba-column.before h3 {
    color: #ef4444;
}

.ba-column.after h3 {
    color: var(--primary-teal);
}

/* Pricing Reassurance */
.pricing-reassurance {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pricing-reassurance span {
    color: var(--text-dim);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .hero-sub {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 32px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .demo-intro h2 {
        font-size: 2rem;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Fix industry cards stacking on mobile */
    #industries .cards-grid .card {
        min-height: auto;
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .container {
        width: min(1200px, 100% - 32px);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-copy h1 {
        font-size: 2.2rem;
    }

    .hero-sub {
        font-size: 1.1rem;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .ba-column {
        padding: 24px;
    }

    .pricing-reassurance {
        gap: 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .final-cta {
        padding: 60px 0;
    }

    .final-cta-inner {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .final-cta h2 {
        font-size: 1.8rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .why-card {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {

    /* Reduce scroll margin on mobile for perfect alignment */
    section[id],
    section {
        scroll-margin-top: 80px;
        /* Mobile - 20-30px under header */
    }

    #industries,
    #services,
    #how-it-works,
    #pricing {
        scroll-margin-top: 80px;
    }

    /* Reduce mobile header height */
    .nav-container {
        padding: 12px 16px;
    }

    .logo {
        font-size: 1.1rem;
        margin-right: 1rem;
        max-width: 150px;
    }

    .logo img {
        max-width: 100%;
        height: auto;
    }

    .logo-tagline {
        display: none;
    }

    .main-nav {
        gap: 0.8rem;
    }

    .main-nav a {
        font-size: 0.8rem;
        padding-bottom: 1px;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .nav-links {
        gap: 16px;
        font-size: 0.9rem;
    }

    /* Hide top nav CTA on mobile to avoid duplicates */
    .nav-cta {
        display: none;
    }

    /* Increase button sizes for mobile touch */
    .btn {
        min-height: 48px;
        padding: 14px 28px;
        font-size: 1rem;
    }

    .btn-primary:hover,
    .btn-outline:hover,
    .btn-ghost:hover {
        background: var(--primary-hover);
    }

    /* Reduce mobile padding between sections */
    .section {
        padding: 60px 0;
    }

    .trust-badge-section {
        padding: 60px 0;
    }

    /* Better demo section layout */
    .demo-form-inner {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }

    .demo-copy {
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }

    .demo-copy h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        text-align: center;
    }

    .demo-copy p {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .demo-bullets {
        margin: 0 auto;
        max-width: 320px;
        /* Constrain width for better centering look */
        text-align: left;
        /* Keep bullets left-aligned internally */
        padding-left: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .demo-bullets li {
        position: relative;
        padding-left: 24px;
        font-size: 0.95rem;
    }

    /* Improved card spacing */
    .cards-grid {
        gap: 20px;
    }

    /* Better spacing for all sections */
    .section {
        padding: 70px 20px;
    }

    /* Adjust section title spacing */
    .section-title {
        margin-bottom: 16px;
    }

    /* Add bottom padding to prevent floating button overlap */
    body {
        padding-bottom: 100px;
    }

    /* Ensure container has good side padding */
    .container {
        width: min(1120px, 100% - 32px);
    }
}

/* Demo Section */
.demo {
    padding: 80px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.demo h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.demo p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 40px;
}

.demo form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.demo input,
.demo textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #F9FAFB;
}

.demo input:focus,
.demo textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.demo textarea {
    min-height: 120px;
    resize: vertical;
}

.primary-btn {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    margin-top: 8px;
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.2);
}



/* Final CTA */
.final-cta {
    padding: 100px 0;
    background: #FFFFFF;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.final-cta p {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 32px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grids */
.cards-grid .card:nth-child(2) {
    transition-delay: 0.1s;
}

.cards-grid .card:nth-child(3) {
    transition-delay: 0.2s;
}

.cards-grid .card:nth-child(4) {
    transition-delay: 0.3s;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    z-index: 9999;
    background: #0077B6;
    color: white;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.35);
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease, background 0.3s ease;
    white-space: nowrap;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cta:hover {
    background: #0096C7;
    transform: translateX(-50%) translateY(-2px);
}

.floating-cta--hidden {
    transform: translate(-50%, 150%);
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 769px) {
    .floating-cta {
        display: none;
    }
}

@media (max-width: 768px) {
    .floating-cta {
        padding: 12px 28px;
        font-size: 0.95rem;
        bottom: 20px;
    }
}

/* --- HERO CHAT: MOBILE CENTERING & STRAIGHT CARD --- */
@media (max-width: 768px) {
    .hero-chat {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-chat .chat-card {
        margin: 2rem auto 0;
        transform: none;
        /* remove any tilt/rotation on mobile */
    }
}

/* --- CHAT MESSAGE BUBBLE COLORS (DESKTOP + MOBILE) --- */
.hero-chat .chat-card .message-bubble {
    color: #F7F9FC;
    /* light text for contrast */
}

.hero-chat .chat-card .message-bubble.user {
    background-color: #0A1A2F;
    /* dark navy for user message */
}



/* ============================
   1. HERO CHAT – MOBILE CENTER + STRAIGHT CARD
   ============================ */
@media (max-width: 768px) {
    .hero-chat {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-chat .chat-card {
        margin: 2rem auto 0;
        transform: none;
        /* remove tilt/rotation on mobile */
    }
}

/* ============================
   2. HERO CHAT – MESSAGE BUBBLE COLORS (DESKTOP + MOBILE)
   ============================ */
.hero-chat .chat-card .message-bubble {
    color: #F7F9FC;
    /* light text for contrast on dark bubbles */
}

.hero-chat .chat-card .message-bubble.user {
    background-color: #0A1A2F;
    /* dark navy for user message */
}

.hero-chat .chat-card .message-bubble.ai {
    background-color: #0066A6;
    /* primary brand blue for AI message */
}

/* Optional: chat action buttons keep your existing classes/colors.
   Only adjust if needed to match primary brand blue. */
.hero-chat .chat-card .chat-btn {
    border-radius: 999px;
}

/* ============================
   3. CTA STRIP AFTER TESTIMONIALS
   ============================ */
.cta-strip {
    background-color: #0A1A2F;
    /* dark navy */
    color: #ffffff;
    padding: 2rem 1.5rem;
    margin: 3rem 0;
}

.cta-strip-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.cta-strip-text h3 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.cta-strip-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #d2ddf0;
}

.cta-strip-actions {
    margin-left: auto;
}

.cta-strip-btn {
    /* reuse existing .btn/.btn-primary base styles; this just ensures good spacing in the strip */
    padding-left: 1.6rem;
    padding-right: 1.6rem;
}

@media (max-width: 720px) {
    .cta-strip-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-strip-actions {
        width: 100%;
    }

    .cta-strip-actions .btn {
        width: 100%;
    }
}

/* ============================
   1. ANCHOR SCROLL OFFSET
   Make section titles visible below the fixed header on scroll.
   ============================ */
section[id] {
    scroll-margin-top: 5rem;
}

/* Fine-tune key sections if needed */
#industries,
#services,
#how-it-works,
#pricing,
.testimonials,
#demo {
    scroll-margin-top: 5.5rem;
}

/* ============================
   2. HERO CHAT – MOBILE CENTER + STRAIGHT CARD
   ============================ */
@media (max-width: 768px) {
    .hero-chat {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-chat .chat-card {
        margin: 2rem auto 0;
        transform: none;
        /* remove any tilt/rotation on mobile */
    }
}

/* ============================
   3. HERO CHAT – MESSAGE BUBBLE COLORS (DESKTOP + MOBILE)
   ============================ */
.hero-chat .chat-card .message-bubble {
    color: #F7F9FC;
    /* light text on dark bubbles */
}

.hero-chat .chat-card .message-bubble.user {
    background-color: #0A1A2F;
    /* dark navy: user message */
}

.hero-chat .chat-card .message-bubble.ai {
    background-color: #0066A6;
    /* primary brand blue: AI message */
}

/* Keep chat action buttons pill-shaped (uses existing colors) */
.hero-chat .chat-card .chat-btn {
    border-radius: 999px;
}

/* ============================
   4. HERO CTA MICROCOPY
   ============================ */
.cta-microcopy {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #4b627f;
}

/* ============================
   5. PRICING CARDS – PREMIUM LOOK
   ============================ */
.pricing-grid .pricing-card {
    border-radius: 1rem;
    border: 1px solid #dce5f4;
    box-shadow: 0 8px 24px rgba(10, 26, 47, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    background-color: #ffffff;
}

.pricing-grid .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(10, 26, 47, 0.10);
    border-color: #b8c8e2;
}

/* Highlight middle / "Most Popular" card if it has a plan-tag mentioning Growth */
.pricing-grid .pricing-card:nth-child(2) {
    position: relative;
    border-color: #0066A6;
    box-shadow: 0 16px 40px rgba(0, 102, 166, 0.22);
}

.pricing-grid .pricing-card:nth-child(2)::before {
    content: "Most Popular";
    position: absolute;
    top: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background-color: #0066A6;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0, 102, 166, 0.3);
}

.pricing-grid .pricing-card .price span {
    font-size: 1.6rem;
}

.pricing-grid .pricing-card ul li {
    margin-bottom: 0.35rem;
}

/* ============================
   6. TESTIMONIAL AUTHOR BADGES
   ============================ */
.testimonial-card .author {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    color: #0A1A2F;
}

.testimonial-card .author::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #c7d4e6;
    background: radial-gradient(circle at 30% 30%, #ffffff 0, #0066A6 40%, #0A1A2F 100%);
}

/* ============================
   7. FOOTER LINKS – SMALL SPACING ADJUSTMENT
   ============================ */
.footer-links a {
    margin-right: 1rem;
}

.footer-links a:last-child {
    margin-right: 0;
}

/* ------------------------------------
   HERO CTA MICROCOPY STYLE
   ------------------------------------ */
.cta-microcopy {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #4b627f;
}

/* ------------------------------------
   HERO CHAT – MOBILE CENTER & STRAIGHT
   (kept here so we don’t lose previous fix)
   ------------------------------------ */
@media (max-width: 768px) {
    .hero-chat {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-chat .chat-card {
        margin: 2rem auto 0;
        transform: none;
        /* no tilt on mobile */
    }
}

.hero-chat .chat-card .message-bubble {
    color: #F7F9FC;
}

.hero-chat .chat-card .message-bubble.user {
    background-color: #0A1A2F;
    /* dark navy */
}

.hero-chat .chat-card .message-bubble.ai {
    background-color: #0066A6;
    /* primary blue */
}

/* ------------------------------------
   TRUSTED BY SECTION – VISUAL POLISH
   ------------------------------------ */
#trusted-by {
    background-color: #F7F9FC;
    /* soft light background */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

#trusted-by h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

#trusted-by p {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 1.75rem;
    color: #4b627f;
    font-size: 0.96rem;
}

#trusted-by .logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

#trusted-by .logo-row img {
    max-height: 40px;
    opacity: 0.85;
    filter: grayscale(0.2);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

#trusted-by .logo-row img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    #trusted-by .logo-row {
        gap: 1rem;
    }
}

.demo-section {
    padding: 3rem 1.5rem 3.5rem;
    background-color: #F7F9FC;
    /* matches overall light background */
    scroll-margin-top: 5.5rem;
    /* so the heading is visible under fixed header */
}

.demo-section .container {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.demo-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #0A1A2F;
}

.demo-intro {
    max-width: 34rem;
    margin-bottom: 1.75rem;
    color: #4b627f;
    font-size: 0.96rem;
}

.demo-form-embed {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(10, 26, 47, 0.06);
    border: 1px solid #dce5f4;
}

/* Wrapper for Zapier web component */
.northgate-demo-form {
    width: 100%;
}

/* Zapier Interfaces auto-resize embed */
zapier-interfaces-page-embed {
    display: block;
    width: 100%;
    min-height: 600px;
    /* auto-resize handles actual height; this prevents layout jump */
}

@media (max-width: 640px) {
    .demo-section {
        padding: 2.5rem 1.25rem 3rem;
    }

    .demo-section .container {
        text-align: left;
    }

    zapier-interfaces-page-embed {
        min-height: 750px;
    }
}
/* ============================
   DEMO FORM IFRAME STYLING
   ============================ */
.demo-form-embed {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #dce5f4;
  box-shadow: 0 16px 40px rgba(10, 26, 47, 0.06);
  display: flex;
  justify-content: center;
}

.demo-form-embed iframe {
  width: 100%;
  max-width: 900px;
  height: 900px;
  border-radius: 12px;
  border: none;
  background: transparent;
}

@media (max-width: 640px) {
  .demo-form-embed iframe {
    height: 1000px; /* extra height for mobile scrolling */
  }
}

/* ============================
   CTA STRIP – MOBILE CLEANUP
   ============================ */
.cta-strip {
  background-color: #0A1A2F;
  color: #ffffff;
  padding: 2.5rem 1.5rem;
  margin: 3rem 0;
}

.cta-strip-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-strip-text h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.cta-strip-text p {
  margin: 0;
  font-size: 0.95rem;
  color: #d2ddf0;
}

.cta-strip-actions {
  margin-left: auto;
}

.cta-strip-btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cta-strip {
    margin: 2.5rem 1.25rem;
    border-radius: 24px;
    padding: 1.8rem 1.5rem 2rem;
  }

  .cta-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-strip-actions {
    width: 100%;
    margin-left: 0;
  }

  .cta-strip-actions .cta-strip-btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* ============================
   TESTIMONIALS – REMOVE GLOBE ICONS
   ============================ */
.testimonial-card .author::before {
  content: none !important;
  display: none !important;
}

.testimonial-card .author {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #0A1A2F;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .testimonials .cards-grid .testimonial-card {
    margin-bottom: 1.5rem;
  }
}

/* ============================
   HERO CHAT MOBILE (keep centered, no tilt)
   ============================ */
@media (max-width: 768px) {
  .hero-chat {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-chat .chat-card {
    margin: 2rem auto 0;
    transform: none;
  }
}

.hero-chat .chat-card .message-bubble.user {
  background-color: #0A1A2F;
}

.hero-chat .chat-card .message-bubble.ai {
  background-color: #0066A6;
}

/* =============================
   ZAPIER IFRAME CONTAINER
   ============================= */
.demo-form-embed {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #dce5f4;
  box-shadow: 0 16px 40px rgba(10, 26, 47, 0.06);
  display: flex;
  justify-content: center;
  flex-direction: column; /* Ensure noscript text sits below if needed */
}

zapier-interfaces-page-embed {
  display: block;
  width: 100%;
  min-height: 850px;
  border-radius: 12px;
  background: transparent;
}

@media (max-width: 640px) {
  zapier-interfaces-page-embed {
    min-height: 1000px;
  }
}

/* =============================
   CTA STRIP – MOBILE FIX
   ============================= */
.cta-strip {
  background-color: #0066A6;   /* brand blue */
  color: #ffffff;
  padding: 2.5rem 1.5rem;
  margin: 3rem 0 0;
}

.cta-strip-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-strip-text h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.cta-strip-text p {
  margin: 0;
  font-size: 0.95rem;
  color: #d2ddf0;
}

.cta-strip-actions {
  margin-left: auto;
}

.cta-strip-actions .cta-strip-btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cta-strip {
    margin: 2.5rem 0 0;
    border-radius: 0;
    padding: 2.25rem 1.5rem 2.75rem;
  }

  .cta-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-strip-actions {
    width: 100%;
    margin-left: 0;
  }

  .cta-strip-actions .cta-strip-btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* =============================
   TESTIMONIAL – REMOVE ICON
   ============================= */
.testimonial-card .author::before {
  content: none !important;
  display: none !important;
}

.testimonial-card .author {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #0A1A2F;
  font-size: 0.95rem;
}

/* DEMO FORM CONTAINER (keeps the white card look) */
.demo-form-embed {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #dce5f4;
  box-shadow: 0 16px 40px rgba(10, 26, 47, 0.06);
  display: flex;
  justify-content: center;
}

.demo-form-embed iframe {
  width: 100%;
  max-width: 900px;
  height: 700px;
  border-radius: 12px;
  border: none;
  background: #ffffff;
}

@media (max-width: 640px) {
  .demo-form-embed iframe {
    height: 900px;
  }
}

/* TRUSTED ICONS – MAKE THEM CLEAN & TRANSPARENT */
.trusted-logos .logo-row img,
.trusted-logos .logo-row svg {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  opacity: 0.7;
  filter: grayscale(100%);
}

.trusted-logos .logo-row img:hover,
.trusted-logos .logo-row svg:hover {
  opacity: 1;
  filter: none;
}
