/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #000929;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Full-width Header */
.header-full {
    width: 100%;
    height: 96px;
    position: relative;
    border-bottom: 1.5px solid #F0EFFB;
    z-index: 2;
    background: #ffffff;
}

.header-content {
    width: 100%;
    height: 100%;
    padding: 0 56px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left-align the logo */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.logo-link:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    width: 160px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Split Screen Layout */
.split-container {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 96px);
}

/* Left Panel - Dark Blue */
.left-panel {
    width: 50%; /* Changed from 60% to 50% for exact Figma split */
    background: #003E69; /* Updated to exact brand rich navy color */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
}

.left-content {
    max-width: 75%; /* Updated to 75% as per Figma design */
    text-align: left;
}

.newmark-logo {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 48px;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 52px;
    color: #ffffff;
    margin-bottom: 48px;
    letter-spacing: -0.48px;
    word-wrap: break-word;
}

.hero-description {
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    color: #ffffff;
    margin-bottom: 48px;
    opacity: 0.9;
    word-wrap: break-word;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    transition: opacity 0.3s ease;
    word-wrap: break-word;
}

.back-link:hover {
    opacity: 0.8;
}

.arrow-left {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-link:hover .arrow-left {
    transform: translateX(-4px);
}

/* Right Panel - White - Exact Figma Structure */
.right-panel {
    width: 50%; /* Changed from 40% to 50% for exact Figma split */
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    border-left: 1px solid #F0EFFB;
}

.right-content {
    width: 100%;
    height: 100%;
    padding: 64px; /* Exact Figma padding */
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 32px; /* Exact Figma gap */
}

/* Sign In Section - Exact Figma Structure */
.signin-section {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px; /* Exact Figma gap */
}

.signin-title {
    color: #334155; /* Exact Figma text-color */
    font-size: 20px; /* Exact Figma font size */
    font-family: 'Libre Baskerville', serif; /* Exact Figma font */
    font-weight: 400; /* Exact Figma font weight */
    line-height: 25px; /* Exact Figma line height */
    word-wrap: break-word;
}

/* Platform Cards - Exact Figma Structure */
.platform-cards {
    display: flex;
    flex-direction: column;
    gap: 32px; /* Exact Figma gap between cards */
}

.platform-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.platform-card {
    align-self: stretch;
    min-width: 380px; /* Exact Figma min-width */
    padding: 32px; /* Exact Figma padding */
    background: #ffffff; /* Exact Figma brand-white */
    outline: 1px solid #CCCCCC; /* Exact Figma brand-light-gray */
    outline-offset: -1px; /* Exact Figma outline-offset */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px; /* Exact Figma gap */
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative; /* Added for arrow positioning */
}

.platform-card:hover {
    outline-color: #006BB6; /* Exact Figma blue on hover */
    box-shadow: 0 8px 20px rgba(0, 107, 182, 0.15);
    transform: translateY(-2px);
    background: #F8FAFC; /* Light background color on hover */
}

/* Arrow on top right for hover state */
.platform-card:hover::after {
    content: '→';
    position: absolute;
    top: 32px; /* Match the card's top padding */
    right: 32px; /* Match the card's right padding */
    font-size: 24px; /* Increased from 20px for thicker appearance */
    font-weight: 800; /* Increased from 600 for thicker appearance */
    color: #006BB6;
    transition: all 0.3s ease;
}

/* Card Main Content - Exact Figma Layout */
.card-main-content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 32px; /* Exact Figma gap */
}

/* Card Icon Container - Exact Figma Structure */
.card-icon-container {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 32px; /* Exact Figma gap */
}

.card-icon {
    padding: 12px; /* Exact Figma padding */
    background: #006BB6; /* Exact Figma brand-newmark-blue */
    box-shadow: 8px 8px 0px #23C4FF; /* Exact Figma blue shadow */
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px; /* Exact Figma gap */
    border-radius: 0; /* Set to 0 as per Figma design */
}

.icon-inner {
    width: 32px;
    height: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0; /* Set to 0 as per Figma design */
}

.icon-inner img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes the SVG white */
}

.icon-background {
    width: 24px;
    height: 26.67px;
    background: #ffffff; /* Exact Figma brand-white */
    position: absolute;
    left: 4px;
    top: 2.67px;
}

/* Card Text Content - Exact Figma Structure */
.card-text-content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px; /* Exact Figma gap */
}

.card-title {
    align-self: stretch;
    color: #006BB6; /* Exact Figma button-primary-background */
    font-size: 24px; /* Exact Figma font size */
    font-family: 'Libre Baskerville', serif; /* Exact Figma font */
    font-weight: 400; /* Exact Figma font weight */
    line-height: 30px; /* Exact Figma line height */
    word-wrap: break-word;
}

.card-description-container {
    align-self: stretch;
    display: block; /* Changed from flex to block for inline text flow */
    line-height: 25.60px; /* Match the text line height */
}

.card-description {
    color: #666666; /* Exact Figma brand-dark-gray */
    font-size: 16px; /* Exact Figma font size */
    font-family: 'Inter', sans-serif; /* Exact Figma font */
    font-weight: 500; /* Exact Figma font weight */
    line-height: 25.60px; /* Exact Figma line height */
    word-wrap: break-word;
}

.more-info-link {
    color: #006BB6; /* Exact Figma button-link-color */
    text-decoration: underline; /* Exact Figma text decoration */
    font-size: 16px; /* Exact Figma font size */
    font-family: 'Inter', sans-serif; /* Exact Figma font */
    font-weight: 500; /* Exact Figma font weight */
    line-height: 25.60px; /* Exact Figma line height */
    transition: color 0.3s ease;
    word-wrap: break-word;
}

.more-info-link:hover {
    color: #0284C7;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .split-container {
        flex-direction: column;
    }
    
    .left-panel,
    .right-panel {
        width: 100%;
        padding: 60px 40px;
    }
    
    .left-panel {
        order: 1;
    }
    
    .right-panel {
        order: 2;
        border-left: none;
        border-top: 1px solid #F0EFFB;
    }
    
    .right-content {
        padding: 40px;
    }
    
    .platform-card {
        min-width: auto; /* Remove min-width constraint on mobile */
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 24px;
    }
    
    .left-panel,
    .right-panel {
        padding: 40px 24px;
    }
    
    .right-content {
        padding: 32px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 40px;
    }
    
    .hero-description {
        font-size: 18px;
        line-height: 26px;
    }
    
    .signin-title {
        font-size: 18px;
        line-height: 22px;
    }
    
    .platform-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 16px;
    }
    
    .left-panel,
    .right-panel {
        padding: 32px 16px;
    }
    
    .right-content {
        padding: 24px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 32px;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 24px;
    }
    
    .platform-card {
        padding: 20px;
    }
}

/* Focus states for accessibility */
.back-link:focus,
.more-info-link:focus,
.platform-card:focus {
    outline: 2px solid #006BB6;
    outline-offset: 2px;
}

.back-link:focus:not(:focus-visible),
.more-info-link:focus:not(:focus-visible),
.platform-card:focus:not(:focus-visible) {
    outline: none;
}