/* == Reset & Base == */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #512BD4;
    --primary-dark: #3f1fa8;
    --secondary: #0078D4;
    --bg: #ffffff;
    --bg-alt: #f7f7fb;
    --text: #1e1e1e;
    --text-muted: #555;
    --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* == Accessibility == */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    z-index: 200;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* == Buttons == */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

.btn-outline-dark {
    background: transparent;
    color: var(--text);
    border-color: #ccc;
}
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }

.btn-heart {
    background: #fff;
    color: #d63384;
    border-color: #d63384;
}
.btn-heart:hover { background: #d63384; color: #fff; }

/* == Hero == */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 7rem 0 5rem;
    text-align: center;
}

.hero-icon { font-size: 3.5rem; margin-bottom: 0.5rem; }

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.hero .sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* == Features == */
.features {
    padding: 5rem 0;
    background: var(--bg-alt);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* == Support == */
.support {
    padding: 5rem 0;
    text-align: center;
    background: var(--bg-alt);
}

.support h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.support > .container > p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }

.support-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* == Footer == */
.footer {
    background: #1e1e1e;
    color: rgba(255,255,255,0.7);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.4);
    text-underline-offset: 2px;
}
.footer a:hover { text-decoration-color: rgba(255,255,255,0.9); }
.footer a:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 2px; border-radius: 2px; }

/* == Reduced motion == */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* == Responsive == */
@media (max-width: 640px) {
    .hero { padding: 4rem 0 3rem; }
    .hero h1 { font-size: 2rem; }
    .hero .tagline { font-size: 1.05rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .feature-grid { grid-template-columns: 1fr; }
}
