/* Base & Variables */
:root {
    --primary-dark: #072a24;
    --primary: #0b3a32;
    --primary-light: #155e53;
    --accent: #20a886;
    --accent-light: #d6f0e9;
    --bg-color: #f2faf7;
    --text-main: #0b3a32;
    --text-muted: #5b7c76;
    --white: #ffffff;
    --border-color: #d8ece7;
    --shadow-sm: 0 4px 6px -1px rgba(11, 58, 50, 0.05), 0 2px 4px -1px rgba(11, 58, 50, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(11, 58, 50, 0.08), 0 4px 6px -2px rgba(11, 58, 50, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(11, 58, 50, 0.1), 0 10px 10px -5px rgba(11, 58, 50, 0.04);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

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

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.4;
    z-index: -1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    background-color: var(--bg-color);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 8px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-bold {
    font-weight: 800;
    color: var(--primary);
}

.logo-light {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9em;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 100px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.check-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

/* Hero Mockup (CSS Art) */
.hero-mockup-wrapper {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.mockup-circle {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    right: -50px;
    z-index: 1;
}

.hero-mockup-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: -10px 20px 40px -10px rgba(11, 58, 50, 0.2);
    display: block;
    transform: rotateY(-12deg) rotateX(8deg) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
}

.hero-mockup-image:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1);
    box-shadow: 0 25px 50px -12px rgba(11, 58, 50, 0.15);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .mockup-circle {
        right: 50%;
        transform: translateX(50%);
    }
}

/* Section Common */
.section-header {
    margin-bottom: 64px;
}

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

.section-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Modules Section */
.modules-section {
    padding: 100px 0;
    background-color: white;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.module-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    background-color: white;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.module-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.module-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.module-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.module-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.module-subtitle {
    font-size: 1rem;
    color: var(--primary-light);
    margin-bottom: 16px;
    font-weight: 600;
}

.module-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    flex-grow: 1;
}

.module-footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.module-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 4px;
}

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

.module-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.module-link:hover {
    color: var(--accent);
}

@media (max-width: 992px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* Timeline Section */
.timeline-section {
    padding: 100px 0;
}

.timeline-wrapper {
    position: relative;
    margin: 60px 0;
    overflow-x: auto;
    padding-bottom: 20px;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    min-width: 900px;
}

.timeline-line {
    position: absolute;
    top: 30px;
    left: 40px;
    right: 40px;
    height: 1px;
    background-color: var(--primary);
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -10px;
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--primary);
    border-right: 1px solid var(--primary);
    transform: translateY(-50%) rotate(45deg);
    z-index: 2;
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.step-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

.timeline-info-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
    .timeline-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        min-width: 100%;
        padding-left: 20px;
    }
    .timeline-line {
        top: 0;
        bottom: 0;
        left: 50px;
        width: 1px;
        height: 100%;
    }
    .timeline-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    .timeline-step:not(:last-child)::after {
        top: auto;
        bottom: -20px;
        right: auto;
        left: 30px;
        transform: rotate(135deg);
    }
}

/* Shared Context Section */
.shared-context-section {
    padding: 100px 0;
    background-color: var(--white);
}

.shared-context-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.text-left {
    text-align: left;
    margin: 0;
}

.shared-context-diagram {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diagram-top {
    margin-bottom: 24px;
    z-index: 2;
}

.patient-journey-circle {
    width: 200px;
    height: 200px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 12px solid var(--accent-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.patient-journey-circle svg {
    margin-bottom: 8px;
    color: var(--white);
}

.patient-journey-circle span {
    font-size: 1.1rem;
    font-weight: 700;
}

.patient-journey-circle small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.diagram-lines-top {
    position: relative;
    width: 100%;
    height: 40px;
    z-index: 1;
}

.diagram-lines-top .line {
    position: absolute;
    background-color: var(--border-color);
}

.diagram-lines-top .vertical {
    width: 1px;
    height: 100%;
    top: 0;
}

.diagram-lines-top .line-1 { left: 16%; }
.diagram-lines-top .line-2 { left: 50%; }
.diagram-lines-top .line-3 { right: 16%; }

.diagram-lines-top .horizontal {
    height: 1px;
    width: 68%;
    left: 16%;
    top: 50%;
}

.diagram-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    z-index: 2;
}

.diagram-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.diagram-card h4 {
    font-size: 0.9rem;
    color: var(--primary);
}

.diagram-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.diagram-card svg {
    color: var(--text-muted);
    opacity: 0.5;
}

.diagram-bottom {
    margin-top: 24px;
    position: relative;
}

.diagram-bottom::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
    top: -24px;
    left: 50%;
}

.shared-intelligence-badge {
    background-color: var(--accent-light);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 992px) {
    .shared-context-container {
        grid-template-columns: 1fr;
    }
    
    .diagram-cards {
        grid-template-columns: 1fr;
    }
    
    .diagram-lines-top {
        display: none;
    }
}

/* Roles Section */
.roles-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.role-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.role-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.role-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.3;
}

.role-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.role-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.role-list .check-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 2px;
}

/* Footer Section */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 64px;
}

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

.footer-logo {
    margin-bottom: 16px;
    display: inline-block;
}

.footer-logo .logo-bold, .footer-logo .logo-light {
    color: var(--white);
}

.footer-logo .logo-light {
    opacity: 0.8;
}

.footer-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 320px;
}

.footer-contact h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-contact-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-contact-text strong {
    color: var(--white);
    display: block;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: var(--white);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 42, 36, 0.7); /* match --primary-dark with opacity */
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-header h2 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.modal-header p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.demo-form .form-group {
    margin-bottom: 20px;
}

.demo-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--white);
}

.demo-form textarea {
    resize: vertical;
    min-height: 80px;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(32, 168, 134, 0.1);
}

@media (max-width: 1200px) {
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .roles-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        display: none;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-desc {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .modules-section, .timeline-section, .shared-context-section, .roles-section {
        padding: 60px 0;
    }
    
    .hero-mockup-wrapper {
        height: auto;
        padding-top: 20px;
    }
    
    .mockup-circle {
        width: 300px;
        height: 300px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .header-container .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .patient-journey-circle {
        width: 160px;
        height: 160px;
    }
}
