/* ==========================================================================
   Riztor public landing styles
   Palette: near-black navy base, single electric-blue accent
   ========================================================================== */

:root {
    --rz-bg: #05070d;
    --rz-bg-raised: #0a0f1c;
    --rz-card: #0c1220;
    --rz-border: rgba(148, 170, 220, 0.14);
    --rz-blue: #2f7df6;
    --rz-blue-bright: #5a9bff;
    --rz-text: #eef2f9;
    --rz-muted: #93a0b8;
    --rz-light-bg: #f2f4f8;
    --rz-light-text: #0a0f1c;
    --rz-light-muted: #4a5568;
}

.rz-body {
    background-color: var(--rz-bg);
    color: var(--rz-text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Shared primitives ---------------------------------------------------- */

.rz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rz-blue-bright);
}

.rz-eyebrow::after {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: var(--rz-blue);
    opacity: 0.6;
}

.rz-display {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.rz-accent {
    color: var(--rz-blue-bright);
}

.rz-lead {
    color: var(--rz-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 34rem;
}

.rz-btn-primary {
    --bs-btn-bg: var(--rz-blue);
    --bs-btn-border-color: var(--rz-blue);
    --bs-btn-hover-bg: var(--rz-blue-bright);
    --bs-btn-hover-border-color: var(--rz-blue-bright);
    --bs-btn-active-bg: var(--rz-blue-bright);
    --bs-btn-active-border-color: var(--rz-blue-bright);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: 0.75rem;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rz-btn-ghost {
    --bs-btn-color: var(--rz-text);
    --bs-btn-border-color: rgba(148, 170, 220, 0.35);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(148, 170, 220, 0.08);
    --bs-btn-hover-border-color: rgba(148, 170, 220, 0.6);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(148, 170, 220, 0.12);
    --bs-btn-active-border-color: rgba(148, 170, 220, 0.6);
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: 0.75rem;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rz-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rz-blue-bright);
    text-decoration: none;
    transition: gap 0.15s ease;
}

.rz-link-arrow:hover,
.rz-link-arrow:focus {
    color: #fff;
    gap: 0.875rem;
}

/* --- Navbar ---------------------------------------------------------------- */

.rz-navbar {
    background-color: rgba(5, 7, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rz-border);
}

.rz-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.rz-logo-mark {
    height: 2.25rem;
    width: auto;
    mix-blend-mode: screen;
}

.rz-logo-word {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: #fff;
}

.rz-navbar .nav-link {
    color: var(--rz-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-left: 1rem;
    padding-right: 1rem;
}

.rz-navbar .nav-link:hover,
.rz-navbar .nav-link:focus,
.rz-navbar .nav-link.active {
    color: #fff;
}

/* --- Hero ------------------------------------------------------------------ */

.rz-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 6rem;
}

.rz-hero::before {
    content: "";
    position: absolute;
    inset: auto -20% -55% -20%;
    height: 80%;
    background:
        radial-gradient(ellipse at 65% 100%, rgba(47, 125, 246, 0.28), transparent 60%),
        repeating-linear-gradient(90deg, rgba(90, 155, 255, 0.06) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(0deg, rgba(90, 155, 255, 0.06) 0 1px, transparent 1px 64px);
    transform: perspective(600px) rotateX(55deg);
    transform-origin: bottom;
    pointer-events: none;
}

.rz-hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
}

.rz-hero-trust {
    color: var(--rz-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.8;
}

/* --- Hero dashboard visual -------------------------------------------------- */

.rz-hero-visual {
    position: relative;
}

.rz-dash {
    background: linear-gradient(160deg, #0e1526, #090d18);
    border: 1px solid var(--rz-border);
    border-radius: 1rem;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(47, 125, 246, 0.12);
    overflow: hidden;
}

.rz-dash-top {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rz-border);
}

.rz-dash-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(148, 170, 220, 0.25);
}

.rz-dash-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--rz-muted);
}

.rz-dash-body {
    display: flex;
}

.rz-dash-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0.75rem;
    border-right: 1px solid var(--rz-border);
}

.rz-dash-side span {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 0.375rem;
    background: rgba(148, 170, 220, 0.12);
}

.rz-dash-side span:first-child {
    background: var(--rz-blue);
}

