/* ===================================================================
   Refua Page – Premium Styles
   =================================================================== */

/* --- Hero --------------------------------------------------------- */
.refua-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
    color: #f0f9ff;
    padding: 6rem 1.5rem 5rem;
    text-align: center;
}

.refua-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.refua-hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 999px;
    padding: 0.3rem 1rem;
    margin-bottom: 1.5rem;
}

.refua-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    background: linear-gradient(90deg, #ffffff 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.refua-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.refua-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Metrics Banner ----------------------------------------------- */
.refua-metrics {
    background: #0f172a;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    padding: 2rem var(--page-gutter);
}

.refua-metrics-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: center;
}

.refua-metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #38bdf8;
}

.refua-metric-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 0.25rem;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.5;
}

/* --- Generic Section ---------------------------------------------- */
.refua-section {
    padding: 4.5rem var(--page-gutter);
}

.refua-section-alt {
    background: #f1f5f9;
}

.refua-section-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.refua-section h2 {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.25rem;
    line-height: 1.25;
}

.refua-lead {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    max-width: 780px;
    margin-bottom: 2.5rem;
}

.refua-prose p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* --- Two-Column Layout -------------------------------------------- */
.refua-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

/* --- Highlight Box ------------------------------------------------ */
.refua-highlight-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.refua-highlight-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
}

.refua-highlight-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.refua-highlight-box li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.4rem;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.55;
}

.refua-highlight-box li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #38bdf8;
    font-weight: 700;
}

/* --- Features Grid ------------------------------------------------ */
.refua-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.refua-feature-card {
    background: #ffffff;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.refua-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.10);
}

.refua-feature-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.refua-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.refua-feature-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.refua-feature-card code {
    font-size: 0.85rem;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    color: #0f172a;
}

/* --- Component Deep-Dive Cards ------------------------------------ */
.refua-component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 1.75rem;
    margin-top: 1rem;
}

.refua-component-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.25s ease;
}

.refua-component-card:hover {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.10);
}

.refua-component-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.refua-component-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.refua-component-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.refua-component-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.refua-component-card p:last-child {
    margin-bottom: 0;
}

.refua-component-card code {
    font-size: 0.85rem;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    color: #0f172a;
}

.refua-component-card a {
    color: #0284c7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.refua-component-card a:hover {
    color: #0369a1;
}

/* --- Code Sections ------------------------------------------------ */
.refua-code-section {
    margin: 2rem 0;
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 12px;
    border-left: 4px solid #38bdf8;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.refua-code-section h3 {
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
}

.refua-code-section pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.15rem var(--page-gutter);
    border-radius: 8px;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.refua-code-section code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.88rem;
    line-height: 1.55;
}

.refua-code-section p {
    margin: 0.75rem 0 0.25rem;
    font-size: 0.95rem;
    color: #64748b;
}

/* --- Examples Grid ------------------------------------------------ */
.refua-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.refua-example-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem var(--page-gutter);
    transition: box-shadow 0.2s ease;
}

.refua-example-item:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.refua-example-item strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.refua-example-item span {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

/* --- CTA ---------------------------------------------------------- */
.refua-cta {
    text-align: center;
    padding: 2rem 0 1rem;
}

.refua-cta h2 {
    margin-bottom: 1rem;
}

.refua-cta p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

@media (max-width: 768px) {
    .refua-hero {
        padding: 4rem 1.25rem 3.5rem;
    }

    .refua-hero h1 {
        font-size: 2.5rem;
    }

    .refua-hero-subtitle {
        font-size: 1rem;
    }

    .refua-section {
        padding: 3rem var(--page-gutter);
    }

    .refua-two-col {
        grid-template-columns: 1fr;
    }

    .refua-features-grid {
        grid-template-columns: 1fr;
    }

    .refua-examples-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
    }

    .refua-metrics-inner {
        gap: 1rem;
    }

    .refua-metric-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .refua-metrics-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
    .refua-metric-value { font-size: 1.5rem; line-height: 1.3; }
    .refua-metric-label { font-size: .85rem; }
}

@media (max-width: 900px) {
    .refua-two-col { grid-template-columns: 1fr; }
}
