:root {
    --rm-orange: #eb9400;
    --rm-orange-hover: #d08500;
    --rm-navy: #1c2c3b;
    --rm-navy-soft: #253d52;
    --rm-teal: #00d8bb;
    --rm-teal-deep: #009985;
    --rm-light: #f9f9f9;
    --surface: #ffffff;
    --surface-muted: #f4f7fa;
    --surface-blue: #edf6f8;
    --text: #182533;
    --text-muted: #5c6a78;
    --border: rgba(28, 44, 59, 0.12);
    --shadow: 0 18px 45px rgba(28, 44, 59, 0.12);
    --radius: 8px;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

input {
    width: 100%;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--rm-orange);
    color: #fff;
    border-radius: 6px;
    transform: translateY(-140%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(28, 44, 59, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    font-weight: 500;
}

.nav-menu a {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #fff;
}

.nav-login {
    color: #fff;
}

.nav-cta {
    color: #fff;
    background: var(--rm-orange);
    border: 1px solid var(--rm-orange);
    border-radius: 6px;
    padding: 10px 14px;
}

.nav-cta:hover,
.nav-cta:focus {
    background: var(--rm-orange-hover);
    border-color: var(--rm-orange-hover);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle-line {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background-color: var(--rm-navy);
    background-image: url("../img/dashboard-preview.png");
    background-size: cover;
    background-position: center right;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(28, 44, 59, 0.96) 0%, rgba(28, 44, 59, 0.9) 42%, rgba(28, 44, 59, 0.52) 100%),
        linear-gradient(0deg, rgba(28, 44, 59, 0.68), rgba(28, 44, 59, 0.08));
}

.hero-content {
    position: relative;
    padding-top: 132px;
    padding-bottom: 76px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--rm-teal);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: 3.6rem;
    line-height: 1.08;
    font-weight: 700;
}

.hero-lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.14rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--rm-orange);
    color: #fff;
    border-color: var(--rm-orange);
    box-shadow: 0 10px 24px rgba(235, 148, 0, 0.25);
}

.button-primary:hover,
.button-primary:focus {
    background: var(--rm-orange-hover);
    border-color: var(--rm-orange-hover);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.button-secondary:hover,
.button-secondary:focus {
    background: rgba(255, 255, 255, 0.16);
}

.button-plan {
    width: 100%;
    background: #fff;
    color: var(--rm-navy);
    border-color: var(--border);
}

.button-plan:hover,
.button-plan:focus {
    border-color: var(--rm-orange);
    color: var(--rm-orange-hover);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.hero-trust li {
    position: relative;
    padding-left: 18px;
}

.hero-trust li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    background: var(--rm-teal);
    border-radius: 50%;
}

.hero-costs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 820px;
    margin-top: 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-costs span {
    padding: 16px 14px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-costs span:last-child {
    border-right: 0;
}

.section {
    padding: 92px 0;
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2,
.intro-grid h2,
.calculator-copy h2,
.manufacturing-grid h2,
.comparison-grid h2,
.faq-layout h2,
.final-cta h2 {
    margin: 0;
    color: var(--rm-navy);
    font-size: 2.4rem;
    line-height: 1.18;
}

.section-heading p,
.intro-copy,
.calculator-copy p,
.manufacturing-grid p,
.comparison-grid p,
.faq-layout p,
.final-cta p {
    color: var(--text-muted);
}

.section-heading > p:last-child {
    margin: 16px auto 0;
    max-width: 680px;
}

.section-intro {
    background: var(--surface);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 54px;
    align-items: start;
}

.intro-copy p {
    margin: 0;
}

.intro-copy p + p {
    margin-top: 18px;
}

.calculator-section {
    background: var(--surface-blue);
}

.calculator-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: 56px;
    align-items: center;
}

.calculator-copy h2 {
    margin-bottom: 18px;
}

.check-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
    font-weight: 500;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 15px;
    height: 15px;
    background: var(--rm-teal);
    clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 20%, 84% 8%, 35% 70%);
}

.calculator {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.field-group {
    display: grid;
    gap: 7px;
}

.field-group label {
    color: var(--rm-navy);
    font-size: 0.84rem;
    font-weight: 700;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 12px;
    background: var(--surface-muted);
    border: 1px solid rgba(28, 44, 59, 0.1);
    border-radius: 6px;
    color: var(--text-muted);
}

.input-row input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--rm-navy);
    font-weight: 700;
}

.input-row:focus-within {
    border-color: var(--rm-orange);
    box-shadow: 0 0 0 3px rgba(235, 148, 0, 0.16);
}

.calculator-result {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    padding: 18px;
    background: var(--rm-navy);
    color: rgba(255, 255, 255, 0.78);
    border-radius: 6px;
}

.calculator-result strong {
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.1;
}

.calculator-result .is-positive {
    color: #8ff5d8;
}

.calculator-result .is-negative {
    color: #ffb4bd;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.plan-card,
.use-cases article,
.workflow li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.feature-card {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(28, 44, 59, 0.12);
    border-color: rgba(235, 148, 0, 0.34);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    background: var(--rm-orange);
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
}

.feature-card h3,
.use-cases h3,
.workflow h3,
.plan-card h3 {
    margin: 0;
    color: var(--rm-navy);
    line-height: 1.25;
}

.feature-card p,
.use-cases p,
.workflow p,
.plan-card p,
.plan-card li {
    color: var(--text-muted);
}

.feature-card p {
    margin: 12px 0 0;
}

.manufacturing-section {
    background: var(--surface-muted);
}

.manufacturing-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 50px;
    align-items: center;
}

.manufacturing-grid h2 {
    margin-bottom: 18px;
}

