@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Code+Latin:wght@100..700&display=swap');

:root {
    --bg: #131316;
    --bg-elevated: #1b1c22;
    --accent: #39ff14;
    --muted: rgba(245, 245, 245, 0.68);
    --stroke: rgba(57, 255, 20, 0.3);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

html {
    overflow-x: hidden;
}

body {
    background: radial-gradient(1200px 600px at 10% -10%, rgba(57, 255, 20, 0.16), transparent 60%),
        radial-gradient(900px 450px at 90% 10%, rgba(57, 255, 20, 0.08), transparent 55%),
        var(--bg);
    color: #ffffff;
    font-family: 'M PLUS Code Latin', monospace;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    color: var(--accent);
}

.section-head p {
    color: var(--muted);
}

/* Preloader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s;
}

#preloader-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    animation: preloader-bounce 1.2s infinite;
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 6px solid var(--accent);
    border-top: 6px solid #222;
    border-radius: 50%;
    animation: preloader-spin 1s linear infinite;
}

@keyframes preloader-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloader-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Reveal animation */
.hidden {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem clamp(1.2rem, 4vw, 3rem);
    background: rgba(19, 19, 22, 0.9);
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent);
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.7);
}

.brand-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-subtitle {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.site-nav a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--accent);
}

.nav-link {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(57, 255, 20, 0.12);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/image/ext-torrents_239321.avif") center/cover no-repeat;
    opacity: 0.12;
    filter: saturate(1.1);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin-bottom: 1rem;
}

.eyebrow {
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
}

.lead {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.6rem 0 1rem;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.85), rgba(57, 255, 20, 0.4));
    color: #0b120b;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.primary-btn:hover,
.primary-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(57, 255, 20, 0.55);
}

.ghost-btn {
    background: transparent;
    color: var(--accent);
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
    background: rgba(57, 255, 20, 0.1);
    transform: translateY(-2px);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(57, 255, 20, 0.12);
    border: 1px solid rgba(57, 255, 20, 0.25);
    font-size: 0.8rem;
    color: var(--accent);
}

.hero-panel {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 1.8rem;
    border: 1px solid rgba(57, 255, 20, 0.25);
    box-shadow: var(--shadow);
}

.hero-panel h3 {
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.hero-panel ul {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.hero-panel li {
    color: var(--muted);
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
}

.hero-panel li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.scroll-down {
    width: 40px;
    height: 40px;
    margin: 2.5rem auto 0;
    animation: scroll-bounce 1.5s infinite;
}

@keyframes scroll-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
}

/* Focus cards */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}

.focus-card {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 1.4rem;
    border: 1px solid rgba(57, 255, 20, 0.2);
    box-shadow: var(--shadow);
}

.focus-card h3 {
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.focus-card p {
    color: var(--muted);
}

/* Search Bar */
.search-bar-container {
    width: 100%;
    max-width: 600px;
    margin: 1.6rem 0 2rem;
}

.search-bar {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(57, 255, 20, 0.08);
    border: 2px solid rgba(57, 255, 20, 0.3);
    border-radius: 10px;
    font-family: 'M PLUS Code Latin', monospace;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.search-bar:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.45);
    background: rgba(57, 255, 20, 0.12);
}

.search-bar::placeholder {
    color: #666;
}

/* Torrents Grid */
.torrents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.4rem;
    width: 100%;
}

.torrent-card {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.05), rgba(57, 255, 20, 0.02));
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 14px;
    padding: 1.4rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.torrent-card:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.12), rgba(57, 255, 20, 0.08));
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(57, 255, 20, 0.2);
}

.torrent-icon {
    font-size: 2.4rem;
    text-align: left;
}

.torrent-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.torrent-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(57, 255, 20, 0.18);
    color: var(--accent);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid rgba(57, 255, 20, 0.4);
    width: fit-content;
}

.torrent-description {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    flex-grow: 1;
}

.torrent-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(57, 255, 20, 0.2);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.meta-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta-value {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
}

/* Tools & Guidelines */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}

.tool-card {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 1.4rem;
    border: 1px solid rgba(57, 255, 20, 0.2);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tool-card h3 {
    color: var(--accent);
}

.tool-card p {
    color: var(--muted);
}

.tool-card ol {
    padding-left: 1.2rem;
    color: var(--muted);
    display: grid;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.tool-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.inline-link {
    color: var(--accent);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(57, 255, 20, 0.4);
    padding-bottom: 0.15rem;
}

.legal-note {
    margin-top: 1.6rem;
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.9rem;
}

.guidelines-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}

.guideline-card {
    background: rgba(57, 255, 20, 0.05);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 14px;
    padding: 1.4rem;
}

.guideline-card h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.guideline-card ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.guideline-card li {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    padding-left: 1.1rem;
    position: relative;
}

.guideline-card li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Stats */
.stats-section {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.08), rgba(57, 255, 20, 0.02));
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 14px;
    padding: 1.4rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.1rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Footer */
.footer-section {
    border-top: 1px solid rgba(57, 255, 20, 0.2);
}

.footer-content {
    text-align: center;
    display: grid;
    gap: 0.8rem;
}

.footer-title {
    font-size: 1rem;
    color: var(--muted);
}

.footer-text {
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.5);
}

/* Accent */
.accent {
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

/* Responsive */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .site-header {
        gap: 1rem;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 1rem 1.2rem;
    }
    .site-nav {
        gap: 0.6rem;
        font-size: 0.82rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .primary-btn,
    .ghost-btn {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .brand-title {
        font-size: 1rem;
    }
    .brand-subtitle {
        font-size: 0.7rem;
    }
    .site-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nav-link {
        width: 100%;
        text-align: center;
    }
    .hero-panel {
        padding: 1.4rem;
    }
}

@media (max-width: 420px) {
    .section {
        padding: 2.6rem 0;
    }
    .hero-copy h1 {
        font-size: 2rem;
    }
    .lead {
        font-size: 0.95rem;
    }
    .badge {
        font-size: 0.7rem;
    }
    .torrents-grid {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }
}
    flex-direction: column;
    gap: 20px;
}

.footer-content p {
    font-size: 1.1rem;
    color: #aaa;
}

.nav-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.2), rgba(57, 255, 20, 0.1));
    border: 2px solid #39ff14;
    border-radius: 8px;
    color: #39ff14;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.4), rgba(57, 255, 20, 0.2));
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
    transform: scale(1.05);
}

.footer-text {
    color: #555;
    font-size: 0.9rem;
}

/* Section Headers */
section h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    section {
        min-height: auto;
        padding: 30px 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .content-box {
        padding: 25px;
    }

    .torrents-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 10px;
    }

    .guidelines-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .content-box {
        padding: 15px;
    }

    .content-box p {
        font-size: 1rem;
    }

    .torrents-grid {
        grid-template-columns: 1fr;
    }

    .torrent-card {
        padding: 15px;
    }

    .torrent-title {
        font-size: 1.1rem;
    }

    .guidelines-container {
        gap: 15px;
    }

    .guideline-card {
        padding: 15px;
    }

    .guideline-card h3 {
        font-size: 1.1rem;
    }

    .guideline-card li {
        font-size: 0.85rem;
    }
}
