@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Roboto:wght@400;700&display=swap');

:root {
    /* Brand Colors */
    --color-brand-blue: #3B82F6;
    /* Neo Blue */
    --color-brand-orange: #FE6500;
    --color-brand-orange-hover: #FE6600D2;

    /* Backgrounds */
    --color-bg-light: #0B0F19;
    /* Deep Charcoal */
    --color-bg-white: #1E293B;
    /* Lighter Charcoal for cards */

    /* Text Colors */
    --color-text-primary: #F8FAFC;
    /* High Contrast White */
    --color-text-muted: #94A3B8;
    /* Slate */

    /* Spacing & Borders */
    --radius-card: 16px;
    --radius-button: 8px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --container-width: 1100px;
}

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

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    color: var(--color-brand-blue);
    line-height: 1.2;
}

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

.text-muted {
    color: var(--color-text-muted);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 8rem 0;
}

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

/* Header & Nav */
header {
    background-color: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 220px;
    /* Increased to avoid clipping */
    overflow: hidden;
    text-decoration: none;
}

/* Global Logo Filters (Transparency Hack) */
.logo img {
    /* Inverts white bg to black, hue-rotates to preserve colors, and screens out the black bg */
    filter: invert(1) hue-rotate(180deg) brightness(1.5) contrast(1.2);
    mix-blend-mode: screen;
    flex-shrink: 0;
}

/* Header Specific Logo Sizing */
nav .logo img {
    height: 180px;
    margin-top: 0;
}

/* Product Themes */
.theme-sales {
    --color-accent: #21BA45;
    --color-accent-soft: rgba(33, 186, 69, 0.1);
}

.theme-support {
    --color-accent: #00B5AD;
    --color-accent-soft: rgba(0, 181, 173, 0.1);
}

.theme-knowledge {
    --color-accent: #6435C9;
    --color-accent-soft: rgba(100, 53, 201, 0.1);
}

.theme-confilist {
    --color-accent: #FE6500;
    --color-accent-soft: rgba(254, 101, 0, 0.1);
}

/* Apply Theme to Components */
body[class*="theme-"] .btn-primary {
    background-color: var(--color-accent);
}

body[class*="theme-"] .btn-primary:hover {
    filter: brightness(1.1);
}

body[class*="theme-"] .micro-cta {
    color: var(--color-accent);
}

body[class*="theme-"] .roadmap-step {
    border-left-color: var(--color-accent);
}

body[class*="theme-"] .roadmap-step span {
    color: var(--color-accent);
}

body[class*="theme-"] .pricing-card.popular {
    border-color: var(--color-accent);
}

body[class*="theme-"] .pricing-card.popular::before {
    background: var(--color-accent);
}

body[class*="theme-"] .feature-list li::before {
    color: var(--color-accent);
}

body[class*="theme-"] .card:hover {
    border-bottom: 3px solid var(--color-accent);
}

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

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

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switcher a {
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-button);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--color-brand-orange-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-brand-blue);
    border: 1px solid var(--color-brand-blue);
}

.btn-secondary:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    background-color: transparent;
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Benefits & Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.micro-cta {
    color: var(--color-brand-orange);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.micro-cta:hover {
    text-decoration: underline;
}

/* Solutions Table */
.solutions {
    background-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.solutions-table-container {
    background: var(--color-bg-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.solutions-table {
    width: 100%;
    border-collapse: collapse;
}

.solutions-table th,
.solutions-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.solutions-table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text-primary);
    font-weight: 500;
}

/* Roadmap */
.roadmap-content {
    background: var(--color-bg-white);
    color: var(--color-text-primary);
    padding: 3rem;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.roadmap-content h2,
.roadmap-content h3 {
    color: var(--color-text-primary);
}

.roadmap-step {
    border-left: 2px solid var(--color-brand-orange);
    padding-left: 1.5rem;
}

.roadmap-step span {
    display: block;
    color: var(--color-brand-orange);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--color-bg-white);
    padding: 2rem 2rem;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--color-brand-orange);
    position: relative;
}

.pricing-card.popular::before {
    content: 'MAS POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-brand-orange);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.price {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    margin: 0.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* Product Feature List */
.feature-list {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--color-brand-orange);
    font-weight: 700;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 6rem 0;
    background: transparent;
}

.final-cta h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.final-cta p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--color-bg-light);
}

/* Utils */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-section {
    background-color: var(--color-bg-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg-white);
    padding: 3rem;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-bg-light);
    color: var(--color-text-primary);
    border-radius: var(--radius-button);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-brand-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