.use-cases {
    display: grid;
    gap: 14px;
}

.use-cases article {
    padding: 20px;
    border-left: 4px solid var(--rm-orange);
}

.use-cases article:nth-child(2) {
    border-left-color: var(--rm-teal-deep);
}

.use-cases article:nth-child(3) {
    border-left-color: #198754;
}

.use-cases p {
    margin: 8px 0 0;
}

.workflow-section {
    background: #fff;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    counter-reset: workflow;
}

.workflow li {
    padding: 24px;
    position: relative;
    min-height: 250px;
}

.workflow span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 22px;
    color: #fff;
    background: var(--rm-navy);
    border-radius: 50%;
    font-weight: 800;
}

.workflow p {
    margin: 12px 0 0;
}

.comparison-section {
    background: var(--surface-blue);
}

.comparison-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}

.comparison-grid h2 {
    margin-bottom: 16px;
}

.comparison-table {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(28, 44, 59, 0.08);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
    border-bottom: 0;
}

.comparison-row span {
    padding: 16px;
    color: var(--text-muted);
    border-right: 1px solid var(--border);
}

.comparison-row span:last-child {
    border-right: 0;
    color: var(--rm-navy);
    font-weight: 700;
}

.comparison-head {
    background: var(--rm-navy);
}

.comparison-head span,
.comparison-head span:last-child {
    color: #fff;
    font-weight: 700;
}

.plans-section {
    background: #fff;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
}

.plan-highlight {
    border-color: rgba(235, 148, 0, 0.58);
    box-shadow: var(--shadow);
}

.plan-badge {
    align-self: flex-start;
    margin: 0;
    padding: 6px 10px;
    color: #fff;
    background: var(--rm-orange);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.plan-for {
    margin: 0;
}

.plan-card .plan-price {
    margin: 0;
    color: var(--rm-navy);
    font-weight: 700;
}

.plan-card .plan-price span {
    display: block;
    color: var(--rm-orange);
    font-size: 2.1rem;
    line-height: 1.1;
}

.plan-card .plan-alt-price,
.plan-card .plan-note {
    margin: -12px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plan-card .plan-note {
    color: var(--rm-navy-soft);
    font-weight: 600;
}

.plan-card ul {
    display: grid;
    gap: 10px;
    margin-bottom: auto;
}

.plan-card li {
    position: relative;
    padding-left: 20px;
}

.plan-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 7px;
    height: 7px;
    background: var(--rm-orange);
    border-radius: 50%;
}

.faq-section {
    background: var(--surface-muted);
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 52px;
}

.faq-layout h2 {
    margin-bottom: 18px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-list summary {
    cursor: pointer;
    padding: 18px 46px 18px 18px;
    color: var(--rm-navy);
    font-weight: 700;
    list-style: none;
    position: relative;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rm-orange);
    font-size: 1.3rem;
    font-weight: 700;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-list details p {
    margin: 0;
    padding: 0 18px 18px;
}

.final-cta {
    color: #fff;
    background: var(--rm-navy);
    padding: 88px 0;
}

.final-cta-inner {
    max-width: 780px;
    margin-inline: auto;
    text-align: center;
}

.final-cta .section-kicker {
    color: var(--rm-teal);
}

.final-cta h2 {
    color: #fff;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.78);
}

.final-cta .hero-actions {
    justify-content: center;
}

.site-footer {
    padding: 34px 0;
    color: rgba(255, 255, 255, 0.68);
    background: #142231;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-grid p {
    margin: 12px 0 0;
    max-width: 460px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    font-size: 0.9rem;
}

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

:focus-visible {
    outline: 3px solid rgba(0, 216, 187, 0.8);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .hero h1 {
        max-width: 760px;
        font-size: 3rem;
    }

    .feature-grid,
    .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 78px;
        display: grid;
        gap: 0;
        padding: 12px;
        color: var(--text);
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        transform-origin: top;
        transform: scaleY(0.96);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.16s ease, transform 0.16s ease;
    }

    .nav-menu.is-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu a {
        padding: 12px;
        border-radius: 6px;
    }

    .nav-menu a:hover,
    .nav-menu a:focus {
        color: var(--rm-navy);
        background: var(--surface-muted);
    }

    .nav-login {
        color: var(--rm-navy);
    }

    .nav-cta {
        margin-top: 6px;
        text-align: center;
        color: #fff;
    }

    .hero {
        min-height: auto;
        background-position: 60% center;
    }

    .hero-content {
        padding-top: 122px;
        padding-bottom: 66px;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-costs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-costs span:nth-child(2) {
        border-right: 0;
    }

    .hero-costs span:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .intro-grid,
    .calculator-layout,
    .manufacturing-grid,
    .comparison-grid,
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading h2,
    .intro-grid h2,
    .calculator-copy h2,
    .manufacturing-grid h2,
    .comparison-grid h2,
    .faq-layout h2,
    .final-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .nav {
        min-height: 66px;
    }

    .brand img {
        width: 160px;
        height: auto;
    }

    .nav-menu {
        top: 72px;
        left: 14px;
        right: 14px;
    }

    .hero-content {
        padding-top: 112px;
        padding-bottom: 54px;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .hero-actions,
    .final-cta .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-trust {
        display: grid;
        gap: 8px;
    }

    .hero-costs {
        grid-template-columns: 1fr;
    }

    .hero-costs span,
    .hero-costs span:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .hero-costs span:last-child {
        border-bottom: 0;
    }

    .calculator,
    .feature-grid,
    .plans-grid,
    .workflow {
        grid-template-columns: 1fr;
    }

    .calculator {
        padding: 18px;
    }

    .workflow li {
        min-height: auto;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-row {
        min-width: 620px;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
