/* ==========================================================================
   Beartronics — shared stylesheet
   ========================================================================== */

:root {
    --bg-0: #050b14;
    --bg-1: #08111f;
    --panel: rgba(10, 20, 34, 0.78);
    --panel-solid: #0b1a2c;
    --border: rgba(132, 184, 229, 0.18);
    --border-strong: rgba(98, 195, 255, 0.28);
    --text: #f3f7fb;
    --text-muted: #a8b7c9;
    --text-dim: rgba(217, 230, 242, 0.6);
    --accent: #62c3ff;
    --accent-2: #2894e6;
    --accent-ink: #04111f;
    --radius: 18px;
    --radius-lg: 28px;
    --maxw: 1200px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(98, 195, 255, 0.16), transparent 42%),
        radial-gradient(circle at bottom left, rgba(24, 97, 158, 0.22), transparent 34%),
        linear-gradient(160deg, var(--bg-1) 0%, var(--bg-0) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.65;
}

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

.container {
    width: min(100%, var(--maxw));
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 12, 22, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    width: min(100%, var(--maxw));
    margin: 0 auto;
}

.nav__logo img { height: 38px; width: auto; }

.nav__links {
    display: flex;
    gap: 6px;
    margin-left: 12px;
    list-style: none;
    padding: 0;
}

.nav__links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 160ms ease, background 160ms ease;
}

.nav__links a:hover,
.nav__links a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav__right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.lang-switch a {
    padding: 4px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dim);
}

.lang-switch a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav__toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: 10px;
    padding: 6px 9px;
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: var(--accent-ink);
    box-shadow: 0 14px 28px rgba(40, 148, 230, 0.24);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(40, 148, 230, 0.32);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn--sm { padding: 9px 16px; font-size: 0.9rem; }

/* ---------- Sections & typography ---------- */
main { display: block; }

section { padding: 64px 0; }

.section--tight { padding: 44px 0; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }

h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    font-weight: 700;
}

.lead { font-size: clamp(1.02rem, 1.7vw, 1.18rem); color: var(--text-muted); max-width: 62ch; }

.muted { color: var(--text-muted); }

.center { text-align: center; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 48px;
    text-align: center;
}

.hero .container { display: flex; flex-direction: column; align-items: center; }
.hero .lead { max-width: 640px; }

/* Home hero fills the first screen and centers vertically */
.hero:has(.hero__logo) {
    min-height: calc(100vh - var(--header-h, 96px));
    display: flex;
    align-items: center;
    padding: 48px 0;
}

.hero:has(.hero__logo) h1 { max-width: 17ch; margin-left: auto; margin-right: auto; }

.hero__logo { width: min(70%, 320px); margin: 0 auto 24px; }

.hero__cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ---------- Cards & grids ---------- */
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    padding: 36px;
}

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.05); }

.card__icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(98, 195, 255, 0.12);
    color: var(--accent);
    margin-bottom: 16px;
}

.card__icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

.card__examples {
    margin: 14px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.card--link { text-decoration: none; color: inherit; cursor: pointer; display: block; }
.card--link h3 { display: inline-flex; align-items: center; gap: 6px; }
.card--link h3::after { content: "\2192"; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity 180ms ease, transform 180ms ease; }
.card--link:hover h3::after, .card--link:focus-visible h3::after { opacity: 1; transform: translateX(0); }

section[id] { scroll-margin-top: 110px; }

.card--row { display: flex; align-items: flex-start; gap: 18px; }
.card--row .card__icon { margin-bottom: 0; flex: none; }
.card--row h3 { margin-top: 0; }
.card--row p { margin: 0; }

/* ---------- Comparison visual ---------- */
.compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 22px;
    align-items: stretch;
}

.compare__col-title {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 700;
}

.compare__col-title.is-bad { color: var(--text-dim); }
.compare__col-title.is-good { color: var(--accent); }

.vendor-list { display: flex; flex-direction: column; gap: 10px; }

.vendor {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.vendor svg { width: 20px; height: 20px; color: var(--text-dim); flex: none; }
.vendor b { font-weight: 600; font-size: 0.96rem; }
.vendor span { color: var(--text-dim); font-size: 0.85rem; }

.compare__note { margin-top: 12px; font-size: 0.86rem; color: var(--text-dim); }

.compare__arrow {
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.compare__arrow svg { width: 30px; height: 30px; }

.compare > div:last-child { display: flex; flex-direction: column; }

.compare__one {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(98, 195, 255, 0.12), rgba(40, 148, 230, 0.06));
    padding: 24px;
    margin: auto 0;
    display: flex; flex-direction: column; gap: 14px;
}

.compare__one h3 { margin: 0; color: var(--accent); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 0.98rem; }
.check-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- Steps / approach ---------- */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.steps { display: grid; gap: 16px; counter-reset: step; }

.step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
}

.step__num {
    counter-increment: step;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(98, 195, 255, 0.12);
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}
.step__num::before { content: counter(step); }
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.9rem; margin-bottom: 6px; color: var(--text-muted); }
.field input, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }

.contact-direct-panel { display: flex; flex-direction: column; justify-content: flex-start; }
.contact-direct-head { margin-bottom: 22px; }
.contact-direct-head h2 { margin: 0 0 12px; }

.contact-direct { display: flex; flex-direction: column; gap: 16px; }
.contact-direct a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.contact-direct .ico {
    width: 40px; height: 40px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(98, 195, 255, 0.12); color: var(--accent); flex: none;
}
.contact-direct .ico svg { width: 20px; height: 20px; }
.contact-direct small { display: block; color: var(--text-dim); }

.badge-247 {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(98, 195, 255, 0.08);
    color: var(--accent); font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.02em;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
    align-items: stretch;
}

.about-photo {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    object-position: 62% center;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: block;
}

.about-text .lead { margin-top: 0; }
.about-text p + p { margin-top: 16px; }

/* ---------- CTA strip ---------- */
.cta-strip {
    text-align: center;
    background: linear-gradient(160deg, rgba(98, 195, 255, 0.14), rgba(40, 148, 230, 0.05));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
}
.cta-strip .hero__cta { margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 28px;
    color: var(--text-dim);
    font-size: 0.9rem;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer-grid a { color: var(--text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 10px; }
.footer-col p, .footer-col ul { margin: 0; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); color: rgba(217, 230, 242, 0.5); font-size: 0.78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .grid--3 { grid-template-columns: 1fr; }
    .grid--2, .entry-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; }
    .compare { grid-template-columns: 1fr; }
    .compare__arrow { transform: rotate(90deg); padding: 4px 0; }

    .nav__links, .nav__right .btn { display: none; }
    .nav__toggle { display: inline-flex; }
    .nav[data-open="true"] .nav__links {
        display: flex;
        position: absolute;
        top: 62px; left: 0; right: 0;
        flex-direction: column;
        gap: 4px;
        padding: 12px 24px 18px;
        background: rgba(6, 12, 22, 0.96);
        border-bottom: 1px solid var(--border);
        margin: 0;
    }
    .nav[data-open="true"] .nav__links a { padding: 10px 12px; }
}

@media (max-width: 520px) {
    section { padding: 48px 0; }
    .panel { padding: 24px; }
    .hero__cta .btn { width: 100%; }
}
