/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1F7A6C;
    --primary-dark: #11433B;
    --secondary: #F97316;
    --secondary-light: #FB923C;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-family: 'Newsreader', 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    color: #111111;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-secondary-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
}

.btn-secondary-light:hover {
    background: white;
    color: var(--primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.login-btn {
    padding: 0.625rem 1.5rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Dashboard Preview */
.dashboard-preview {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.preview-header {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.preview-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.story-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.story-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.story-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.story-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    background: var(--bg-light);
}

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

.benefit-item {
    position: relative;
}

.benefit-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Integrations Section */
.integrations {
    padding: 6rem 0;
    background: white;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.integration-card {
    padding: 2rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.integration-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.integration-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.integration-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--bg-light);
}

.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    width: fit-content;
    margin: 0 auto 2.5rem;
    padding: 0.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 9999px;
}

.billing-option {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.billing-option.active {
    background: var(--primary);
    color: var(--bg-white);
}

.billing-save {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    color: var(--secondary);
}

.billing-option.active .billing-save {
    color: var(--secondary-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
    vertical-align: super;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

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

.pricing-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-demo {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-demo:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.cta-content {
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    border-top: 1px solid rgba(30, 41, 59, 0.1);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(30, 41, 59, 0.7);
    margin-top: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(30, 41, 59, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(30, 41, 59, 0.1);
}

.footer-bottom p {
    color: rgba(30, 41, 59, 0.6);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: rgba(30, 41, 59, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid,
    .benefits-grid,
    .integrations-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
.btn:focus,
a:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Real product screenshot in hero frame */
.preview-shot {
    display: block;
    width: 100%;
    height: auto;
}

/* Product Tour */
.tour {
    padding: 6rem 0;
    background: var(--bg-white);
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.tour-item {
    margin: 0;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.tour-item img {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--border);
}

.tour-item figcaption {
    padding: 1.25rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tour-item figcaption strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.tour-item-wide {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .tour {
        padding: 4rem 0;
    }

    .tour-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Early access lead form */
.lead-form {
    max-width: 640px;
    margin: 2.5rem auto 0;
    text-align: left;
}
.lead-form-placeholder {
    background: rgba(30, 41, 59, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
}
.lead-form-placeholder p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.lead-form-embed {
    background: white;
    color: #1e293b;
    border-radius: 1rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}
/* HubSpot form sits on a white card inside the dark CTA section: force readable dark text */
.lead-form-embed label {
    color: #334155;
    font-weight: 600;
}
.lead-form-embed input,
.lead-form-embed select,
.lead-form-embed textarea {
    color: #1e293b !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}
.lead-form-embed .hs-error-msg,
.lead-form-embed .hs-error-msgs label {
    color: #dc2626 !important;
}
.lead-form-embed .legal-consent-container,
.lead-form-embed .hs-richtext {
    color: #64748b;
}
.lead-form-embed .hs-button {
    background-color: #1F7A6C !important;
    color: #ffffff !important;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    cursor: pointer;
}
.lead-form-embed[hidden] {
    display: none;
}

/* Cookie consent */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0f172a;
    color: white;
    padding: 1.25rem 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.cookie-banner.show {
    transform: translateY(0);
}
.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-banner-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.cookie-banner-text {
    color: #94a3b8;
    font-size: 0.8rem;
    max-width: 36rem;
}
.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
}
.cookie-settings {
    background: none;
    border: none;
    color: rgba(30, 41, 59, 0.7);
    font: inherit;
    cursor: pointer;
}
