/* =========================================================
   REDDOT — LANDING PAGE
   Rewritten to match the markup in Landing.cshtml.
   Type: Space Grotesk (display) + Inter (body)
   ========================================================= */

:root {
    --rd-red: #c81d0a;
    --rd-red-dark: #8f1408;
    --rd-red-deep: #4a0a03;
    --rd-red-soft: #fdf0ed;
    --rd-peach: #ffcabb;

    --rd-ink: #14181d;
    --rd-muted: #626b74;
    --rd-faint: #8b939b;
    --rd-bg: #faf9f7;
    --rd-white: #ffffff;
    --rd-border: #e7e2dc;
    --rd-dark: #14181d;
    --rd-dark-2: #1d2229;

    --rd-font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --rd-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --rd-radius-sm: 10px;
    --rd-radius: 16px;
    --rd-shadow: 0 10px 30px rgba(20, 24, 29, .06);
    --rd-shadow-lg: 0 24px 60px rgba(20, 24, 29, .12);
}

/* ---------- RESET ---------- */
.rd-page, .rd-page *, .rd-page *::before, .rd-page *::after {
    box-sizing: border-box;
}

.rd-page {
    margin: 0;
    color: var(--rd-ink);
    background: var(--rd-bg);
    font-family: var(--rd-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

.rd-page a { color: inherit; text-decoration: none; }
.rd-page ul { list-style: none; margin: 0; padding: 0; }
.rd-page button, .rd-page input, .rd-page select, .rd-page textarea { font: inherit; }

.rd-page h1, .rd-page h2, .rd-page h3, .rd-page h4, .rd-page p { margin: 0; }

.rd-page h1, .rd-page h2, .rd-page h3, .rd-page h4 {
    font-family: var(--rd-font-display);
    line-height: 1.18;
    letter-spacing: -.01em;
    font-weight: 600;
    color: var(--rd-ink);
}

.rd-wrap {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

/* ---------- BUTTONS ---------- */
.rd-btn {
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--rd-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: .93rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}

.rd-btn:hover { transform: translateY(-1px); }

.rd-btn i { font-size: .85em; }

.rd-btn--primary {
    color: #fff;
    background: var(--rd-red);
    box-shadow: 0 10px 22px rgba(200, 29, 10, .24);
}

.rd-btn--primary:hover {
    color: #fff;
    background: var(--rd-red-dark);
    box-shadow: 0 14px 28px rgba(200, 29, 10, .3);
}

.rd-btn--ghost {
    color: var(--rd-ink);
    background: transparent;
    border-color: var(--rd-border);
}

.rd-btn--ghost:hover {
    border-color: var(--rd-red);
    color: var(--rd-red);
}

/* On the dark hero, the ghost button needs light borders */
.rd-hero .rd-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .32);
}

.rd-hero .rd-btn--ghost:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

/* ---------- NAV ---------- */
.rd-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(250, 249, 247, .85);
    border-bottom: 1px solid var(--rd-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.rd-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--rd-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--rd-ink);
    white-space: nowrap;
}

.rd-brand small {
    color: var(--rd-red);
    font-size: .62em;
    font-weight: 600;
}

.rd-brand__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rd-red);
    flex: none;
}

.rd-nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.rd-nav__links a {
    position: relative;
    color: var(--rd-muted);
    font-size: .93rem;
    font-weight: 500;
    padding: 4px 0;
    transition: color .15s ease;
}

.rd-nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 2px;
    background: var(--rd-red);
    transition: right .18s ease;
}

.rd-nav__links a:hover {
    color: var(--rd-ink);
}

.rd-nav__links a:hover::after {
    right: 0;
}

/* ---------- HERO ---------- */
.rd-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(620px 420px at 88% 8%, rgba(255, 130, 100, .18), transparent 60%),
        linear-gradient(160deg, #2c0704 0%, #5c0f06 45%, #8f1608 100%);
    padding: 88px 0 96px;
}

.rd-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 64px;
    align-items: center;
}

.rd-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, .82);
    font-size: .85rem;
    font-weight: 500;
}

.rd-hero__eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6be3a0;
    box-shadow: 0 0 0 4px rgba(107, 227, 160, .18);
    flex: none;
}

.rd-hero h1 {
    max-width: 640px;
    margin-bottom: 22px;
    color: #fff;
    font-size: clamp(2.5rem, 4.6vw, 3.6rem);
    font-weight: 600;
}

.rd-hero h1 .accent {
    color: var(--rd-peach);
}

.rd-hero__lead {
    max-width: 540px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
}

.rd-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 46px;
}

