/* ============================================
   Site.css — 2026 · Next.js / Tailwind inspired
   Clean, editorial, generous spacing
   ============================================ */

:root {
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --muted: #64748b;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    --card-hover: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] {
    --muted: #94a3b8;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    --card-hover: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* --- Layout --- */
.main-content {
    padding: 0 1.5rem;
}

.portlet-blog {
    margin-bottom: 0;
}

/* --- Cards --- */
.card {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--card-shadow);
}

.portlet-blog .card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.portlet-blog .card:hover {
    box-shadow: var(--card-hover);
}

/* --- Hero --- */
.site-hero {
    text-align: center;
    padding: 6rem 0 4rem;
}

.site-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.045em;
    line-height: 1.08;
    max-width: 680px;
    margin: 0 auto 1.25rem;
    color: var(--bs-emphasis-color);
}

.site-hero .hero-desc {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 2rem;
}

.site-hero .hero-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.site-hero .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.15s ease;
}

.site-hero .hero-cta:hover {
    opacity: 0.85;
}

/* --- Section titles --- */
.section-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--bs-link-color);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 1.75rem !important;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--bs-emphasis-color);
}

.section-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 540px;
}

.section-desc.center {
    margin: 0 auto;
    text-align: center;
}

/* --- Divider --- */
.site-divider {
    height: 1px;
    background: var(--bs-border-color);
    margin: 4rem 0;
}

/* --- Feature grid inside card --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature-grid .feature-cell {
    padding: 2rem;
}

.feature-grid .feature-cell:not(:nth-child(3n)) {
    border-right: 1px solid var(--bs-border-color);
}

/* Horizontal borders between rows */
.feature-grid .feature-cell:nth-child(-n+3) {
    border-bottom: 1px solid var(--bs-border-color);
}

.feature-grid .feature-cell:nth-child(n+4):nth-child(-n+6) {
    border-bottom: 1px solid var(--bs-border-color);
}

.feature-cell h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    color: var(--bs-emphasis-color);
}

.feature-cell p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 767.98px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid .feature-cell:not(:nth-child(3n)) {
        border-right: none;
    }
    .feature-grid .feature-cell:nth-child(-n+3),
    .feature-grid .feature-cell:nth-child(n+4):nth-child(-n+6) {
        border-bottom: none;
    }
    .feature-grid .feature-cell:not(:last-child) {
        border-bottom: 1px solid var(--bs-border-color);
    }
}

/* --- Value props (3 cards) --- */
.value-props {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-props .card .card-body {
    padding: 2rem !important;
    text-align: center;
}

.value-props .card img {
    display: block;
    margin: 0 auto 1rem;
}

.value-props .card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--bs-emphasis-color);
}

.value-props .card p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 767.98px) {
    .value-props {
        grid-template-columns: 1fr;
    }
}

/* --- Why section (alternating text) --- */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
}

.why-grid .why-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
    color: var(--bs-emphasis-color);
}

.why-grid .why-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 767.98px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Video --- */
.site-video {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
}

.site-video video {
    display: block;
    width: 100%;
}

/* --- CTA section --- */
.site-cta {
    text-align: center;
    padding: 4rem 0 5rem;
}

.site-cta p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* --- Subtle entrance --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.site-hero { animation: fadeUp 0.5s ease both; }
.value-props .card:nth-child(1) { animation: fadeUp 0.4s ease 0.1s both; }
.value-props .card:nth-child(2) { animation: fadeUp 0.4s ease 0.15s both; }
.value-props .card:nth-child(3) { animation: fadeUp 0.4s ease 0.2s both; }

/* --- Blockquote --- */
.portlet-blog blockquote {
    position: relative;
    border: none;
    border-left: none;
    background: none;
    padding: 2rem 0;
    margin: 2rem auto 3rem;
    max-width: 600px;
    text-align: center;
}

.portlet-blog blockquote::before {
    content: "\201C";
    display: block;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--bs-link-color);
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.portlet-blog blockquote p {
    font-size: 1.15rem !important;
    font-style: italic;
    line-height: 1.6;
    color: var(--bs-emphasis-color) !important;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.portlet-blog blockquote footer {
    font-size: 0.8rem;
    font-style: normal;
    color: var(--muted);
    margin-top: 0.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Portlet text defaults --- */
.portlet-blog p {
    color: var(--muted);
    line-height: 1.7;
}

.portlet-blog strong {
    color: var(--bs-emphasis-color);
    font-weight: 600;
}
