/* ============================================
   Shortly — Global Styles
   Modern, Clean, Minimalist
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111111;
    background-color: #ffffff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #555555;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Container ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid #111111;
    background: #111111;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-primary {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #111111;
}

.btn-outline:hover {
    background: #111111;
    color: #ffffff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ---- Site Header ---- */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111111;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo:hover {
    color: #111111;
}

.logo i {
    font-size: 1.1rem;
}

/* ---- Hero Section ---- */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: #111111;
}

.text-accent {
    color: #666666;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333333;
}

/* ---- Sections ---- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: #fafafa;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: #666666;
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ---- Steps / How it Works ---- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #ffffff;
    position: relative;
    transition: border-color 0.2s ease;
}

.step-card:hover {
    border-color: #cccccc;
}

.step-number {
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999999;
    background: #f5f5f5;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 2rem;
    color: #111111;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Features Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.feature-card:hover {
    border-color: #cccccc;
}

.feature-icon {
    font-size: 1.5rem;
    color: #111111;
    margin-bottom: 14px;
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-card p {
    color: #666666;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ---- FAQ ---- */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #eaeaea;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #cccccc;
}

.faq-question {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    user-select: none;
}

.faq-question i {
    font-size: 0.8rem;
    color: #999999;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 18px;
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---- Article Interstitial ---- */
.article-page {
    background: #fafafa;
}

.article-main {
    padding: 40px 0 60px;
}

.article-container {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 48px 40px;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #999999;
    font-size: 0.85rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eaeaea;
}

.article-meta i {
    margin-right: 4px;
}

.article-body {
    line-height: 1.85;
    color: #333333;
    font-size: 1rem;
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 28px 0 10px;
    color: #111111;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul {
    margin: 0 0 16px 24px;
}

.article-body li {
    margin-bottom: 6px;
}

/* ---- Redirect Section ---- */
.redirect-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #eaeaea;
}

.redirect-card {
    text-align: center;
    padding: 32px;
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 12px;
}

.redirect-icon {
    font-size: 2.5rem;
    color: #999999;
    margin-bottom: 12px;
}

.redirect-icon .fa-check-circle {
    color: #111111;
}

.redirect-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.redirect-card p {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: #111111;
    width: 0%;
    border-radius: 4px;
    transition: width 1s linear;
}

.btn-redirect {
    display: none;
}

.btn-redirect.visible,
.btn-redirect[style*="inline-flex"] {
    display: inline-flex;
}

/* ---- Ad Slots ---- */
.ad-slot {
    margin: 24px 0;
    text-align: center;
    min-height: 20px;
}

/* ---- Legal Pages ---- */
.page-main {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.page-content {
    max-width: 720px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-date {
    color: #999999;
    font-size: 0.85rem;
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: #111111;
}

.page-content p {
    color: #444444;
    margin-bottom: 14px;
    line-height: 1.75;
}

.page-content ul {
    margin: 0 0 16px 24px;
    color: #444444;
}

.page-content li {
    margin-bottom: 6px;
    line-height: 1.7;
}

/* ---- Error Page (404) ---- */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    text-align: center;
}

.error-content {
    max-width: 450px;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: #e0e0e0;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.04em;
}

.error-content h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.error-content p {
    color: #666666;
    margin-bottom: 28px;
}

/* ---- Footer ---- */
.site-footer {
    background: #fafafa;
    border-top: 1px solid #eaeaea;
    padding: 48px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 32px;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111111;
}

.footer-brand p {
    color: #888888;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111111;
    margin-bottom: 4px;
}

.footer-links a {
    color: #666666;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #111111;
}

.footer-bottom {
    border-top: 1px solid #eaeaea;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #999999;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: #999999;
}

.footer-bottom a:hover {
    color: #111111;
}

/* ---- Alerts ---- */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-success {
    background: #f0faf0;
    border-color: #c8e6c8;
    color: #2e7d32;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.alert-info {
    background: #f0f4ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-container {
        padding: 28px 20px;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .error-code {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 14px 28px;
    }

    .container {
        padding: 0 16px;
    }
}