.rd-hero__stats {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.rd-hero__stat .num {
    font-family: var(--rd-font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
}

.rd-hero__stat .lbl {
    margin-top: 4px;
    color: rgba(255, 255, 255, .68);
    font-size: .8rem;
}

/* Toolkit card */
.rd-hero__card {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(6px);
    box-shadow: var(--rd-shadow-lg);
}

.rd-hero__card .label {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .6);
    font-size: .78rem;
    font-weight: 500;
}

.rd-stack {
    display: grid;
    gap: 4px;
}

.rd-stack__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 12px;
    border-radius: 12px;
    transition: background .15s ease;
}

.rd-stack__item + .rd-stack__item {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.rd-stack__item:hover {
    background: rgba(255, 255, 255, .06);
}

.rd-stack__item i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 11px;
    background: rgba(255, 255, 255, .1);
    color: var(--rd-peach);
    font-size: 1.05rem;
}

.rd-stack__item .t {
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
}

.rd-stack__item .s {
    margin-top: 2px;
    color: rgba(255, 255, 255, .58);
    font-size: .78rem;
}

/* ---------- SECTION SCAFFOLDING ---------- */
.rd-section {
    padding: 108px 0;
}

.rd-section--soft {
    background: var(--rd-white);
    border-top: 1px solid var(--rd-border);
    border-bottom: 1px solid var(--rd-border);
}

.rd-section--tint {
    background: var(--rd-red-soft);
}

.rd-section__head {
    max-width: 620px;
    margin-bottom: 56px;
}

.rd-section__kicker {
    display: block;
    margin-bottom: 14px;
    color: var(--rd-red);
    font-size: .88rem;
    font-weight: 600;
}

.rd-section__title {
    margin-bottom: 14px;
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}

.rd-section__sub {
    color: var(--rd-muted);
    font-size: 1.02rem;
}

/* ---------- SERVICES ---------- */
.rd-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rd-card {
    padding: 30px;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius);
    background: var(--rd-white);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rd-card:hover {
    border-color: rgba(200, 29, 10, .25);
    box-shadow: var(--rd-shadow);
    transform: translateY(-3px);
}

.rd-card__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--rd-red-soft);
    color: var(--rd-red);
    font-size: 1.15rem;
}

.rd-card h3 {
    margin-bottom: 10px;
    font-size: 1.12rem;
}

.rd-card p {
    color: var(--rd-muted);
    font-size: .92rem;
}

.rd-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.rd-card__tags span {
    padding: 5px 11px;
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    color: var(--rd-muted);
    font-size: .74rem;
    font-weight: 500;
}

/* ---------- PROJECTS ---------- */
.rd-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.rd-project {
    display: grid;
    grid-template-columns: 200px 1fr;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius);
    background: var(--rd-white);
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
}

.rd-project:hover {
    box-shadow: var(--rd-shadow);
    transform: translateY(-3px);
}

.rd-project__media {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    color: #fff;
    background: linear-gradient(160deg, var(--rd-red-dark), var(--rd-red));
}

.rd-project:nth-of-type(2) .rd-project__media {
    background: linear-gradient(160deg, #1d2229, #38414c);
}

.rd-project:nth-of-type(3) .rd-project__media {
    background: linear-gradient(160deg, #7a5305, #b8830c);
}

.rd-project:nth-of-type(4) .rd-project__media {
    background: linear-gradient(160deg, #0a5a63, #12838f);
}

.rd-project__badge {
    align-self: flex-start;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
}

.rd-project__media i {
    align-self: flex-end;
    font-size: 1.9rem;
    opacity: .85;
}

.rd-project__body {
    padding: 24px 26px;
}

.rd-project__body h3 {
    margin-bottom: 10px;
    font-size: 1.08rem;
}

.rd-project__body p {
    color: var(--rd-muted);
    font-size: .9rem;
    margin-bottom: 16px;
}

.rd-project__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.rd-project__meta span {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--rd-bg);
    color: var(--rd-muted);
    font-size: .72rem;
    font-weight: 500;
}

.rd-project__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rd-red);
    font-size: .88rem;
    font-weight: 600;
}

.rd-project__link i {
    transition: transform .15s ease;
}

.rd-project__link:hover i {
    transform: translateX(3px);
}

/* ---------- STATS BAND ---------- */
.rd-band {
    padding: 56px 0;
    background: var(--rd-dark);
}

.rd-band__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.rd-band__stat {
    text-align: center;
}

.rd-band__stat .num {
    font-family: var(--rd-font-display);
    font-size: 2.1rem;
    font-weight: 700;
    color: #fff;
}

.rd-band__stat .lbl {
    margin-top: 6px;
    color: rgba(255, 255, 255, .58);
    font-size: .82rem;
}

/* ---------- PROCESS ---------- */
.rd-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.rd-step {
    position: relative;
    padding-top: 20px;
}

.rd-step + .rd-step {
    border-left: 1px solid var(--rd-border);
    padding-left: 24px;
}

