:root {
    --bg-dark: #0d0914;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --primary: #7c3aed;
    --primary-hover: #8b5cf6;
    --secondary: #d8b4fe;
    
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.5) 0%, rgba(216, 180, 254, 0.5) 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Entrance Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Elements start hidden; animations are applied once fonts are loaded */
.navbar,
.hero-title,
.hero-subtitle,
.hero-actions,
.section-title,
.feature-card,
.footer {
    opacity: 0;
}

/* Reveal body (smooth fade) only after fonts.ready resolves */
body.fonts-loaded {
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* Trigger animations on all animated children once fonts are loaded */
body.fonts-loaded .navbar {
    animation: fadeInDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

body.fonts-loaded .hero-title {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

body.fonts-loaded .hero-subtitle:nth-of-type(1) {
    animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

body.fonts-loaded .hero-subtitle:nth-of-type(2) {
    animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

body.fonts-loaded .hero-subtitle:nth-of-type(3) {
    animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
}

body.fonts-loaded .hero-actions {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.54s both;
}

body.fonts-loaded .section-title {
    animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

body.fonts-loaded .feature-card:nth-child(1) {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
body.fonts-loaded .feature-card:nth-child(2) {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
body.fonts-loaded .feature-card:nth-child(3) {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
body.fonts-loaded .feature-card:nth-child(4) {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}
body.fonts-loaded .feature-card:nth-child(5) {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

body.fonts-loaded .footer {
    animation: fadeIn 0.6s ease 0.2s both;
}

body {
    font-family: 'Heebo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.glow-1 {
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-2 {
    bottom: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0 auto 40px;
    max-width: 600px;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(255,255,255,0.05);
    width: 64px;
    height: 64px;
    line-height: 64px;
    text-align: center;
    border-radius: 16px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0 100px;
    position: relative;
}

.faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

.faq-item summary {
    padding: 20px 28px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-right: 16px;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-item summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-item summary h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.faq-item > p {
    padding: 0 28px 24px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links p {
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

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