:root {
    --primary: #7B4B94;
    --primary-dark: #5D3670;
    --primary-light: #9B6BB4;
    --accent: #E8DDF0;
    --text-dark: #2C2C2C;
    --text-light: #666;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

nav {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a { font-weight: 600; color: var(--text-dark); }
.nav-links a:hover { color: var(--primary); }

.logo { height: 40px; }

.page-hero {
    background: linear-gradient(135deg, #f5eef9 0%, #ffffff 50%, #f0e7f8 100%);
    padding: 4rem 2rem 3rem;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 0.9rem 0 1rem;
}

.hero-lede {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    border: 2px solid transparent;
    font-weight: 600;
    background: var(--white);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--white);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.section {
    padding: 3.5rem 2rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 700px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border: 1px solid rgba(123, 75, 148, 0.12);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.use-case-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: var(--accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.use-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.card p, .card li { color: var(--text-light); }

.tag-list {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

.list {
    margin-top: 1rem;
    padding-left: 1.1rem;
}

.list li { margin-bottom: 0.4rem; }

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.use-case-card {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid rgba(123, 75, 148, 0.12);
    padding: 1.75rem;
    box-shadow: 0 12px 30px rgba(123, 75, 148, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.use-case-card h3 { color: var(--primary-dark); }

.use-case-card p { color: var(--text-light); }

.use-case-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2.5rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: var(--primary-light); }

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 0.85rem 1.2rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(123, 75, 148, 0.35);
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1500;
}
.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 768px) {
    .nav-container { flex-direction: column; align-items: flex-start; }
    .hero-actions, .nav-links { width: 100%; }
    .hero-actions .btn { flex: 1; justify-content: center; }
    .back-to-top { right: 16px; bottom: 16px; }
}
