*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --navy: #2c3e6b;
    --red: #c8202a;
    --light: #f6f6f4;
    --dark: #111;
    --muted: #666;
    --border: #e2e0db;
}
body {
    font-family: "Barlow", sans-serif;
    color: var(--dark);
    background: #fff;
    font-size: 16px;
    line-height: 1.6;
}
a {
    color: inherit;
    text-decoration: none;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    height: 64px;
}
nav img.nav-logo {
    height: 36px;
    width: auto;
}
nav ul {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}
nav ul li a {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.03em;
    transition: color 0.2s;
}
nav ul li a:hover {
    color: var(--navy);
}
.nav-cta {
    background: var(--red);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 8px 18px;
    border-radius: 3px;
}

.hero {
    background: var(--navy);
    padding: 7rem 6vw 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    display: none;
}
.hero > * {
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.2rem;
}
.hero-title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 1.4rem;
}
.hero-title .red {
    color: var(--red);
}
.hero-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    max-width: 400px;
    margin-bottom: 2.2rem;
}
.hero-btns {
    display: flex;
    gap: 1rem;
}
.btn-red {
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 11px 26px;
    border-radius: 3px;
    transition: opacity 0.2s;
    display: inline-block;
}
.btn-red:hover {
    opacity: 0.85;
}
.btn-red-outline {
    background: #fff;
    border: 1px solid var(--red);
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 11px 26px;
    border-radius: 3px;
    transition: opacity 0.2s;
    display: inline-block;
}
.btn-red-outline:hover {
    opacity: 0.85;
}
.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    padding: 11px 26px;
    border-radius: 3px;
    transition: border-color 0.2s;
    display: inline-block;
}
.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.65);
}
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.hero-stat-row {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    gap: 1.5rem;
    align-items: baseline;
}
.hero-stat-row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stat-num {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    min-width: 90px;
}
.hero-stat-num span {
    color: var(--red);
}
.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.sec {
    padding: 6rem 6vw;
}
.sec-alt {
    background: var(--light);
}
.sec-dark {
    background: var(--dark);
}
.sec-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.6rem;
}
.sec-title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 2.8rem;
    line-height: 1.1;
}
.sec-dark .sec-title {
    color: #fff;
}
.sec-dark .sec-label {
    color: rgba(255, 255, 255, 0.35);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-body {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.85;
}
.about-body p + p {
    margin-top: 1rem;
}
.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.highlight-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
}
.highlight-icon {
    font-size: 20px;
    margin-bottom: 0.5rem;
}
.highlight-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
    margin-bottom: 0.3rem;
}
.highlight-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

