/* Version 3 - Business Grid - Layout Styles */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #22c55e;
    --secondary-color: #0f172a;
    --accent-blue: #86efac;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

.outside-particles {
    display: none;
}

.scroll-rails {
    display: none;
}

/* A4-like page rails + outside background (desktop/tablet) */
@media (min-width: 769px) {
    :root {
        --page-width: min(1120px, calc(100vw - 4rem));
    }

    body {
        position: relative;
        background-color: var(--bg-light);
    }

    .outside-particles {
        display: block;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        pointer-events: none;
        z-index: -2;
        opacity: 0.9;
    }

    /* Scroll progress rails (UX cue) */
    .scroll-rails {
        display: block;
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 2;
    }

    .scroll-rail {
        position: fixed;
        top: 96px;
        bottom: 24px;
        width: 6px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--border-color) 60%, transparent);
        box-shadow: 0 0 0 1px color-mix(in srgb, var(--border-color) 70%, transparent);
        opacity: 0.9;
    }

    .scroll-rail::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: color-mix(in srgb, var(--primary-color) 75%, white);
        transform-origin: bottom;
        transform: scaleY(calc(1 - var(--scroll-progress, 0)));
        transition: transform 80ms linear;
    }

    .scroll-rail.left {
        left: calc((100vw - var(--page-width)) / 2 - 16px);
    }

    .scroll-rail.right {
        right: calc((100vw - var(--page-width)) / 2 - 16px);
    }

    /* Outside-of-page background graphic */
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: -3;
        background:
            radial-gradient(900px 520px at 12% 18%, color-mix(in srgb, var(--primary-color) 16%, transparent) 0%, transparent 65%),
            radial-gradient(900px 640px at 88% 62%, color-mix(in srgb, var(--accent-purple) 14%, transparent) 0%, transparent 70%),
            radial-gradient(760px 520px at 70% 8%, color-mix(in srgb, var(--accent-green) 10%, transparent) 0%, transparent 70%);
        transform: translate3d(0, 0, 0);
    }

    /* Constrain all main sections to a centered “paper” width */
    body > section,
    body > footer {
        width: min(1120px, calc(100% - 4rem));
        margin-left: auto;
        margin-right: auto;
    }

    /* Page rails (left/right borders + subtle shadow) */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: min(1120px, calc(100% - 4rem));
        height: 100vh;
        width: 48px;
        height: 48px;
        object-fit: contain;
        display: block;
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
    }

    /* Keep content above the rails */
    body > section,
    body > footer {
        position: relative;
        z-index: 0;
    }
}


.wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo-block {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-symbol {
    width: 40px;
    height: 40px;
    /* background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    font-weight: 700;  */
}

/* Ensure logo image fits the existing logo-symbol box */
.logo-symbol img {
    width: 100%;
    height: 100%;
    /* object-fit: cover;
    display: block; */
    border-radius: inherit;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.nav-link.btn-contact {
    background-color: var(--primary-color);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
}

.nav-link.btn-contact:hover {
    background-color: var(--primary-dark);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Banner */
.hero-banner {
    padding: 5rem 0;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary-color) 10%, var(--bg-white)) 0%,
        color-mix(in srgb, var(--primary-color) 16%, var(--bg-white)) 100%
    );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.hero-title .accent {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.trust-signals {
    display: flex;
    gap: 2rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-item strong {
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.trust-item span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Visual Cards */
.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    position: relative;
}

.visual-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.visual-card .icon {
    font-size: 2.5rem;
    line-height: 1;
    /* width: 64px;
    height: 64px; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.visual-card .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.visual-card strong {
    font-size: 1.125rem;
    color: var(--text-primary);
}

.visual-card span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-intro {
    margin-bottom: 3rem;
}

.section-intro.centered {
    text-align: center;
}

.section-heading {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
}

.section-intro.centered .section-lead {
    margin: 0 auto;
}

/* Benefits Section */
.benefits-section {
    background-color: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefit-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.benefit-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.benefit-icon.blue {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.benefit-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.benefit-icon.orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.benefit-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.benefit-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-box p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.benefit-detail {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background-color: color-mix(in srgb, var(--primary-color) 12%, transparent);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Modules Section */
.modules-section {
    background-color: var(--bg-white);
}

.modules-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.module-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.module-card.featured {
    grid-column: span 2;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary-color) 10%, var(--bg-white)) 0%,
        color-mix(in srgb, var(--primary-color) 18%, var(--bg-white)) 100%
    );
    border-color: var(--primary-light);
}

.module-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.module-icon {
    width: 56px;
    height: 56px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.module-meta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.module-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.module-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.module-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.module-features li {
    padding: 0.625rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-secondary);
}

.module-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
}

.module-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.module-stats .stat {
    display: flex;
    flex-direction: column;
}

.module-stats .stat strong {
    font-size: 1.75rem;
    color: var(--primary-color);
    line-height: 1;
}

.module-stats .stat span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.integration-note {
    background: var(--bg-gray);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.note-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.note-content strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.note-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Video Section */
.video-section {
    background-color: var(--bg-light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.video-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.video-item.primary {
    grid-column: span 2;
}

.video-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.video-thumb {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-thumb.small {
    height: 180px;
}

.play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.play-icon.small {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.video-item:hover .play-icon {
    transform: scale(1.1);
    background: white;
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.video-info {
    padding: 1.5rem;
}

.video-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.video-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about-section {
    background-color: var(--bg-white);
}

.about-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cred-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.credential-item span {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box,
.partners-box {
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.info-box h4,
.partners-box h4 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.reasons-list {
    list-style: none;
    padding: 0;
}

.reasons-list li {
    padding: 0.625rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.reasons-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.partners-box p {
    color: var(--text-secondary);
    line-height: 1.7;
}
