:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #ffffff;
    --text-sec: #b0b0b0;
    --accent: #2D8F36; /* Minecraft Green */
    --accent-hover: #1E6624;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(18, 18, 18, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    gap: 10px;
}

.logo-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}  
/* .logo-icon class removed in favor of img tag */

.links {
    display: flex;
    align-items: center;
}

.links a {
    color: var(--text-sec);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.2s;
}

.links a:hover {
    color: var(--text-main);
}

.links .btn-nav {
    background-color: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.links .btn-nav:hover {
    background-color: var(--accent-hover);
    color: white;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures all children like p and sub-text are centered */
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 800px;
}

.hero .accent {
    color: var(--accent);
    /* Gradient text optional */
    background: linear-gradient(135deg, #2D8F36 0%, #4CD964 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-sec);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center; /* Center buttons on hero */
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #333;
    color: white;
}

.btn-secondary:hover {
    background-color: #444;
}

.sub-text {
    font-size: 0.9rem !important; 
    opacity: 0.6;
    text-align: center;
    width: 100%;
    margin-top: 15px; /* Spacing from buttons */
}

.hero-image {
    margin-top: 60px;
    width: 100%;
    max-width: 900px;
    /* perspective removed here to apply directly on transform for sharpness */
}

.placeholder-window {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    /* height removed in favor of aspect-ratio on content */ 
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: perspective(1000px) rotateX(2deg) translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    will-change: transform;
    transition: transform 0.5s;
}

.placeholder-window:hover {
    transform: rotateX(0deg);
}

.window-header {
    background: #252525;
    padding: 12px;
    border-bottom: 1px solid #333;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
}

.dots span:nth-child(1) { background: #FF5F57; }
.dots span:nth-child(2) { background: #FEBC2E; }
.dots span:nth-child(3) { background: #28C840; }

.window-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-weight: 600;
    /* Preview Image */
    width: 100%;
    aspect-ratio: 1919 / 948;
    background-image: url('https://raw.githubusercontent.com/Amne-Dev/New-launcher/main/preview.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1e1e1e; /* Fallback */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 80px 10%;
    background-color: #0d0d0d;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-top: 0;
    color: white;
}

.feature-card p {
    color: var(--text-sec);
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

/* Terms of Service Page */
.terms-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.terms-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.terms-container .last-updated {
    color: var(--text-sec);
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.terms-container section {
    margin-bottom: 30px;
}

.terms-container h2 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.terms-container p {
    color: var(--text-sec);
    line-height: 1.7;
    margin-bottom: 15px;
}

footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Changelog card styles (scoped to #list) */
#list .card {
    background: var(--card-bg);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid #2a2a2a;
}

#list .release-title { display:flex; align-items:center; gap:12px; }

#list .tag {
    background: rgba(45,143,54,0.06);
    color: var(--accent);
    padding:4px 8px;
    border-radius:8px;
    font-size:0.9rem;
    border:1px solid rgba(45,143,54,0.12);
}

#list .meta { color: var(--text-sec); margin-top:6px; font-size:0.95rem; }

#list .body { margin-top:12px; color: var(--text-main); white-space:pre-wrap; }

#list .empty { color: var(--text-sec); padding:18px; text-align:center; }

#list .error { color:#ffb3b3; background:#3a0b0b; padding:10px; border-radius:8px; }

/* Make changelog links use the site's accent color */
#list a { color: var(--accent); text-decoration: none; font-weight:600; }
#list a:hover { text-decoration: underline; }

/* Body/main links (privacy, terms, changelog content) */
main a, .terms-container a { color: var(--accent); font-weight:600; }
main a:hover, .terms-container a:hover { text-decoration: underline; }
