:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-blue: #58a6ff;
    --accent-purple: #bc8cff;
    --accent-green: #3fb950;
    --accent-red: #f85149;
    --border-color: #30363d;
    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.poster-container {
    width: 100%;
    max-width: 1200px;
    min-height: 1200px;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    position: relative;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 60px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(188, 140, 255, 0.05) 100%);
    z-index: 0;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: -1;
    filter: grayscale(100%) contrast(1.2);
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.logo i {
    margin-right: 8px;
    font-size: 2rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #8b949e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

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

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

.btn-secondary {
    background-color: rgba(56, 139, 253, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 139, 253, 0.4);
}

.btn-secondary:hover {
    background-color: rgba(56, 139, 253, 0.2);
}

.btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-between;
    padding: 40px 60px;
    background-color: #010409;
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Grid */
.section-title {
    padding: 50px 60px 30px;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--accent-purple);
    margin-right: 12px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 60px 50px;
}

.feature-card {
    position: relative; /* Essential: sets the context for the absolute link */
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* The invisible link overlay */
.stretched-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1; /* Places it on top of the text */
}

.feature-card i, 
.feature-card p, 
.feature-card h3 {
  position: relative;
  z-index: 2; 
  pointer-events: none;
}


/* Why QTradeX */
.why-section {
    padding: 0 60px 50px;
}

.why-card {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.05) 0%, rgba(188, 140, 255, 0.05) 100%);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
}

.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.why-list {
    list-style: none;
}

.why-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.why-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* Code Section */
.code-section {
    background-color: #0d1117;
    padding: 0 60px 60px;
    position: relative;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.file-name {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-secondary);
    background: #161b22;
    padding: 6px 14px;
    border-radius: 20px;
}

.file-name i {
    margin-right: 8px;
    font-size: 1.1rem;
    color: var(--accent-purple);
}

.code-window {
    background-color: #161b22;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

pre {
    padding: 25px;
    overflow-x: auto;
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e6edf3;
}

.k { color: #ff7b72; } /* Keyword */
.c { color: #8b949e; font-style: italic; } /* Comment */
.f { color: #d2a8ff; } /* Function */
.s { color: #a5d6ff; } /* String */
.n { color: #79c0ff; } /* Number */
.cl { color: #ffa657; } /* Class */

/* Installation & AI Optimization */
.split-section {
    display: flex;
    padding: 0 60px 60px;
    gap: 30px;
}

.install-col {
    flex: 1;
}

.ai-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.terminal {
    background-color: #000;
    border-radius: 8px;
    padding: 25px;
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.terminal-line {
    display: block;
    margin-bottom: 10px;
}

.terminal-prompt {
    color: var(--accent-green);
    margin-right: 8px;
}

.ai-card {
    background: linear-gradient(135deg, rgba(188, 140, 255, 0.1) 0%, rgba(88, 166, 255, 0.1) 100%);
    border: 1px solid rgba(188, 140, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ai-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Roadmap */
.roadmap-section {
    padding: 0 60px 60px;
}

.roadmap-list {
    list-style: none;
}

.roadmap-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.roadmap-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* Usage Steps */
.steps-container {
    padding: 50px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161b22;
    margin: 0 60px 60px;
    border-radius: 12px;
}

.step {
    text-align: center;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-num {
    width: 60px;
    height: 60px;
    background-color: var(--accent-blue);
    color: #0d1117;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
    border: 3px solid var(--bg-color);
    font-size: 1.5rem;
}

.step-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-arrow {
    color: var(--accent-purple);
    font-size: 2.5rem;
    margin: 0 10px;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 50px 60px;
    background-color: #010409;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent-blue);
}

.footer-link i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.copyright {
    color: #484f58;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 40px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .stats-bar {
        padding: 30px 40px;
    }

    .section-title {
        padding: 40px 40px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 40px 40px;
    }

    .code-section {
        padding: 0 40px 40px;
    }

    .split-section {
        flex-direction: column;
        padding: 0 40px 40px;
    }

    .steps-container {
        flex-direction: column;
        padding: 40px;
        gap: 20px;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .footer {
        padding: 40px;
    }
}
