:root {
    --dark: #192851;
    --orange: #fd8201;
    --orange-soft: #fff1df;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --radius: 22px;
    --shadow: 0 20px 50px rgba(25, 40, 81, 0.08);

    --raspa-dark: var(--dark);
    --raspa-orange: var(--orange);
    --raspa-orange-dark: #e87500;
    --raspa-orange-soft: var(--orange-soft);
    --raspa-text: var(--text);
    --raspa-muted: var(--muted);
    --raspa-line: var(--line);
    --raspa-bg: var(--bg);
    --raspa-bg-soft: var(--bg-soft);
    --raspa-radius: var(--radius);
    --raspa-shadow: var(--shadow);
}

html {
    scroll-behavior: smooth;
}

body.public-page {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

body.public-page * {
    box-sizing: border-box;
}

body.public-page a {
    text-decoration: none;
}

body.public-page .flash {
    width: min(1120px, calc(100% - 32px));
    margin: 14px auto 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

body.public-page .flash.success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

body.public-page .flash.error,
body.public-page .flash.danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.public-flash-stack {
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
}

.public-flash-stack .flash {
    pointer-events: auto;
    box-shadow: var(--shadow);
}

.public-page .container,
.raspa-container {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0;
}

.logo-fallback {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.raspa-public-site {
    min-height: 100vh;
    background: var(--bg);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-wrap {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-img {
    height: 100px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.main-nav a {
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    opacity: 0.82;
    transition: 0.2s ease;
}

.main-nav a:hover {
    opacity: 1;
    color: var(--orange);
}

.login-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 22px;
    background: #fff;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.login-btn:hover {
    color: #fff;
    background: var(--dark);
}

.hero-section {
    padding: 100px 0 80px;
    background:
        radial-gradient(circle at 85% 15%, rgba(253, 130, 1, 0.14), transparent 30%),
        radial-gradient(circle at 10% 80%, rgba(25, 40, 81, 0.10), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 48px;
    align-items: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    color: var(--orange);
    background: var(--orange-soft);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-content h1 {
    color: var(--dark);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.04;
    font-weight: 800;
    max-width: 850px;
    margin: 0 0 24px;
}

.hero-content p {
    max-width: 680px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
    margin: 0 0 32px;
}

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

.btn-main,
.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-main {
    color: #fff;
    background: var(--orange);
    border: 1px solid var(--orange);
}

.btn-main:hover {
    background: #e87500;
    border-color: #e87500;
    color: #fff;
}

.btn-outline-custom {
    color: var(--dark);
    background: #fff;
    border: 1px solid var(--line);
}

.btn-outline-custom:hover {
    color: #fff;
    background: var(--dark);
}

.small-btn {
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
}

.hero-card {
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: rgba(253, 130, 1, 0.22);
}

.hero-card h3 {
    position: relative;
    z-index: 1;
    font-size: 26px;
    margin-bottom: 16px;
}

.hero-card p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.hero-mini-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-mini-list span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
}

.content-section {
    padding: 82px 0;
}

.section-muted {
    background: var(--bg-soft);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.section-heading h2 {
    color: var(--dark);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    margin: 0;
}

.text-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
}

.text-card p {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 18px;
}

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

.presentation-viewer {
    width: 100%;
    height: 650px;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

.presentation-viewer iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.presentation-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.media-placeholder,
.video-placeholder {
    min-height: 360px;
    border: 2px dashed rgba(25, 40, 81, 0.18);
    border-radius: var(--radius);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 34px;
}

.video-placeholder {
    background: var(--dark);
    color: #fff;
}

.media-placeholder i,
.video-placeholder i {
    font-size: 56px;
    color: var(--orange);
    margin-bottom: 16px;
}

.media-placeholder h3,
.video-placeholder h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.media-placeholder p,
.video-placeholder p {
    max-width: 580px;
    margin: 0 auto 22px;
    color: var(--muted);
    line-height: 1.7;
}

.video-placeholder p {
    color: rgba(255, 255, 255, 0.72);
}

.section-dark {
    background: var(--dark);
    color: #fff;
}

.mission-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.orange-label {
    background: rgba(253, 130, 1, 0.16);
}

.section-dark h2 {
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
}

.mission-text {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 34px;
}

.mission-text p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.mission-text p:last-child {
    margin-bottom: 0;
}

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

.future-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(25, 40, 81, 0.05);
    transition: 0.2s ease;
}

.future-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.future-card i {
    width: 52px;
    height: 52px;
    background: var(--orange-soft);
    color: var(--orange);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.future-card h3 {
    color: var(--dark);
    font-size: 22px;
    margin-bottom: 12px;
}

.future-card p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

.site-footer {
    background: #111827;
    color: #fff;
    padding: 54px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 34px;
}

.footer-logo-img {
    height: 144px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-desc {
    max-width: 380px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.site-footer h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #fff;
}

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 10px;
    transition: 0.2s ease;
}

.site-footer a:hover {
    color: var(--orange);
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .hero-grid,
    .mission-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .future-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        padding: 70px 0 60px;
    }
}

@media (max-width: 576px) {
    .content-section {
        padding: 58px 0;
    }

    .future-grid {
        grid-template-columns: 1fr;
    }

    .text-card,
    .mission-text,
    .future-card,
    .hero-card {
        padding: 24px;
    }

    .media-placeholder,
    .video-placeholder {
        min-height: 280px;
    }

    .footer-logo-img {
        height: 110px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* Compatibility selectors kept for characterization tests and older references. */
.landing-hero,
.landing-feature-grid,
.landing-feature-card,
.landing-cta {
    --landing-compat: 1;
}


.public-doc-main {
    padding: 74px 0 90px;
    background:
        radial-gradient(circle at 88% 12%, rgba(253, 130, 1, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: calc(100vh - 92px);
}

.public-doc-shell {
    max-width: 920px;
}

.public-doc-hero {
    margin-bottom: 28px;
}

.public-doc-hero h1 {
    color: var(--raspa-dark);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    margin: 0 0 16px;
}

.public-doc-hero p {
    color: var(--raspa-muted);
    font-size: 18px;
    line-height: 1.7;
    max-width: 760px;
    margin: 0;
}

.public-doc-card {
    background: #fff;
    border: 1px solid var(--raspa-line);
    border-radius: var(--raspa-radius);
    box-shadow: var(--raspa-shadow);
    padding: 34px;
}

.public-doc-card h2 {
    color: var(--raspa-dark);
    font-size: 24px;
    margin: 0 0 12px;
}

.public-doc-card p,
.public-doc-card li {
    color: var(--raspa-text);
    line-height: 1.75;
    font-size: 16px;
}

.public-doc-card p {
    margin: 0 0 18px;
}

.public-doc-card ul {
    margin: 0 0 24px;
    padding-left: 22px;
}

.public-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.request-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 26px 0;
}

.request-info-item {
    border: 1px solid var(--raspa-line);
    border-radius: 18px;
    padding: 20px;
    background: var(--raspa-bg-soft);
}

.request-info-item strong {
    display: block;
    color: var(--raspa-dark);
    margin-bottom: 8px;
}

.request-info-item a,
.public-doc-card a {
    color: var(--raspa-orange);
    font-weight: 800;
}

.request-placeholder-box {
    margin-top: 24px;
    padding: 22px;
    border-radius: 20px;
    background: var(--raspa-orange-soft);
    color: var(--raspa-dark);
    line-height: 1.65;
}

@media (max-width: 576px) {
    .public-doc-card {
        padding: 24px;
    }

    .request-info-grid {
        grid-template-columns: 1fr;
    }
}
