/* ===== CrawlZen Shared Styles (subpages) ===== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #09090b;
    color: #e4e4e7;
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #a78bfa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.glow-purple { background: #7c3aed; }
.glow-blue { background: #3b82f6; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(9, 9, 11, 0.7);
    border-bottom: 1px solid rgba(63, 63, 70, 0.3);
    transition: all 0.3s ease;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}
.logo-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #a1a1aa;
    transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.btn-ghost {
    background: transparent;
    color: #e4e4e7;
    border: 1px solid rgba(63, 63, 70, 0.5);
}
.btn-ghost:hover { background: rgba(63, 63, 70, 0.3); border-color: rgba(99, 102, 241, 0.4); }
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }
.hamburger { display: none; background: none; border: none; color: #e4e4e7; cursor: pointer; }

/* Page Header */
.page-header {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
}
.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.page-header p {
    color: #a1a1aa;
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.page-header .last-updated {
    color: #52525b;
    font-size: 0.85rem;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

/* Content (legal pages, about, etc.) */
.page-content {
    padding: 0 0 120px;
    position: relative;
    z-index: 1;
}
.page-content .container { max-width: 800px; }
.content-card {
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid rgba(63, 63, 70, 0.3);
    border-radius: 20px;
    padding: 48px;
}
.content-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 40px 0 16px;
    letter-spacing: -0.02em;
    color: #f4f4f5;
}
.content-card h2:first-child { margin-top: 0; }
.content-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 28px 0 12px;
    color: #d4d4d8;
}
.content-card p {
    color: #a1a1aa;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}
.content-card ul, .content-card ol {
    color: #a1a1aa;
    margin-bottom: 16px;
    padding-left: 24px;
    font-size: 0.95rem;
    line-height: 1.8;
}
.content-card ul { list-style: disc; }
.content-card ol { list-style: decimal; }
.content-card li { margin-bottom: 8px; }
.content-card a {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.content-card a:hover { color: #c4b5fd; }
.content-card strong { color: #d4d4d8; }
.content-card hr {
    border: none;
    border-top: 1px solid rgba(63, 63, 70, 0.3);
    margin: 32px 0;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(63, 63, 70, 0.3);
    padding: 64px 0 40px;
}
.footer .container { max-width: 1200px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: #71717a; font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #d4d4d8;
    margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
    font-size: 0.88rem;
    color: #71717a;
    transition: color 0.2s;
}
.footer-col a:hover { color: #a78bfa; }
.footer-col a.coming-soon {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
.footer-col a.coming-soon::after {
    content: ' ·';
    font-size: 0.7rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(63, 63, 70, 0.2);
    color: #52525b;
    font-size: 0.82rem;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(39, 39, 42, 0.5);
    border: 1px solid rgba(63, 63, 70, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.footer-social a:hover { color: #a78bfa; border-color: rgba(99, 102, 241, 0.3); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(63, 63, 70, 0.3);
    padding: 24px;
    z-index: 99;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: #a1a1aa;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid rgba(63, 63, 70, 0.15);
}
.mobile-menu a:hover { color: #fff; }

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .content-card { padding: 32px 24px; }
    .page-header { padding: 140px 0 60px; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
}
