/* ThreadSync Global Styles */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Animated gradient background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Typography */
h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

h2 {
    color: #3b82f6;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #d1d5db;
    line-height: 1.8;
}

a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #60a5fa; /* Better contrast blue instead of purple */
    text-decoration: underline;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); /* Better contrast gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Navigation */
nav.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3b82f6;
}

.nav-cta {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    color: #3b82f6 !important;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    z-index: 40;
    padding: 80px 20px 40px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 15px;
    font-size: 1.2rem;
    color: #e5e7eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: #3b82f6;
    padding-left: 25px;
}

.mobile-cta {
    display: block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    margin-top: 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 51;
    display: none;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 10px;
}

/* Hero Section */
.hero {
    padding: 2rem 0;
    margin-top: 80px;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Hero with container - remove double padding */
.hero .container {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.5rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 60px 24px 20px;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Content Card (for legal pages) */
.content-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 40px;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb); /* Blue gradient for better contrast */
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary {
    background: transparent;
    color: #3b82f6;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid #3b82f6;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* Ensure all button hover states override inline styles */
a.btn-primary:hover,
button.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: white !important;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2); /* Add background on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* Contact Links */
.contact-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: #93c5fd; /* Lighter blue on hover for better contrast */
    transform: translateX(5px);
}

/* Footer - Matching main page style */
.footer {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(31, 41, 55, 1); /* border-gray-800 */
    padding: 2rem 0;
    margin-top: 5rem;
    position: relative;
    z-index: 10;
    width: 100%;
    transition: all 0.3s ease;
}

/* For pages with sections right before footer */
.container:last-of-type {
    padding-bottom: 0;
}

/* Add hover effect for footer sections */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(147, 51, 234, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.footer-wrapper {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-section {
    position: relative;
    z-index: 10;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #9ca3af;
}

.footer-heading {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid rgba(31, 41, 55, 1); /* border-gray-800 */
    padding-top: 2rem;
    padding-bottom: 0;
    margin-top: 2rem;
    text-align: center;
    color: #6b7280; /* text-gray-400 */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .content-card {
        padding: 20px;
    }
}

/* Page-specific styles for legal pages */
.effective-date {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.contact-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: #3b82f6;
}

strong {
    color: #f3f4f6;
}

.important-notice {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 1.5rem;
    border-radius: 1rem;
    margin: 2rem 0;
}

.important-notice strong {
    color: #fbbf24;
}