/* CSS Variables for consistent theming - matching compudocnc.com */
:root {
    --purple-primary: #6a38ff;
    --purple-light: rgb(192, 119, 255);
    --purple-dark: rgb(102, 36, 255);
    --purple-visited: rgb(198, 197, 201);
    --dark-bg: #2c282d;
    --light-text: #f0f0f0;
    --accent-orange: orange;
}

/* Poppins Regular (400) */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins/Poppins-Regular.ttf') format('truetype');
}

/* Poppins Semi-Bold (600) */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
}

html {
    font: 18px 'Poppins', 'Noto Sans', Arial, sans-serif;
    background-color: #333;
    background-image: linear-gradient(0deg, #333 50%, #2c282d 50%);
    background-size: 10px 10px;
    scroll-behavior: smooth;
    color-scheme: dark;
    -webkit-tap-highlight-color: rgba(106, 56, 255, 0.3);
}

body {
    font-family: 'Poppins', 'Noto Sans', Arial, sans-serif;
    text-align: center;
    margin: 0;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 20px;
}

a {
    color: var(--purple-light);
    text-decoration: none;
}

a:visited {
    color: var(--purple-visited);
}

a:hover {
    color: var(--purple-dark);
}

a:active {
    color: var(--accent-orange);
}

/* Keyboard focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--purple-primary);
    outline-offset: 2px;
}

/* Skip to Content Link - Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--purple-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 10000;
}

.skip-to-content:focus-visible {
    top: 0;
}

/* Header/Logo Section */
.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 20px;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-container img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
}

h1 {
    font-size: 45px;
    font-weight: bold;
    background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 50%, #6a38ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4))
            drop-shadow(0 0 40px rgba(106, 56, 255, 0.3));
    animation: titlePulse 3s ease-in-out infinite;
    margin: 0;
    text-align: center;
}

@keyframes titlePulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4))
                drop-shadow(0 0 40px rgba(106, 56, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.6))
                drop-shadow(0 0 50px rgba(106, 56, 255, 0.5));
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    h1 {
        animation: none;
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4))
                drop-shadow(0 0 40px rgba(106, 56, 255, 0.3));
    }
}

h2 {
    font-family: 'Poppins', 'Noto Sans', Arial, sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #eaeaea;
    text-align: center;
    margin: 20px 0;
    line-height: 1.3;
}

h3 {
    font-family: 'Poppins', 'Noto Sans', Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--purple-primary);
    margin-bottom: 0.75em;
    line-height: 1.3;
    text-align: center;
}

p {
    margin-bottom: 20px;
    color: #cccccc;
    line-height: 1.6;
}

/* Download Section */
.download-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 40px 30px;
    border-radius: 20px;
    border: 2px solid rgba(106, 56, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    margin: 30px auto;
    max-width: 800px;
}

.download-section h2 {
    color: var(--purple-primary);
    margin-bottom: 10px;
}

/* Initially hide the OS-specific download link containers */
#windowsDownloadDiv,
#windowsPresetDownloadDiv,
#macStandardDownloadDiv,
#macPresetPassDownloadDiv {
    display: none;
    margin-top: 20px;
}

/* Display the correct container based on the body class set by JS */
body.is-windows #windowsDownloadDiv,
body.is-windows #windowsPresetDownloadDiv {
    display: block;
}

body.is-mac #macStandardDownloadDiv,
body.is-mac #macPresetPassDownloadDiv {
    display: block;
}

/* Style for the download links (making them look like buttons) */
#windowsDownloadDiv a,
#windowsPresetDownloadDiv a,
#macStandardDownloadDiv a,
#macPresetPassDownloadDiv a {
    display: inline-block;
    margin: 15px 10px;
    padding: 15px 40px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(106, 56, 255, 0.6);
    border-radius: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s, transform 0.2s;
    letter-spacing: 0.5px;
    touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
    #windowsDownloadDiv a,
    #windowsPresetDownloadDiv a,
    #macStandardDownloadDiv a,
    #macPresetPassDownloadDiv a {
        transition: none;
    }
}

/* Hover effect for the download links */
#windowsDownloadDiv a:hover,
#windowsPresetDownloadDiv a:hover,
#macStandardDownloadDiv a:hover,
#macPresetPassDownloadDiv a:hover {
    background: linear-gradient(90deg, #6a38ff 0%, #4411aa 100%);
    color: #fff;
    border: 2.5px solid #fff;
    box-shadow: 0 12px 28px rgba(106, 56, 255, 0.25), 0 2px 8px rgba(0,0,0,0.25);
    transform: translateY(-3px) scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
    #windowsDownloadDiv a:hover,
    #windowsPresetDownloadDiv a:hover,
    #macStandardDownloadDiv a:hover,
    #macPresetPassDownloadDiv a:hover {
        transform: none;
    }
}

/* Features Section */
.features-section {
    margin: 40px auto;
    max-width: 900px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 30px;
    margin: 20px auto;
    border-radius: 20px;
    border: 2px solid rgba(106, 56, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 700px;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(106, 56, 255, 0.5);
    border: 2px solid #6a38ff;
    background: linear-gradient(135deg, rgba(51,51,51,0.7), rgba(80,0,160,0.8));
}

@media (prefers-reduced-motion: reduce) {
    .feature-card {
        transition: none;
    }

    .feature-card:hover {
        transform: none;
    }
}

.feature-card h3 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 15px;
}

.feature-card ul {
    text-align: left;
    display: inline-block;
    margin: 0;
    padding-left: 20px;
}

.feature-card li {
    margin: 10px 0;
    color: #ddd;
    line-height: 1.6;
}

.feature-card li strong {
    color: var(--purple-light);
}

/* Trust/About Section */
.trust-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 40px 30px;
    margin: 40px auto;
    border-radius: 20px;
    border: 2px solid rgba(106, 56, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    max-width: 800px;
}

.trust-section h3 {
    color: var(--purple-primary);
    margin-bottom: 20px;
}

.trust-section p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 30px 20px;
    border-top: 2px solid rgba(106, 56, 255, 0.3);
    color: #888;
    font-size: 14px;
}

footer p {
    margin: 8px 0;
}

footer a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
    touch-action: manipulation;
}

footer a:hover {
    color: var(--purple-primary);
}

/* CSS class for the hidden iframe (applied by JS) */
.hidden-iframe {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 700px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 20px;
    }

    .logo-container img {
        height: 80px;
    }

    .download-section,
    .feature-card,
    .trust-section {
        padding: 25px 20px;
        margin: 20px 10px;
    }

    #windowsDownloadDiv a,
    #windowsPresetDownloadDiv a,
    #macStandardDownloadDiv a,
    #macPresetPassDownloadDiv a {
        padding: 12px 25px;
        font-size: 16px;
        margin: 10px 5px;
    }

    .feature-card ul {
        padding-left: 15px;
        font-size: 14px;
    }
}
