:root {
    --ink: #10273f;
    --ink-soft: #536474;
    --cream: #f7f6f0;
    --paper: #ffffff;
    --lime: #c7f36a;
    --lime-dark: #78a62d;
    --orange: #ff8b5a;
    --line: #dce2e5;
    --danger: #a52929;
    --success: #1c6b4b;
    --radius: 20px;
    --shadow: 0 18px 55px rgba(16, 39, 63, .10);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: 12px; padding: 10px 15px; transform: translateY(-160%); background: #fff; border-radius: 8px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(16,39,63,.08); background: rgba(247,246,240,.94); backdrop-filter: blur(12px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.brand > span:last-child > span { color: var(--lime-dark); }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--ink); color: var(--lime); font-weight: 900; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; font-weight: 680; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--lime-dark); }
.lang-link { padding-left: 12px; border-left: 1px solid var(--line); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 21px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-weight: 760; line-height: 1; text-decoration: none; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 25px rgba(16,39,63,.2); }
.button-primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.button-secondary { background: #fff; color: var(--ink); }
.button-danger { background: var(--danger); border-color: var(--danger); }
.button-small { min-height: 40px; padding: 10px 17px; }
.button-block { width: 100%; }

.hero { position: relative; overflow: hidden; padding: 90px 0 76px; background: var(--ink); color: #fff; }
.hero::after { content: ""; position: absolute; right: -100px; top: -200px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(199,243,106,.25), transparent 65%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 65px; }
.eyebrow { margin: 0 0 16px; color: var(--lime-dark); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 820px; margin: 0 0 22px; font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { margin: 0 0 18px; font-size: clamp(2rem, 3.5vw, 3.2rem); }
h3 { margin: 0 0 12px; font-size: 1.28rem; }
.lead { margin: 0 0 30px; color: rgba(255,255,255,.8); font-size: clamp(1.05rem, 2vw, 1.32rem); }
.search-bar { display: flex; gap: 10px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.search-bar input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; color: var(--ink); background: transparent; }
.trust-orbit { position: relative; width: min(100%, 410px); aspect-ratio: 1; margin-inline: auto; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.trust-orbit::before, .trust-orbit::after { content: ""; position: absolute; inset: 13%; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.trust-orbit::after { inset: 27%; }
.score-disc { position: absolute; inset: 28%; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--lime); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.score-disc strong { font-size: 3.6rem; line-height: 1; }
.orbit-note { position: absolute; max-width: 145px; padding: 11px 15px; border-radius: 14px; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 730; box-shadow: var(--shadow); }
.orbit-note.one { top: 5%; left: -2%; }
.orbit-note.two { right: -4%; top: 35%; }
.orbit-note.three { bottom: 8%; left: 2%; }

.section { padding: 78px 0; }
.section-white { background: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-head p { max-width: 560px; color: var(--ink-soft); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 5px 24px rgba(16,39,63,.05); }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.company-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 17px; }
.company-logo { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 16px; background: var(--ink); color: var(--lime); font-size: 1.35rem; font-weight: 900; }
.muted { color: var(--ink-soft); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--ink-soft); font-size: .9rem; }
.score-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 850; }
.score-large { font-size: clamp(3.1rem, 9vw, 6.5rem); font-weight: 900; line-height: .9; letter-spacing: -.08em; }
.profile-head { padding: 60px 0 42px; background: var(--ink); color: #fff; }
.profile-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.review-card { display: grid; gap: 15px; }
.review-card blockquote { margin: 0; font-size: 1.04rem; }
.review-card .reply { padding: 18px; border-left: 4px solid var(--lime-dark); border-radius: 0 12px 12px 0; background: var(--cream); }
.label { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #eaf0f2; color: var(--ink); font-size: .75rem; font-weight: 800; text-transform: uppercase; }

.form-card { padding: clamp(25px, 5vw, 48px); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 19px; }
.field label { font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border: 1px solid #bdc8ce; border-radius: 12px; background: #fff; color: var(--ink); }
.field textarea { min-height: 145px; resize: vertical; }
.field small { color: var(--ink-soft); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { margin-top: .28em; }
.error-box { margin-bottom: 20px; padding: 13px 16px; border-left: 4px solid var(--danger); border-radius: 8px; background: #fff1f1; color: var(--danger); }
.flash-stack { margin-top: 18px; }
.flash { padding: 13px 17px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.flash-success { border-left: 4px solid var(--success); }
.flash-error { border-left: 4px solid var(--danger); }
.auth-shell { display: grid; min-height: 70vh; place-items: center; padding: 60px 0; background: linear-gradient(145deg, var(--cream), #eaf1ee); }
.auth-card { width: min(560px, calc(100% - 40px)); }

.portal { padding: 48px 0 80px; }
.portal-head { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.tabs a { padding: 9px 14px; border-radius: 999px; background: #e9edef; text-decoration: none; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 28px; }
.stat { padding: 21px; border-radius: 17px; background: var(--ink); color: #fff; }
.stat strong { display: block; font-size: 2rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.inline-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.inline-form .field { flex: 1 1 190px; margin: 0; }
.admin-alert { border-color: #efc3c3; }

.empty { padding: 45px 24px; border: 1px dashed #aebbc2; border-radius: var(--radius); text-align: center; color: var(--ink-soft); }
.site-footer { padding: 55px 0; background: #091a2a; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 45px; }
.brand-footer { color: #fff; }
.site-footer p { max-width: 480px; }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer a { color: #fff; }

@media (max-width: 880px) {
    .main-nav > a:not(.button):not(.lang-link) { display: none; }
    .hero-grid, .profile-grid, .grid-3, .stat-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid { gap: 38px; }
    .trust-orbit { width: 300px; }
}
@media (max-width: 640px) {
    .shell, .narrow { width: min(100% - 26px, 1180px); }
    .header-inner { min-height: 68px; }
    .main-nav .button { display: none; }
    .hero { padding: 62px 0 55px; }
    .hero-grid, .profile-grid, .grid-2, .grid-3, .stat-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
    .trust-orbit { display: none; }
    .search-bar { display: grid; }
    .section { padding: 55px 0; }
    .section-head, .portal-head { align-items: flex-start; flex-direction: column; }
    .company-row { grid-template-columns: 48px 1fr; }
    .company-row .score-pill { grid-column: 2; width: fit-content; }
    .footer-grid { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
