/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066CC; /* Blue for Sign In button */
    --primary-green: #4CAF50; /* Green for Contact us button and logo */
    --primary-green-dark: #45a049; /* Darker green for hover */
    --primary-dark: #0052A3;
    --primary-light: #E6F2FF;
    --text-dark: #1A1A1A;
    --text-light: #4A4A4A;
    --text-muted: #6B6B6B;
    --bg-white: #FFFFFF;
    --bg-light: #F5F7FA;
    --bg-hero: #FAFBFC;
    --border-color: #E1E8ED;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Platform Section */
.platform {
    padding: 5rem 0;
    background: var(--bg-white);
}

.platform-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1.5rem;
}

.platform-description {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.75;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

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

/* Header Styles */
.header {
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo a:hover {
    opacity: 0.8;
}

.logo-image {
    height: 32px;
    width: auto;
    display: block;
}

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

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-signin {
    padding: 0.625rem 1.5rem;
    background: var(--primary-color);
    color: var(--bg-white) !important;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 15px;
    font-weight: 600;
}

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

.btn-signin::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 5rem 0 6rem;
    background: var(--bg-hero);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.75;
    max-width: 100%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 400px;
}

.dashboard-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: float 8s ease-in-out infinite;
    display: block !important;
    object-fit: contain;
    visibility: visible;
    opacity: 1;
}

/* Security: Hide broken images gracefully */
img[src=""],
img:not([src]) {
    display: none;
}

.dashboard-placeholder {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    animation: float 8s ease-in-out infinite;
    display: flex;
    overflow: hidden;
    max-width: 100%;
}

.dashboard-sidebar {
    width: 200px;
    background: #2C3E50;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.sidebar-logo-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-green);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.sidebar-logo-text {
    color: var(--bg-white);
    font-size: 0.875rem;
    font-weight: 600;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-section {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.nav-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-item.active {
    background: rgba(76, 175, 80, 0.2);
    color: var(--bg-white);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-main {
    flex: 1;
    padding: 1.5rem;
    background: var(--bg-white);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-header h3 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-dark);
    margin: 0;
}

.help-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    font-size: 1rem;
    cursor: pointer;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dashboard-left,
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-panel {
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.dashboard-panel h4 {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.warning-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: #DC3545;
    border-radius: 8px;
    margin: 1rem auto;
}

.warning-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--bg-white);
    display: block;
}

.warning-text {
    font-size: 0.875rem;
    color: var(--bg-white);
    margin-top: 0.5rem;
}

.dashboard-panel.disclaimer {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--primary-green);
}

.dashboard-panel.disclaimer p {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.measure-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.measure-row:last-child {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.red {
    background: #DC3545;
    color: var(--bg-white);
}

.badge.purple {
    background: #6C5CE7;
    color: var(--bg-white);
    margin-bottom: 0.75rem;
}

.badge.white {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.badge.yellow {
    background: #FFC107;
    color: var(--text-dark);
}

.dashboard-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 6px;
    background: #6C5CE7;
    border-radius: 3px;
    width: 100%;
    margin-top: 0.25rem;
}

.priority-text {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin: 0.75rem 0;
    line-height: 1.5;
}

.task-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.dashboard-panel.overdue {
    padding: 0;
    overflow: hidden;
}

.overdue-header {
    background: #FF9800;
    color: var(--bg-white);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.overdue-table {
    padding: 1rem;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row .owner {
    color: var(--primary-green);
    font-weight: 500;
}

.table-row .days {
    color: var(--text-light);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-white);
}

.features-intro {
    text-align: center;
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: none;
}

.features-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 3rem;
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.feature-icon {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.feature-icon .material-icons {
    font-size: 48px;
    color: var(--primary-green);
}

.feature-name {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

/* Product Section */
.product {
    background: #2C3E50;
    color: var(--bg-white);
    padding: 5rem 0;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.product-intro {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.75;
    max-width: 900px;
}

.product-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
}

.product-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.product-checkmark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    background-color: #4CAF50;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 11px;
    line-height: 1;
    margin-top: 4px;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    aspect-ratio: 1 / 1;
}

.checkmark {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.product-item span {
    flex: 1;
}

/* Legal Pages */
.legal-page {
    padding: 6rem 0 4rem;
    background: var(--bg-white);
    min-height: 80vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.legal-content .last-updated {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.legal-content li {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    font-weight: 600;
}

/* Footer Styles */
.footer {
    background: var(--primary-green);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
    margin-top: 8rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content > *:only-child {
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-section {
    display: flex;
    align-items: center;
}

.footer-logo-image {
    height: 32px;
    width: auto;
    display: block;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--bg-white);
    border-radius: 8px;
    color: var(--bg-white);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-contact:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-contact svg {
    flex-shrink: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .features-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
    }

    .hero {
        padding: 3rem 0 4rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features-title {
        font-size: 1.75rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-intro {
        font-size: 1rem;
    }

    .product-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 968px) and (min-width: 481px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }


    .footer-right {
        align-items: flex-start;
        width: 100%;
    }

    .footer-curve {
        height: 40px;
        transform: translateY(-20px);
    }

    .dashboard-placeholder {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        padding: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-main {
        padding: 1rem;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

