:root {
    --bg-main: #FFFFFF;
    --bg-secondary: #F7F8F9;
    --bg-dark: #121212;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --text-inverse: #FFFFFF;
    
    /* Modula Lime Green */
    --accent: #D4FF5C;
    --accent-hover: #bfe553;
    
    --border: #E5E7EB;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-pill: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

.text-lg {
    font-size: 1.25rem;
}

/* Modula Specific Text Highlights */
.text-highlight {
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: -2%;
    width: 104%;
    height: 35%;
    background-color: var(--accent);
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-1deg);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.pill .tag {
    background-color: var(--accent);
    color: var(--text-primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    margin-right: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 8rem 0;
}

.pt-0 {
    padding-top: 0;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.bg-dot-pattern {
    background-color: var(--bg-secondary);
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 24px 24px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

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

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

.btn-primary:hover {
    background-color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 255, 92, 0.4);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.btn-nav-ghost {
    background: transparent;
    color: var(--text-primary);
}

.btn-nav-ghost:hover {
    background: var(--bg-secondary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav-center {
    display: flex;
    gap: 2.5rem;
    background-color: var(--bg-main);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-center a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-center a:hover, .nav-center a.active {
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-app-preview {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.hero-app-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* Mockup feel */
}

/* Social Proof */
.social-proof {
    border-bottom: 1px solid var(--border);
    padding-bottom: 6rem;
}

.social-proof-title {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
}

.logo-row svg {
    height: 32px;
    width: auto;
}

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.feature-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: #d1d5db;
}

.icon-wrapper-light {
    width: 56px;
    height: 56px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Pipeline List */
.pipeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.pipeline-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.pipeline-item:hover {
    border-color: var(--text-primary);
}

.pipeline-number {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 2rem;
    color: var(--border);
}

.pipeline-content h3 {
    margin-bottom: 0.25rem;
}

.pipeline-status {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    background-color: var(--bg-secondary);
}

.pipeline-status.active {
    background-color: var(--accent);
    color: var(--text-primary);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card.light {
    background-color: var(--bg-secondary);
}

.pricing-card.dark {
    background-color: var(--text-primary);
    color: var(--text-inverse);
    border-color: var(--text-primary);
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.pricing-card.dark h3, .pricing-card.dark .price {
    color: var(--text-inverse);
}

.pricing-card.dark p {
    color: #9CA3AF;
}

.pricing-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.pricing-card.dark .pricing-header {
    border-color: #374151;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    margin: 1rem 0;
    line-height: 1;
    color: var(--text-primary);
}

.price span, .price .period {
    font-size: 1rem;
    color: var(--text-secondary);
    vertical-align: super;
}

.price .period {
    vertical-align: baseline;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 3rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.pricing-card.dark .pricing-features li {
    color: var(--text-inverse);
}

.pricing-features svg {
    color: var(--text-primary);
}
.pricing-card.dark .pricing-features svg {
    color: var(--accent);
}

/* Blog Styles */
.blog-hero {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

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

.blog-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.blog-img {
    height: 240px;
    background-color: var(--border);
    width: 100%;
}

.blog-content {
    padding: 2rem;
    background-color: var(--bg-main);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-meta span.tag {
    color: var(--text-primary);
    background-color: var(--accent);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

/* Contact Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: var(--bg-secondary);
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--text-primary);
}

.contact-info h3 {
    margin-top: 2rem;
}

/* Forms general */
textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* CTA Footer Section */
.cta-footer {
    background-color: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 6rem 2rem;
    text-align: center;
    color: var(--text-inverse);
    margin-bottom: 4rem;
}

.cta-footer h2 {
    color: var(--text-inverse);
}

.cta-footer p {
    color: #9CA3AF;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Main Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem 0;
    background-color: var(--bg-main);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 6rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.link-group a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid, .feature-grid, .blog-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.dark {
        transform: scale(1);
    }
    .blog-hero {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .nav-center {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-right .btn-ghost {
        display: none;
    }
    h1 {
        font-size: 3rem;
    }
}
