/* ==============================================
   WebCraft SEO Pages - Styles
   Extracted from homepage index.html for consistency
   ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4285f4;
    --primary-dark: #1a73e8;
    --primary-light: #8ab4f8;
    --secondary: #34a853;
    --accent: #ea4335;
    --bg-primary: #0f1117;
    --bg-secondary: #141821;
    --bg-tertiary: #0a0d14;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --glass-bg: rgba(66, 133, 244, 0.06);
    --glass-border: rgba(66, 133, 244, 0.15);
    --blue-glow: rgba(66, 133, 244, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f1117 0%, #141821 50%, #0a0d14 100%);
    z-index: -4;
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

/* Dynamic Background */
.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -3;
    pointer-events: none;
}

.dynamic-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(66, 133, 244, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26, 115, 232, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(138, 180, 248, 0.05) 0%, transparent 60%);
    animation: gradientMove 15s ease infinite;
    will-change: transform;
}

.dynamic-background::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 60% 80%, rgba(79, 172, 254, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 30% 20%, rgba(96, 125, 139, 0.05) 0%, transparent 50%);
    animation: gradientMoveReverse 20s ease infinite;
    will-change: transform;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 { width: 400px; height: 400px; background: rgba(66, 133, 244, 0.12); top: 10%; left: 10%; animation-delay: 0s; opacity: 0.6; }
.orb-2 { width: 500px; height: 500px; background: rgba(26, 115, 232, 0.1); top: 60%; right: 15%; animation-delay: -5s; opacity: 0.5; }
.orb-3 { width: 350px; height: 350px; background: rgba(79, 172, 254, 0.08); bottom: 10%; left: 50%; animation-delay: -10s; opacity: 0.4; }

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(66, 133, 244, 0.35);
    border-radius: 50%;
    animation: floatParticle 15s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(66, 133, 244, 0.3);
}

@keyframes gradientMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, 5%) rotate(120deg); }
    66% { transform: translate(-5%, 5%) rotate(240deg); }
}

@keyframes gradientMoveReverse {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-5%, -5%) rotate(-120deg); }
    66% { transform: translate(5%, -5%) rotate(-240deg); }
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(30px, -30px) scale(1.1); opacity: 0.6; }
    50% { transform: translate(-20px, 20px) scale(0.9); opacity: 0.35; }
    75% { transform: translate(20px, 30px) scale(1.05); opacity: 0.55; }
}

@keyframes floatParticle {
    0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
    10% { opacity: 0.4; }
    50% { transform: translate(150px, -200px) scale(1.2); opacity: 0.7; }
    100% { transform: translate(250px, -250px) scale(0.8); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 29, 41, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(66, 133, 244, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover { color: var(--text-primary); }

.nav-btns {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(66, 133, 244, 0.3);
}

.btn-secondary:hover {
    background: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.5);
    color: var(--primary-light);
}

.btn-primary {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.4);
    background: linear-gradient(135deg, #1a73e8, #4285f4);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* ===== HERO ===== */
.seo-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
}

.seo-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #8ab4f8 50%, #4285f4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 800px;
}

.seo-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ===== SECTIONS ===== */
.seo-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.seo-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.seo-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-light);
}

.seo-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Cards grid */
.seo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.seo-card {
    background: rgba(20, 24, 33, 0.6);
    border: 1px solid rgba(66, 133, 244, 0.12);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.seo-card:hover {
    border-color: rgba(66, 133, 244, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.1);
}

.seo-card .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.seo-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.seo-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Steps */
.seo-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.seo-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(20, 24, 33, 0.6);
    border: 1px solid rgba(66, 133, 244, 0.1);
    border-radius: 16px;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    color: white;
}

.seo-step h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.seo-step p {
    font-size: 0.9rem;
}

/* Benefits list */
.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(20, 24, 33, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(66, 133, 244, 0.08);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.benefits-list li i {
    color: var(--secondary);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Scenarios */
.seo-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.scenario-card {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(26, 115, 232, 0.04));
    border: 1px solid rgba(66, 133, 244, 0.15);
    border-radius: 16px;
    padding: 2rem;
}

.scenario-card .scenario-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.scenario-card h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.scenario-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* FAQ */
.seo-faq {
    margin-top: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid rgba(66, 133, 244, 0.1);
    padding: 1.25rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-top: 1rem;
}

/* Related pages */
.related-pages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.related-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(20, 24, 33, 0.5);
    border: 1px solid rgba(66, 133, 244, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.related-link:hover {
    border-color: rgba(66, 133, 244, 0.3);
    color: var(--primary-light);
    background: rgba(66, 133, 244, 0.08);
    transform: translateX(4px);
}

.related-link i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* CTA final */
.seo-cta-final {
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
}

.seo-cta-final h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.seo-cta-final p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: rgba(20, 24, 33, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(66, 133, 244, 0.15);
    border-radius: 24px 24px 0 0;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 5rem;
    align-items: start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-logo .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s;
    display: inline-block;
    line-height: 1.8;
}

.footer-links li a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .footer-columns { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .seo-steps { grid-template-columns: 1fr; }
    .seo-hero h1 { font-size: 2rem; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .footer-columns { grid-template-columns: repeat(2, 1fr); }
    .seo-hero { padding: 6rem 1.5rem 3rem; }
    .seo-section { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
    .footer-columns { grid-template-columns: 1fr; }
    .site-footer { padding: 3rem 1.5rem 2rem; }
    .nav-btns .btn-secondary { display: none; }
}
