:root {
    --ink: #111820;
    --muted: #66717c;
    --line: #dce3e8;
    --paper: #f6f8f7;
    --white: #ffffff;
    --teal: #2f807d;
    --teal-dark: #1c5e5b;
    --amber: #f0b35d;
    --charcoal: #10181e;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

body {
    min-width: 320px;
}

body,
button,
input,
textarea,
select {
    letter-spacing: 0;
}

a {
    color: var(--teal-dark);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.02;
}

h1 {
    color: #ffffff;
    font-size: clamp(2.35rem, 5.4vw, 4.85rem);
    max-width: 850px;
}

h1:focus {
    outline: none;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.75rem);
    max-width: 850px;
}

h3 {
    font-size: 1.2rem;
}

p {
    color: var(--muted);
    line-height: 1.72;
}

.section-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding-left: 5vw;
    padding-right: 5vw;
}

.eyebrow {
    color: var(--teal-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 50px;
    padding: 0.85rem 1.15rem;
    text-decoration: none;
}

.button-primary {
    background: var(--amber);
    color: var(--charcoal);
}

.button-primary:hover {
    background: #ffca78;
    color: var(--charcoal);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.button-secondary-dark {
    border: 1px solid var(--line);
    color: var(--ink);
}

.button-secondary-dark:hover {
    background: var(--white);
    color: var(--ink);
}

.hero-section {
    isolation: isolate;
    min-height: 86vh;
    overflow: hidden;
    padding-top: 76px;
    position: relative;
}

.hero-media {
    background-image: url("/images/redaction-hero.png?v=2");
    background-position: center right;
    background-size: cover;
    inset: 0;
    position: absolute;
    z-index: -2;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(16, 24, 30, 0.96) 0%, rgba(16, 24, 30, 0.82) 42%, rgba(16, 24, 30, 0.25) 100%),
        linear-gradient(180deg, rgba(16, 24, 30, 0.1) 0%, rgba(16, 24, 30, 0.88) 100%);
    inset: 0;
    position: absolute;
    z-index: -1;
}

.app-dev-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(240, 179, 93, 0.2), transparent 30%),
        linear-gradient(135deg, #10181e 0%, #1b2e36 54%, #244e4d 100%);
    isolation: isolate;
    min-height: 86vh;
    overflow: hidden;
    padding-top: 76px;
    position: relative;
}

.app-dev-backdrop {
    inset: 0;
    opacity: 0.96;
    position: absolute;
    z-index: -1;
}

.app-dev-backdrop::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(90deg, transparent 0%, #000000 44%, #000000 100%);
    position: absolute;
}

