:root {
    --purple-main: #6C4FE0;
    --lime: #7FE07F;
    --gray-dark: #2D3748;
}

[x-cloak] {
    display: none !important;
}

.account-menu {
    display: none;
}

.account-menu.is-open {
    display: block;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -3rem;
    z-index: 80;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 0.8rem;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0.75rem;
    outline: 2px solid rgba(196, 181, 253, 0.9);
    outline-offset: 2px;
}

body {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

.site-header {
    background: rgba(30, 41, 59, 0.88) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-header a {
    color: rgba(248, 250, 252, 0.92);
    text-shadow: 0 1px 0 rgba(15, 23, 42, 0.3);
}

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

.site-header .site-brand {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.site-header .btn-gradient {
    color: #ffffff;
    text-shadow: none;
}

.home-cta-form .input-modern::placeholder {
    color: rgba(248, 250, 252, 0.94);
}

.home-cta-form .input-modern:focus::placeholder {
    color: rgba(255, 255, 255, 1);
}

.home-cta-form .input-modern {
    background: rgba(30, 41, 59, 0.56);
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
}

.home-cta-form .input-modern:focus {
    border-color: rgba(196, 181, 253, 0.92);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}

.gradient-hero a.underline {
    color: #e9d5ff;
}

.gradient-hero a.underline:hover {
    color: #ffffff;
}

.font-display {
    font-family: 'Syne', system-ui, -apple-system, sans-serif;
}

.text-glow {
    text-shadow: 0 0 20px rgba(108, 79, 224, 0.6);
}

.card-tilt {
    transform-style: preserve-3d;
}

.card-tilt:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
}

.badge-ring {
    box-shadow: 0 0 0 1px rgba(127, 224, 127, 0.3), 0 0 18px rgba(127, 224, 127, 0.35);
}

.grid-dots {
    background-image: radial-gradient(rgba(167, 139, 250, 0.16) 1px, transparent 1px);
    background-size: 22px 22px;
}

.heroSection {
    position: relative;
}

.heroContent,
.heroCard {
    position: relative;
    z-index: 2;
}

.heroDecor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.heroDecor .decor-block {
    position: absolute;
    border-radius: 56px;
    opacity: 0.12;
    filter: blur(44px);
    background: linear-gradient(
        135deg,
        rgba(146, 112, 192, 0.28) 0%,
        rgba(200, 190, 228, 0.2) 100%
    );
}

.heroDecor .decor-one {
    width: clamp(160px, 16vw, 240px);
    height: clamp(160px, 16vw, 240px);
    top: clamp(140px, 12vw, 220px);
    right: clamp(-120px, -6vw, -40px);
    transform: rotate(8deg);
}

.heroDecor .decor-two {
    width: clamp(200px, 20vw, 320px);
    height: clamp(200px, 20vw, 320px);
    bottom: clamp(-120px, -8vw, -40px);
    right: clamp(40px, 6vw, 140px);
    transform: rotate(-6deg);
    background: linear-gradient(
        135deg,
        rgba(120, 88, 178, 0.26) 0%,
        rgba(180, 168, 214, 0.18) 100%
    );
}

@media (max-width: 768px) {
    .heroDecor .decor-block {
        opacity: 0.08;
        filter: blur(40px);
    }

    .heroDecor .decor-one {
        width: clamp(140px, 32vw, 200px);
        height: clamp(140px, 32vw, 200px);
        top: clamp(380px, 70vw, 560px);
        right: clamp(-160px, -18vw, -80px);
    }

    .heroDecor .decor-two {
        width: clamp(160px, 36vw, 220px);
        height: clamp(160px, 36vw, 220px);
        bottom: clamp(-180px, -20vw, -90px);
        right: clamp(-120px, -14vw, -60px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.hover-faq {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hover-faq:hover,
.hover-faq:focus-within {
    transform: translateY(-4px);
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: 0 18px 40px rgba(108, 79, 224, 0.28);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove setas (spinners) de inputs number */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type='number'] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Corrige dropdown nativo do <select> no tema escuro (evita texto branco em fundo branco) */
select.input-modern {
    color: #ffffff;
    color-scheme: dark;
}

select.input-modern option,
select.input-modern optgroup {
    background-color: #111827; /* similar ao bg-gray-900 */
    color: #ffffff;
}

/* Tipografia de artigos do blog */
.blog-content {
    color: #d6deec;
    font-size: clamp(1rem, 0.22vw + 0.96rem, 1.1rem);
    line-height: 1.82;
    letter-spacing: 0.008em;
}

.blog-content > * + * {
    margin-top: 0.95rem;
}

.blog-content p {
    margin: 0 0 1.05rem;
    color: #d6deec;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: #f8fafc;
    font-family: 'Syne', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content h2 {
    font-size: clamp(1.45rem, 0.55vw + 1.3rem, 1.95rem);
}

.blog-content h3 {
    font-size: clamp(1.2rem, 0.45vw + 1.05rem, 1.5rem);
}

.blog-content h4 {
    font-size: clamp(1.1rem, 0.3vw + 1rem, 1.3rem);
}

.blog-content ul,
.blog-content ol {
    margin: 0.2rem 0 1.25rem;
    padding-left: 1.25rem;
}

.blog-content li {
    margin: 0.38rem 0;
    color: #dbe5f4;
}

.blog-content li::marker {
    color: #93c5fd;
}

.blog-content a {
    color: #a5b4fc;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.blog-content a:hover {
    color: #c4b5fd;
}

.blog-content strong {
    color: #f8fafc;
    font-weight: 700;
}

.blog-content blockquote {
    margin: 1.4rem 0;
    padding: 0.9rem 1rem;
    border-left: 3px solid rgba(165, 180, 252, 0.75);
    border-radius: 0 0.75rem 0.75rem 0;
    background: rgba(30, 41, 59, 0.6);
    color: #dbeafe;
}

.blog-content pre,
.blog-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.blog-content code {
    background: rgba(30, 41, 59, 0.8);
    color: #dbeafe;
    padding: 0.12rem 0.32rem;
    border-radius: 0.36rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.blog-content pre {
    background: rgba(2, 6, 23, 0.75);
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    overflow-x: auto;
}

.blog-content pre code {
    background: transparent;
    border: 0;
    padding: 0;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.8rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
}

.blog-content thead th {
    text-align: left;
    font-weight: 700;
    color: #f8fafc;
    background: rgba(99, 102, 241, 0.35);
}

.blog-content th,
.blog-content td {
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.blog-content tbody tr:nth-child(odd) {
    background: rgba(15, 23, 42, 0.35);
}

.blog-content tbody tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.07);
}

.blog-content hr {
    margin: 1.7rem 0;
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.blog-toc-link {
    display: inline-block;
    color: #c4b5fd;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-toc-link:hover {
    color: #e9d5ff;
}

.blog-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 3.4rem;
}

.blog-card-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 3.9rem;
}

@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
        line-height: 1.76;
    }

    .blog-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}
