:root {
    --bg-color: #05070f;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --primary-hover: #4f46e5;
    --secondary: #10b981;
    --secondary-glow: rgba(16, 185, 129, 0.2);
    --secondary-hover: #059669;
    --accent: #06b6d4;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0, transparent 40%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.1) 0, transparent 40%),
        radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.08) 0, transparent 40%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #a78bfa 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    padding: 24px 0;
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 7, 15, 0.7);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

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

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: white;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 100px 0 60px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    max-width: 900px;
    margin: 0 auto 24px auto;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

/* Interactive Simulator Showcase */
.simulator-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    max-width: 950px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.sim-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sim-title h3 {
    font-size: 1.15rem;
}

.sim-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    min-height: 320px;
}

/* Interactive Node Diagram */
.diagram-pane {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.node {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    width: 200px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.node.active {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

.node-icon {
    font-size: 1.5rem;
}

.node-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.node-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.connector-line {
    width: 2px;
    height: 40px;
    background: var(--card-border);
    position: relative;
}

.connector-line.active {
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
}

.pulse-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    top: 0;
    left: -3px;
    animation: flowDown 2s infinite linear;
    display: none;
}

.pulse-dot.active {
    display: block;
}

@keyframes flowDown {
    0% { top: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Code Pane */
.code-pane {
    background: #020308;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #34d399;
    height: 100%;
    overflow-y: auto;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Catalog Grid */
.catalog-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.filters-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 8px 18px;
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: white;
    border-color: var(--primary);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.workflow-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.workflow-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.card-header-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.apps-icons {
    display: flex;
    gap: 8px;
    font-size: 1.4rem;
}

.complexity-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
}

.workflow-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.workflow-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--card-border);
    padding-top: 16px;
    margin-top: auto;
}

.price {
    font-weight: 700;
    color: white;
}

/* Pricing Grid */
.pricing-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card.premium {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 30px;
    transform: rotate(45deg);
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.pricing-header .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pricing-header .price span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 14px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: 700;
}

/* Contact / Lead Form */
.contact-section {
    padding: 100px 0;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.contact-card p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea, .form-group select {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 14px;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .hero h1 { font-size: 2.8rem; }
    .sim-body { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 30px 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.05rem;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    header nav {
        display: none; /* Hide desktop nav links on small mobile screens */
    }
    .simulator-card {
        padding: 20px 15px;
    }
    .sim-body {
        gap: 20px;
    }
    .node {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    .connector-line {
        height: 30px;
    }
    .code-pane {
        height: 180px;
    }
    #features-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .contact-card {
        padding: 30px 20px;
    }
}