body[class*="theme-"] .form-group input:focus,
body[class*="theme-"] .form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius-button);
    margin-top: 1rem;
    display: none;
    font-weight: 600;
}

.form-message.success {
    display: block;
    background-color: #C6F6D5;
    color: #2F855A;
    border: 1px solid #9AE6B4;
}

.form-message.error {
    display: block;
    background-color: #FED7D7;
    color: #C53030;
    border: 1px solid #FEB2B2;
}

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

@media (max-width: 768px) {

    .benefits-grid,
    .roadmap-content,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

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

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

    .nav-links {
        display: none;
        /* Simplification for now */
    }
}

/* Enhancements for Dark Mode & Interactivity */
.custom-plan-box {
    margin-top: 3rem;
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 2rem 0;
}

.logo-item {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-button);
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: default;
}

.logo-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-brand-blue);
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.testimonial-content {
    background: var(--color-bg-light);
    border-radius: var(--radius-card);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.testimonial-content blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-brand-orange);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

details.faq-item {
    background: var(--color-bg-white);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

details.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

details.faq-item summary {
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    /* remove default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-primary);
    transition: background-color 0.3s ease;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

details.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--color-brand-orange);
}

details.faq-item[open] summary::after {
    transform: rotate(45deg);
}

details.faq-item p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--color-text-muted);
}

/* About Section */
.about-section {
    background-color: transparent;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
}

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

.team-card {
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-brand-blue);
}

.team-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    color: var(--color-text-primary);
}

.team-role {
    color: var(--color-brand-orange);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-tagline {
    font-weight: 600;
    color: var(--color-brand-blue);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.team-bio {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .about-intro {
        text-align: left;
    }
}

/* Solutions Sidebar */
.solutions-sidebar {
    position: fixed;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: transparent;
    position: relative;
    border: 1px solid transparent;
}

.sidebar-item:hover {
    width: 200px;
    padding-right: 1.25rem;
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-item .icon {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.sidebar-item:hover .icon {
    transform: scale(1.1);
}

.sidebar-item .label {
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s, transform 0.2s ease 0.1s;
    transform: translateX(-10px);
}

.sidebar-item:hover .label {
    opacity: 1;
    transform: translateX(0);
}

/* Theme Colors for Icons */
.sidebar-item.sales .icon svg { color: #21BA45; }
.sidebar-item.support .icon svg { color: #00B5AD; }
.sidebar-item.knowledge .icon svg { color: #6435C9; }
.sidebar-item.confilist .icon svg { color: #FE6500; }

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--color-text-primary);
}

.sidebar-item.active::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--color-brand-blue);
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .solutions-sidebar {
        left: 0;
        bottom: 0;
        top: auto;
        transform: none;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        padding: 0.5rem;
        border-radius: 0;
        border-width: 1px 0 0 0;
        background: rgba(15, 23, 42, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
    }

    .sidebar-item {
        width: auto;
        height: auto;
        flex-direction: column;
        gap: 4px;
        padding: 6px !important;
        border: none;
        flex: 1;
    }

    .sidebar-item:hover {
        width: auto;
        background: transparent;
    }

    .sidebar-item .icon {
        min-width: unset;
        height: auto;
    }

    .sidebar-item .icon svg {
        width: 20px;
        height: 20px;
    }

    .sidebar-item .label {
        opacity: 1;
        transform: none;
        font-size: 0.65rem;
        display: block;
        text-align: center;
        white-space: normal;
        margin-top: 2px;
    }
    
    .sidebar-item.active::after {
        left: 50%;
        bottom: 0;
        top: auto;
        transform: translateX(-50%);
        width: 20px;
        height: 3px;
        border-radius: 2px 2px 0 0;
    }
}

/* Responsive Solutions Table */
@media (max-width: 768px) {
    .solutions-table-container {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .solutions-table, 
    .solutions-table thead, 
    .solutions-table tbody, 
    .solutions-table th, 
    .solutions-table td, 
    .solutions-table tr {
        display: block;
    }

    .solutions-table thead {
        display: none;
    }

    .solutions-table tr {
        background: var(--color-bg-white);
        margin-bottom: 2rem;
        padding: 1.5rem;
        border-radius: var(--radius-card);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .solutions-table td {
        padding: 0.75rem 0;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .solutions-table td:last-child {
        border-bottom: none;
        padding-top: 1.5rem;
    }

    .solutions-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--color-brand-blue);
        margin-bottom: 0.5rem;
    }
    
    .solutions-table td strong {
        font-size: 1.25rem;
        color: var(--color-text-primary);
    }
    
    /* Ensure padding for fixed bottom bar */
    body {
        padding-bottom: 80px;
    }
}