.machines-intro {
    max-width: 640px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 3rem;
}
.machines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.machine-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.4rem 1.4rem 1.2rem;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.machine-icon {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.3rem;
    line-height: 1;
}
.machine-name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.7rem;
}
.machine-unit {
    border-radius: 5px;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.machine-unit.installed {
    background: #f0faf0;
    border: 1.5px solid #b8e0b8;
}
.machine-unit.tbi {
    background: #f4f5f8;
    border: 1.5px dashed #9aa4c0;
    margin-top: 0.6rem;
}
.machine-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    align-self: flex-start;
}
.machine-status.installed {
    color: #2e7d32;
}
.machine-status.installed::before {
    content: "●";
    font-size: 7px;
}
.machine-status.pending {
    color: var(--navy);
}
.machine-status.pending::before {
    content: "+";
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}
.machine-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0.2rem;
}
.machine-specs li {
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    gap: 6px;
    align-items: baseline;
}
.machine-specs li::before {
    content: "—";
    color: var(--navy);
    font-size: 10px;
    flex-shrink: 0;
}
.machine-unit.tbi .machine-specs li {
    color: #888;
}
.machine-unit.tbi .machine-specs li::before {
    color: #9aa4c0;
}
.machine-name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.2rem;
}
.machine-count {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    background: rgba(44, 62, 107, 0.1);
    color: var(--navy);
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}
.machine-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.machine-specs li {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 6px;
    align-items: baseline;
}
.machine-specs li::before {
    content: "—";
    color: var(--red);
    font-size: 10px;
    flex-shrink: 0;
}
.plant-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.plant-cell {
    padding: 1.2rem 1.3rem;
    border-right: 1px solid var(--border);
}
.plant-cell:last-child {
    border-right: none;
}
.plant-lbl {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
}
.plant-val {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

/* MATRIX TABS */
.sec-sub {
    font-size: 15px;
    color: var(--muted);
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
}
.matrix-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}
.mtab {
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Barlow", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.75rem 1.6rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition:
        color 0.2s,
        border-color 0.2s;
}
.mtab.active {
    color: var(--navy);
    border-bottom-color: var(--red);
}
.matrix-wrap {
    display: none;
}
.matrix-wrap.active {
    display: block;
}
/* MATRIX TABLE */
.matrix-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.matrix-table th,
.matrix-table td {
    border: 1px solid var(--border);
    padding: 0.7rem 1rem;
    vertical-align: top;
}
.matrix-table thead th {
    background: var(--navy);
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}
.matrix-corner {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    min-width: 160px;
}
.mill-label {
    font-weight: 600;
    color: var(--navy);
    font-size: 13px;
    white-space: nowrap;
    background: var(--light);
}
.empty-cell {
    background: #fafafa;
    text-align: center;
    color: #ccc;
    font-size: 18px;
}
.matrix-note {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2rem;
    font-style: italic;
}
/* GRADE CHIPS */
.grade-chip {
    display: inline-block;
    background: #eef0f5;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 9px;
    border-radius: 4px;
    margin: 3px 3px 3px 0;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.grade-chip:hover {
    background: var(--navy);
    color: #fff;
}
.grade-chip.active {
    background: var(--navy);
    color: #fff;
}
.grade-chip.highlight {
    background: #e8f0fe;
    color: #1a3a8f;
    border-color: #c5d4f5;
}
.grade-chip.highlight:hover,
.grade-chip.highlight.active {
    background: var(--navy);
    color: #fff;
}
.grade-chip.special {
    background: #fef3e8;
    color: #8f4a1a;
    border-color: #f5d4c5;
}
.grade-chip.special:hover,
.grade-chip.special.active {
    background: var(--red);
    color: #fff;
}
/* DETAIL CARDS */
.detail-cards {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}
.detail-cards.visible {
    display: grid;
}
.detail-card {
    display: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
    flex-direction: column;
    gap: 0.4rem;
}
.detail-card.visible {
    display: flex;
}
.dc-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
}
.dc-grade {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy);
    padding: 3px 8px;
    border-radius: 3px;
}
.dc-family {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
}
.dc-hardness {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-left: auto;
}
.dc-name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--navy);
}
.dc-app {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.6rem;
    margin-bottom: 0.3rem;
}
.dc-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.dc-highlights li {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 6px;
    align-items: baseline;
}
.dc-highlights li::before {
    content: "—";
    color: var(--navy);
    font-size: 10px;
    flex-shrink: 0;
}
.prod-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}
.prod-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.prod-body {
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}
.prod-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--navy);
    margin-bottom: 0.1rem;
}
.prod-name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--navy);
}
.prod-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}
.prod-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.5rem;
}
.prod-link::after {
    content: "↗";
}

.contact-map-full {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2.5rem;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-company {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}
.c-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.c-lbl {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}
.c-val {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}
.c-val a {
    color: rgba(255, 255, 255, 0.75);
}
.c-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0.2rem 0;
}
.c-reg {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.7;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 10px 14px;
    color: #fff;
    font-family: "Barlow", sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}
.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.45)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.form-field select option {
    background: #1a1a1a;
    color: #fff;
}
.form-field textarea {
    resize: vertical;
    min-height: 110px;
}
.form-submit {
    background: var(--red);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 13px 32px;
    border-radius: 3px;
    align-self: flex-start;
    transition: opacity 0.2s;
    margin-top: 0.3rem;
}
.form-submit:hover {
    opacity: 0.85;
}

footer {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.4rem 6vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
footer p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1.6;
}
footer .footer-logo {
    height: 26px;
    opacity: 0.35;
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 4rem 6vw;
    }
    .hero-right {
        display: none;
    }
    .about-grid,
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .machines-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    .plant-bar {
        grid-template-columns: 1fr 1fr;
    }
    .plant-cell:nth-child(2) {
        border-right: none;
    }
    .plant-cell:nth-child(3) {
        border-top: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
    .plant-cell:nth-child(4) {
        border-top: 1px solid var(--border);
        border-right: none;
    }
    .detail-cards.visible {
        grid-template-columns: 1fr 1fr;
    }
    .form-2 {
        grid-template-columns: 1fr;
    }
    nav ul {
        display: none;
    }
}
@media (max-width: 540px) {
    .machines-grid,
    .detail-cards.visible {
        grid-template-columns: 1fr;
    }
}

.notfound {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.nf-wrap {
  max-width: 720px;
}

.nf-code {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

.nf-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.nf-text {
  opacity: .75;
  margin-bottom: 2rem;
}

.nf-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.success {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
}
.success-wrap {
    max-width: 720px;
}
.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.success-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.success-text {
    opacity: 0.75;
    margin-bottom: 2rem;
}
.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fail {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
}

.fail-wrap {
    max-width: 720px;
}

.fail-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fail-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.fail-text {
    opacity: 0.75;
    margin-bottom: 2rem;
}

.fail-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
