:root {
    --accent: #c14600; /* Smaoin orange */
    --accent-bright: #f54900; /* Hover */
    --text: #0f172a;
    --muted: #64748b;
    --ring: #e2e8f0;
}

/* --- Global reset / overflow guards --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    width: 100%;
    overflow-x: hidden; /* prevent sideways scroll */
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Base --- */
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

/* --- Header bar --- */
.bar {
    border-bottom: 1px solid var(--ring);
}

.bar-inner {
    max-width: 960px;
    width: 100%; /* ensure container never exceeds viewport */
    margin: 0 auto;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap; /* allow wrap on narrow screens */
}

.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    min-width: 0; /* avoid flex overflow */
}

    .brand img {
        height: 32px;
        width: auto;
    }

/* (CTA styles removed; we only use the hero button) */

/* --- Layout --- */
main {
    /* Small viewport height avoids iOS 100vh jumpiness */
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
    padding: 1rem;
    border-top: 1px solid var(--ring);
}

/* --- Hero --- */
.logo {
    height: 120px;
    width: auto;
    margin: 1.5rem auto 1rem;
    /* remove tiny left shove that caused overflow */
    transform: none;
}

.hero {
    max-width: 640px; /* readable line length */
    text-align: center;
    margin: 0 auto;
}

    .hero h1 {
        margin: .25rem 0 .75rem;
        font-size: clamp(1.6rem, 2.5vw, 2.2rem);
        font-weight: 700;
        line-height: 1.3;
    }

    .hero p {
        margin: .5rem auto;
        color: var(--muted);
        font-size: 1rem;
        line-height: 1.7;
        max-width: 580px;
    }

    .hero a {
        color: var(--accent);
        text-decoration: underline;
        font-weight: 500;
    }

        .hero a:hover {
            color: var(--accent-bright);
        }

/* --- Primary button --- */
.btn-primary {
    margin-top: 1.5rem;
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: none;
    padding: .9rem 1.4rem;
    border-radius: .6rem;
    font-weight: 700;
    text-align: center;
    min-width: 200px;
    transition: background-color .2s ease, opacity .2s ease;
}

    .btn-primary:hover {
        background: var(--accent-bright);
        color: #fff !important;
    }

/* --- Mobile tweaks --- */
@media (max-width: 480px) {
    .hero {
        padding: 0 12px;
    }

    .btn-primary {
        width: 100%;
        max-width: 320px;
    }
}
