/* Bonstar High Tech Solutions — brand: red #d6202b on near-black #151517 */

:root {
    --red: #d6202b;
    --red-bright: #f0313d;
    --ink: #151517;
    --ink-2: #1d1d20;
    --ink-3: #26262a;
    --line: rgba(255, 255, 255, 0.09);
    --text: #f2f2f4;
    --text-soft: #a3a3ac;
    --radius: 16px;
    --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--ink);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

/* ---------- top bar ---------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

.brand img {
    width: clamp(170px, 26vw, 230px);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.topnav a { text-decoration: none; color: var(--text-soft); transition: color 0.15s ease; }
.topnav a:hover { color: var(--text); }

.topnav__cta {
    color: var(--text) !important;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-variant-numeric: tabular-nums;
}
.topnav__cta:hover { border-color: var(--red); }

/* ---------- hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(3rem, 9vw, 6.5rem) 1.5rem clamp(3rem, 8vw, 5.5rem);
    border-bottom: 1px solid var(--line);
}

.hero__inner { position: relative; z-index: 1; max-width: 40rem; }

.hero__mark {
    position: absolute;
    right: -6%;
    top: 50%;
    transform: translateY(-50%);
    width: min(46%, 460px);
    opacity: 0.09;
    pointer-events: none;
    z-index: 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--red-bright);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 6vw, 3.6rem);
    font-weight: 800;
}

.accent { color: var(--red-bright); }

.lede {
    margin-top: 1.25rem;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--text-soft);
    max-width: 34rem;
}

.hero__actions,
.contact__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-bright); }

.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--red); }

/* ---------- sections ---------- */

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
}

.section--alt {
    max-width: none;
    background: var(--ink-2);
    border-block: 1px solid var(--line);
}

.section__head { margin-bottom: 2.25rem; }
.section__head h2,
.about h2,
.contact h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.section__head p { color: var(--text-soft); margin-top: 0.5rem; }

/* ---------- services grid ---------- */

.grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.35rem;
    position: relative;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.card::before {
    content: "";
    position: absolute;
    left: 1.35rem;
    top: 0;
    width: 34px;
    height: 3px;
    background: var(--red);
    border-radius: 0 0 3px 3px;
}
.card:hover { transform: translateY(-4px); border-color: rgba(214, 32, 43, 0.55); }

.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.4rem; }
.card p { color: var(--text-soft); font-size: 0.94rem; }

/* ---------- about ---------- */

.about {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(1.5rem, 5vw, 3.5rem);
    align-items: start;
}

.about__text p { color: var(--text-soft); margin-top: 1rem; }

.stats { list-style: none; display: grid; gap: 0.75rem; }

.stats li {
    background: var(--ink-3);
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
}
.stats strong { display: block; font-size: 1.15rem; letter-spacing: -0.01em; }
.stats span { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- contact ---------- */

.contact { text-align: center; }
.contact p { color: var(--text-soft); margin-top: 0.6rem; }
.contact__links { justify-content: center; }

/* ---------- footer ---------- */

.footer {
    border-top: 1px solid var(--line);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.87rem;
    color: var(--text-soft);
}
.footer a { color: var(--text-soft); text-decoration: none; }
.footer a:hover { color: var(--red-bright); }
.footer__contact { margin-top: 0.35rem; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
    .about { grid-template-columns: 1fr; }
    .hero__mark { opacity: 0.06; right: -18%; width: 70%; }
    .topbar { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn:hover, .card:hover { transform: none; }
}
