:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --bg-dark: #0b0f1a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.06);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent: #10b981;
    --accent-light: #34d399;
    --warning: #f59e0b;
    --danger: #ef4444;
    --ad-bg: rgba(255, 255, 255, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
}

.blur-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.blur-1 {
    top: -100px;
    right: -100px;
    background: var(--primary);
}

.blur-2 {
    bottom: -100px;
    left: -100px;
    background: var(--accent);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #818cf8, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.hero {
    padding: 100px 5% 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
    display: inline-block;
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 40px 5%;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    background: var(--card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-logo {
    width: 48px;
    height: 48px;
    background: #1e293b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

.tag {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.tag.editor-pick {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.tag.trending {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-light);
}

.tag.best-for {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    opacity: 0.9;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* Card Meta (Pricing, Best For) */
.card-meta {
    margin: 1.5rem 0;
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.meta-item {
    margin-bottom: 0.4rem;
    display: flex;
    justify-content: space-between;
}

.meta-label {
    color: var(--text-muted);
    font-weight: 600;
}

.meta-value {
    color: var(--text-main);
    font-weight: 700;
}

/* Accordion Interaction */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.card.active .accordion-content {
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
}

.more-details-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.more-details-btn:hover {
    border-color: var(--primary-light);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.more-details-btn::after {
    content: "↓";
    transition: transform 0.3s;
}

.card.active .more-details-btn::after {
    transform: rotate(180deg);
}

.expanded-detail {
    padding-top: 1.5rem;
    border-top: 1px dashed var(--glass-border);
    margin-top: 1.5rem;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pc-box h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.pc-box.pros h4 {
    color: var(--accent-light);
}

.pc-box.cons h4 {
    color: var(--danger);
}

.pc-list {
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pc-list li {
    margin-bottom: 0.3rem;
}

.pc-list li::before {
    content: "- ";
}

footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

/* Slider Styles */
.slider-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.slide-content {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.2));
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.slide-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.slide-content p {
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

.slide-btn {
    padding: 0.8rem 2rem;
    border-radius: 12px;
    background: white;
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.slide-btn:hover {
    transform: scale(1.05);
    background: var(--primary);
    color: white;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary);
}

/* Newsletter Styles */
.newsletter-section {
    padding: 80px 5%;
    text-align: center;
    background: rgba(99, 102, 241, 0.05);
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.newsletter-form {
    margin-top: 2rem;
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form button {
    padding: 1rem 2rem;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #059669;
}

/* Blog Styles */
.section-title {
    text-align: center;
    margin: 60px 0 30px;
    font-size: 2.2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 5% 60px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.blog-card:hover {
    border-color: var(--primary);
}

.blog-image {
    width: 100%;
    height: 180px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-info {
    padding: 1.5rem;
}

.blog-info h4 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.blog-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-dark);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.close-modal {
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
}

/* AI Category Grid Styles */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 40px 5% 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    /* Remove default link underline */
    color: inherit;
    /* Remove default link color */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-12px);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s;
}

.category-card:hover .icon {
    transform: scale(1.2) rotate(5deg);
}

.category-card h3 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Detail Page Specifics */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 600;
    transition: 0.3s;
}

.back-btn:hover {
    color: var(--primary);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 20px 0;
}

.visit-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.visit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Comparison Table Styles */
.comparison-container {
    padding: 20px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.table-wrapper {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary);
    /* 강조된 테두리 */
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

th,
td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    /* 헤더 색상 변경 */
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

td {
    color: var(--text-main);
    font-size: 0.95rem;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

tr:last-child td {
    border-bottom: none;
}

.table-tool-name {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

.table-price-tag {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* AdSense Placeholders */
.ad-placeholder {
    background: var(--ad-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 2rem auto;
    max-width: 728px;
    height: 90px;
}

.ad-sidebar {
    width: 300px;
    height: 600px;
    margin: 1rem;
}

/* Utils */
.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

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

/* Trend Report Styles */
.trend-section {
    margin-top: 4rem;
}

.section-subtitle {
    margin-bottom: 2rem;
}

.section-subtitle h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.section-subtitle p {
    color: var(--text-muted);
    font-size: 1rem;
}

.chart-container {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.trend-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
    cursor: default;
}

.trend-card:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.trend-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
    min-width: 30px;
}

.trend-info {
    flex: 1;
}

.trend-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.trend-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trend-stat {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.trend-stat.up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.trend-stat.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

nav .nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}