.monitor-window {
    background: rgba(246, 248, 247, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    max-width: 560px;
    padding: 1rem;
    position: absolute;
    right: max(5vw, calc((100vw - 1180px) / 2));
    top: 19%;
    width: min(36vw, 500px);
}

.service-signal {
    display: grid;
    gap: 0.85rem;
    max-width: 470px;
    position: absolute;
    right: max(5vw, calc((100vw - 1180px) / 2));
    top: 24%;
    width: min(34vw, 470px);
}

.service-signal div {
    background: rgba(246, 248, 247, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    padding: 1.1rem;
}

.service-signal span {
    color: var(--amber);
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.service-signal strong {
    color: #ffffff;
    font-size: clamp(1.25rem, 2.2vw, 1.9rem);
    line-height: 1.1;
}

.monitor-toolbar {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.monitor-toolbar span {
    background: rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.monitor-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1.15fr 1fr;
}

.metric-tile,
.signal-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 1rem;
}

.metric-tile {
    display: grid;
    gap: 0.5rem;
}

.metric-tile-wide {
    grid-row: span 2;
}

.metric-tile small {
    color: rgba(255, 255, 255, 0.64);
    font-weight: 800;
    text-transform: uppercase;
}

.metric-tile strong {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;
}

.status-line {
    border-radius: 999px;
    display: block;
    height: 8px;
}

.status-line-good {
    background: linear-gradient(90deg, #71d7b6 0%, #71d7b6 76%, rgba(255, 255, 255, 0.18) 76%);
}

.status-line-warn {
    background: linear-gradient(90deg, var(--amber) 0%, var(--amber) 42%, rgba(255, 255, 255, 0.18) 42%);
}

.signal-panel {
    align-items: end;
    display: grid;
    gap: 0.45rem;
    grid-column: 1 / -1;
    grid-template-columns: repeat(8, 1fr);
    min-height: 150px;
}

.signal-panel span {
    background: linear-gradient(180deg, var(--amber), var(--teal));
    border-radius: 6px 6px 0 0;
    min-height: 28px;
}

.signal-panel span:nth-child(2) {
    min-height: 68px;
}

.signal-panel span:nth-child(3) {
    min-height: 46px;
}

.signal-panel span:nth-child(4) {
    min-height: 104px;
}

.signal-panel span:nth-child(5) {
    min-height: 76px;
}

.signal-panel span:nth-child(6) {
    min-height: 118px;
}

.signal-panel span:nth-child(7) {
    min-height: 58px;
}

.signal-panel span:nth-child(8) {
    min-height: 92px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(86vh - 76px);
    padding-bottom: 2.75rem;
    padding-top: 3.25rem;
}

.app-dev-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(86vh - 76px);
    padding-bottom: 2.75rem;
    padding-top: 3.25rem;
}

.hero-content .eyebrow {
    color: var(--amber);
}

.app-dev-hero-content .eyebrow {
    color: var(--amber);
}

.app-dev-hero-content h1,
.app-dev-hero-content .hero-copy {
    max-width: 620px;
}

.home-hero .app-dev-hero-content h1,
.home-hero .app-dev-hero-content .hero-copy {
    max-width: 700px;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.79);
    font-size: clamp(1.06rem, 1.8vw, 1.28rem);
    margin-bottom: 1.5rem;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.trust-strip {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: auto 0 0;
    max-width: 980px;
    overflow: hidden;
}

.trust-strip div {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.1rem;
}

.trust-strip dt {
    color: #ffffff;
    font-weight: 800;
}

.trust-strip dd {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0.25rem 0 0;
}

.services-section,
.markets-section,
.proof-section,
.roadmap-section {
    padding-bottom: clamp(4rem, 8vw, 7rem);
    padding-top: clamp(4rem, 8vw, 7rem);
}

.section-heading {
    align-items: end;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.75fr);
    margin-bottom: 2rem;
}

.section-heading p:last-child {
    margin-bottom: 0;
}

.service-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-line-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.service-line-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.service-line-card p {
    margin-bottom: 1.5rem;
}

.service-line-card .button {
    margin-top: auto;
    width: fit-content;
}

.service-line-card-dark {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: #ffffff;
}

.service-line-card-dark h3 {
    color: #ffffff;
}

.service-line-card-dark p {
    color: rgba(255, 255, 255, 0.7);
}

.app-dev-service-grid .service-card {
    min-height: 330px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 300px;
    padding: 1.35rem;
}

.product-section {
    background: var(--charcoal);
    color: #ffffff;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.product-section .eyebrow {
    color: var(--amber);
}

.product-section p {
    color: rgba(255, 255, 255, 0.69);
}

.product-layout {
    align-items: start;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.product-feature-list {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr 1fr;
}

.product-feature-list article {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    min-height: 240px;
    padding: 1.15rem;
}

.product-feature-list span,
.roadmap-grid span {
    color: var(--amber);
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 1.6rem;
    text-transform: uppercase;
}

.product-feature-list h3 {
    color: #ffffff;
}

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

.roadmap-grid article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 260px;
    padding: 1.35rem;
}

.service-icon {
    color: var(--teal);
    display: block;
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 4rem;
}

.process-section {
    background: var(--charcoal);
    color: #ffffff;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.process-section .eyebrow {
    color: var(--amber);
}

.process-section p {
    color: rgba(255, 255, 255, 0.69);
}

.process-layout {
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
}

.timeline {
    display: grid;
    gap: 0.75rem;
}

.timeline article {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr;
    padding: 1rem;
}

.timeline span {
    align-items: center;
    background: var(--teal);
    border-radius: 8px;
    display: inline-flex;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.timeline h3,
.timeline p {
    grid-column: 2;
    margin-bottom: 0;
}

.markets-section {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.market-panel {
    background: #dce9e7;
    border-radius: 8px;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.market-panel-dark {
    background: #1f313a;
    color: #ffffff;
}

.market-panel-dark .eyebrow {
    color: var(--amber);
}

.market-panel-dark p {
    color: rgba(255, 255, 255, 0.7);
}

.proof-section {
    align-items: center;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
}

.proof-list {
    display: grid;
    gap: 0.75rem;
}

.proof-list div {
    align-items: start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 0.55rem;
    padding: 1.1rem;
}

.proof-list strong {
    color: var(--ink);
}

.proof-list span {
    color: var(--muted);
    line-height: 1.55;
}

.contact-section {
    background: #e8eeef;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.contact-layout {
    align-items: start;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr);
}

.contact-card {
    background: var(--charcoal);
    border-radius: 8px;
    padding: 1.25rem;
}

.contact-card .button {
    width: 100%;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.68);
    margin: 1rem 0 0;
}

.contact-card label {
    color: #ffffff;
}

.contact-form-card {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.form-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr 1fr;
}

label {
    color: inherit;
    display: grid;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 0.4rem;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 46px;
    padding: 0.75rem;
    width: 100%;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(240, 179, 93, 0.2);
    outline: none;
}

.form-span {
    grid-column: 1 / -1;
}

.validation-message {
    color: #ffd0d0;
    font-size: 0.82rem;
    font-weight: 700;
}

.contact-card .button[type="submit"] {
    border: 0;
    margin-top: 1rem;
    width: 100%;
}

.form-status {
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    margin: 1rem 0 0;
    padding: 0.85rem;
}

.form-status-success {
    background: rgba(215, 244, 222, 0.15);
    color: #d7f4de !important;
}

.form-status-error {
    background: rgba(255, 208, 208, 0.12);
    color: #ffd0d0 !important;
}

.admin-auth-section,
.admin-section {
    min-height: 100vh;
    padding: 8rem 0 5rem;
}

.admin-auth-section {
    background: var(--charcoal);
}

.admin-auth-layout {
    align-items: start;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.admin-auth-layout h1,
.admin-section h1 {
    color: var(--ink);
    font-size: clamp(2.25rem, 5vw, 4.2rem);
}

.admin-auth-layout h1 {
    color: #ffffff;
}

.admin-auth-layout p {
    color: rgba(255, 255, 255, 0.7);
}

.admin-card,
.submission-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    padding: 1.25rem;
}

.admin-card {
    display: grid;
    gap: 1rem;
}

.admin-card input {
    border-color: var(--line);
}

.admin-heading {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.submission-list {
    display: grid;
    gap: 1rem;
}

.submission-card-header {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.submission-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.submission-card time {
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 0.9rem;
}

.submission-card dl {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr 1fr;
    margin: 1rem 0;
}

.submission-card dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.submission-card dd {
    margin: 0.2rem 0 0;
}

@media (max-width: 980px) {
    .section-heading,
    .process-layout,
    .proof-section,
    .product-layout,
    .admin-auth-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .monitor-window {
        opacity: 0.34;
        right: 5vw;
        top: 18%;
        width: min(70vw, 560px);
    }

    .service-signal {
        opacity: 0.28;
        right: 5vw;
        top: 16%;
        width: min(70vw, 470px);
    }

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

    .service-line-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    .section-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section {
        min-height: auto;
        padding-top: 68px;
    }

    .app-dev-hero {
        min-height: auto;
        padding-top: 68px;
    }

    .monitor-window {
        display: none;
    }

    .service-signal {
        display: none;
    }

    .hero-media {
        background-position: center;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(16, 24, 30, 0.94) 0%, rgba(16, 24, 30, 0.88) 100%);
    }

    .hero-content {
        min-height: auto;
        padding-bottom: 2.5rem;
        padding-top: 4rem;
    }

    .app-dev-hero-content {
        min-height: auto;
        padding-bottom: 2.5rem;
        padding-top: 4rem;
    }

    h1 {
        font-size: clamp(2rem, 9.2vw, 2.55rem);
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .trust-strip,
    .service-grid,
    .markets-section,
    .product-feature-list,
    .form-grid,
    .submission-card dl {
        grid-template-columns: 1fr;
    }

    .admin-heading,
    .submission-card-header {
        display: grid;
    }

    .service-card {
        min-height: 0;
    }

    .service-line-card {
        min-height: 0;
    }

    .service-line-card .button {
        width: 100%;
    }

    .service-icon {
        margin-bottom: 2rem;
    }

    .timeline article {
        grid-template-columns: 1fr;
    }

    .timeline h3,
    .timeline p {
        grid-column: 1;
    }
}
