:root {
    --bg: #eef0ff;
    --bg-soft: #f7f7ff;
    --primary: #6b5bd6;
    --primary-dark: #5a4cc7;
    --accent: #f6a950;
    --accent-2: #36b4a7;
    --ink: #2f2d4f;
    --muted: #6c6a86;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(92, 78, 190, 0.18);
    --radius: 20px;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Nunito", "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #ebeefe 0%, #f7f8ff 60%, #f1f3ff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.topbar {
    background: rgba(238, 240, 255, 0.9);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(91, 80, 189, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #3d3575;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 600;
    color: #4c4770;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #5e5a86;
}

.lang-switch a {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(91, 80, 189, 0.2);
}

.lang-switch a.active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 20px rgba(91, 80, 189, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(91, 80, 189, 0.28);
}

.btn.secondary {
    background: #fff;
    color: var(--primary);
    border: 2px solid rgba(91, 80, 189, 0.2);
    box-shadow: none;
}

.hero {
    padding: 60px 0 40px;
    scroll-margin-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 40px;
}

.hero h1 {
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 2.2vw + 1.4rem, 3rem);
    margin: 0 0 16px;
}

.hero p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-visual {
    background: radial-gradient(circle at top, #f4f2ff 0%, #e9eaff 70%);
    border-radius: 28px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.features {
    padding: 30px 0 60px;
    scroll-margin-top: 100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: 0 10px 22px rgba(102, 94, 171, 0.1);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
}

.feature-icon.orange {
    background: linear-gradient(135deg, #f8b26a, #f26a4c);
}

.feature-icon.purple {
    background: linear-gradient(135deg, #7c6af2, #5a4cc7);
}

.feature-icon.teal {
    background: linear-gradient(135deg, #4cc9b0, #2d9f9a);
}

.feature-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.feature-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.pricing {
    padding: 30px 0 60px;
    scroll-margin-top: 100px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.section-title::before,
.section-title::after {
    content: "";
    height: 2px;
    width: 120px;
    background: rgba(91, 80, 189, 0.2);
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.plan {
    background: var(--card);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 14px 28px rgba(93, 81, 191, 0.15);
    position: relative;
}

.plan.featured {
    background: linear-gradient(180deg, #6b5bd6 0%, #5a4cc7 100%);
    color: #fff;
    transform: translateY(-10px);
}

.plan.featured .plan-tag {
    background: #f6b75f;
    color: #4a3f82;
}

.plan h3 {
    margin: 0 0 12px;
    font-family: "Poppins", "Segoe UI", sans-serif;
}

.plan-price {
    font-size: 1.6rem;
    font-weight: 700;
}

.plan-period {
    color: inherit;
    opacity: 0.8;
    font-weight: 600;
}

.plan-detail {
    margin: 16px 0 18px;
    font-weight: 600;
}

.plan-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eef0ff;
    color: #5a4cc7;
    font-size: 0.85rem;
    font-weight: 700;
}

.pricing-cta {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.how {
    padding: 40px 0 70px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.how-card {
    background: #f5f6ff;
    border-radius: 24px;
    padding: 20px;
    position: relative;
    box-shadow: 0 12px 26px rgba(100, 92, 180, 0.12);
}

.how-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    position: absolute;
    top: -18px;
    left: 20px;
}

.how-card h4 {
    margin-top: 26px;
    margin-bottom: 12px;
}

.how-note {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.faq {
    padding: 30px 0 70px;
    scroll-margin-top: 100px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

details {
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 10px 24px rgba(93, 81, 191, 0.12);
}

summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.footer {
    background: #dfe3fb;
    padding: 24px 0;
    font-weight: 600;
    color: #4b4874;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

@media (max-width: 900px) {
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.contact-section {
    padding: 40px 0 80px;
    scroll-margin-top: 100px;
}

.contact-card {
    background: #fff;
    border-radius: 26px;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(92, 78, 190, 0.12);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #4c4770;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid #e1e4f5;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(107, 91, 214, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
}

.alert.success {
    background: #dbfce6;
    color: #2b7a4b;
}

.alert.error {
    background: #ffe3e3;
    color: #cc4545;
}