.rd-step__num {
    margin-bottom: 16px;
    font-family: var(--rd-font-display);
    font-size: .85rem;
    font-weight: 700;
    color: var(--rd-red);
}

.rd-step__num::before {
    counter-increment: rd-step;
    content: "0" counter(rd-step);
}

.rd-process {
    counter-reset: rd-step;
}

.rd-step h3 {
    margin-bottom: 10px;
    font-size: 1.08rem;
}

.rd-step p {
    color: var(--rd-muted);
    font-size: .9rem;
}

/* ---------- TESTIMONIALS ---------- */
.rd-quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rd-quote {
    margin: 0;
    padding: 30px;
    border-radius: var(--rd-radius);
    background: var(--rd-white);
}

.rd-quote__text {
    margin: 0 0 24px;
    color: var(--rd-ink);
    font-size: .98rem;
    line-height: 1.65;
}

.rd-quote__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rd-quote__avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    background: var(--rd-red-soft);
    color: var(--rd-red);
    font-family: var(--rd-font-display);
    font-size: .82rem;
    font-weight: 700;
}

.rd-quote__author .n {
    font-size: .88rem;
    font-weight: 600;
}

.rd-quote__author .r {
    color: var(--rd-muted);
    font-size: .78rem;
}

/* ---------- CTA ---------- */
.rd-cta {
    padding: 64px 56px;
    border-radius: 24px;
    background: linear-gradient(160deg, #2c0704 0%, #8f1608 100%);
    color: #fff;
    text-align: center;
}

.rd-cta__inner {
    max-width: 620px;
    margin-inline: auto;
}

.rd-cta h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.rd-cta p {
    color: rgba(255, 255, 255, .82);
    font-size: 1rem;
    margin-bottom: 32px;
}

.rd-cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.rd-cta .rd-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .32);
}

.rd-cta .rd-btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
}

/* ---------- FOOTER ---------- */
.rd-footer {
    padding: 64px 0 26px;
    color: rgba(255, 255, 255, .62);
    background: var(--rd-dark);
}

.rd-footer .rd-brand {
    color: #fff;
    margin-bottom: 14px;
}

.rd-footer > .rd-wrap > p,
.rd-footer__grid > div:first-child > p {
    max-width: 320px;
    color: rgba(255, 255, 255, .55);
    font-size: .88rem;
}

.rd-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr .8fr .9fr;
    gap: 48px;
    padding-bottom: 44px;
}

.rd-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.rd-footer__social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    color: rgba(255, 255, 255, .75);
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.rd-footer__social a:hover {
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.rd-footer h4 {
    margin-bottom: 16px;
    color: #fff;
    font-size: .86rem;
    font-weight: 600;
}

.rd-footer__links li + li {
    margin-top: 10px;
}

.rd-footer__links a {
    font-size: .86rem;
    transition: color .15s ease;
}

.rd-footer__links a:hover {
    color: #fff;
}

.rd-footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .78rem;
    color: rgba(255, 255, 255, .45);
}

.rd-footer__bottom a:hover {
    color: #fff;
}

/* ---------- FOCUS STATES ---------- */
.rd-page a:focus-visible,
.rd-page button:focus-visible {
    outline: 2px solid var(--rd-red);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1040px) {
    .rd-services { grid-template-columns: repeat(2, 1fr); }
    .rd-projects { grid-template-columns: 1fr; }
    .rd-quotes { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .rd-nav__links { display: none; }

    .rd-hero__grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .rd-hero__card { max-width: 480px; }

    .rd-process {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 36px;
    }

    .rd-step + .rd-step { border-left: 1px solid var(--rd-border); }
    .rd-process .rd-step:nth-child(odd) { border-left: 0; padding-left: 0; }

    .rd-band__inner { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }

    .rd-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .rd-footer__grid > div:first-child { grid-column: span 2; }
}

@media (max-width: 620px) {
    .rd-wrap { width: min(100% - 32px, 600px); }

    .rd-nav__inner { min-height: 66px; }

    .rd-hero { padding: 64px 0 68px; }
    .rd-hero__stats { flex-wrap: wrap; gap: 24px; }

    .rd-section { padding: 76px 0; }

    .rd-services { grid-template-columns: 1fr; }

    .rd-project {
        grid-template-columns: 1fr;
    }

    .rd-project__media {
        flex-direction: row;
        align-items: center;
    }

    .rd-project__media i { font-size: 1.4rem; }

    .rd-process { grid-template-columns: 1fr; row-gap: 30px; }
    .rd-process .rd-step { border-left: 0 !important; padding-left: 0 !important; }

    .rd-band__inner { grid-template-columns: 1fr 1fr; }

    .rd-cta { padding: 44px 24px; }

    .rd-footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rd-footer__grid > div:first-child { grid-column: auto; }

    .rd-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rd-page *, .rd-page *::before, .rd-page *::after { transition: none !important; }
}
