/* ============================================
   AlwaysViral Tools – Free Instagram Tools Hub
   Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-body: #fff0f5;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --accent-primary: #be185d;
    --accent-secondary: #9d174d;
    --border-color: #fbcfe8;
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, #be185d 0%, #831843 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(252, 231, 243, 0.1) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 10; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Tools Grid ---------- */
.tools-section {
    max-width: 1200px;
    margin: -60px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: #fce7f3;
    color: var(--accent-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    background: var(--accent-primary);
    color: #fff;
    transform: rotate(-5deg);
}

.tool-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.tool-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 14px;
}

.tool-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.tool-card:hover .tool-link svg {
    transform: translateX(4px);
}

/* ---------- SEO Section ---------- */
.seo-section {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 0 24px;
}

.seo-article {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 64px;
    box-shadow: var(--shadow-md);
}

.seo-article h2 { font-size: 32px; margin: 48px 0 24px; letter-spacing: -1px; }
.seo-article h2:first-of-type { margin-top: 0; }
.seo-article h3 { font-size: 22px; margin: 32px 0 16px; }
.seo-article p { font-size: 17px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.8; }
.seo-article ul { margin-bottom: 32px; padding-left: 20px; }
.seo-article li { font-size: 17px; color: var(--text-secondary); margin-bottom: 12px; }
.seo-article strong { color: var(--text-primary); }

/* ---------- FAQ Section ---------- */
.faq-list { margin-top: 40px; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

@media (max-width: 768px) {
    .hero { padding: 80px 20px; }
    .hero-title { font-size: 36px; }
    .seo-article { padding: 32px 24px; }
    .tools-grid { grid-template-columns: 1fr; }
}
