/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --primary: #25D366;
    --primary-dark: #128C7E;
    --primary-light: #DCF8C6;
    --accent: #667eea;
    --accent-gradient: linear-gradient(135deg, #25D366 0%, #667eea 100%);

    --bg-dark: #0f1117;
    --bg-card: #1a1d29;
    --bg-card-hover: #292e40;

    --text-main: #ffffff;
    --text-muted: #a0aacc;
    --text-inv: #1a1d29;

    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(26, 29, 41, 0.7);

    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 128px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

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

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

.hero-bg {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle at center, rgba(37, 211, 102, 0.15) 0%, rgba(102, 126, 234, 0.1) 40%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    flex-wrap: wrap;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-stat-label {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Solutions / Roles Section */
.solutions-section {
    padding: var(--spacing-xl) 0;
    background: #151820;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

/* Solution Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: block;
    /* Ensure it works as a block link */
    text-decoration: none;
    /* Remove underline */
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.solution-card:hover,
.solution-card.active {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(37, 211, 102, 0.3);
}

.solution-card:hover::before,
.solution-card.active::before {
    transform: scaleX(1);
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

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

.solution-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Solution Details (Expanded View) */
.solution-details-container {
    position: relative;
    min-height: 400px;
}

.solution-detail {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 48px;
    margin-top: 32px;
}

.solution-detail.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.detail-text h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.detail-list {
    list-style: none;
    margin-bottom: 32px;
}

.detail-list li {
    margin-bottom: 16px;
    padding-left: 28px;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.detail-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.detail-stats {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.small-stat .num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.small-stat .lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Chat Example UI within details */
.chat-preview {
    background: #0b0c10;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    max-width: 90%;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-bubble.user {
    background: #1f2c34;
    color: #e9edef;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

.chat-bubble.ai {
    background: #005c4b;
    color: #e9edef;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.chat-meta {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 4px;
    opacity: 0.7;
}

/* UI Feature Section */
.ui-feature-section {
    padding: 100px 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.ui-feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.ui-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    line-height: 1.2;
}

.ui-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.feature-list-simple {
    list-style: none;
}

.feature-list-simple li {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.feature-list-simple li strong {
    color: var(--text-main);
}

/* Dashboard Mockup (CSS Drawings) */
.dashboard-mockup {
    background: #1a1d29;
    border-radius: 16px;
    height: 400px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.dashboard-mockup .sidebar {
    width: 80px;
    background: #11131a;
    border-right: 1px solid var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.mock-item {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.mock-item.active {
    background: var(--primary);
}

.dashboard-mockup .main-area {
    flex: 1;
    background: #1a1d29;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.mock-header {
    height: 40px;
    width: 40%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 32px;
}

.mock-chat-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mock-msg {
    height: 60px;
    width: 80%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.mock-msg.right {
    align-self: flex-end;
    background: rgba(102, 126, 234, 0.1);
}

/* Features Strip */
.features-strip {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(26, 29, 41, 0.4);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.feature-item h4 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
}

/* Call to Action */
.cta-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a1e2e 100%);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.1) 0%, rgba(26, 29, 41, 0.8) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 3rem;
    }

    .detail-content,
    .ui-feature-content {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

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

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

    .cta-box {
        padding: 32px;
    }
}