.spanreed-logo {
    width: 300px;
    height: auto;
}

#spanreedCanvas {
    width: 240px;
    height: 120px;
}



.spanreeed-title-container {
    padding: 0 2rem 1rem 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.title-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 4rem;
}

.title-section::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -1rem;
    width: 100vw;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-color) 25%,
        var(--border-color) 75%,
        transparent 100%
    );
    z-index: 1;
}

.title-content {
    flex: 0 1 500px;
    margin-right: 2rem;
}

.logo-section {
    flex: 0 1 320px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transform: scale(0.8);
    margin-left: -4rem;
}

.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

@keyframes blink {
    0%, 100% { border-right-color: transparent; }
    50% { border-right-color: var(--text-secondary); }
}

@keyframes blinkTitle {
    0%, 100% { border-right-color: transparent; }
    50% { border-right-color: var(--text-primary); }
}

.typewriter-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    color: var(--text-secondary);
    border-right: 3px solid var(--text-secondary);
    white-space: pre-line;
    overflow: hidden;
    margin: 0;
    height: 4.5rem;
    width: 600px;
    line-height: 2rem;
    animation: blink 0.8s step-end infinite;
    padding-right: 4px;
}

.typewriter-text-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--text-primary);
    border-right: 3px solid var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 1rem;
    height: 4rem;
    animation: blinkTitle 0.8s step-end infinite;
    padding-right: 4px;
}

@media (max-width: 768px) {
    .title-section {
        padding-left: 0;
        gap: 1rem;
    }
    
    .logo-section {
        margin-left: 0;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .typewriter-text {
        font-size: 1.2rem;
        height: 3.6rem;
        width: 300px;
        line-height: 1.6rem;
    }

    .typewriter-text-title {
        font-size: 2.5rem;
        height: 3rem;
    }
}

.mid-separator {
    position: absolute;
    bottom: 0rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #4f46e5 20%,
        #a855f7 50%,
        #4f46e5 80%,
        transparent 100%
    );
    opacity: 0.5;
    animation: gradient-wave 8s linear infinite;
    background-size: 200% 100%;
}

@keyframes gradient-wave {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.main-content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
    z-index: 20; /* Higher than header to ensure content appears above */
}

