:root {
    --bg-color: #0f1115;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --primary-color: #6366f1;
    --accent-color: #8b5cf6;
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-gradient {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.background-gradient::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    transform: translate(-50%, -50%);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.highlight {
    color: var(--primary-color);
}

/* Header & Navigation */
.header {
    padding: 20px 0;
    position: fixed;
    /* Sticky header */
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background 0.3s;
    backdrop-filter: blur(5px);
}

.header.scrolled {
    background: rgba(15, 17, 21, 0.8);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* Archive Page */
.archive-main {
    padding-top: 120px;
    min-height: 100vh;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding-bottom: 80px;
}

.archive-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    backdrop-filter: blur(10px);
}

.archive-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
}

.card-content {
    padding: 32px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.card-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 12px;
    color: var(--accent-color);
}

/* Article View Page */
.article-main {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.text-container {
    max-width: 720px;
    /* Optimal reading width */
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 40px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.issue-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    display: flex;
    gap: 16px;
}

.article-body {
    font-size: 1.125rem;
    color: #e2e8f0;
}

.article-body p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 48px 0 24px;
    color: var(--text-primary);
}

.quote {
    border-left: 4px solid var(--primary-color);
    padding-left: 24px;
    margin: 40px 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.quote span {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
}

.article-list {
    list-style: none;
    counter-reset: article-list;
}

.article-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 24px;
}

.article-list li::before {
    counter-increment: article-list;
    content: counter(article-list);
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.signature {
    margin-top: 60px;
    font-style: italic;
    color: var(--text-secondary);
}

.article-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.feedback-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.feedback-btn {
    padding: 12px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 2rem;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Form Styles */
.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    flex-wrap: wrap;
}

.input-group {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

input[type="email"] {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="email"]:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.cta-button {
    padding: 16px 32px;
    background: var(--gradient-main);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.cta-button i {
    font-size: 0.9rem;
}

.form-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Card Visuals */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-stack {
    position: relative;
    width: 280px;
    height: 360px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card i {
    font-size: 3rem;
    margin-bottom: 24px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-secondary);
}

.card-1 {
    transform: rotate(-10deg) translate(-20px, -20px);
    z-index: 1;
    opacity: 0.6;
}

.card-2 {
    transform: rotate(5deg) translate(10px, -10px);
    z-index: 2;
    opacity: 0.8;
}

.card-3 {
    transform: rotate(-2deg) translate(0, 0);
    z-index: 3;
}

.hero-visual:hover .card-1 {
    transform: rotate(-15deg) translate(-50px, -30px);
}

.hero-visual:hover .card-2 {
    transform: rotate(10deg) translate(40px, -20px);
}

.hero-visual:hover .card-3 {
    transform: scale(1.05);
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: #0b0d10;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

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

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

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

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive */
@media (max-width: 968px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .subscribe-form {
        margin: 0 auto;
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .card-stack {
        width: 240px;
        height: 300px;
    }

    .card i {
        font-size: 2.5rem;
    }
}