.rz-dash-main {
    flex: 1;
    padding: 1rem;
    min-width: 0;
}

.rz-dash-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rz-text);
    margin-bottom: 0.75rem;
}

.rz-stat-card {
    background: var(--rz-card);
    border: 1px solid var(--rz-border);
    border-radius: 0.625rem;
    padding: 0.75rem;
}

.rz-stat-label {
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    color: var(--rz-muted);
    text-transform: uppercase;
}

.rz-stat-value {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.rz-stat-delta {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #35c98e;
}

.rz-panel {
    background: var(--rz-card);
    border: 1px solid var(--rz-border);
    border-radius: 0.625rem;
    padding: 0.75rem;
    height: 100%;
}

.rz-panel-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--rz-muted);
    margin-bottom: 0.5rem;
}

.rz-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.rz-donut {
    --rz-donut-value: 68;
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0.25rem auto;
}

.rz-donut::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        var(--rz-blue) calc(var(--rz-donut-value) * 1%),
        rgba(148, 170, 220, 0.15) 0
    );
    -webkit-mask: radial-gradient(circle at center, transparent 58%, #000 59%);
    mask: radial-gradient(circle at center, transparent 58%, #000 59%);
}

.rz-donut-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.rz-donut-legend {
    font-size: 0.625rem;
    color: var(--rz-muted);
}

.rz-donut-legend .dot {
    display: inline-block;
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 50%;
    margin-right: 0.375rem;
}

/* Floating side cards */

.rz-float {
    position: absolute;
    background: linear-gradient(160deg, #101830, #0a0f1c);
    border: 1px solid rgba(90, 155, 255, 0.25);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 12.5rem;
}

.rz-float-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.375rem;
}

.rz-float-title svg {
    color: var(--rz-blue-bright);
}

.rz-float-copy {
    font-size: 0.71875rem;
    line-height: 1.55;
    color: var(--rz-muted);
    margin: 0;
}

.rz-float-automation {
    top: -1.5rem;
    right: -1.75rem;
}

.rz-float-ai {
    bottom: -3rem;
    right: -1rem;
}

/* --- Partner strip ----------------------------------------------------------- */

.rz-partners {
    background: #030409;
    border-top: 1px solid var(--rz-border);
    border-bottom: 1px solid var(--rz-border);
    padding: 2.5rem 0;
}

.rz-partners-heading {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--rz-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.rz-partner {
    text-align: center;
    color: rgba(238, 242, 249, 0.7);
}

.rz-partner-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rz-partner-tag {
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--rz-muted);
}

/* --- What we do (light section) ---------------------------------------------- */

.rz-services {
    background: var(--rz-light-bg);
    color: var(--rz-light-text);
    padding: 6rem 0;
}

.rz-services h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
    color: var(--rz-light-text);
}

.rz-services .rz-accent {
    color: var(--rz-blue);
}

.rz-services .rz-lead {
    color: var(--rz-light-muted);
}

.rz-service-card {
    background: linear-gradient(165deg, #0e1526, #070b14);
    border: 1px solid var(--rz-border);
    border-radius: 0.875rem;
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--rz-text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rz-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(10, 15, 28, 0.35);
}

.rz-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: rgba(47, 125, 246, 0.15);
    color: var(--rz-blue-bright);
    margin-bottom: 1.25rem;
}

.rz-service-card h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.rz-service-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--rz-muted);
    flex: 1;
}

/* --- Our work ----------------------------------------------------------------- */

.rz-work {
    padding: 6rem 0;
}

.rz-work h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
}

.rz-work-card {
    background: var(--rz-bg-raised);
    border: 1px solid var(--rz-border);
    border-radius: 0.875rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rz-work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(90, 155, 255, 0.4);
}

.rz-work-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(47, 125, 246, 0.35), transparent 55%),
        linear-gradient(150deg, #131c33, #080c16);
    border-bottom: 1px solid var(--rz-border);
}

.rz-work-thumb::after {
    content: "";
    position: absolute;
    inset: 18% 14% 0 14%;
    border-radius: 0.5rem 0.5rem 0 0;
    background: linear-gradient(180deg, rgba(148, 170, 220, 0.14), rgba(148, 170, 220, 0.03));
    border: 1px solid rgba(148, 170, 220, 0.2);
    border-bottom: 0;
}

