/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variables */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --text-color: #e5e7eb;
    --text-muted: #9ca3af;
    --dark-bg: #111827;
    --darker-bg: #0f172a;
    --card-bg: #1f2937;
    --border-color: #374151;
    --border-radius: 8px;
    --container-max: 1100px;
    --transition: all 0.3s ease;
}

/* Typography */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background: var(--dark-bg);
}

/* Animations */
.fade-in-view {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.fade-in-view.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optimize animations with will-change */
.card {
    will-change: transform;
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    padding: 1.5rem 0;
    background: var(--darker-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color);
}

nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
}

nav a:hover {
    color: var(--primary-color);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.button:hover::before {
    transform: translateX(100%);
}

.button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Cards */
.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Hero */
.hero {
    background: var(--darker-bg);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.trust-note {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.trust-note span {
    display: inline-flex;
    align-items: center;
}

.trust-note span::after {
    content: '·';
    margin: 0 0.5rem;
    color: var(--text-muted);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* How it Works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
    position: relative;
}

.step {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.step::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step:nth-child(1)::before { content: '1'; }
.step:nth-child(2)::before { content: '2'; }
.step:nth-child(3)::before { content: '3'; }

.step h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-color);
}

.step p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-description {
    max-width: 700px;
    margin: 3rem auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 0 1rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-item h3 {
    padding: 1.5rem;
    margin: 0;
    cursor: pointer;
    position: relative;
    user-select: none;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.faq-item h3::before {
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transition: transform 0.2s ease;
    transform-origin: center;
    position: relative;
}

.faq-item h3::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    width: 10px;
    height: 2px;
    background: var(--primary-color);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.faq-item:not(.is-closed) h3::before {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem 3.5rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background: var(--darker-bg);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-cta {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-cta h2 {
    margin-bottom: 1.5rem;
}

.footer-note {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.footer-info {
    text-align: center;
    font-size: 0.875rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-info a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Accessibility */
.button:focus,
a:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
