/* assets/css/style.css */

/* Paleta e ajustes para temas claro/escuro com Bootstrap 5.3 */
:root {
    --cry-primary: #2563eb;
    --cry-accent:  #22c55e;
    --cry-dark:    #020617;
}

[data-bs-theme="light"] {
    color-scheme: light;
}

[data-bs-theme="dark"] {
    color-scheme: dark;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Navbar */
.navbar.bg-body {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(14px);
}

.logo-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #22c55e, #2563eb);
}

/* Hero */
.hero-section {
    padding: 4rem 0 3rem;
}

@media (min-width: 992px) {
    .hero-section {
        padding: 5rem 0 4rem;
    }
}

.hero-title {
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(90deg, #22c55e, #38bdf8, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Cards */
.hero-device {
    border-radius: 1.2rem;
    overflow: hidden;
}

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

/* Steps */
.step-card {
    position: relative;
    border-radius: 1rem;
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
}

[data-bs-theme="light"] .step-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #111827;
}

.step-number {
    position: absolute;
    top: 0;
    left: 1.25rem;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    color: #fff;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Feature cards */
.feature-card {
    border-radius: 1rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent);
}

[data-bs-theme="light"] .feature-card {
    background: #ffffff;
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

/* Planos */
.plan-card {
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #020617;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
}

[data-bs-theme="light"] .plan-card {
    background: #ffffff;
    color: #111827;
}

.plan-header {
    padding: 1.25rem 1.25rem 0.5rem;
}

.plan-body {
    padding: 0.5rem 1.25rem 1.25rem;
}

.plan-footer {
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.6);
}

/* Partner block */
.partner-card {
    border-radius: 1.1rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.2), transparent);
}

/* Utilitários */
.py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Texto secundário com contraste decente em cada tema */
[data-bs-theme="light"] .text-secondary {
    /* um cinza mais escuro, bem legível em fundo claro */
    color: #4b5563 !important; /* algo como slate-600 */
}

[data-bs-theme="dark"] .text-secondary {
    /* cinza claro para fundo escuro, sem sumir */
    color: #9ca3af !important; /* algo como slate-400 */
}


.bg-body-secondary {
    background-color: rgba(15, 23, 42, 0.75) !important;
}

[data-bs-theme="light"] .bg-body-secondary {
    background-color: #f3f4f6 !important;
}

/* Ajustes de tabela no dashboard */
.table > :not(caption) > * > * {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

/* Botões */
.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}