.content-section {
    position: relative;
    z-index: 20; /* Match main container */
    background-color: var(--background-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.content-columns {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3rem;
    justify-content: center;
}

.left-content-container,
.right-content-container {
    flex: 0 1 400px;
    min-width: 0;
}

/* Responsive layout for mobile devices */
@media (max-width: 768px) {
    .content-columns {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .left-content-container,
    .right-content-container {
        flex: 1;
    }

    .download-section {
        max-width: 100%;
    }
}

.download-section {
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    height: 100%;
    align-items: start;
    text-align: center;
    padding: 1.25rem;
    border-radius: 8px;
    background: var(--background-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.download-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.download-section:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.download-section:hover::after {
    opacity: 1;
}

.os-icon {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.download-section h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    min-height: 2.2rem;
}

.download-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    min-height: 4.8rem; /* Ensures consistent height for description */
}

.download-description a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    animation: glow 2s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.download-description a:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes glow {
    0% {
        color: #ffffff;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        color: #f0f0f0;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                     0 0 20px rgba(255, 255, 255, 0.5);
    }
    100% {
        color: #ffffff;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
}

.download-button.disabled {
    background: linear-gradient(135deg, #666, #888);
    cursor: not-allowed;
    opacity: 0.7;
}

.download-button.disabled:hover {
    transform: none;
    background: linear-gradient(135deg, #666, #888);
}

.download-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
    margin: 0 auto;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.button-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.version-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .download-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
        height: auto;
    }

    .download-description {
        min-height: 0;
    }

    .security-note {
        padding: 0.8rem;
        gap: 0.8rem;
        min-height: 0;
    }

    .os-icon svg {
        width: 48px;
        height: 48px;
    }
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: auto;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.security-content {
    flex: 1;
}

.security-content p {
    margin: 0 0 1.2rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.permission-list {
    list-style: none;
    padding-left: 0.5rem;
    margin: 1rem 0 0 0;
    text-align: left;
}

.permission-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-primary);
    font-size: 0.9rem;
    opacity: 0.9;
}

.permission-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.4rem;
    height: 0.4rem;
    background: #4f46e5;
    border-radius: 50%;
    transform: translateY(-50%);
}

.permission-list li:last-child {
    margin-bottom: 0;
}

.note-icon {
    color: #4f46e5;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.security-note p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .security-note {
        padding: 0.8rem;
        gap: 0.8rem;
        min-height: 0;
    }
    
    .security-note p {
        font-size: 0.9rem;
    }
    
    .note-icon svg {
        width: 16px;
        height: 16px;
    }
}

.shortcuts-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.shortcuts-header {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.shortcuts-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.shortcuts-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.shortcuts-table {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    background: rgba(20, 18, 35, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(79, 70, 229, 0.1),
        0 0 50px rgba(168, 85, 247, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
}

.shortcuts-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(79, 70, 229, 0.5) 30%,
        rgba(168, 85, 247, 0.5) 50%,
        rgba(79, 70, 229, 0.5) 70%,
        transparent 100%
    );
}

.shortcuts-header h2 {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(
        90deg,
        #4f46e5 0%,
        #a855f7 50%,
        #4f46e5 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: gradient-wave 8s linear infinite;
    text-align: center;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.header-action, .header-os {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
}

.header-os {
    text-align: center;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0.5rem 0.75rem;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: var(--background-secondary);
}

.shortcut-action {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-right: 0.75rem;
}

.shortcut-keys {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
    white-space: nowrap;
}

.shortcut-keys span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0 2px;
}

kbd {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(0, 0, 0, 0.05) 100%
    );
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    position: relative;
    font-weight: 400;
    box-shadow: 
        0 1px 1px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

kbd:hover {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(0, 0, 0, 0.08) 100%
    );
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .shortcuts-table {
        margin: 0 -1rem 2rem;
        border-radius: 0;
    }

    .table-header, .table-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .shortcut-keys {
        justify-content: flex-start;
        gap: 0.35rem; /* Smaller gap for mobile */
    }

    kbd {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
        min-height: 32px; /* Slightly smaller for mobile but still touchable */
    }
}

.section-separator {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
    opacity: 0.3;
}

.description-header {
    text-align: center;
    margin-bottom: 0.75rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.description-header h2 {
    font-size: 2.3rem;
    color: var(--text-primary);
}

.description-content {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding: 0.25rem 2.5rem;
    background: var(--background-primary);
    border-radius: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.description-content p {
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 1.05rem;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.description-content .app-name {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    animation: glow 2s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .description-header {
        padding: 0 1.5rem;
    }
    
    .description-content {
        margin: 0 -1rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .main-content-container {
        padding: 0.75rem 0.5rem; /* Reduced side padding for smaller screens */
    }
    
    .content-section {
        padding: 1rem 0.75rem;
        border-radius: 4px; /* Smaller border radius for mobile */
    }
    
    .section-separator {
        margin: 0.75rem 0;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .main-content-container {
        padding: 0.5rem 0.25rem;
    }
    
    .content-section {
        padding: 0.75rem 0.5rem;
    }
    
    .description-header h2 {
        font-size: 1.5rem;
    }
    
    .shortcuts-table {
        font-size: 0.9rem;
    }
    
    .table-header, .table-row {
        padding: 0.75rem;
    }
    
    kbd {
        padding: 0.15rem 0.3rem;
        font-size: 0.8rem;
    }
}

/* Ensure proper scaling for different screen sizes */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-columns {
        gap: 1rem;
    }
    
    .download-section {
        padding: 1.25rem 1rem;
    }
}

/* Ensure images and SVGs scale properly */
img, svg {
    max-width: 100%;
    height: auto;
}

/* Improve touch targets for mobile */
.download-button, kbd {
    min-height: 44px; /* Minimum touch target size */
}

/* macOS icon color */
.left-content-container .os-icon svg {
    color: #A2AAAD; /* Apple's signature silver/gray color */
}

/* Windows icon color */
.right-content-container .os-icon svg {
    color: #00A4EF; /* Microsoft Windows blue */
}

/* Download section backgrounds */
.left-content-container .download-section,
.right-content-container .download-section {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
}

.left-content-container .download-section {
    background: linear-gradient(135deg, 
        rgba(162, 170, 173, 0.05), /* Apple silver */
        rgba(162, 170, 173, 0.02)
    );
}

.right-content-container .download-section {
    background: linear-gradient(135deg, 
        rgba(0, 164, 239, 0.05), /* Windows blue */
        rgba(0, 164, 239, 0.02)
    );
}

/* Keep existing hover effect from the ::after pseudo-element */

/* Fix for download button inside anchor tag */
.download-section a {
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
}

.features-title {
    margin-bottom: 0.8rem !important;
    color: var(--text-primary) !important;
    font-weight: 500;
}

.features-list {
    list-style: none;
    padding-left: 0.5rem;
    margin: 0 0 1.5rem 0;
}

.features-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.features-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.4rem;
    height: 0.4rem;
    background: #4f46e5;
    border-radius: 50%;
    transform: translateY(-50%);
}

.features-list li:last-child {
    margin-bottom: 0;
}

.description-security-note {
    max-width: 900px;
    margin: 0 auto 2rem;
    background: var(--background-primary);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    width: fit-content;
}

.description-security-note .security-content {
    max-width: 100%;
    margin: 0;
    width: fit-content;
}

.description-security-note .permission-list {
    width: fit-content;
    min-width: 300px;
}

.description-security-note .note-icon {
    margin-left: -0.5rem;
}

/* Adjust mobile responsiveness */
@media (max-width: 768px) {
    .description-security-note {
        padding: 1rem 1.5rem;
        margin: 0 auto 2rem;
        width: calc(100% - 2rem);
    }
}

.api-key-note {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
    padding: 0 1rem;
}

.api-key-note p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.api-key-note a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    animation: glow 2s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.api-key-note a:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 30px rgba(255, 255, 255, 0.3);
}

.feedback-message {
    text-align: center;
    margin: 40px 0; /* Increased margin for more space */
}

.glow-effect {
    color: #ffffff; /* Base color */
    text-decoration: none;
    font-weight: bold;
    position: relative;
    animation: glow 2s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.glow-effect:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 30px rgba(255, 255, 255, 0.3);
} 