:root {
    --primary: #7E57C2;
    --primary-variant: #5E35B1;
    --secondary: #9575CD;
    --background: #EDE7F6;
    --surface: #FFFFFF;
    --on-primary: #FFFFFF;
    --on-background: #212121;
    --on-surface: #212121;

    --text-main: #212121;
    --text-soft: #5f5b6b;
    --text-faint: #7d7890;

    --border: rgba(94, 53, 177, 0.10);
    --border-strong: rgba(94, 53, 177, 0.18);

    --shadow-sm: 0 8px 20px rgba(94, 53, 177, 0.08);
    --shadow-md: 0 16px 40px rgba(94, 53, 177, 0.14);
    --shadow-lg: 0 24px 70px rgba(94, 53, 177, 0.22);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;

    --container: min(1160px, 92%);
    --transition: 0.28s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(149, 117, 205, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(126, 87, 194, 0.14), transparent 26%),
        linear-gradient(180deg, #f8f5ff 0%, #ffffff 32%, #fbfaff 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.narrow {
    width: min(760px, 92%);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(126, 87, 194, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-variant);
}

.logo-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(126, 87, 194, 0.18);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.98rem;
    position: relative;
}

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

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 72px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    right: -180px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 87, 194, 0.18), transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -140px;
    bottom: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(149, 117, 205, 0.18), transparent 65%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 52px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(126, 87, 194, 0.10);
    color: var(--primary-variant);
    border: 1px solid rgba(126, 87, 194, 0.12);
    border-radius: 999px;
    font-size: 0.92rem;
    margin-bottom: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 0 0 20px;
    color: #1f1830;
    max-width: 11ch;
}

.hero p {
    font-size: 1.08rem;
    color: var(--text-soft);
    margin: 0 0 28px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.98rem;
    border: 1px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--on-primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-variant) 100%);
    box-shadow: 0 16px 30px rgba(94, 53, 177, 0.24);
}

.btn-primary:hover {
    box-shadow: 0 22px 44px rgba(94, 53, 177, 0.30);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.75);
    color: var(--primary-variant);
    border-color: rgba(126, 87, 194, 0.16);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: rgba(126, 87, 194, 0.24);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    color: var(--text-faint);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.phone-card {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-card::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 87, 194, 0.26), transparent 62%);
    filter: blur(6px);
    z-index: 0;
}

.phone-screen {
    position: relative;
    z-index: 1;
    width: 340px;
    border-radius: 34px;
    padding: 16px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04)),
        linear-gradient(180deg, #24183f 0%, #181125 100%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 30px 70px rgba(48, 26, 92, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.mock-top {
    text-align: center;
    font-weight: 800;
    margin-bottom: 16px;
    color: #efe6ff;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}

.mock-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.mock-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    color: #ffffff;
}

.mock-card span,
.mock-card p {
    color: rgba(255,255,255,0.78);
    margin: 0;
}

.mock-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.mock-actions div {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* Sections */
.section {
    padding: 88px 0;
    position: relative;
}

.section-alt {
    background:
        linear-gradient(180deg, rgba(237, 231, 246, 0.55) 0%, rgba(255,255,255,0.96) 100%);
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    text-align: center;
    color: #201a2c;
}

.section-subtitle {
    color: var(--text-soft);
    margin: 0 auto 28px;
    text-align: center;
    max-width: 720px;
    font-size: 1.04rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #241c33;
    letter-spacing: -0.02em;
}

.card p {
    margin-bottom: 0;
    color: var(--text-soft);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(126, 87, 194, 0.14), rgba(149, 117, 205, 0.22));
    color: var(--primary-variant);
    font-weight: 800;
    font-size: 1.1rem;
}

.text-link {
    color: var(--primary-variant);
    font-weight: 800;
}

.text-link:hover {
    color: var(--primary);
}

/* CTA */
.cta-section {
    padding: 10px 0 100px;
}

.cta-box {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 24%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-variant) 100%);
    color: white;
    border-radius: 30px;
    padding: 54px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

.cta-box h2,
.cta-box h3 {
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.03em;
}

.cta-box p {
    position: relative;
    z-index: 1;
    margin: 0 auto 24px;
    max-width: 700px;
    color: rgba(255,255,255,0.88);
    font-size: 1.05rem;
}

/* Footer */
.site-footer {
    background:
        linear-gradient(180deg, #1f1436 0%, #140d22 100%);
    color: #d8d2e8;
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 32px;
    padding-bottom: 30px;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
    margin-top: 0;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: rgba(232, 226, 247, 0.82);
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 18px 0 24px;
    text-align: center;
    color: rgba(232, 226, 247, 0.70);
}

/* Blog / legal */
.legal-page h1,
.blog-article h1 {
    margin-top: 0;
    color: #221a30;
    letter-spacing: -0.03em;
}

.legal-page h2 {
    margin-top: 30px;
    color: #2a2040;
}

.blog-list {
    display: grid;
    gap: 20px;
}

.blog-cover {
    margin: 20px 0;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.blog-content {
    font-size: 1.05rem;
    color: #312b3d;
}

.muted {
    color: var(--text-soft);
}

.mt-16 {
    margin-top: 16px;
}

/* Fancy helpers */
.glass {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(126, 87, 194, 0.10);
    backdrop-filter: blur(10px);
}

.highlight {
    background: linear-gradient(135deg, rgba(126, 87, 194, 0.15), rgba(149, 117, 205, 0.20));
    color: var(--primary-variant);
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .grid-3,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 72px 0 56px;
    }

    .hero h1 {
        max-width: 100%;
    }

    .phone-card {
        margin-top: 10px;
    }

    .nav {
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        justify-content: center;
    }

    .cta-box {
        padding: 40px 22px;
        border-radius: 24px;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .phone-screen {
        width: 100%;
        max-width: 340px;
    }

    .section {
        padding: 72px 0;
    }

    .card {
        padding: 22px;
    }

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

/* BLOG GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* BLOG CARD */
.blog-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(126, 87, 194, 0.12);
    box-shadow: 0 10px 30px rgba(94, 53, 177, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(94, 53, 177, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card-body {
    padding: 20px;
}

.blog-card h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card h2 a {
    color: #241c33;
}

.blog-card-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.small {
    font-size: 0.85rem;
}

/* BLOG DETAIL */
.blog-article h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 12px;
}

.blog-content {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #2e2a38;
}

.blog-content p {
    margin-bottom: 18px;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 28px;
}

.blog-cover {
    margin: 24px 0;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(94, 53, 177, 0.12);
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* PAGE HERO */
.page-hero {
    margin-bottom: 28px;
}

.page-hero-simple {
    text-align: left;
}

.page-hero-simple .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* CONTACT */
.contact-stack {
    display: grid;
    gap: 18px;
}

.contact-card {
    border-radius: 22px;
}

/* LEGAL */
.legal-shell {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(126, 87, 194, 0.10);
    box-shadow: 0 12px 36px rgba(94, 53, 177, 0.08);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.legal-page h1,
.legal-page h2 {
    letter-spacing: -0.02em;
}

.legal-page h1 {
    margin-bottom: 10px;
}

.legal-page h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #2a2040;
    font-size: 1.35rem;
}

.legal-page p {
    color: #3d3750;
}

.legal-page ul {
    padding-left: 20px;
    margin: 14px 0 18px;
}

.legal-page li {
    margin-bottom: 10px;
    color: #3d3750;
}

@media (max-width: 640px) {
    .legal-shell {
        padding: 22px;
        border-radius: 20px;
    }
}