:root {
    /* Brand scale — anchor: #11631a (700), from renk kodları.png */
    --brand-50: #f0f7f1;
    --brand-100: #dceee0;
    --brand-200: #b9ddc2;
    --brand-300: #86c494;
    --brand-400: #52a864;
    --brand-500: #2d8f42;
    --brand-600: #1a7d27;
    --brand-700: #11631a;
    --brand-800: #0d4f14;
    --brand-900: #0a3d10;
    --brand-950: #062808;

    /* Semantic tokens */
    --color-primary: var(--brand-700);
    --color-primary-hover: var(--brand-800);
    --color-primary-active: var(--brand-900);
    --color-accent: var(--brand-600);
    --color-surface: #ffffff;
    --color-surface-subtle: var(--brand-50);
    --color-surface-brand: var(--brand-700);
    --color-surface-inverse: var(--brand-900);
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-text-inverse: #ffffff;
    --color-text-inverse-muted: rgb(255 255 255 / 0.75);
    --color-text-logo: #232020;
    --color-border: #e5e7eb;
    --color-border-brand: var(--brand-200);
    /* Photo heroes only — lighter overlay so flat brand-700 matches logo PDF */
    --hero-gradient: linear-gradient(
        to bottom,
        rgb(17 99 26 / 0.72),
        rgb(10 61 16 / 0.82)
    );
}

/* Text logo — Poppins weights from .ai source */
.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    color: inherit;
}

.logo-magg {
    display: block;
    font-weight: 800;
    font-size: 1.625rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-global {
    display: block;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.28em;
    /* Balance trailing track so L does not hang past MAGG */
    padding-left: 0.28em;
    line-height: 1.2;
    margin-top: 0.1rem;
}

.logo-tagline {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.4;
}

.logo-descriptor {
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.4;
}

.logo--dark .logo-magg,
.logo--dark .logo-global {
    color: var(--color-text-logo);
}

.logo--light .logo-magg,
.logo--light .logo-global {
    color: var(--color-text-inverse);
}

.logo--light .logo-tagline {
    color: var(--color-text-inverse-muted);
}

.logo--light .logo-descriptor {
    color: rgb(255 255 255 / 0.55);
}

/* Hero backgrounds — full width on mobile, no side crop */
.hero-bg {
    background-size: cover;
    background-position: center;
}

@media (max-width: 767px) {
    .hero-bg {
        background-size: 100% auto;
        background-position: top center;
        background-repeat: no-repeat;
        background-color: var(--brand-800);
    }
}

/* Product / machine photos — show full machine, letterbox if needed */
.card-media {
    background: var(--brand-50);
}

.card-media img {
    width: 100%;
    height: 12rem;
    object-fit: contain;
    object-position: center;
}

.feature-media img {
    width: 100%;
    height: 20rem;
    object-fit: contain;
    object-position: center;
    background: var(--brand-50);
}

.about-media img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    object-position: center;
}

/* Diagrams and layouts — never crop informational images */
.media-diagram {
    width: 100%;
    max-width: 50rem;
    height: auto;
    margin-inline: auto;
}