/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e4e4e7;
    background: #0a0a0b;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
header {
    background: rgba(17, 17, 19, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #27272a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { text-decoration: none; }
.logo img { max-height: 44px; width: auto; }

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #e4e4e7;
    transition: all 0.3s ease;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #22c55e;
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus { color: #22c55e; }
.main-nav a:hover::after,
.main-nav a:focus::after { width: 100%; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #0a0a0b 0%, #111113 50%, #0a0a0b 100%);
    padding: 130px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #a1a1aa;
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
}

.hero-stat { text-align: center; }

.hero-stat strong {
    display: block;
    font-size: 1.8rem;
    color: #f4f4f5;
    font-weight: 800;
}

.hero-stat span {
    font-size: 0.85rem;
    color: #71717a;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

/* ===== Ranking Section ===== */
.ranking-section {
    padding: 80px 0;
}

.ranking-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #f4f4f5;
}

.section-subtitle {
    text-align: center;
    color: #71717a;
    font-size: 1rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Rank Cards */
.rank-card {
    background: linear-gradient(145deg, #18181b, #1a1a1d);
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.rank-card:hover {
    border-color: #3f3f46;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Featured Card */
.rank-featured {
    border-color: #22c55e;
    background: linear-gradient(145deg, #18181b, #1a1a1d);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.1), 0 8px 32px rgba(34, 197, 94, 0.08);
}

.rank-featured:hover {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), 0 16px 48px rgba(34, 197, 94, 0.12);
}

.rank-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #27272a;
    color: #a1a1aa;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 8px;
}

.rank-featured .rank-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.rank-recommended {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
}

.rank-card-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.rank-icon {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #27272a;
}

.rank-featured .rank-icon {
    width: 80px;
    height: 80px;
    border-color: rgba(34, 197, 94, 0.3);
}

.rank-info { flex: 1; }

.rank-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f4f4f5;
    margin-bottom: 6px;
}

.rank-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 1px;
}

.reviews {
    font-size: 0.8rem;
    color: #71717a;
}

.rank-info p {
    color: #a1a1aa;
    font-size: 0.92rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.rank-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    background: rgba(34, 197, 94, 0.08);
    color: #4ade80;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.rank-card-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.btn-rank-primary {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-rank-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.btn-rank-site {
    display: inline-block;
    background: transparent;
    color: #a1a1aa;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    text-align: center;
    border: 1px solid #3f3f46;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-rank-site:hover {
    border-color: #52525b;
    color: #e4e4e7;
    background: rgba(63, 63, 70, 0.3);
}

/* ===== Info Section ===== */
.info-section {
    padding: 80px 0;
    background: #111113;
}

.info-section h2,
.criteria-section h2,
.steps-section h2,
.faq-section h2,
.about-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #f4f4f5;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: linear-gradient(145deg, #18181b, #1a1a1d);
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #22c55e;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.info-card img {
    margin: 0 auto 20px;
    filter: brightness(0) saturate(100%) invert(64%) sepia(85%) saturate(2274%) hue-rotate(95deg) brightness(103%) contrast(89%);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #f4f4f5;
}

.info-card p {
    color: #a1a1aa;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== Criteria Section ===== */
.criteria-section {
    padding: 80px 0;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.criteria-card {
    background: linear-gradient(145deg, #18181b, #1a1a1d);
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.criteria-card:hover {
    border-color: #22c55e;
    transform: translateY(-4px);
}

.criteria-card img {
    margin: 0 auto 16px;
    filter: brightness(0) saturate(100%) invert(64%) sepia(85%) saturate(2274%) hue-rotate(95deg) brightness(103%) contrast(89%);
    transition: transform 0.3s ease;
}

.criteria-card:hover img { transform: scale(1.1); }

.criteria-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f4f4f5;
}

.criteria-card p {
    color: #a1a1aa;
    font-size: 0.88rem;
}

/* ===== Steps Section ===== */
.steps-section {
    padding: 80px 0;
    background: #111113;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: linear-gradient(145deg, #18181b, #1a1a1d);
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #22c55e;
    transform: translateY(-4px);
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0 auto 16px;
}

.step-card img {
    margin: 0 auto 16px;
    filter: brightness(0) saturate(100%) invert(64%) sepia(85%) saturate(2274%) hue-rotate(95deg) brightness(103%) contrast(89%);
    transition: transform 0.3s ease;
}

.step-card:hover img { transform: scale(1.1); }

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f4f4f5;
}

.step-card p {
    color: #a1a1aa;
    font-size: 0.88rem;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(145deg, #18181b, #1a1a1d);
    border: 1px solid #27272a;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-item:hover { border-color: #3f3f46; }
.faq-item:hover::before,
.faq-item.active::before { transform: scaleY(1); }

.faq-item.active {
    border-color: #22c55e;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.1);
}

.faq-item h3 {
    color: #e4e4e7;
    margin: 0;
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item h3:hover { color: #22c55e; }

.faq-item h3::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: bold;
    color: #22c55e;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active h3 { color: #22c55e; }
.faq-item.active h3::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: #a1a1aa;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
    background: #111113;
    text-align: center;
}

.about-section p {
    max-width: 700px;
    margin: 0 auto;
    color: #a1a1aa;
    font-size: 1rem;
    line-height: 1.7;
}

.about-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 28px;
}

.about-links a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.about-links a:hover { text-decoration: underline; }

/* ===== Footer ===== */
footer {
    background: #0a0a0b;
    border-top: 1px solid #27272a;
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    margin-bottom: 14px;
    max-height: 36px;
    width: auto;
}

.footer-brand p {
    color: #71717a;
    font-size: 0.88rem;
    line-height: 1.5;
}

.footer-links h4 {
    color: #f4f4f5;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
    color: #71717a;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: #22c55e; }

.footer-bottom {
    border-top: 1px solid #1c1c1f;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: #52525b;
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.footer-disclaimer {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.75rem !important;
    color: #3f3f46 !important;
    line-height: 1.5;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .info-grid,
    .criteria-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(17, 17, 19, .98);
        backdrop-filter: blur(12px);
        border-top: 1px solid #27272a;
        padding: 20px;
    }

    .main-nav.open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .hero { padding: 110px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-stat strong { font-size: 1.4rem; }

    .rank-card-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .rank-card-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .rank-info { text-align: center; }
    .rank-tags { justify-content: center; }

    .rank-card-right {
        width: 100%;
        flex-direction: row;
    }

    .btn-rank-primary,
    .btn-rank-site { flex: 1; }

    .rank-badge { top: 12px; left: 12px; }
    .rank-recommended { top: 12px; right: 12px; font-size: 0.7rem; }

    .info-grid,
    .criteria-grid,
    .steps-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-brand { text-align: center; }
    .footer-brand img { margin: 0 auto 14px; }

    .about-links { flex-direction: column; gap: 16px; }

    section { padding: 60px 0; }
    .ranking-section { padding: 60px 0; }

    .ranking-section h2,
    .info-section h2,
    .criteria-section h2,
    .steps-section h2,
    .faq-section h2,
    .about-section h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 100px 0 50px; }
    .hero h1 { font-size: 1.7rem; }

    .rank-card { padding: 20px 16px; }
    .rank-icon { width: 56px !important; height: 56px !important; }
    .rank-info h3 { font-size: 1.1rem; }

    .hero-stats { gap: 16px; }
    .hero-stat strong { font-size: 1.2rem; }

    .rank-card-right { flex-direction: column; }
    .btn-rank-primary,
    .btn-rank-site { width: 100%; }
}
