/* ==================== INNER PAGE LAYOUT ==================== */
/* Shared styles for all sub-pages (features / download / rankings / register / news) */

.page-hero {
    position: relative;
    width: 100vw;
    max-width: 100%;
    padding: 150px 0 70px;
    text-align: center;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Shared background artwork for inner page headers */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(10, 10, 15, 0.72) 0%, rgba(10, 10, 15, 0.62) 55%, var(--bg-dark) 100%),
        url('images/hero-bg.jpg');
    background-size: cover, cover;
    background-position: center 35%, center 60%;
    background-repeat: no-repeat, no-repeat;
    z-index: 0;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px,
            rgba(212, 168, 73, 0.02) 2px, rgba(212, 168, 73, 0.02) 4px);
    z-index: 1;
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--gold-bright);
}

.breadcrumb .sep {
    color: var(--gold-dark);
}

.breadcrumb .current {
    color: var(--gold-bright);
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 6vw, 52px);
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.page-desc {
    font-size: clamp(14px, 2vw, 17px);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-body {
    padding: 70px 0 90px;
}

/* ==================== FEATURE LIST PAGE ==================== */
.feature-detail {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 28px;
    align-items: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 34px;
    margin-bottom: 22px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-gold);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: top;
}

.feature-detail:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-bright);
    transform: translateX(6px);
    box-shadow: var(--shadow-card);
}

.feature-detail:hover::before {
    transform: scaleY(1);
}

.fd-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    background: rgba(212, 168, 73, 0.07);
    border: 1px solid var(--border);
    border-radius: 14px;
    filter: drop-shadow(0 0 12px rgba(212, 168, 73, 0.25));
    flex-shrink: 0;
}

.fd-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--gold-bright);
    margin-bottom: 10px;
}

.fd-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.fd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fd-tag {
    padding: 4px 14px;
    background: rgba(212, 168, 73, 0.08);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--gold-bright);
    letter-spacing: 0.5px;
}

/* ==================== DOWNLOAD PAGE ==================== */
.req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 40px;
}

.req-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px;
}

.req-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--gold-bright);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.req-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(212, 168, 73, 0.07);
    font-size: 14px;
}

.req-list li:last-child {
    border-bottom: none;
}

.req-list .k {
    color: var(--text-muted);
}

.req-list .v {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

/* ==================== INSTALL STEPS ==================== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px 22px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--border-bright);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.step-num {
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    color: var(--bg-darker);
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 20px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(212, 168, 73, 0.35);
}

.step h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--gold-bright);
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==================== NEWS PAGE ==================== */
.news-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-chip {
    padding: 9px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover {
    border-color: var(--border-bright);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--gradient-gold);
    color: var(--bg-darker);
    border-color: transparent;
    font-weight: 600;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Article detail page */
.article {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.article-cover {
    height: 280px;
    position: relative;
}

.article-cover .news-badge {
    position: absolute;
    top: 20px;
    right: 20px;
}

.article-inner {
    padding: 44px;
}

.article-meta {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.article h1 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 34px);
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 24px;
}

.article p {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 18px;
}

.article h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--gold-bright);
    margin: 30px 0 14px;
}

.article ul {
    margin: 0 0 18px 22px;
}

.article ul li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    color: var(--gold-bright);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.article-back:hover {
    gap: 14px;
}

/* ==================== FORM FEEDBACK (register) ==================== */
.form-group input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.field-error {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    min-height: 14px;
    line-height: 1.4;
}

.form-group input:not(:placeholder-shown):not(.input-error):valid {
    border-color: rgba(34, 197, 94, 0.4);
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.form-success strong {
    color: var(--gold-bright);
    font-weight: 700;
}

#regSubmitBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ==================== SECTION CTA (preview links) ==================== */
.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==================== RESPONSIVE (inner pages) ==================== */
@media (max-width: 992px) {
    .news-list {
        grid-template-columns: 1fr 1fr;
    }
    .steps {
        grid-template-columns: 1fr 1fr;
    }
    .req-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 50px;
    }
    .feature-detail {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 26px;
    }
    .fd-icon {
        width: 70px;
        height: 70px;
        font-size: 34px;
    }
    .news-list {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .article-inner {
        padding: 28px 22px;
    }
}
