:root {
    --primary-color: #4a90e2;
    --secondary-color: #50e3c2;
    --dark-bg: #1a1d23;
    --medium-bg: #20232a;
    --light-bg: #2c2f36;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.framed-image { border: 2px solid #1a1d23; box-sizing: border-box; border-radius: 15px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding-top: 70px;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
}

h1, h2, h3 {
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 120px 20px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h1 { font-size: 3.8rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero .subtitle { font-size: 1.3rem; max-width: 600px; margin: 0 auto 30px auto; opacity: 0.9; }

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(32, 35, 42, 0.9);
    backdrop-filter: blur(15px);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
}

.main-header .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.main-header .logo-link img { width: 40px; height: 40px; margin-right: 10px; border-radius: 8px; }

.main-nav ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 20px; }
.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}
.main-nav a:hover { background-color: var(--light-bg); color: var(--text-color); }
.main-nav a.active { background-color: var(--primary-color); color: white; }

.hero-logo { width: 240px; height: auto; margin-bottom: 25px; border-radius: 15px; }

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

main { padding: 0 20px; }
section { max-width: 1100px; margin: 80px auto; text-align: center; }
section h2 { font-size: 2.8rem; margin-bottom: 50px; position: relative; display: inline-block; }
section h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; text-align: left; }
.feature-item {
    background: var(--light-bg);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover { transform: translateY(-8px); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4); }
.feature-item h3 { margin-top: 0; font-size: 1.4rem; color: var(--secondary-color); }
.feature-item p { color: var(--text-muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 25px; }
.gallery-grid img { width: 100%; border-radius: 12px; box-shadow: var(--card-shadow); transition: transform 0.3s ease; }
.gallery-grid img:hover { transform: scale(1.05); }

.purchase-section { background-color: var(--medium-bg); padding: 60px 20px; border-radius: 12px; box-shadow: var(--card-shadow); }
.purchase-section p { max-width: 500px; margin: 0 auto 30px auto; color: var(--text-muted); }

.footer {
    background-color: var(--dark-bg);
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Changelog Specific Styles */
.changelog-post {
    background-color: var(--medium-bg);
    padding: 30px 40px;
    border-radius: 12px;
    text-align: left;
    line-height: 1.8;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--card-shadow);
}
.changelog-post .post-header {
    border-bottom: 1px solid var(--light-bg);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.changelog-post .post-header .timestamp {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.changelog-post h2 {
    color: var(--secondary-color);
    margin: 0 0 15px 0;
    font-size: 1.8rem;
}
.changelog-post h3 {
    color: #ffffff;
    margin: 20px 0 10px 0;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--light-bg);
    padding-bottom: 5px;
    display: inline-block;
}
.changelog-post ul { 
    padding-left: 25px; 
    margin: 15px 0;
    list-style-type: disc;
}
.changelog-post li {
    margin-bottom: 10px;
}
.changelog-post p {
    margin: 10px 0;
}
.changelog-post code { background-color: var(--dark-bg); padding: 2px 6px; border-radius: 4px; font-family: "Consolas", monospace; }

/* Guide Specific Styles */
.guide-section { background-color: var(--light-bg); padding: 40px; border-radius: 12px; margin-bottom: 40px; text-align: left; box-shadow: var(--card-shadow); }
.guide-section img { max-width: 100%; border-radius: 8px; border: 1px solid #444; margin: 25px 0; display: block; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.step-number { background-color: var(--primary-color); color: white; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin-right: 10px; font-weight: bold; }
.pro-tip { border-left: 4px solid var(--secondary-color); padding: 15px 20px; background: rgba(80, 227, 194, 0.1); border-radius: 0 8px 8px 0; margin: 25px 0; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { margin-bottom: 12px; padding-left: 20px; position: relative; }
.feature-list li::before { content: "✔"; position: absolute; left: 0; color: var(--secondary-color); }

/* Purchase Specific Styles */
.purchase-section {
    background-color: var(--medium-bg);
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.unlocked-features {
    text-align: left;
    max-width: 500px;
    margin: 40px auto 0 auto;
    background-color: var(--dark-bg);
    padding: 20px 30px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}
.unlocked-features h3 {
    margin-top: 0;
    color: var(--secondary-color);
}
.unlocked-features ul {
    padding-left: 20px;
    margin: 0;
    color: var(--text-muted);
}

/* Support & Form Specific Styles */
.form-section { max-width: 700px; margin-left: auto; margin-right: auto; }
.form-section .subtitle { max-width: 600px; margin: 0 auto 40px auto; color: var(--text-muted); }
.feedback-form { text-align: left; background-color: var(--medium-bg); padding: 40px; border-radius: 12px; box-shadow: var(--card-shadow); }
.feedback-form .form-group { margin-bottom: 20px; }
.feedback-form label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--text-color); }
.feedback-form input, .feedback-form textarea { width: 100%; padding: 12px; background-color: var(--light-bg); border: 1px solid #50545c; border-radius: 5px; color: var(--text-color); box-sizing: border-box; font-family: inherit; }
.feedback-success { text-align: center; padding: 40px; background-color: var(--medium-bg); border-radius: 12px; box-shadow: var(--card-shadow); border-top: 5px solid var(--secondary-color); }
.feedback-success p { font-size: 1.2rem; margin: 0; }

/* Success & Modal Specific Styles */
.success-card {
    background-color: var(--medium-bg);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    max-width: 600px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--light-bg);
}
.icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px auto;
}
.license-box {
    background-color: var(--dark-bg);
    border: 2px dashed var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    cursor: pointer;
    transition: transform 0.2s;
}
.license-box:hover { transform: scale(1.02); }
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: var(--medium-bg);
    margin: auto;
    padding: 40px;
    border: 1px solid var(--light-bg);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.license-key { font-family: 'Consolas', monospace; font-size: 1.8rem; color: var(--secondary-color); letter-spacing: 2px; word-break: break-all; }
.important-note { background-color: rgba(243, 156, 18, 0.1); border-left: 4px solid #f39c12; padding: 15px; text-align: left; margin-top: 30px; font-size: 0.9rem; }