.rz-work-body {
    padding: 1.375rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rz-work-client {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rz-muted);
    margin-bottom: 0.5rem;
}

.rz-work-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    flex: 1;
}

/* --- CTA ------------------------------------------------------------------------ */

.rz-cta {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    border-top: 1px solid var(--rz-border);
    background:
        radial-gradient(ellipse at 15% 110%, rgba(47, 125, 246, 0.2), transparent 55%),
        radial-gradient(ellipse at 90% -10%, rgba(47, 125, 246, 0.12), transparent 50%),
        var(--rz-bg);
}

.rz-cta h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.rz-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.rz-step-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(90, 155, 255, 0.35);
    background: rgba(47, 125, 246, 0.1);
    color: var(--rz-blue-bright);
}

.rz-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.rz-step p {
    font-size: 0.875rem;
    color: var(--rz-muted);
    margin: 0;
}

/* --- Footer ----------------------------------------------------------------------- */

.rz-footer {
    background: #030409;
    border-top: 1px solid var(--rz-border);
    padding: 4rem 0 2rem;
}

.rz-footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rz-text);
    margin-bottom: 1rem;
}

.rz-footer .nav-link {
    color: var(--rz-muted);
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.rz-footer .nav-link:hover,
.rz-footer .nav-link:focus {
    color: #fff;
}

.rz-footer-tagline {
    color: var(--rz-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 18rem;
}

.rz-footer-legal {
    border-top: 1px solid var(--rz-border);
    margin-top: 3rem;
    padding-top: 1.5rem;
    color: var(--rz-muted);
    font-size: 0.8125rem;
}

.rz-footer-legal a {
    color: var(--rz-muted);
    text-decoration: none;
}

.rz-footer-legal a:hover,
.rz-footer-legal a:focus {
    color: #fff;
}

.rz-footer-contact {
    font-size: 0.875rem;
}

.rz-footer-contact a {
    color: var(--rz-muted);
    text-decoration: none;
}

.rz-footer-contact a:hover,
.rz-footer-contact a:focus {
    color: #fff;
}

/* --- Static pages (contact, privacy) ------------------------------------------------ */

.rz-page {
    padding: 5rem 0 6rem;
}

.rz-page h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.rz-page .rz-step a {
    color: var(--rz-text);
    font-size: 1rem;
    text-decoration: none;
}

.rz-page .rz-step a:hover,
.rz-page .rz-step a:focus {
    color: var(--rz-blue-bright);
}

.rz-page-light {
    background: var(--rz-light-bg);
    color: var(--rz-light-text);
}

.rz-page-light .rz-eyebrow,
.rz-page-light .rz-accent {
    color: var(--rz-blue);
}

.rz-page-light .rz-lead,
.rz-page-light .rz-step p {
    color: var(--rz-light-muted);
}

.rz-page-light .rz-step a {
    color: var(--rz-light-text);
}

.rz-page-light .rz-step a:hover,
.rz-page-light .rz-step a:focus {
    color: var(--rz-blue);
}

.rz-page-light .rz-step-icon {
    color: var(--rz-blue);
    background: rgba(47, 125, 246, 0.08);
}

.rz-contact-form {
    background: #fff;
    border: 1px solid rgba(10, 15, 28, 0.08);
    border-radius: 0.875rem;
    padding: 2rem;
    box-shadow: 0 1rem 2.5rem rgba(10, 15, 28, 0.06);
}

.rz-contact-form .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--rz-light-text);
    margin-bottom: 0.375rem;
}

.rz-legal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
}

.rz-legal p,
.rz-legal li {
    color: var(--rz-muted);
    line-height: 1.7;
}

.rz-legal li {
    margin-bottom: 0.5rem;
}

.rz-legal a {
    color: var(--rz-blue-bright);
}

/* --- Responsive adjustments --------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .rz-float-automation {
        right: -0.5rem;
    }
}

@media (max-width: 991.98px) {
    .rz-hero {
        padding: 3.5rem 0 4.5rem;
    }

    .rz-float {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rz-service-card,
    .rz-work-card,
    .rz-link-arrow {
        transition: none;
    }

    .rz-service-card:hover,
    .rz-work-card:hover {
        transform: none;
    }
}
