:root {
    --forest-950: #101c13;
    --forest-900: #18281c;
    --forest-800: #243a28;
    --green-700: #3f713a;
    --green-600: #548b46;
    --green-100: #e5eee0;
    --paper: #f6f7f2;
    --white: #ffffff;
    --ink: #1b281d;
    --muted: #5b685d;
    --ember: #c7782d;
    --line: #d7ddd2;
    --error: #a93b2f;
    --font-brand: "Arial Black", "Aptos Display", Arial, sans-serif;
    --font-body: Aptos, "Segoe UI", Arial, sans-serif;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; background: var(--paper); }
body { line-height: 1.6; }
body, input, select, textarea, button { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-brand); font-weight: 900; line-height: 1.05; letter-spacing: -.035em; }
h1:focus { outline: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 48px)); 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; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16,28,19,.97); border-bottom: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; width: 220px; }
.brand img { width: 100%; max-height: 62px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { color: #dce7d8; text-decoration: none; font-size: .9rem; font-weight: 650; }
nav a:hover, nav a:focus-visible { color: var(--white); }
.nav-cta { padding: 9px 16px; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; }

.hero { min-height: min(680px, calc(100vh - 76px)); position: relative; display: grid; align-items: end; color: var(--white); background: url("images/forest-road.webp") center 48% / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,10,.88) 0%, rgba(8,16,10,.57) 52%, rgba(8,16,10,.18) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 112px 86px; }
.eyebrow, .section-label { margin-bottom: 18px; color: #bfd1b6; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.hero h1 { width: min(760px, 100%); margin-bottom: 24px; font-size: clamp(2.75rem, 6vw, 5.4rem); color: var(--white); }
.hero-copy { max-width: 660px; margin-bottom: 32px; color: #dfe8dc; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid transparent; border-radius: 6px; padding: 11px 20px; color: var(--white); font-weight: 750; text-decoration: none; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary, .submit-button { background: var(--green-600); }
.button-primary:hover, .submit-button:hover { background: #649d53; }
.button-secondary { background: rgba(16,28,19,.45); border-color: rgba(255,255,255,.62); }
.button-secondary:hover { background: rgba(16,28,19,.75); }

.proof-band { background: var(--white); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-grid article { padding: 42px 34px; border-left: 1px solid var(--line); }
.proof-grid article:first-child { border-left: 0; }
.proof-grid strong { display: block; color: var(--ember); font: 900 1.5rem/1.2 var(--font-brand); letter-spacing: -.025em; }
.proof-grid span { display: block; margin: 5px 0 12px; font-weight: 750; }
.proof-grid p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

.feature { padding-block: 112px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; gap: clamp(56px, 8vw, 112px); }
.feature-copy h2, .section-heading h2, .order-intro h2 { margin-bottom: 24px; font-size: clamp(2.25rem, 4vw, 3.65rem); }
.feature-copy > p:not(.section-label) { color: var(--muted); }
.section-label { color: var(--green-700); }
.feature-image { margin: 0; }
.feature-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 22px 50px rgba(18,38,22,.16); }
.feature-image figcaption { margin-top: 12px; color: var(--muted); font-size: .78rem; }
.process-band { background: var(--green-100); }
.feature-reverse { grid-template-columns: minmax(420px, 1.1fr) minmax(0, .9fr); }
.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 36px 0 0; }
.capabilities div { border-top: 1px solid #bdcbb7; padding-top: 14px; }
.capabilities dt { color: var(--green-700); font: 900 1rem var(--font-brand); letter-spacing: -.02em; }
.capabilities dd { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }

.applications { padding-block: 112px; }
.section-heading { max-width: 650px; margin-bottom: 54px; }
.section-heading > p:last-child { color: var(--muted); }
.application-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.application-grid article { min-height: 155px; padding: 28px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.application-grid h3 { margin-bottom: 24px; font-size: 1.08rem; }
.application-grid p { margin: 0; color: var(--ember); font: 900 .95rem var(--font-brand); letter-spacing: -.02em; }

.order-band { padding-block: 112px; color: #e7eee4; background: var(--forest-900); }
.order-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(500px, 1.18fr); gap: clamp(60px, 9vw, 128px); align-items: start; }
.order-intro { position: sticky; top: 120px; }
.order-intro .section-label { color: #9cc691; }
.order-intro h2 { color: var(--white); }
.order-intro > p:not(.section-label) { color: #bfcbbd; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.steps li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.steps li > span { color: #e4a15f; font: 900 .8rem var(--font-brand); }
.steps strong { display: block; color: var(--white); }
.steps p { margin: 2px 0 0; color: #aebbaa; font-size: .87rem; }
.contact-details { margin-top: 32px; display: flex; flex-direction: column; color: #aebbaa; font-size: .85rem; }
.contact-details a { width: fit-content; color: var(--white); font-family: var(--font-brand); font-size: 1.35rem; font-weight: 900; letter-spacing: -.025em; text-decoration: none; }

.order-form-wrap { min-height: 300px; padding: 40px; color: var(--ink); background: var(--white); border-radius: 8px; box-shadow: 0 28px 80px rgba(0,0,0,.24); }
.form-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-heading span { font-family: var(--font-brand); font-size: 1.55rem; font-weight: 900; letter-spacing: -.035em; }
.form-heading p { margin: 0; color: var(--muted); font-size: .78rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin: 0 0 20px; padding: 0; border: 0; }
.field label, .field legend { display: block; margin-bottom: 7px; color: #37443a; font-size: .82rem; font-weight: 750; }
.field label span { color: #839084; font-weight: 500; }
.field-help { margin: 7px 0 0; color: var(--muted); font-size: .75rem; }
.address-fields { margin-top: 28px; padding: 22px; background: #f6f7f2; border: 1px solid var(--line); border-radius: 7px; }
.address-fields > legend { padding: 0 8px; color: var(--forest-900); font-family: var(--font-brand); font-size: 1.1rem; font-weight: 900; letter-spacing: -.025em; }
.address-fields .field:last-child { margin-bottom: 0; }
.address-locality-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(150px, 1fr) minmax(110px, .65fr); gap: 12px; }
.country-field input { color: var(--muted); background: #e9ede6; cursor: not-allowed; }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid #bcc6ba; border-radius: 5px; padding: 10px 12px; color: var(--ink); background: #fbfcf9; }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(84,139,70,.18); border-color: var(--green-600); }
.quantity-row { display: grid; grid-template-columns: 1fr 170px; gap: 12px; }
.capacity-meter { margin-top: 12px; }
.capacity-track { height: 7px; overflow: hidden; background: #e2e8df; border-radius: 4px; }
.capacity-track span { display: block; height: 100%; background: var(--green-600); transition: width .2s ease; }
.capacity-label { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: .72rem; }
.validation-message { display: block; margin-top: 5px; color: var(--error); font-size: .76rem; }
.invalid { border-color: var(--error); }
.submit-button { width: 100%; margin-top: 4px; border: 0; }
.submit-button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-error { margin-bottom: 14px; padding: 12px 14px; color: #7e251d; background: #fae9e6; border: 1px solid #e2aaa3; border-radius: 5px; font-size: .82rem; }
.form-note { margin: 13px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.success-message { display: flex; gap: 18px; padding: 24px; background: #edf5e8; border: 1px solid #b6cfad; border-radius: 6px; }
.success-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: var(--white); background: var(--green-600); border-radius: 50%; font-weight: 800; }
.success-message h3 { margin-bottom: 7px; font-size: 1.35rem; }
.success-message p { margin: 0; color: var(--muted); }
.success-message .confirmation-delivery { margin-top: 10px; font-size: .82rem; }
.success-message .confirmation-warning { color: #8a4d18; }
.text-button { margin-top: 24px; padding: 0; border: 0; color: var(--green-700); background: transparent; font-weight: 750; text-decoration: underline; cursor: pointer; }

footer { padding-block: 44px; color: #c5d0c2; background: var(--forest-950); border-top: 1px solid rgba(255,255,255,.1); }
.footer-inner { display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 44px; }
.footer-inner img { width: 220px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--white); text-decoration: none; }
.footer-inner > p { max-width: 300px; text-align: right; font-family: var(--font-brand); font-weight: 900; letter-spacing: -.025em; }

/* About page */
.about-hero { min-height: 600px; position: relative; display: grid; align-items: end; color: var(--white); background: url("images/control-panel-hero.png") center / cover no-repeat; }
.about-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,10,.96) 0%, rgba(8,16,10,.80) 48%, rgba(8,16,10,.36) 100%); }
.about-hero-content { position: relative; z-index: 1; padding-block: 116px 86px; }
.about-hero h1 { max-width: 800px; margin-bottom: 26px; color: var(--white); font-size: clamp(2.8rem, 6vw, 5.25rem); }
.about-hero-content > p:not(.eyebrow) { max-width: 720px; margin-bottom: 12px; color: #dfe8dc; font-size: 1.08rem; }
.about-intro { padding-block: 92px; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 9vw, 130px); align-items: end; }
.about-intro h2, .circular-copy h2, .capability-heading h2, .results-intro h2, .about-cta h2 { margin-bottom: 0; font-size: clamp(2.25rem, 4vw, 3.65rem); }
.about-lead { margin: 0; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; }
.benefits-section { padding-block: 104px; background: var(--green-100); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #b9c9b4; border-left: 1px solid #b9c9b4; }
.benefit-grid article { min-height: 280px; padding: 30px 26px; background: rgba(255,255,255,.48); border-right: 1px solid #b9c9b4; border-bottom: 1px solid #b9c9b4; }
.benefit-grid article > span, .process-list > li > span { display: block; margin-bottom: 46px; color: var(--ember); font-family: var(--font-brand); font-size: .78rem; font-weight: 900; }
.benefit-grid h3 { margin-bottom: 14px; font-size: 1.25rem; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
.circular-section { padding-block: 112px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr); gap: 52px 90px; align-items: center; }
.circular-copy > p:last-child { margin: 24px 0 0; color: var(--muted); }
.circular-image { margin: 0; }
.circular-image img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 8px; box-shadow: 0 22px 50px rgba(18,38,22,.16); }
.process-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; margin: 12px 0 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-list li { min-height: 190px; display: flex; flex-direction: column; padding: 24px 20px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-list > li > span { margin-bottom: 30px; }
.process-list h3 { margin-bottom: 9px; font-size: 1rem; }
.process-list p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.operations-gallery { padding-block: 106px; background: var(--white); border-top: 1px solid var(--line); }
.operations-heading { max-width: 720px; margin-bottom: 46px; }
.operations-heading h2 { margin-bottom: 20px; font-size: clamp(2.25rem, 4vw, 3.65rem); }
.operations-heading > p:last-child { margin: 0; color: var(--muted); font-size: 1.02rem; }
.operations-images { width: min(820px, 100%); }
.operations-images figure { margin: 0; }
.operations-images img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; box-shadow: 0 18px 42px rgba(18,38,22,.14); }
.operations-images figcaption { margin-top: 12px; color: var(--muted); font-size: .8rem; }
.capability-section { padding-block: 108px; color: var(--white); background: var(--forest-900); }
.capability-heading { max-width: 650px; margin-bottom: 52px; }
.capability-heading .section-label { color: #9cc691; }
.capability-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.capability-grid div { min-height: 190px; padding: 25px 22px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.capability-grid div:nth-child(1), .capability-grid div:nth-child(2), .capability-grid div:nth-child(3) { grid-column: span 2; }
.capability-grid div:nth-child(4), .capability-grid div:nth-child(5) { grid-column: span 3; }
.capability-grid dt { margin-bottom: 28px; color: #aebbaa; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.capability-grid dd { margin: 0 0 6px; color: var(--white); font-family: var(--font-brand); font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 900; line-height: 1.12; letter-spacing: -.03em; }
.capability-grid span { color: #aebbaa; font-size: .82rem; }
.results-section { padding-block: 112px; }
.results-intro { max-width: 700px; margin-bottom: 54px; }
.results-intro > p:last-child { margin: 22px 0 0; color: var(--muted); font-size: 1.05rem; }
.results-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.data-panel { padding: 34px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green-600); border-radius: 7px; box-shadow: 0 16px 40px rgba(18,38,22,.08); }
.data-panel-accent { border-top-color: var(--ember); }
.data-panel h3 { margin-bottom: 24px; font-size: 1.35rem; }
.data-list { margin: 0; }
.data-list div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }
.data-list dt { color: var(--muted); }
.data-list dd { margin: 0; color: var(--forest-900); font-weight: 800; text-align: right; }
.about-cta { padding-block: 76px; background: var(--green-100); }
.about-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.about-cta .section-label { margin-bottom: 12px; }
.about-cta .button { flex: 0 0 auto; }

/* Home page scroll effects */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--ember), #e4a15f);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}
.site-header.scroll-effects-header,
.site-header.scroll-effects-header .header-inner,
.site-header.scroll-effects-header .brand { transition: min-height .28s ease, width .28s ease, background-color .28s ease, box-shadow .28s ease; }
.site-header.scroll-effects-header.is-scrolled { background: rgba(16,28,19,.92); box-shadow: 0 10px 30px rgba(5,14,7,.16); }
.site-header.scroll-effects-header.is-scrolled .header-inner { min-height: 68px; }
.site-header.scroll-effects-header.is-scrolled .brand { width: 190px; }
.scroll-page .hero { background-position-y: calc(48% + var(--hero-shift, 0px)); }
.scroll-page .about-hero { background-position-y: calc(50% + var(--hero-shift, 0px)); }
.scroll-page .hero-content,
.scroll-page .about-hero-content { transform: translateY(var(--hero-content-shift, 0px)); will-change: transform; }
.scroll-effects-ready .scroll-page .scroll-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .72s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms), transform .72s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.scroll-effects-ready .scroll-page .scroll-reveal.reveal-from-left { transform: translateX(-38px); }
.scroll-effects-ready .scroll-page .scroll-reveal.reveal-from-right { transform: translateX(38px); }
.scroll-effects-ready .scroll-page .scroll-reveal.is-visible { opacity: 1; transform: translate(0, 0); }

#blazor-error-ui { display: none; position: fixed; inset: auto 0 0; z-index: 1000; padding: 12px 20px; color: var(--white); background: var(--error); }
#blazor-error-ui .dismiss { position: absolute; right: 14px; cursor: pointer; }

@media (max-width: 900px) {
    .shell { width: min(100% - 36px, 720px); }
    .feature, .feature-reverse, .order-layout { grid-template-columns: 1fr; }
    .feature-reverse .feature-image { order: 2; }
    .feature-reverse .feature-copy { order: 1; }
    .feature-image { max-width: 680px; }
    .application-grid { grid-template-columns: repeat(2, 1fr); }
    .order-intro { position: static; }
    .order-layout { gap: 64px; }
    .footer-inner { grid-template-columns: 220px 1fr; }
    .footer-inner > p { display: none; }
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .circular-section { grid-template-columns: 1fr; }
    .process-list { grid-column: auto; grid-template-columns: repeat(2, 1fr); }
    .capability-grid { grid-template-columns: repeat(2, 1fr); }
    .capability-grid div:nth-child(n) { grid-column: span 1; }
    .capability-grid div:last-child { grid-column: span 2; }
}

@media (max-width: 640px) {
    .shell { width: min(100% - 28px, 560px); }
    .header-inner { min-height: 72px; }
    .brand { width: 172px; }
    .site-header.scroll-effects-header.is-scrolled .brand { width: 158px; }
    nav { gap: 12px; }
    nav a:not(.nav-cta) { display: none; }
    .nav-cta { padding: 7px 10px; font-size: .78rem; }
    .hero { min-height: 650px; background-position: 61% center; }
    .hero-shade { background: rgba(8,16,10,.62); }
    .hero-content { padding-block: 82px 52px; }
    .hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
    .hero-copy { font-size: 1rem; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .proof-grid { grid-template-columns: 1fr; }
    .proof-grid article { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
    .proof-grid article:first-child { border-top: 0; }
    .feature, .applications, .order-band { padding-block: 76px; }
    .feature { gap: 42px; }
    .feature-copy h2, .section-heading h2, .order-intro h2 { font-size: 2.25rem; }
    .capabilities { grid-template-columns: 1fr; gap: 14px; }
    .application-grid { grid-template-columns: 1fr; }
    .application-grid article { min-height: 126px; }
    .order-form-wrap { padding: 24px 18px; }
    .field-row, .quantity-row, .address-locality-row { grid-template-columns: 1fr; gap: 0; }
    .form-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .capacity-label { gap: 14px; }
    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
    .footer-inner img { width: 190px; }
    .about-hero { min-height: 620px; }
    .about-hero-content { padding-block: 88px 58px; }
    .about-intro { padding-block: 72px; grid-template-columns: 1fr; gap: 24px; }
    .benefits-section, .circular-section, .operations-gallery, .capability-section, .results-section { padding-block: 76px; }
    .benefit-grid, .process-list, .results-layout { grid-template-columns: 1fr; }
    .benefit-grid article { min-height: 220px; }
    .process-list li { min-height: 160px; }
    .capability-grid { grid-template-columns: 1fr; }
    .capability-grid div:nth-child(n), .capability-grid div:last-child { grid-column: span 1; }
    .results-layout { gap: 18px; }
    .data-panel { padding: 26px 20px; }
    .data-list div { grid-template-columns: 1fr; gap: 3px; }
    .data-list dd { text-align: left; }
    .about-cta-inner { align-items: stretch; flex-direction: column; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
    .scroll-progress { display: none; }
    .scroll-page .hero-content, .scroll-page .about-hero-content { transform: none !important; }
    .scroll-effects-ready .scroll-page .scroll-reveal { opacity: 1; transform: none; }
}
